Lesson 1 · 25 min

Gas laws: where pressure comes from

Pressure is the drumming of countless molecules on the walls. Change volume, temperature, and particle number in a molecular-dynamics box, plot the measured pressure, and the ideal gas law emerges on its own.

In this lesson

  • Explain gas pressure as molecules striking the walls
  • Obtain Boyle’s, Gay-Lussac’s, and Avogadro’s laws from measured data
  • Use PV=nRTPV = nRT to find pressure, volume, temperature, or amount
  • Understand why gas calculations must use absolute temperature (K)

Put a half-empty balloon in the fridge and it sags further; set it in the sun and it swells. Press a suction cup onto glass and it can hold a bag of rice. Gases are invisible and intangible, yet they push pistons, hold up tyres, and keep aircraft aloft. The force behind all of it comes from about 102310^{23} molecular impacts on every square centimetre, every second.

Predict first

At constant temperature, squeeze a gas into half its volume. What happens to the pressure?

Pick an answer and lock it in before you look. A wrong guess teaches more than no guess.

Pressure is made by collisions

Pressure is force per unit area, P=F/AP = F/A, measured in pascals (Pa = N/m²). Gas molecules never stop moving; each one that bounces off a wall hands it a momentum of 2mvx2mv_x. The momentum delivered per unit time is the force. So pressure depends on two things: how often molecules hit (proportional to the number density N/VN/V) and how hard each hit is (set by the molecules’ kinetic energy, i.e. the temperature).

Everyday units: 1 standard atmosphere (atm) = 101.325 kPa = 760 mmHg; 1 bar = 100 kPa.

Three empirical laws, one equation

Between the 17th and 19th centuries chemists found, one by one:

  • Boyle’s law (1662): at fixed TT and nn, P∝1/VP \propto 1/V;
  • Charles’s and Gay-Lussac’s laws (1787–1802): at fixed PP, V∝TV \propto T; at fixed VV, P∝TP \propto T;
  • Avogadro’s law (1811): at the same TT and PP, V∝nV \propto n — equal volumes of gas hold equal numbers of molecules.

Combine the three and you get the ideal gas equation:

PV=nRTPV = nRT
R=8.314 J mol−1 K−1=0.08206 L atm mol−1 K−1R = 8.314\ \mathrm{J\,mol^{-1}\,K^{-1}} = 0.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}}
PP
pressure
VV
volume
nn
amount of gas (mol)
RR
molar gas constant
TT
absolute temperature (K)
Real 2D molecular dynamics · pressure measured from wall hits

Gas molecular-dynamics box

Pressure (measured)…
T0 K
PA / NkT…
Equilibrating…

Recorded measurements

0200400600Temperature / K00.10.20.30.40.50.6Pressure (reduced units)
  • Ideal gas PA = NkT
  • Recorded measurements
This is a genuine 2D molecular-dynamics calculation: particles interact through the Lennard-Jones potential (the “ideal” setting keeps only its repulsive core) and are integrated with velocity Verlet; pressure is the time-averaged momentum delivered to the walls, not a formula. Reduced units map onto argon (σ = 0.34 nm, ε/k = 120 K). A 2D gas obeys PA = NkT and its speed distribution has the 2D form (in 3D there is an extra v²). Runs start from a fixed seed, so they are reproducible.
Hold the volume fixed and raise the temperature, recording a point each time. Extend the line: where does it meet the temperature axis?

Worked example

The air in a tyre

A 2.0 L bicycle tyre is pumped at 20 °C to a gauge pressure of 400 kPa (about 501 kPa absolute). How many moles of air does it hold? In 40 °C sunshine (constant volume), what is the absolute pressure?

Concept check

What is the volume of 1 mol of ideal gas at 0 °C and 1 atm?

Try the calculation

A 5.00 L steel cylinder holds 0.500 mol of nitrogen at 27 °C. What is the pressure in atm?

atm

Key takeaways

  • Gas pressure comes from wall collisions: it depends on how often molecules hit (number density) and how hard (temperature).
  • Boyle’s, Charles’s/Gay-Lussac’s, and Avogadro’s laws combine into PV=nRTPV = nRT.
  • Gas calculations need kelvin; the PP–TT line extrapolates to 0 K.
  • At 0 °C and 1 atm, 1 mol of ideal gas occupies 22.4 L.
Progress is stored only in this browser and never uploaded.

Data and references

  1. E. Tiesinga et al., “CODATA recommended values of the fundamental physical constants: 2018”, Rev. Mod. Phys. 93, 025010 (2021) — R, k_B.
  2. P. Atkins, J. de Paula, J. Keeler, Atkins’ Physical Chemistry, 11th ed. (2018), Focus 1 (the properties of gases).
  3. D. Frenkel, B. Smit, Understanding Molecular Simulation, 2nd ed., Academic Press (2002) — velocity Verlet and pressure from wall collisions.