Skip to the content
Thermodynamics · Concept

The ideal gas law, and when it fails

One law ties a gas's pressure, volume and temperature. Packed tight or near boiling, a factor Z corrects it.

12 L232 barabout 3400 psiair, packed tightat room temperature, 20 °Cthe ideal gas law says3.31 kgit really holds3.19 kga scuba tank
A full scuba tank. The ideal gas law comes close to what it holds, but not exactly.
In plain words

A scuba tank is packed with air at hundreds of times the pressure around us. The usual gas law says how much air fits: more pressure, more air. That law treats the air's molecules as tiny specks that ignore each other. Packed this tight, they take up room and tug on each other, so the law is a little off. A correction factor says by how much.

What it is

The ideal gas law ties a gas's pressure, volume and temperature together, with one constant per gas. The factor Z measures how far a real gas strays from it.

Why it matters

It is the quickest way to a gas's state, in engines, tyres and weather. Near boiling or at high pressure it can be badly off. Z tells you when to reach for the tables instead.

The rule

Pressure times the space per kilogram equals Z times the gas constant times the absolute temperature.

pressure; 100 kPa is 1 bar, about 14.5 psi · in kPa
specific volume: the space each kilogram takes · in m³/kg
compressibility factor: 1 for an ideal gas, and how far off the law is otherwise; no unit
the gas constant for this gas · in kJ/kg·K
temperature from absolute zero; add 273.15 to °C · in kelvin (K)

See it

Fill a 12-litre tank

Try: Fill the tank from empty to full. Then fill it with steam at 400 °C instead.

12 L232 bar · 3360 psiairat 20 °CZ = 1.04from the generalized Z chartthe law says 3.31 kgit really holds 3.19 kgZ0.60.811.250100150200250ideal gas: Z = 1pressure, bar
Z (1 means the law is exact)
1.037
mass the ideal gas law predicts
3.308 kg
mass the tank really holds
3.189 kg

Notice: Air stays close to the law. Steam drifts far below it: the tank holds much more than the law says.

Packed air has a little above 1. Its molecules take up room, so a little less fits than the law says.

Steam near its boiling point has below 1. Its molecules pull on each other, so more fits.

A worked example

Steam is at 10 MPa (100 bar) and 400 °C. How far off is the ideal gas law?

  1. Find steam's gas constant: , with = 8.314 kJ/kmol·K and = 18.015 kg/kmol.

  2. What does the ideal gas law give? Use , with in kelvin and in kPa.

  3. The steam tables give the real value, 0.02644 m³/kg. What is ?

  4. Check with the Z chart: and , with = 647.1 K and = 22.06 MPa.

  5. How far off is the ideal gas law here?

Common mistakes

  • Use kelvin, not °C. At 0 °C a gas still has plenty of temperature.
  • Each gas has its own : the universal 8.314 kJ/kmol·K divided by its molar mass.
  • Near the vapor dome or at high pressure, find before trusting .

Related pages