Sub topic 2
The gas laws
This chapter covers the four empirical gas laws that lead to the ideal gas equation. It assumes you know pressure, SI units and the Kelvin scale from the previous chapter. In every law below, temperature is the absolute temperature in kelvin. Using °C is the most common mistake in numerical questions.
The four laws
Each law holds one or two quantities fixed and relates the others. The gas is treated as ideal and the amount of gas is fixed unless stated.
| Law | Held constant | Relation | Graph shape |
|---|---|---|---|
| Boyle's | T, n | P V = constant | P vs V is a hyperbola; P vs 1/V is a straight line |
| Charles's | P, n | V / T = constant | V vs T is a straight line through the origin |
| Gay-Lussac's | V, n | P / T = constant | P vs T is a straight line through the origin |
| Avogadro's | T, P | V / n = constant | V vs n is a straight line through the origin |
Avogadro's law says that equal volumes of different gases at the same T and P contain the same number of molecules. At STP (0 °C and 1 atm), one mole of any ideal gas occupies about 22.4 L.
Combining the laws
For a fixed amount of gas that goes from state 1 to state 2, Boyle's, Charles's and Gay-Lussac's laws combine into one relation:
P1 V1 / T1 = P2 V2 / T2
This form is useful when you are told the initial and final conditions but not the number of moles.
Worked example
A gas occupies 2.0 L at 27 °C and 1.0 atm. It is compressed to 1.0 L and heated to 127 °C. Find the final pressure.
- Convert to kelvin: T1 = 27 + 273 = 300 K and T2 = 127 + 273 = 400 K.
- Rearrange the combined law: P2 = P1 (V1 / V2)(T2 / T1).
- Substitute: P2 = 1.0 × (2.0 / 1.0) × (400 / 300) ≈ 2.67 atm.
You can check this in code:
P1, V1, T1 = 1.0, 2.0, 27 + 273.0
V2, T2 = 1.0, 127 + 273.0
P2 = P1 * (V1 / V2) * (T2 / T1)
print(round(P2, 2)) # 2.67Common errors
- Using Celsius temperatures in a ratio.
- Applying Boyle's law when the temperature also changes. Boyle's law needs a constant T.
- Reading a straight line on a V vs T graph in °C as proportional. Charles's law is a straight line through the origin only when T is in kelvin. On a °C axis the line crosses the axis at −273.15 °C.
- Forgetting that the combined law needs a fixed amount of gas. If gas leaks out, n changes and you need PV = nRT instead.
Exercise
A fixed mass of gas at 300 K and 2 atm is heated at constant volume until its pressure is 3 atm. What is the final temperature in kelvin and in °C?
Show answer
Constant volume means Gay-Lussac's law applies: P1/T1 = P2/T2. So T2 = T1 × (P2/P1) = 300 × (3/2) = 450 K. In Celsius, 450 − 273 = 177 °C.
Exercise
A gas at 1 atm is compressed isothermally to one-fourth of its volume. What is the new pressure, and which law do you use?
Show answer
Boyle's law applies because the temperature is constant. P1 V1 = P2 V2, so P2 = P1 × (V1/V2) = 1 × 4 = 4 atm.