Thermodynamics · Chapter 13

Ideal Gas Law

PV = nRT connects pressure, volume, temperature, and amount of gas into a single elegant relation — derived from nothing more than counting molecular collisions.

PrerequisitesHeat and Temperature · Kinetic theory basics
Learning Goals
  • State Boyle's, Charles's, Gay-Lussac's, and Avogadro's laws as special cases of PV=nRTPV = nRT.
  • Apply the ideal gas law to find P, V, n, or T given the other three quantities.
  • Derive PV=NkBTPV = Nk_{B} T from Newton's laws applied to molecular collisions.
  • Calculate internal energy and molar heat capacity using the equipartition theorem.
  • Identify when real gases deviate from ideal behavior and apply the van der Waals correction.

13.1 The Gas Laws

Three empirical gas laws, each discovered independently in the 17th–19th centuries, all turn out to be special cases of a single unified law:

Definition 13.1 — The Empirical Gas Laws
  • Boyle's Law (const T): PV = constant   →P1V1=P2V2\to \qquad P_{1}V_{1} = P_{2}V_{2}
  • Charles's Law (const P): V/T = constant   →V1/T1=V2/T2\to \qquad V_{1}/T_{1} = V_{2}/T_{2}
  • Gay-Lussac's Law (const V): P/T = constant   →P1/T1=P2/T2\to \qquad P_{1}/T_{1} = P_{2}/T_{2}
  • Avogadro's Law (const T,P):V∝nT, P): V \propto n

Boyle's air pump1662 · Pressure from experimentRobert Boyle's air pump was built by Robert Hooke, then a twenty-three-year-old instrument maker. Together they could evacuate a glass chamber and carefully vary the pressure on a trapped gas while measuring the volume. Boyle kept meticulous records, published everything including failed trials, and explicitly invited others to repeat his work. The idea that a scientific result must be reproducible by strangers was not obvious in 1662 — Boyle helped make it a norm. The pattern PV = constant was just a regularity in his tables. He did not know why it was true, and he said so.Source: Robert Boyle, New Experiments Physico-Mechanical.Further reading: Robert Boyle showed that halving the volume of a gas doubles its pressure — the molecules hit the walls twice as often. Charles observed that heating a gas at constant pressure makes it expand proportionally to absolute temperature. These combine into:

13.2 The Ideal Gas Law

PV=nRTPV=nRT(13.1)

Here P is pressure (Pa), V is volume (m³), n is the amount of gas (moles), R = 8.314 J/mol·K is the universal gas constant, and T is absolute temperature (Kelvin). An equivalent form uses the number of molecules N and Boltzmann's constant kB=R/NAk_B = R/N_A:

PV=NkBTkB=1.381×10−23 J/KPV=Nk_B T \qquad k_B=1.381\times10^{-23}\,\mathrm{J/K}(13.2)

An ideal gas is one in which (1) molecular volume is negligible compared to container volume, (2) molecules interact only via brief elastic collisions, and (3) there are no intermolecular attractive forces. Real gases obey this law closely at low pressure and high temperature.

Example 13.1 — Bicycle Tire Pressure

A bicycle tire has volume 1.2 L and is filled to gauge pressure 6.0 atm at 20°C. The tire heats to 40°C in the sun. Find the new pressure. (Gauge pressure = pressure above atmospheric.)

Setup:Volume is constant, so use Gay-Lussac: P1/T1=P2/T2P_{1}/T_{1} = P_{2}/T_{2}.
Absolute pressures:P1=6.0+1.0=7.0atm,T1=293K,T2=313KP_{1} = 6.0 + 1.0 = 7.0 atm, T_{1} = 293 K, T_{2} = 313 K
New pressure:P2=P1(T2/T1)=7.0×(313/293)P_{2} = P_{1}(T_{2}/T_{1}) = 7.0 \times (313/293) = 7.48 atm absolute = 6.48 atm gauge

13.3 Kinetic Theory Derivation

The ideal gas law is not just empirical — it can be derived from Newton's laws applied to point-mass molecules. Consider N molecules in a cubic box of side L. Each molecule bouncing off a wall delivers impulse 2mvx2mv_x. The average force on one wall:

F=Nm⟨vx2⟩LP=FL2=Nm⟨vx2⟩VF=\frac{Nm\langle v_x^2\rangle}{L} \qquad P=\frac{F}{L^2}=\frac{Nm\langle v_x^2\rangle}{V}(13.3)

Using isotropy (⟨vx2⟩=⟨vy2⟩=⟨vz2⟩=vrms2/3\langle v_x^2 \rangle = \langle v_y^2 \rangle = \langle v_z^2 \rangle = v_{\text{rms}}^2/3) and the definition of temperature (12mvrms2=32kBT\tfrac{1}{2} m v_{\text{rms}}^2 = \tfrac{3}{2} k_B T), this gives PV=NkBTPV = Nk_B T exactly.

Theorem 13.1 — Internal Energy of an Ideal Gas
The total internal energy of a monatomic ideal gas (3 translational degrees of freedom) is:U=(3/2)NkBT=(3/2)nRTU = (3/2)Nk_{B} T = (3/2)nRTFor a diatomic gas (5 degrees of freedom — 3 translational, 2 rotational): U=(5/2)nRTU = (5/2)nRT. The molar heat capacity at constant volume is CV=(f/2)RC_{V} = (f/2)R where f is the number of degrees of freedom.
Figure 13.1. Kinetic gas simulation. Observe Boyle's law: compress the volume (slider) while watching pressure rise. Observe Charles's law: raise temperature while watching the gas expand at constant pressure. Color = speed.

13.4 Real Gases and the van der Waals Equation

At high pressure or low temperature, the ideal gas law fails because molecular volume and intermolecular attraction become significant. The van der Waals equation corrects for these:

(P+an2V2)(V−nb)=nRT\left(P+a\frac{n^2}{V^2}\right)(V-nb)=nRT(13.4)

The term an²/V² accounts for attractive forces reducing effective pressure; nb accounts for the excluded volume of the molecules. The constants a and b are different for every gas. For CO₂: a = 3.59 L²·atm/mol², b = 0.0427 L/mol.

Example 13.2 — Volume of One Mole of Gas

What volume does 1 mol of ideal gas occupy at STP(T=273.15K,P=101.325kPa)STP (T = 273.15 K, P = 101.325 kPa)?

Ideal gas law:V=nRT/P=(1)(8.314)(273.15)/(101325)=2271/101325V = nRT/P = (1)(8.314)(273.15)/(101325) = 2271/101325
Result:V = 0.02241m3=22.41L0.02241 m^{3} = 22.41 L — the molar volume at STP.
Note:Every gas has the same molar volume at STP — this is Avogadro's principle.
Definition 13.2 — Common Traps
  • Gauge pressure is not absolute pressure: add atmospheric pressure before using PV=nRTPV = nRT.
  • Gas laws require kelvin: proportionality to temperature fails if Celsius is used.
  • Units must match R: use pascals and cubic meters with 8.314J/(mol⋅K)8.314 J/(mol\cdot K), or use a matching atm·L value.
  • Ideal behavior is an approximation: high pressure and low temperature require real-gas corrections.
Exercises — 13.1–13.4 Ideal Gas Law
1.
A gas at 1.0 atm occupies 4.0 L. It is compressed to 2.0 L at constant temperature. What is the new pressure?
atm
Straightforward
2.
A gas at 273 K occupies 2.0 L. At constant pressure its volume doubles. Find the new temperature in Kelvin.
K
Straightforward
3.
Find the volume of 0.5 mol of ideal gas at T=400KT = 400 K and P=1atm.(R=8.314J/mol⋅K,1atm=101325Pa)P = 1 atm. (R = 8.314 J/mol\cdot K, 1 atm = 101325 Pa)
m³
Intermediate
4.
How many molecules are in 1.0 L of ideal gas at 1.0 atm and 20°C?(kB=1.381×10−23J/K)20°C? (k_{B} = 1.381\times 10^{-23} J/K)
molecules
Intermediate
5.A gas balloon contains 10 L of gas at 1.0 atm and 300 K. It is compressed to 3.0 atm and heated to 450 K. Find the new volume.
Challenging
Key Takeaways
  • PV=nRTPV = nRT unifies Boyle's, Charles's, Gay-Lussac's, and Avogadro's laws.
  • Always use Kelvin in gas law calculations — never Celsius.
  • Ideal gas internal energy: U=(f/2)nRTU = (f/2)nRT, where f = degrees of freedom (3 monatomic, 5 diatomic).
  • One mole of ideal gas at STP occupies 22.4 L regardless of which gas.
  • Real gases depart from ideal behavior at high pressure and low temperature — use van der Waals.