Gas laws in 3D

A standing display sign shows the ideal gas law equation PV = nRT, with each variable defined underneath.Drag to turn

The gas laws relate the pressure, volume, temperature and amount of a gas. An ideal gas is a model gas that obeys PV = nRT exactly, and real gases approximate it at low pressure and high temperature.

The four variables and the individual gas laws

A gas sample is described by its pressure (P), volume (V), absolute temperature (T) and amount in moles (n). Each classical gas law holds two of these fixed and links the other two. Boyle's law says that at constant temperature and amount, pressure is inversely proportional to volume, so P1V1 = P2V2.

Charles's law says that at constant pressure and amount, volume is proportional to temperature. Gay-Lussac's law says that at constant volume and amount, pressure is proportional to temperature. Avogadro's law says that at fixed temperature and pressure, volume is proportional to the amount of gas. Temperature must be in kelvin in all of these.

Combining the laws into PV = nRT

The four proportionalities combine into the ideal gas equation, PV = nRT. R is the gas constant, which is 0.0821 L atm per mol K, or about 8.314 J per mol K. The units of R must match the units used for P and V.

The equation rests on a model. Ideal gas particles are treated as points with no volume and no attractive or repulsive forces between them. Pressure then comes only from collisions with the container wall, and the average kinetic energy of the particles depends on temperature alone.

Worked example: heating a sealed cylinder

Take 2.0 mol of gas in a rigid 10 L cylinder at 300 K. The pressure is P = nRT/V = (2.0 × 0.0821 × 300) / 10. The top line is 2.0 × 0.0821 = 0.1642, and 0.1642 × 300 = 49.26. Dividing by 10 gives P = 4.926 atm, or about 4.9 atm.

Now heat the cylinder to 360 K. Volume and amount are fixed, so P2 = P1 × T2/T1 = 4.926 × 360/300 = 4.926 × 1.2 = 5.911 atm, or about 5.9 atm. A 20 percent rise in kelvin temperature gives a 20 percent rise in pressure.

Misconceptions and where the ideal model fails

A common error is using degrees Celsius in the equations. Doubling a temperature from 20 °C to 40 °C does not double the pressure, because the proportionality holds only on the kelvin scale. Another error is thinking the ideal gas law is exact for any gas. It is a limiting law.

Real gases deviate when particles are close together or move slowly. At high pressure the particle volume matters, and at low temperature attractions matter, so a gas near its condensation point is far from ideal. The van der Waals equation is a standard correction that adds terms for both effects. Gases such as helium and hydrogen behave closely to ideal over a wide range, while easily liquefied gases such as carbon dioxide do not.

Where gas laws are used

Gas laws guide the filling and storage of compressed gas cylinders, where pressure rises as the cylinder warms. They are used to find molar mass from gas density, to calculate gas volumes produced in reactions, and to size breathing and ventilation systems. They also underlie the behavior of engines, balloons and the lungs.

Key terms

Ideal gas
A model gas of point particles with no intermolecular forces that obeys PV = nRT.
Gas constant (R)
The proportionality constant in PV = nRT, equal to 0.0821 L atm per mol K.
Boyle's law
At constant temperature and amount, pressure is inversely proportional to volume.
Charles's law
At constant pressure and amount, volume is proportional to absolute temperature.
Avogadro's law
At fixed temperature and pressure, volume is proportional to the number of moles.
Real gas
A gas whose particles have volume and attract one another, so it deviates from ideal behavior.

Common questions

Why must temperature be in kelvin?

The gas laws are proportionalities to absolute temperature. Kelvin starts at absolute zero, so doubling the kelvin value doubles the quantity. The Celsius scale has an arbitrary zero and gives wrong ratios.

When does a gas in a cylinder stop behaving ideally?

Deviations grow at high pressure and low temperature. Compressed to many atmospheres, the particles are close enough that their own volume and mutual attraction matter, so PV = nRT gives noticeable errors.

What is the difference between Boyle's law and the ideal gas law?

Boyle's law covers only the case of constant temperature and amount, linking pressure and volume. The ideal gas law includes all four variables and contains the individual laws as special cases.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.