Skip to content
Tutorials Center
My learning

Topics

Lesson 33 of 38 · Gas Laws

The Combined and Ideal Gas Laws

Combine the simple gas laws, use PV = nRT with the right value of R, find moles, molar mass and density of gases, and know when real gases deviate.

The three simple gas laws each hold one or two quantities constant. Real problems often change several things at once: a weather balloon rises into thinner, colder air, so pressure, volume and temperature all change. Combining the laws gives a single equation that covers all of these cases. Adding the amount of gas leads to the famous ideal gas law.

The combined gas law

Multiply Boyle's, Charles's and Gay-Lussac's laws together and you get, for a fixed amount of gas:

P₁V₁ / T₁ = P₂V₂ / T₂

If one variable is constant, it cancels and you recover one of the simple laws. Temperatures are always in kelvin.

Example: a weather balloon holds 120 L of helium at 101.3 kPa and 20 °C (293.15 K). At altitude, the pressure is 30.0 kPa and the temperature is -40 °C (233.15 K). What is the new volume?

V₂ = V₁ × (P₁/P₂) × (T₂/T₁) = 120 × (101.3/30.0) × (233.15/293.15) = 322 L

Python Combined gas law calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Avogadro's law and the ideal gas law

Avogadro's law: equal volumes of any gases at the same temperature and pressure contain the same number of particles. At constant T and P, volume is proportional to the amount of gas: V ∝ n.

Putting all relationships together gives the ideal gas law:

PV = nRT

  • P pressure, V volume, n moles, T absolute temperature (K).
  • R is the gas constant. Its value depends on the units you use:
R Use when
8.314 J/(mol·K) P in Pa, V in m³ (or P in kPa and V in L)
0.08206 L·atm/(mol·K) P in atm, V in L
62.36 L·torr/(mol·K) P in torr (mmHg), V in L

(With kPa and liters, R = 8.314 kPa·L/(mol·K), because 1 kPa·L = 1 J.)

An ideal gas is a model in which the particles have no volume and do not attract one another. Real gases behave almost ideally at low pressure and high temperature.

Worked examples

Example 1: find the volume. What volume does 1.00 mol of an ideal gas occupy at 0 °C and 1 atm?

V = nRT / P = (1.00 × 0.08206 × 273.15) / 1.000 = 22.4 L

This is the molar volume at 0 °C and 1 atm: 22.4 L/mol. (At exactly 273.15 K and 1 bar, 100 kPa, it is about 22.7 L/mol. Always check which "standard conditions" a problem means.)

Example 2: find the moles. A 5.00 L tank holds oxygen at 2.00 atm and 300 K.

n = PV / RT = (2.00 × 5.00) / (0.08206 × 300) = 0.406 mol

Example 3: find the pressure. 0.500 mol of gas in a 10.0 L container at 25 °C:

P = nRT / V = (0.500 × 8.314 × 298.15) / 10.0 = 124 kPa

Python Ideal gas law solver

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Molar mass and density from the ideal gas law

Because n = m / M (mass over molar mass), the law can be rewritten:

M = mRT / (PV) and density d = m / V = PM / (RT)

Example: a 0.500 g sample of an unknown gas occupies 0.200 L at 100.0 kPa and 25 °C. Find its molar mass.

M = (0.500 g × 8.314 × 298.15) / (100.0 × 0.200) = 62.0 g/mol

(The units work with R = 8.314 kPa·L/(mol·K).)

Density tells you something useful: at the same T and P, a gas with a larger molar mass is denser. Helium (4.003 g/mol) is much less dense than air (about 28.97 g/mol), which is why helium balloons rise.

Python Molar mass and density of gases

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

When gases are not ideal

At high pressure, gas particles are squeezed so close that their own volume matters. At low temperature, attractions between particles matter. The van der Waals equation corrects the ideal law with two constants (a for attraction, b for particle volume). In most school problems the ideal gas law is accurate to a few percent, and that is good enough.

Common mistakes

  • Wrong R for the units. Match R to your pressure and volume units.
  • Celsius instead of kelvin.
  • Forgetting liters. Convert mL to L and m³ to L as needed.
  • Mixing "standard conditions". 0 °C with 1 atm gives 22.4 L/mol; 0 °C with 1 bar gives about 22.7 L/mol.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which equation is the ideal gas law?

    The ideal gas law is PV = nRT.
  2. 2. What volume does 1.00 mol of ideal gas occupy at 0 °C and 1.00 atm?

    V = nRT/P = 1.00 × 0.08206 × 273.15 / 1.00 = 22.4 L.
  3. 3. Which gas is denser at the same temperature and pressure?

    Density is proportional to molar mass (d = PM/RT); CO₂ (44.01 g/mol) is much heavier than He (4.003 g/mol).
  4. 4. Under which conditions do real gases behave most like ideal gases?

    At low pressure the particles are far apart, and at high temperature attractions matter little.

Summary

  • Combined law: P₁V₁/T₁ = P₂V₂/T₂ for a fixed amount of gas.
  • Ideal gas law: PV = nRT, with R matched to your units (0.08206 L·atm/(mol·K) or 8.314 J/(mol·K)).
  • Molar volume at 0 °C and 1 atm is 22.4 L/mol.
  • Molar mass M = mRT/(PV); density d = PM/(RT).
  • Real gases deviate from ideal behavior at high pressure and low temperature.

Next: Gas Stoichiometry: Volumes in Reactions