Thermodynamics · Part 13 of 30

The ideal gas and kinetic theory

Intermediate 16 min

Boyle, Charles and the ideal gas law pV = nRT, the molecular picture of pressure and temperature, molecular speeds and where real gases deviate.

What you will learn

  • You can use pV = nRT and the combined gas law in calculations.
  • You can explain pressure and temperature with the kinetic theory of gases.
  • You can calculate rms speeds and explain when real gases deviate from ideal behaviour.

Before this: Temperature, heat and how it moves

A gas is mostly empty space

Air at room temperature is about 99.9 % empty space, filled with molecules flying at the speed of a jet airliner and colliding billions of times per second. From this chaos, simple laws emerge that let you predict tyre pressures, weather balloons and how much oxygen a scuba tank holds.

Key points

  • Ideal gas law: p·V = n·R·T, with R = 8.314 J/(mol·K) and T in kelvin.
  • Special cases: Boyle (p·V constant at fixed T), Charles (V/T constant at fixed p), Gay-Lussac (p/T constant at fixed V).
  • Pressure comes from molecules hitting the walls; the average kinetic energy per molecule is (3/2)·k·T.
  • rms speed: v_rms = √(3RT/M); for N₂ at 20 °C about 510 m/s.
  • Real gases deviate at high pressure and low temperature (molecular size and attractions — van der Waals).
Gas particles bouncing in a cylinder, a flame heating it and the piston pushed up

The gas laws

Experiments from the 1660s to the 1800s found:

  • Boyle's law (fixed T and amount): p·V = constant. Squeeze a syringe to half its volume, the pressure doubles.
  • Charles's law (fixed p): V ∝ T. A balloon in the freezer shrinks.
  • Gay-Lussac's law (fixed V): p ∝ T. A sealed aerosol can in a fire can burst.

All three combine into the ideal gas law:

p · V = n · R · T

with the molar gas constant R = 8.314 J/(mol·K) — exact since 2019, because R = Nₐ·k. Temperatures must be in kelvin.

Example. One mole of gas at 0 °C (273.15 K) and 101.325 kPa occupies V = nRT/p = 8.314 × 273.15 / 101 325 = 0.0224 m³ = 22.4 L.

Car tyre. You inflate a tyre to 2.2 bar above atmospheric (3.2 bar absolute) at 10 °C. After a motorway drive the air inside is 40 °C. At constant volume, p₂ = 3.2 × 313/283 = 3.54 bar absolute, so the gauge shows about 2.5 bar — that is why you check tyre pressure cold.

Try it: Ideal gas lab

Change amount, temperature and volume of a gas and see its pressure, the molecules’ speeds and their Maxwell–Boltzmann distribution.

Turn on JavaScript to use this lab. Worked example:

One mole at 273.15 K in 22.4 L has p = nRT/V ≈ 101.4 kPa (about 1 atm). Halve the volume and the pressure doubles (Boyle); double the temperature at fixed volume and it doubles too (Gay-Lussac). The lab also shows the molecules' rms speed for the chosen gas.

A bicycle pump warming as it squeezes air into a tyre, tiny moving balls shown inside

The molecular picture

Kinetic theory models the gas as tiny particles that move randomly, collide elastically and do not attract each other. Each collision with a wall transfers momentum; many collisions per second produce a steady force — pressure. Working this out gives

p·V = ⅓·N·m·⟨v²⟩

Comparing with pV = NkT shows that temperature measures the average kinetic energy of the molecules:

⟨KE⟩ = (3/2)·k·T

So at the same temperature, light and heavy molecules have the same average kinetic energy — the light ones move faster. The root-mean-square speed:

v_rms = √(3·R·T / M) (M in kg/mol)

  • N₂ (0.028 kg/mol) at 293 K: about 511 m/s.
  • H₂ (0.002 kg/mol) at 293 K: about 1900 m/s — light enough that a fraction escapes Earth's gravity over geological time, so our atmosphere has almost no free hydrogen or helium.
Histogram-like curves of molecular speeds for nitrogen at a low and a high temperature: the hotter curve is flatter and shifted to higher speeds
Speeds spread out and rise with temperature

The actual speeds follow the Maxwell–Boltzmann distribution — a few molecules are slow, most near the peak, a long tail very fast. Evaporation happens when the fast tail escapes the liquid surface, which is why evaporating sweat cools you.

Real gases

The ideal model breaks down when molecules are squeezed close together (high pressure) or move slowly (low temperature):

  • Molecules take up space, so the free volume is less than V.
  • Molecules attract each other, slightly reducing the pressure on the walls.

The van der Waals equation adds two constants for these effects: (p + a·n²/V²)·(V − n·b) = n·R·T. At high enough pressure and low enough temperature attractions win and the gas condenses — every gas liquefies below its critical temperature (CO₂ 31 °C, N₂ −147 °C).

Flashcards

Question: State the ideal gas law.
Answer: p·V = n·R·T (R = 8.314 J/(mol·K), T in kelvin).
Question: What does temperature measure in kinetic theory?
Answer: The average kinetic energy of the molecules, (3/2)·k·T.
Question: Volume of 1 mol of ideal gas at 0 °C and 1 atm?
Answer: About 22.4 L.
Question: When do real gases deviate most from ideal behaviour?
Answer: At high pressure and low temperature.

Check yourself

Think about your answer, then open it. In the app the quiz is interactive, earns points and brings back what you missed.

  1. A gas at 100 kPa is compressed from 6.0 L to 2.0 L at constant temperature. New pressure?

    Show the answer

    300 kPa (± 0.5 kPa)

    Boyle: p₂ = p₁·V₁/V₂ = 100 × 6/2 = 300 kPa.

    Source: OpenStax University Physics Vol. 2, 2.2

  2. How many moles are in 10.0 L of gas at 300 K and 200 kPa? (R = 8.314 J/(mol·K))

    Show the answer

    0.802 mol (± 0.005 mol)

    n = pV/(RT) = 200 000 × 0.0100 / (8.314 × 300) = 0.802 mol.

    Source: OpenStax University Physics Vol. 2, 2.2

  3. Hydrogen and oxygen are at the same temperature. Which statement is true?

    • Both have the same rms speed
    • Both have the same average kinetic energy per molecule
    • Oxygen molecules move faster
    • Hydrogen molecules have more kinetic energy on average
    Show the answer

    Both have the same average kinetic energy per molecule

    ⟨KE⟩ = (3/2)kT depends only on temperature; lighter H₂ therefore moves faster.

    Source: OpenStax University Physics Vol. 2, 2.3

  4. By what factor does the rms speed of a gas rise when its absolute temperature is quadrupled?

    Show the answer

    2 ×

    v_rms ∝ √T, and √4 = 2.

    Source: OpenStax University Physics Vol. 2, 2.3

Sources

Facts checked on 2026-11-30. Skillgrove lessons are free learning material — no certificate and no accreditation.