Professor Whiskers giving a thumbs-up beside a thermometer, a cylinder of gas molecules, and a chalkboard reading PV = nRT

Chemistry Lecture 1: PV = nRT: How Three Old Gas Laws Became One Great Ideal Gas Law

"Gases are like mice at a cheese festival: they spread out to fill every corner, they bounce off the walls, and they get more excited when it's warm. Today… (adjusts glasses)… we write down their rules." — Prof. Whiskers

Meet the four characters: $P$, $V$, $T$ and $n$

Every gas sample can be described by four quantities:

  • Pressure $P$: how hard the gas pushes on its container (pascals, Pa, or atmospheres, atm).
  • Volume $V$: how much space it takes up (cubic meters, m³, or liters, L).
  • Temperature $T$: how energetic the molecules are, always in kelvin ($T_\text{K} = T_{^\circ\text{C}} + 273.15$).
  • Amount $n$: how many molecules, counted in moles (mol).

Over about 150 years, scientists discovered how these quantities relate, two at a time. Prof. Whiskers' job today is to glue those discoveries together.

Law 1: Boyle's law, $PV = \text{constant}$ (squeeze it)

In the 1660s, Robert Boyle found that if you keep the temperature and amount fixed, squeezing a gas into half the volume doubles its pressure:

$$ P \propto \frac{1}{V} \quad (\text{fixed } T, n) \qquad\Longleftrightarrow\qquad PV = \text{constant} $$

"Less room to run, more wall-bumping. Very relatable."

Law 2: Charles's law, $V \propto T$ (heat it)

Jacques Charles (and later Gay-Lussac) found that at fixed pressure and amount, volume grows in proportion to absolute temperature:

$$ V \propto T \quad (\text{fixed } P, n) \qquad\Longleftrightarrow\qquad \frac{V}{T} = \text{constant} $$

This is why kelvin matters: extend the straight line of volume vs. temperature backward and it hits zero volume near $-273\ ^\circ\text{C}$, which we call absolute zero, or $0\ \text{K}$.

Law 3: Avogadro's law, $V \propto n$ (add more)

Amedeo Avogadro proposed that equal volumes of gases at the same temperature and pressure hold equal numbers of molecules. So at fixed $P$ and $T$:

$$ V \propto n \quad (\text{fixed } P, T) $$

Deriving $PV = nRT$: putting the three laws together

Now the dramatic pause… (Prof. Whiskers' tail twitches)… and the big move.

Step 1. Each law says how $V$ depends on one variable when the others are held fixed:

$$ V \propto \frac{1}{P}, \qquad V \propto T, \qquad V \propto n $$

Step 2. If $V$ is proportional to each separately, it is proportional to their product. Here's why, one variable at a time. Start from any state $(P_1, T_1, n_1, V_1)$. Changing $n$ alone multiplies $V$ by $n_2/n_1$ (Avogadro). Then changing $T$ alone multiplies it by $T_2/T_1$ (Charles). Then changing $P$ alone multiplies it by $P_1/P_2$ (Boyle). So $V_2 = V_1 \cdot \dfrac{n_2}{n_1}\cdot\dfrac{T_2}{T_1}\cdot\dfrac{P_1}{P_2}$, which means $\dfrac{P V}{nT}$ has the same value in every state:

$$ V \propto \frac{nT}{P} $$

Step 3. Turn the proportionality into an equation with a constant. Call it $R$:

$$ V = R\,\frac{nT}{P} $$

Step 4. Multiply both sides by $P$:

$$ \boxed{PV = nRT} $$

Step 5. Find $R$ from experiment. Measurements show that one mole of gas at $0\ ^\circ\text{C}$ ($273.15\ \text{K}$) and $1\ \text{atm}$ occupies about $22.414\ \text{L}$. So

$$ R = \frac{PV}{nT} = \frac{(1\ \text{atm})(22.414\ \text{L})}{(1\ \text{mol})(273.15\ \text{K})} \approx 0.08206\ \frac{\text{L·atm}}{\text{mol·K}} $$

In SI units this is $R \approx 8.314\ \text{J/(mol·K)}$, which is the same constant in different clothing. (Fashion matters, even for constants.)

Bonus: recover the old laws. Hold $n$ and $T$ fixed and $PV = \text{constant}$ (Boyle). Hold $n$ and $P$ fixed and $V/T = \text{constant}$ (Charles). For a fixed amount of gas changing between two states, you get the handy combined gas law:

$$ \frac{P_1 V_1}{T_1} = \frac{P_2 V_2}{T_2} $$

🔬 Bonus: why does it work? The molecular view

The three old laws are experimental. Kinetic theory explains them. Picture $N$ molecules of mass $m$ in a cube of side $L$. A molecule hitting a wall reverses its $x$-velocity, giving the wall momentum $2mv_x$. It comes back every $2L/v_x$ seconds, so its average force is $mv_x^2/L$. Add up all $N$ molecules, divide by the wall area $L^2$, and use $\langle v_x^2\rangle = \tfrac13\langle v^2\rangle$ (no direction is special): $$PV = \tfrac{2}{3}\,N\left\langle \tfrac12 m v^2\right\rangle$$ Temperature measures the average kinetic energy, $\left\langle \tfrac12 m v^2\right\rangle = \tfrac32 k_B T$, so $PV = N k_B T$. With $N = nN_A$ and $R = N_A k_B$, that's exactly $PV = nRT$. Pressure is just countless tiny molecular shoves.

Worked examples

Example 1: How much gas is in the bottle?

A $10.0\ \text{L}$ container holds gas at $1.00\ \text{atm}$ and $298\ \text{K}$ (about room temperature). How many moles are inside?

$$ n = \frac{PV}{RT} = \frac{(1.00\ \text{atm})(10.0\ \text{L})}{(0.08206\ \tfrac{\text{L·atm}}{\text{mol·K}})(298\ \text{K})} \approx 0.409\ \text{mol} $$

SI check: $n = \dfrac{(101{,}325\ \text{Pa})(0.0100\ \text{m}^3)}{(8.314\ \text{J/(mol·K)})(298\ \text{K})} \approx 0.409\ \text{mol}$. ✔ Units: Pa·m³ = J, so J ÷ (J/mol) = mol.

Example 2: The warm balloon

A balloon holds $2.50\ \text{L}$ of air at $25\ ^\circ\text{C}$. It is warmed to $75\ ^\circ\text{C}$ at constant pressure. What is its new volume?

Convert to kelvin: $T_1 = 298.15\ \text{K}$, $T_2 = 348.15\ \text{K}$. With $P$ and $n$ fixed:

$$ V_2 = V_1 \frac{T_2}{T_1} = (2.50\ \text{L})\frac{348.15\ \text{K}}{298.15\ \text{K}} \approx 2.92\ \text{L} $$

"Note: if you had used Celsius, you'd get 7.5 L, a balloon three times bigger. Kelvin saves balloons."

Example 3: The summer tire

A tire is filled to an absolute pressure of $220\ \text{kPa}$ on a $10\ ^\circ\text{C}$ morning. By afternoon the air inside reaches $35\ ^\circ\text{C}$. Assuming the volume barely changes, what is the new pressure?

$T_1 = 283.15\ \text{K}$, $T_2 = 308.15\ \text{K}$. With $V$ and $n$ fixed:

$$ P_2 = P_1\frac{T_2}{T_1} = (220\ \text{kPa})\frac{308.15\ \text{K}}{283.15\ \text{K}} \approx 239\ \text{kPa} $$

That's a rise of about $8.8\%$, which is why tire pressure is best checked when the tires are cold.

Where the ideal gas law fails

"Ideal" is a big word. The law assumes two things that real gases don't quite obey:

  1. Molecules take up no space. At very high pressures, molecules are packed so tightly that their own size matters, and the real volume is larger than $PV = nRT$ predicts.
  2. Molecules don't attract each other. At low temperatures, molecules move slowly enough for their mutual attractions to matter. This lowers the pressure, and eventually the gas condenses into a liquid, which no ideal gas would ever do.

The fix most textbooks teach next is the van der Waals equation, which adds a correction for molecular size and one for attraction. Rule of thumb: the ideal gas law works best at high temperature and low pressure, which conveniently covers a lot of everyday air.

🐾 Whiskers' Tip: Common mistakes

  • Celsius in the gas law. $T$ must be in kelvin (see the 7.5 L balloon disaster above).
  • Mismatched $R$. Use $R = 0.08206\ \text{L·atm/(mol·K)}$ with liters and atm, and $R = 8.314\ \text{J/(mol·K)}$ with pascals and m³.
  • Gauge vs. absolute pressure. A tire gauge reads pressure above the atmosphere. The gas law needs absolute pressure (gauge + about 101 kPa).

Where you see this

  • Weather balloons expand as they rise into lower-pressure air.
  • Car airbags inflate when a fast chemical reaction suddenly makes moles of gas.
  • Scuba diving: Boyle's law is why divers must never hold their breath while ascending.
  • Baking: Bread rises partly because trapped gas expands as the dough warms in the oven.

Practice problems

  1. What volume does $1.00\ \text{mol}$ of an ideal gas occupy at $273.15\ \text{K}$ and $1.00\ \text{atm}$?
  2. A $4.0\ \text{L}$ sample of gas at $1.0\ \text{atm}$ is compressed at constant temperature until its pressure is $2.5\ \text{atm}$. What is its new volume?
Answers
  1. $V = nRT/P \approx 22.4\ \text{L}$.
  2. $V_2 = P_1V_1/P_2 = 1.6\ \text{L}$.

"Three laws walked into a lab. One equation walked out."

Further reading: Richard Feynman's The Feynman Lectures on Physics, Vol. I, Chapter 39: The Kinetic Theory of Gases, free online from Caltech.

Support us by wearing our merch at rsquarel7.com, and follow us on YouTube, Instagram, Facebook and TikTok.

Wear, Learn, Laugh with Science 👉 https://rsquarel7.com

Back to blog