
Optional extension · Interactive lesson
The Ideal-Gas Law
Most gases obey one equation so closely that pressure, volume, amount and temperature behave as a single surface of states. This lesson is about moving on that surface — hold one variable, predict what the other two must do — and about seeing the conditions under which the surface itself is the wrong picture.
UPII-E2.06 · Lesson 6 of 10 in this extension. Position is not a completion score.Optional extension. Use this unnumbered support sequence where your university’s syllabus or prerequisite needs require it. It is not an additional numbered unit. Optional work is not a required completion gate.
Build the model
Fix three of p, V, n and T; the fourth is already decided.
The key idea
The ideal-gas law says that for a dilute gas the pressure, volume, amount of substance and absolute temperature satisfy p V = n R T, so only three of those four quantities can be set independently.
Example. One mole of any dilute gas at 273.15 K and 1.01325 × 10⁵ Pa occupies V = n R T/p = (1.00 × 8.314 × 273.15)/(1.01325 × 10⁵) = 2.241 × 10⁻² m³, that is 22.41 L, whether it is helium or carbon dioxide.
The complete physical model and assumptions
An equation of state is a rule that removes freedom. Measure a dilute gas and pressure, volume, amount and absolute temperature turn out not to be four independent numbers but three: fix any three and the fourth is settled. Boyle found p ∝ 1/V at fixed temperature; Charles and Gay-Lussac found V ∝ T at fixed pressure and p ∝ T at fixed volume; Avogadro found that equal volumes at the same p and T hold equal numbers of molecules whatever the gas. Multiply those proportionalities together and a single constant survives for every dilute gas: p V = n R T, with R = 8.314 J mol⁻¹ K⁻¹. The law is empirical, and it makes two demands. Temperature must be counted from absolute zero, because the law says p → 0 as T → 0 and no Celsius reading can express that. And the gas must be dilute: the molecules must occupy a negligible fraction of the container and spend a negligible fraction of their time pulling on one another. Drive a gas towards its own condensation with high pressure or low temperature and both assumptions break. Then the molecules' own volume pushes the pressure above the prediction, their mutual attraction pulls it below, and Z = p V / (n R T), which the model insists is exactly 1, drifts to 0.82 or 0.3 or lower.
1An equation of state, assembled from three experiments
Mechanics hands you Newton's laws; a gas hands you one extra fact, and it has to be measured. Each of the three classic experiments pins two variables and watches a third, so each one on its own is only a fragment: p ∝ 1/V at fixed n and T, p ∝ T at fixed n and V, p ∝ n at fixed V and T. The single relation that collapses to all three fragments at once is p ∝ n T/V, and turning a proportionality into an equation costs exactly one constant. The surprise is which constant. It is the same number for hydrogen, argon and carbon dioxide alike, R = 8.314 J mol⁻¹ K⁻¹, so a table of R values would have one row in it — the identity of the gas has dropped out of the bookkeeping entirely. Audit the units before trusting any of that. Pressure in pascals is N m⁻², so p V is N m⁻² × m³ = N m, a joule, and R must therefore carry J mol⁻¹ K⁻¹, which is exactly how it is quoted. That audit doubles as the warning: the SI set p in Pa, V in m³, n in mol, T in K stands or falls together, and slipping litres into the volume slot while R still expects cubic metres makes every pressure you compute a thousand times too small.
2The law itself forces an absolute temperature
Why kelvin, and not the scale on the wall? Put a fixed amount of dilute gas in a rigid bulb and plot its pressure against the Celsius temperature. The points lie on a straight line, and extrapolating that line down to p = 0 meets the axis at −273.15 °C — the same point whether the bulb holds helium, nitrogen or air, and whatever amount of gas you started with. That common intercept is what the law is pointing at: p is proportional not to θ but to θ + 273.15. Define T = θ + 273.15 and the proportionality becomes exact, which is the whole content of the kelvin scale for this topic. The practical consequence is that every ratio must be taken in kelvin. Heating that bulb from 0 °C to 100 °C raises the pressure by a factor 373.15/273.15 = 1.366, and a Celsius ratio would have put a zero in the denominator.
3Moles, molecules, and the gas that forgets what it is
n counts moles, and one mole is NA = 6.022 × 10²³ molecules, so N = n NA converts between the chemist's variable and the physicist's. Substitute n = N/NA into the law and it becomes p V = N kB T, with the per-molecule constant kB = R/NA = 1.381 × 10⁻²³ J K⁻¹ — the same statement counted in molecules rather than moles. Read either form carefully and notice what is missing: nothing in it names the gas. No molar mass, no molecular size, no chemical identity appears. One litre at 300 K and 1.013 × 10⁵ Pa holds n = 0.0406 mol, or 2.45 × 10²² molecules, and that count is the same for helium as for carbon dioxide. What is not the same is the mass: 0.163 g of helium against 1.79 g of carbon dioxide, a factor of eleven. Pressure is set by how many molecules there are and how hot they are; mass enters only when you ask what the sample weighs.
4Hold one variable and read off the other two
Three processes carry most of the problems. Isothermal: T fixed, so p V = constant and the state slides along a hyperbola on a p–V diagram — halve the volume and the pressure doubles. Isobaric: p fixed, usually because a free piston or the atmosphere sets it, so V/T = constant and V against T is a straight line through the origin. Isochoric: V fixed by a rigid wall, so p/T = constant. All three are cases of one relation, p₁V₁/T₁ = p₂V₂/T₂, which holds between any two states of a sample whose n has not changed, and is usually faster than finding n first. The isothermal case is also where the law goes under an integral: the work done by the gas is ∫p dV from V₁ to V₂, and substituting p = n R T/V at fixed T gives W = n R T ln(V₂/V₁). Compressing 1.00 mol at 300 K from 24.0 L to 12.0 L gives W = 8.314 × 300 × ln(0.500) = −1.73 × 10³ J, so 1.73 kJ has to be done on the gas.
5Absolute pressure, and the amount that quietly changes
Two pieces of bookkeeping cost more marks than the physics does. First, p in the law is absolute pressure, while most instruments read gauge pressure, the excess over the surroundings. A tyre gauge showing 2.20 × 10⁵ Pa on a day when the atmosphere is 1.01 × 10⁵ Pa means the gas is at 3.21 × 10⁵ Pa. Drive until the air warms from 15 °C to 45 °C at fixed volume and p₂ = 3.21 × 10⁵ × (318.15/288.15) = 3.54 × 10⁵ Pa, so the gauge now reads 2.53 × 10⁵ Pa. Running the same ratio on the gauge readings alone predicts 2.43 × 10⁵ Pa, and the whole error is the missing atmosphere. Second, check that n really is constant. It is not if the vessel leaks, if the gas dissolves in a liquid, if a tube is open to the room, or if a liquid in the container is evaporating into the space above it. Declare the system and look for ways gas can get in or out before writing p₁V₁/T₁ = p₂V₂/T₂.
6Where the ideal surface bends
The cleanest test of the model is Z = p V/(n R T), which the ideal law pins at exactly 1. Measure Z for real gases and it sits close to 1 while the gas is dilute and drifts far from it as the gas nears condensation. The two repairs sit in the van der Waals equation, (p + a n²/V²)(V − n b) = n R T. The term n b subtracts the volume the molecules themselves occupy, which pushes the pressure up; the term a n²/V² accounts for the attraction that slows a molecule as it approaches the wall, which pulls the pressure down. Both corrections are judged against the molar volume, so the questions are whether Vₘ is large compared with b and whether p is large compared with a/Vₘ². For air at 1.01 × 10⁵ Pa and 293 K the molar volume is Vₘ = R T/p = 2.41 × 10⁻² m³ mol⁻¹, and air's measured constants are a = 0.136 Pa m⁶ mol⁻² and b = 3.64 × 10⁻⁵ m³ mol⁻¹, so b/Vₘ = 0.15% and a/Vₘ² = 234 Pa, which is 0.23% of the pressure. The two errors partly cancel and the ideal law is good to about a tenth of a percent — which is why it serves so well in a lecture room and so badly inside a gas cylinder.
Key equations
Read the units, assumptions and limits before substituting.
Equation of state
p V = n R T
Choose any three of p, V, n and T and the fourth is no longer yours to choose.
p in Pa, V in m³, n in mol, T in K, R = 8.314 J mol⁻¹ K⁻¹Molecule form of the same law
p V = N kB T
Pressure responds to how many molecules are present, never to which gas they belong to.
N is a pure count of molecules, kB = R/NA = 1.381 × 10⁻²³ J K⁻¹Two states of one sealed sample
p₁V₁/T₁ = p₂V₂/T₂
Removes n and R from the arithmetic when a fixed sample is simply moved to a new state.
n unchanged between the states; T₁ and T₂ in kelvin, never °CDensity from the state variables
ρ = p M/(R T)
Air at 1.01 × 10⁵ Pa and 300 K, with M = 0.0289 kg mol⁻¹, comes out at 1.17 kg m⁻³.
M is the molar mass in kg mol⁻¹, ρ in kg m⁻³, p in PaCompressibility factor
Z = p V/(n R T)
One number saying how far a real gas has drifted from the ideal prediction.
Dimensionless. The ideal model asserts Z = 1 at every state.Van der Waals equation
(p + a n²/V²)(V − n b) = n R T
Attraction between molecules lowers p while their own volume shrinks the space available: the first repair.
a in Pa m⁶ mol⁻², b in m³ mol⁻¹, both measured for the gas itselfInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Slide V from 20.0 L down to 6.0 L and watch the dot climb the same curve as the pressure rises like 1/V, then push T up and the whole isotherm lifts away from the origin, because at every volume p is proportional to T.
Live results
- PRESSURE p
- 164 kPa
- MOLAR VOLUME V/n
- 17.8 L mol⁻¹
- MOLECULES N
- 2.71 × 10²³
- TEMPERATURE
- 77 °C
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Amount of gas n: 0.45 mol; Absolute temperature T: 350 K; Volume V: 8.0 L
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The single most expensive error here is putting a Celsius reading into the law. A sealed rigid tank at 20 °C warmed to 40 °C does not double its pressure: the ratio is 313.15/293.15 = 1.068, a rise of 6.8%, not 100%. The reason is where each scale puts its zero. The law asserts that the pressure of a dilute gas falls to zero as T falls to zero, and every gas extrapolates to that point at −273.15 °C, not at 0 °C. So the Celsius zero is an arbitrary offset inside the law, and a ratio built on it is meaningless. Temperature differences are the exception that breeds the confusion: ΔT = 20 °C and ΔT = 20 K are the same interval, which is why specific-heat problems tolerate Celsius and gas-law problems never do.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A rigid steel cylinder holds argon at 18 °C and an absolute pressure of 1.80 × 10⁵ Pa. It is left in a parked van and warms to 62 °C. Find the new pressure inside the cylinder.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Name what is held fixed. The cylinder is rigid, so V cannot change, and it is sealed, so n cannot change. With V, n and R all constant, p V = n R T collapses to p/T = constant.
- Convert both temperatures to the absolute scale, because only a kelvin ratio carries meaning here: T₁ = 18 + 273.15 = 291.15 K and T₂ = 62 + 273.15 = 335.15 K.
- Apply p₁/T₁ = p₂/T₂, so p₂ = p₁ × T₂/T₁ = 1.80 × 10⁵ × (335.15/291.15) = 1.80 × 10⁵ × 1.1511 = 2.072 × 10⁵ Pa.
- Check the size of the answer. A 44.0 K rise on a base of 291.15 K is a 15% rise, and the pressure rose by 15% too — exactly the proportionality the law demands. Using the Celsius readings would have given 62/18 = 3.4 times the pressure, which is absurd for a warm van.
Answer. p₂ = 2.07 × 10⁵ Pa, a rise of 15% on the starting pressure.
MediumExample 2
A weather balloon is filled with 4.20 m³ of helium at ground level, where the pressure is 1.01 × 10⁵ Pa and the temperature is 14 °C. Find the amount of helium and the number of atoms it holds, then find the balloon's volume at 11.0 km, where p = 2.26 × 10⁴ Pa and T = −56 °C, assuming the envelope is still slack enough to expand freely.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- Put everything in SI units first: p₁ = 1.01 × 10⁵ Pa, V₁ = 4.20 m³, T₁ = 14 + 273.15 = 287.15 K.
- Amount from the equation of state: n = p₁V₁/(R T₁) = (1.01 × 10⁵ × 4.20)/(8.314 × 287.15) = (4.242 × 10⁵)/2387.4 = 178 mol, to the three figures the data support.
- Atoms: N = n NA = 178 × 6.022 × 10²³ = 1.07 × 10²⁶. The mass is n M = 178 × 4.003 × 10⁻³ = 0.713 kg, which is why a balloon this size lifts easily.
- The envelope is sealed, so n is the same aloft. Use the two-state form p₁V₁/T₁ = p₂V₂/T₂ and solve for V₂ = V₁ (p₁/p₂)(T₂/T₁), with T₂ = −56 + 273.15 = 217.15 K.
- V₂ = 4.20 × [(1.01 × 10⁵)/(2.26 × 10⁴)] × (217.15/287.15) = 4.20 × 4.469 × 0.7562 = 14.2 m³.
- Read the competition between the two effects: the falling pressure tries to expand the gas by 4.469, the falling temperature tries to shrink it by 0.7562, and expansion wins by a net factor of 3.38.
Answer. n = 178 mol, N = 1.07 × 10²⁶ atoms, and V₂ = 14.2 m³ — the balloon swells to 3.38 times its ground volume.
HardExample 3
Carbon dioxide is compressed until each mole occupies 0.500 L at 320 K. Predict the pressure from p V = n R T, then from the van der Waals equation with a = 0.364 Pa m⁶ mol⁻² and b = 4.27 × 10⁻⁵ m³ mol⁻¹, and find the compressibility factor of the gas at the van der Waals pressure.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- Work per mole: set n = 1.00 mol and Vₘ = 0.500 L = 5.00 × 10⁻⁴ m³ mol⁻¹, so R T = 8.314 × 320 = 2660.5 J mol⁻¹.
- Ideal prediction: p = R T/Vₘ = 2660.5/(5.00 × 10⁻⁴) = 5.32 × 10⁶ Pa.
- Van der Waals first removes the space the molecules themselves take up: Vₘ − b = 5.00 × 10⁻⁴ − 4.27 × 10⁻⁵ = 4.573 × 10⁻⁴ m³ mol⁻¹, so the repulsive term is R T/(Vₘ − b) = 2660.5/(4.573 × 10⁻⁴) = 5.818 × 10⁶ Pa.
- Then it subtracts the attraction that holds a molecule back as it approaches the wall: a/Vₘ² = 0.364/(5.00 × 10⁻⁴)² = 0.364/(2.50 × 10⁻⁷) = 1.456 × 10⁶ Pa.
- So p = 5.818 × 10⁶ − 1.456 × 10⁶ = 4.362 × 10⁶ Pa. The attraction term is more than twice the volume correction here, so the real pressure sits below the ideal one rather than above it.
- Compressibility factor at that state: Z = p Vₘ/(R T) = (4.362 × 10⁶ × 5.00 × 10⁻⁴)/2660.5 = 2181/2660.5 = 0.820.
Answer. Ideal 5.32 × 10⁶ Pa against 4.36 × 10⁶ Pa from van der Waals: the ideal law overestimates the pressure by 22%, and Z = 0.820.
Quick check
Select an answer and explain it before checking.
Review & continue
The ideal-gas law says that for a dilute gas the pressure, volume, amount of substance and absolute temperature satisfy p V = n R T, so only three of those four quantities can be set independently.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.
Optional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics II completion tasks.