Steam engines drove the Industrial Revolution long before anyone understood heat. Thermodynamics grew out of the effort to improve them, describing systems by a few measurable quantities: temperature, pressure, volume and amount. Clapeyron assembled the ideal gas law in 1834 from the relations Boyle, Charles and Gay-Lussac had each found.
We will find pressure, then temperature, count molecules, and finish with pressure from collisions.
Step 1: Pressure
For a dilute gas, with temperature T in kelvin and n moles:
A handy value: RT ≈ 2,500 J/mol at room temperature, 300 K, and RT grows in proportion to T. So 1 mol at 300 K in 0.025 m³ has p = 2,500/0.025 = 100,000 Pa = 100 kPa, about atmospheric pressure. Temperatures must be absolute: heating a sealed rigid tank from 27 °C (300 K) to 327 °C (600 K) doubles its pressure, while "doubling" a Celsius reading means nothing special.
Step 2: Temperature
Solving for T gives a thermometer: T = pV/nR. At fixed volume, pressure is proportional to absolute temperature, so a gas thermometer reading twice its pressure at 300 K is at 600 K. 1 mol in 0.025 m³ at 150 kPa has T = 150,000 × 0.025/8.3 ≈ 450 K. Extrapolating the pressure down to zero points to absolute zero, 0 K = −273 °C, which is why the gas law needs kelvin.
Step 3: Counting molecules
Per molecule, the law reads
At 300 K, kT ≈ 4 × 10⁻²¹ J, so 1 m³ at 100 kPa holds N = pV/kT = 10⁵/(4 × 10⁻²¹) = 2.5 × 10²⁵ molecules. Since R = NAk, Avogadro's number links the molecular and molar scales. The law does not depend on what the molecules are: equal volumes of hydrogen and oxygen at the same pressure and temperature contain the same number of molecules. At fixed temperature, halving the volume doubles both the number per cubic meter and the pressure.
Step 4: Pressure from collisions
Pressure is the push of molecules bouncing off the walls. A molecule with velocity component vₓ toward a wall reverses it on impact, changing its momentum by 2mvₓ. In a box of length L it returns to the same wall every 2L/vₓ, so its average force there is 2mvₓ ÷ (2L/vₓ) = mvₓ²/L. Adding up N molecules and dividing by the wall's area A, with V = AL, gives p = Nm⟨vₓ²⟩/V. Motion is equally likely in all three directions, so ⟨vₓ²⟩ = ⟨v²⟩/3, and
Comparing with pV = NkT gives each molecule an average kinetic energy of (3/2)kT: temperature measures molecular motion. Example: 0.03 kg of gas, so Nm = 0.03 kg, in 0.025 m³ with ⟨v²⟩ = 500² m²/s² gives p = 0.03 × 250,000 ÷ (3 × 0.025) = 100 kPa.