Skip to content
The Revision Hub

OCR A Physics · Module 5 · Thermal physics

The Ideal Gas Equation (A-Level Physics)

The ideal gas equation is pV = nRT, where p is pressure, V is volume, n is the amount of gas in moles, R is the molar gas constant and T is the temperature in kelvin. It can also be written pV = NkT for N molecules. It combines Boyle's law, the pressure law and Charles's law into one relationship.

13 min read5 worked examplesUpdated 11 Nov 2026

Key points

  • pV = nRT uses n in moles and R = 8.31 J mol⁻¹ K⁻¹; pV = NkT uses N molecules and k = 1.38 × 10⁻²³ J K⁻¹.
  • Always use pressure in pascals, volume in m³ and temperature in kelvin.
  • Kinetic theory gives pV = ⅓Nm⟨c²⟩, and combining it with pV = NkT gives ½m⟨c²⟩ = (3/2)kT.
  • The mean kinetic energy of a molecule depends only on T, not on the type of gas.
  • The root mean square speed is c(rms) = √⟨c²⟩ = √(3kT/m).

What the ideal gas equation tells you

The ideal gas equation links the pressure, volume and temperature of a fixed amount of gas. If you know any three of p, V, n (or N) and T, you can find the fourth. It is one of the most useful equations in A-level Physics because it connects what you can measure (pressure, volume, temperature) to what you cannot see (the number of molecules and how fast they move).

Illustration for The Ideal Gas Equation (A-Level Physics)

An ideal gas is a model. Real gases behave very much like an ideal gas at low pressure and at temperatures well above their boiling point, because then the molecules are far apart and rarely interact. Helium, nitrogen and air at room conditions are all close to ideal.

pV = nRT

  • p = pressure / Pa (N m⁻²)
  • V = volume / m³
  • n = amount of substance / mol
  • R = molar gas constant = 8.31 J mol⁻¹ K⁻¹
  • T = thermodynamic temperature / K

Convert first: cm³ to m³ means × 10⁻⁶, dm³ (litres) to m³ means × 10⁻³, °C to K means + 273.

pV = NkT

  • N = number of molecules
  • k = Boltzmann constant = 1.38 × 10⁻²³ J K⁻¹

The two forms are the same equation because N = nNₐ and k = R/Nₐ, where Nₐ = 6.02 × 10²³ mol⁻¹.

Use pV = nRT when the question gives you moles. Use pV = NkT when it gives you a number of molecules or atoms, or when you are linking to kinetic energy.

The three gas laws and their experiments

Before the ideal gas equation, there were three separate laws, each found by holding two quantities constant. They all follow from pV = nRT.

  • Boyle's law: for a fixed mass of gas at constant temperature, pressure is inversely proportional to volume, so pV = constant.
  • The pressure law: for a fixed mass of gas at constant volume, pressure is directly proportional to the thermodynamic temperature, so p/T = constant.
  • Charles's law: for a fixed mass of gas at constant pressure, volume is directly proportional to the thermodynamic temperature, so V/T = constant.

These experiments sit within the practical endorsement (the PAGs), so be ready to describe the method, identify the control variables, and explain how a graph is used to test the relationship. They also link to the work on specific heat capacity and latent heat, where absolute zero and the kelvin scale are introduced.

Graphs you must be able to draw and interpret

Three graphs come up repeatedly. Make sure you can sketch each one and say what the shape tells you.

On a p-V graph each curve is an isotherm (a line of constant temperature), and pV is the same at every point on it. The curve for the higher temperature lies further from the axes. Plotting p against 1/V gives a straight line through the origin.
Pressure rises linearly with temperature at constant volume. The line does not pass through the origin on a Celsius axis, but it reaches zero pressure at −273 °C, which is absolute zero. On a kelvin axis the line goes through the origin.
Since pV = nRT, a graph of pV against T is a straight line through the origin with gradient nR. Doubling the amount of gas doubles the gradient.

The gradient of a pV against T graph is nR, so you can find the number of moles from a measured gradient, or the number of molecules from the gradient divided by k.

Assumptions of the kinetic theory of gases

The kinetic model explains gas pressure as the result of molecules bumping into the walls of the container. For the maths to work, you need to make these assumptions about an ideal gas:

  • There is a very large number of identical molecules, and they move randomly in all directions.
  • The molecules have negligible volume compared with the volume of the container.
  • All collisions (between molecules and with the walls) are perfectly elastic, so there is no loss of kinetic energy.
  • There are no intermolecular forces except during collisions, so the molecules move in straight lines at constant speed between collisions.
  • The time of a collision is negligible compared with the time between collisions.
  • Newton's laws of motion apply to the molecules.

The random motion is supported by Brownian motion: smoke particles seen through a microscope jitter about at random because they are hit unevenly by air molecules that are too small to see.

Deriving pV = ⅓Nm⟨c²⟩

You need to be able to reproduce this derivation. Take a cubic box of side L containing N molecules of mass m each.

  1. A molecule has velocity component cₓ towards a wall. It rebounds elastically, so its velocity component reverses and its change in momentum is 2mcₓ.
  2. The molecule crosses the box and returns to the same wall, a distance 2L, in time 2L/cₓ.
  3. The force on the wall from one molecule is the rate of change of momentum: F = 2mcₓ ÷ (2L/cₓ) = mcₓ²/L.
  4. For N molecules the total force is F = (Nm/L)⟨cₓ²⟩, where ⟨cₓ²⟩ is the mean square of the x components.
  5. Each speed has components so c² = cₓ² + cᵧ² + cz². The motion is random, so the mean values of the three squares are equal: ⟨cₓ²⟩ = ⅓⟨c²⟩.
  6. Pressure = force ÷ area = F/L² = Nm⟨c²⟩/(3L³). Since L³ = V, this gives pV = ⅓Nm⟨c²⟩.

Because the density is ρ = Nm/V, the result can also be written p = ⅓ρ⟨c²⟩. The symbol ⟨c²⟩ is the mean square speed: you square every speed and then take the average.

Mean kinetic energy and root mean square speed

Now put pV = ⅓Nm⟨c²⟩ together with pV = NkT. The pV cancels, N cancels, and you are left with ⅓m⟨c²⟩ = kT. Multiplying both sides by 3/2 gives the key result.

½m⟨c²⟩ = (3/2)kT

  • ½m⟨c²⟩ = mean translational kinetic energy of one molecule / J
  • k = 1.38 × 10⁻²³ J K⁻¹
  • T = thermodynamic temperature / K

The mean kinetic energy per molecule depends only on temperature. Every ideal gas at the same temperature has the same mean kinetic energy per molecule.

c(rms) = √⟨c²⟩ = √(3kT/m)

  • c(rms) = root mean square speed / m s⁻¹
  • m = mass of one molecule / kg

At the same temperature, lighter molecules move faster, because the kinetic energy is the same but the mass is smaller.

For an ideal gas all the internal energy is kinetic (there are no intermolecular forces), so the internal energy of N molecules is U = (3/2)NkT = (3/2)nRT. Mass of a molecule in kilograms comes from the relative molecular mass: for nitrogen, N₂ has mass 28 u = 28 × 1.661 × 10⁻²⁷ kg.

Worked examples

Worked example4 marks

Amount of gas in a container

A container of volume 2.4 × 10⁻³ m³ holds an ideal gas at a pressure of 1.0 × 10⁵ Pa and a temperature of 20 °C. Calculate (a) the amount of gas in moles and (b) the number of molecules.

  1. T = 20 + 273 = 293 K
  2. n = pV/RT = (1.0 × 10⁵ × 2.4 × 10⁻³) / (8.31 × 293) = 240 / 2435 = 0.0986 mol
  3. N = nNₐ = 0.0986 × 6.02 × 10²³ = 5.93 × 10²² molecules

Answer (a) 0.099 mol (b) 5.9 × 10²² molecules

Worked example3 marks

Pressure law

A sealed rigid container holds gas at 20 °C and a pressure of 1.0 × 10⁵ Pa. The gas is heated to 80 °C. Calculate the new pressure.

  1. The volume and amount of gas are constant, so p/T is constant
  2. T₁ = 20 + 273 = 293 K, T₂ = 80 + 273 = 353 K
  3. p₂ = p₁ × T₂/T₁ = 1.0 × 10⁵ × 353/293 = 1.205 × 10⁵ Pa

Answer 1.2 × 10⁵ Pa

Worked example2 marks

Boyle's law with a syringe

A syringe traps 600 cm³ of air at 1.0 × 10⁵ Pa. The plunger is pushed in slowly so that the volume becomes 150 cm³ at constant temperature. Calculate the final pressure.

  1. Constant temperature and amount, so p₁V₁ = p₂V₂
  2. p₂ = p₁V₁/V₂ = 1.0 × 10⁵ × 600/150 = 4.0 × 10⁵ Pa

Answer 4.0 × 10⁵ Pa (you can leave the volumes in cm³ because only their ratio matters)

Worked example4 marks

Root mean square speed

Calculate the root mean square speed of nitrogen molecules at 300 K. The mass of a nitrogen molecule is 28 u, where u = 1.661 × 10⁻²⁷ kg.

  1. m = 28 × 1.661 × 10⁻²⁷ = 4.65 × 10⁻²⁶ kg
  2. ⟨c²⟩ = 3kT/m = (3 × 1.38 × 10⁻²³ × 300) / 4.65 × 10⁻²⁶ = 2.67 × 10⁵ m² s⁻²
  3. c(rms) = √(2.67 × 10⁵) = 517 m s⁻¹

Answer 5.2 × 10² m s⁻¹

Worked example6 marks

Kinetic energy of helium atoms

(a) Calculate the mean kinetic energy of a helium atom at 300 K. (b) The mass of a helium atom is 4 u. Calculate its root mean square speed. (c) Calculate the temperature at which the root mean square speed of nitrogen molecules is double its value at 300 K.

  1. (a) mean KE = (3/2)kT = 1.5 × 1.38 × 10⁻²³ × 300 = 6.21 × 10⁻²¹ J
  2. (b) m = 4 × 1.661 × 10⁻²⁷ = 6.644 × 10⁻²⁷ kg, and ½m⟨c²⟩ = 6.21 × 10⁻²¹, so ⟨c²⟩ = 2 × 6.21 × 10⁻²¹ / 6.644 × 10⁻²⁷ = 1.87 × 10⁶ m² s⁻², giving c(rms) = 1367 m s⁻¹
  3. (c) c(rms) ∝ √T, so doubling c(rms) needs T to increase by a factor of 2² = 4
  4. T = 4 × 300 = 1200 K

Answer (a) 6.2 × 10⁻²¹ J (b) 1.4 × 10³ m s⁻¹ (c) 1200 K

Common mistakes

How OCR A examines the ideal gas equation

Typical questions include:

  • Calculations using pV = nRT or pV = NkT, often with a unit conversion step built in.
  • Stating the assumptions of kinetic theory, or deriving pV = ⅓Nm⟨c²⟩ (several marks).
  • Calculating the mean kinetic energy or root mean square speed of molecules.
  • Describing and evaluating the Boyle's law or pressure law experiments, including graph plotting and the value of absolute zero.
  • Interpreting p-V, p-T or pV-T graphs, including changes between two temperatures.

The topic is synoptic with mechanics: the derivation uses momentum and impulse for each collision, and the conversion between energy and temperature is part of the thermal physics covered in specific heat capacity and latent heat. See the Module 5 hub for all the topics in this module.

Practice questions

  1. A gas at a pressure of 2.0 × 10⁵ Pa occupies 1.5 × 10⁻³ m³ at a temperature of 37 °C. Calculate the number of molecules in the gas.3 marks

    Show the answer

    Answer: 7.0 × 10²² molecules

    T = 37 + 273 = 310 K. N = pV/kT = (2.0 × 10⁵ × 1.5 × 10⁻³) / (1.38 × 10⁻²³ × 310) = 300 / 4.278 × 10⁻²¹ = 7.01 × 10²².

  2. Calculate the mean kinetic energy of a gas molecule at 400 K.2 marks

    Show the answer

    Answer: 8.3 × 10⁻²¹ J

    mean KE = (3/2)kT = 1.5 × 1.38 × 10⁻²³ × 400 = 8.28 × 10⁻²¹ J.

  3. Calculate the internal energy of 2.0 mol of an ideal monatomic gas at 300 K.2 marks

    Show the answer

    Answer: 7.5 × 10³ J

    U = (3/2)nRT = 1.5 × 2.0 × 8.31 × 300 = 7479 J.

  4. Air has a density of 1.25 kg m⁻³ at a pressure of 1.01 × 10⁵ Pa. Use p = ⅓ρ⟨c²⟩ to estimate the root mean square speed of the molecules.3 marks

    Show the answer

    Answer: 4.9 × 10² m s⁻¹

    ⟨c²⟩ = 3p/ρ = 3 × 1.01 × 10⁵ / 1.25 = 2.424 × 10⁵ m² s⁻². c(rms) = √(2.424 × 10⁵) = 492 m s⁻¹.

  5. A fixed volume of gas is heated. Use the kinetic model to explain why the pressure rises.4 marks

    Show the answer

    Answer: The molecules gain kinetic energy and move faster on average. They collide with the walls more often, and each collision involves a larger change in momentum. The force on the walls (rate of change of momentum) increases, so pressure (force per unit area) increases.

    Four ideas: faster molecules, more frequent collisions, bigger momentum change, so a larger force and pressure.

Next steps

Now that you can use the ideal gas equation, look at how motion at a very different scale is described in circular motion, or see where the physics of hot gases matters on a cosmic scale in the Hertzsprung-Russell diagram guide, where gas pressure holds stars up against gravity. You can also practise this topic with step-by-step marking, which is free to start.

Frequently asked questions

What is the ideal gas equation?

It is pV = nRT, where p is pressure in pascals, V is volume in cubic metres, n is the number of moles, R is 8.31 J mol⁻¹ K⁻¹ and T is the temperature in kelvin. The same relationship can be written pV = NkT using the number of molecules and the Boltzmann constant.

What is the difference between pV = nRT and pV = NkT?

They are the same equation. pV = nRT counts the gas in moles and uses the molar gas constant R. pV = NkT counts individual molecules and uses the Boltzmann constant k. The two are linked by N = nNₐ and k = R/Nₐ.

Why must temperature be in kelvin?

The gas laws are based on absolute temperature, where zero means zero kinetic energy. Using degrees Celsius would give a pressure of zero at 0 °C, which is wrong. Add 273 to convert.

What are the assumptions of the kinetic theory of gases?

Many identical molecules move randomly; their volume is negligible compared with the container; collisions are elastic; there are no intermolecular forces except in collisions; collision times are negligible; and Newton's laws apply.

How do you find absolute zero from the pressure law experiment?

Plot pressure against temperature in degrees Celsius for a fixed volume of gas, draw a line of best fit and extend it back until the pressure reaches zero. The temperature at that point is an estimate of absolute zero, which should be close to −273 °C.

Why does the mean kinetic energy depend only on temperature?

Combining pV = ⅓Nm⟨c²⟩ with pV = NkT gives ½m⟨c²⟩ = (3/2)kT, with no mention of the type of gas. Heavier molecules simply move more slowly, so that the average kinetic energy is the same at a given temperature.

Related guides

Written for the OCR A Level Physics A (H556) specification. Questions are original and written in exam style; they are not taken from OCR papers. Spotted a mistake? Tell us.