
Thermal unit · institution-dependent · Interactive lesson
The ideal-gas equation of state
Pressure, volume and temperature describe a fixed amount of gas at rest, and one equation ties them so that only two can be chosen. Learn to read pV = nRT as a surface, to walk its isotherms, isobars and isochores on the diagrams, to count the gas in moles, molecules or kilograms, and to know how hard you can squeeze it before it lies.
UPIII-06.03 · Lesson 3 of 9 in this unit. Position is not a completion score.Thermal unit · institution-dependent. Many departments teach thermal physics separately or within Physics II. Check whether your university includes this numbered unit in Physics III.
Build the model
One equation, three state variables, only two of them free.
The key idea
The ideal-gas equation of state, pV = nRT, is the single relation among pressure, volume, absolute temperature and amount of substance that every sufficiently dilute gas obeys, with R = 8.314 J mol⁻¹ K⁻¹ the same for all of them.
Example. One mole at 0 °C and 101.325 kPa occupies V = nRT/p = 8.314 × 273.15/101 325 = 0.02241 m³, the 22.4 L molar volume; halve that volume at the same temperature and the pressure doubles to 202.65 kPa.
The complete physical model and assumptions
Every dilute gas, whatever its molecules, obeys the same relation between pressure, volume, temperature and amount: pV = nRT, or per molecule pV = N kB T. It is an equation of state, not a law of motion but a constraint: one equation among three variables, so a fixed amount of gas has two degrees of freedom and every equilibrium state is a point on the surface p = nRT/V. Its origin is empirical. Boyle's pV = constant, Charles's V ∝ T and Avogadro's V ∝ n each hold one pair of variables fixed, and they merge into a single equation only when temperature is counted from the point where the isochores extrapolate to zero pressure, which is why T must be absolute and why R is universal, 8.314 J mol⁻¹ K⁻¹ for helium and for steam alike. A process is a path on the surface, and the three simplest, isothermal, isobaric and isochoric, are its traces on the p–V and p–T diagrams. Differentiate the same surface and it hands over the gas's response functions: expansion coefficient 1/T, compressibility 1/p, and the pressure rise per kelvin of a sealed vessel, p/T. The model stops working where the two things it neglects, the molecules' own volume and their mutual attraction, stop being small compared with V/N and with kB T: a fraction of a per cent at atmospheric pressure, tens of per cent at a hundred atmospheres, and everything at condensation.
1One number for every gas: where R comes from
Measure pV/(nT) for any dilute gas and plot it against p. Each gas gives a slightly different curve, and every curve lands on the same intercept as p → 0: R = 8.314 J mol⁻¹ K⁻¹. That limit is the ideal gas, and pV = nRT is its equation of state, a single relation among the three variables that fix a state of a given amount, so only two are free. Check the dimensions: Pa × m³ = N m⁻² × m³ = J, so R is an energy per mole per kelvin, the first sign that temperature measures energy per molecule, which Topic 06.05 makes exact. The number also fixes the molar volume. At 0 °C and 101.325 kPa, V/n = RT/p = 8.314 × 273.15/101 325 = 2.241 × 10⁻² m³ = 22.41 L, and 22.71 L at the 1 bar standard. Boyle's, Charles's and Avogadro's laws are what the one equation says when two variables are held fixed: the equation of state is the parent, not the sum.
2Count the gas three ways: molecules, moles, kilograms
Chemistry counts in moles, kinetic theory counts molecules and the balance reads kilograms, and the equation of state must accept all three. Dividing by Avogadro's number, n = N/NA, turns pV = nRT into pV = N kB T with kB = R/NA = 1.381 × 10⁻²³ J K⁻¹, the same law written per molecule. Read it as a number density: N/V = p/(kB T) = 101 325/(1.381 × 10⁻²³ × 300) = 2.45 × 10²⁵ m⁻³ at 300 K and 1 atm, so each molecule owns (V/N)¹⁄³ = 3.4 nm of room, about nine nitrogen diameters, which is the picture behind treating molecules as points. From a mass, n = m/M with the molar mass in kg mol⁻¹: 0.0290 for air, 0.0280 for N₂, 0.0020 for H₂. Eliminating n gives the density form ρ = pM/(RT): air at 20 °C and 101.325 kPa has ρ = 101 325 × 0.02897/(8.314 × 293.15) = 1.20 kg m⁻³. Which gas you are holding enters through M alone.
3Isotherms, isobars and isochores on two diagrams
A process is a path on the surface p = nRT/V, and three paths recur. Hold T: pV = constant, a rectangular hyperbola on the p–V diagram, with hotter isotherms further from the origin. Hold p: V/T = constant, a horizontal line on p–V and a straight line through the origin on V–T. Hold V: p/T = constant, a vertical line on p–V and a straight line through the origin on p–T with slope nR/V. Take 0.0802 mol at state A (100 kPa, 2.00 L, 300 K). Isothermal compression to 0.500 L: p = 400 kPa, state B. Isochoric heating to 450 K: p = 400 × 1.5 = 600 kPa, state C. Isobaric expansion back to 2.00 L: T = 450 × 4 = 1800 K, state D. Now compare D with A directly: same volume, six times the pressure, so six times the temperature, 1800 K. The equation of state returns the same answer by either route because it describes states, not routes, and that comparison is the check every multi-step problem should end with.
4Kelvin is not a convention here: the intercept forces it
The isochore on the p–T diagram is p = (nR/V) T, a line through the origin, and that origin is T = 0 on the absolute scale. Rewrite it in Celsius, p = (nR/V)(θ + 273.15), and the line acquires an intercept: p is proportional to T but only affine in θ. Ratios therefore work in kelvin and fail in Celsius. Heat sealed air at fixed volume from 20 °C to 40 °C and the pressure rises by 313.15/293.15 = 1.068, a 6.8% increase, not the doubling that 40/20 suggests. Differences are safe in either scale, since a rise of 20 K is a rise of 20 °C, so the derivative (∂p/∂T)V needs no conversion while the ratio p₂/p₁ always does. Extrapolating a measured isochore to p = 0 is how the gas thermometer of Topic 06.01 located −273.15 °C in the first place; here the same line is read the other way, as the reason the equation of state is written with T and nothing else.
5Partial derivatives read the state surface
With two free variables, every rate of change needs a statement of what is held fixed, which is what the subscript on a partial derivative says. From V = nRT/p: (∂V/∂T)ₚ = nR/p = V/T, so the isobaric expansion coefficient is β = (1/V)(∂V/∂T)ₚ = 1/T, and (∂V/∂p)T = −nRT/p² = −V/p, so the isothermal compressibility is κ = −(1/V)(∂V/∂p)T = 1/p. At 300 K, β = 3.33 × 10⁻³ K⁻¹, about ninety times that of steel; at 1 atm, κ = 9.87 × 10⁻⁶ Pa⁻¹, twenty thousand times that of water. The third response, (∂p/∂T)V = nR/V = p/T, equals β/κ, as it must for any equation of state. For air at 300 K and 101.3 kPa it is 338 Pa K⁻¹, and because nR/V is constant in a rigid sealed vessel the rise is exact, Δp = (p/T) ΔT, not a first-order estimate. Where Topic 06.02 asked what stress a blocked expansion produces, the ideal gas answers from its equation of state alone.
6Two small numbers say where the model stops
pV = nRT neglects two things, and each has a size you can compute. Molecules occupy volume: for nitrogen the excluded volume is b ≈ 3.9 × 10⁻⁵ m³ mol⁻¹, against a molar volume of 2.24 × 10⁻² m³ mol⁻¹ at STP, a fraction b/Vₘ = 0.17%. Molecules attract: the van der Waals a ≈ 0.137 Pa m⁶ mol⁻² makes the attraction energy per mole a/Vₘ = 6.1 J mol⁻¹, against RT = 2271 J mol⁻¹, a ratio of 0.27%. Both sit below the precision of most laboratory gauges, which is why the model works. Compress to 100 atm and Vₘ falls a hundredfold: the ratios become 17% and 27%, of opposite sign and no longer negligible, and the fact that they partly cancel is luck, not a virtue of the model. Cool the gas and the attraction ratio grows as 1/T until the molecules condense, a state the equation has no word for. The ideal gas is exact in the limit p → 0 and an approximation everywhere else; Topic 06.09 supplies the corrections.
Key equations
Read the units, assumptions and limits before substituting.
Equation of state, mole form
pV = nRT
One relation among three state variables: fix any two of p, V and T for a given n and the third is no longer yours to choose.
p in Pa, V in m³, n in mol, T in K; R = 8.314 J mol⁻¹ K⁻¹, the same for every gasEquation of state, molecule form
pV = N kB T
Read it as N/V = p/(kB T), the number density: 2.45 × 10²⁵ m⁻³ at 300 K and 1 atm, the quantity the kinetic model needs next.
N is a count of molecules; kB = R/NA = 1.381 × 10⁻²³ J K⁻¹Amount from a mass or from a count
n = m/M = N/NA
The only door through which the identity of the gas enters: helium and xenon at the same p, V and T hold the same n but masses 33 times apart.
m in kg; M the molar mass in kg mol⁻¹ (air 0.0290, N₂ 0.0280); NA = 6.022 × 10²³ mol⁻¹Density form
ρ = pM/(RT)
Air at 20 °C and 101.3 kPa: 101 325 × 0.02897/(8.314 × 293.15) = 1.20 kg m⁻³. Halve T at fixed p and the density doubles.
ρ in kg m⁻³; M must be in kg mol⁻¹ or the answer comes out a thousand times too largeFixed amount, two states
p₁V₁/T₁ = p₂V₂/T₂
Isothermal, isobaric and isochoric changes are its three special cases; which variable stays fixed is a fact about the apparatus, not about the equation.
T in kelvin, always; p and V in any units used consistently on both sides, since only their ratios surviveIsochoric pressure coefficient
(∂p/∂T)V = nR/V = p/T
The pressure rise per kelvin of a sealed rigid vessel, exact for an ideal gas: Δp = (p/T) ΔT. It equals β/κ, the expansion coefficient over the compressibility.
Partial derivative at fixed V and n, in Pa K⁻¹; 338 Pa K⁻¹ for air at 300 K and 101.3 kPaInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Slide V at fixed T and the left point rides the hyperbola while pV stays at {8.314*t|0} J; then slide T at fixed V and the right point runs along a line through the origin, which is why halving the kelvin temperature halves p while halving a Celsius reading does not.
Live results
- PRESSURE p = nRT/V
- 249 kPa
- pV = nRT
- 2494 J
- NUMBER DENSITY N/V
- 6.02 ×10²⁵ m⁻³
- (∂p/∂T)V = p/T
- 831 Pa K⁻¹
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. Volume V: 10 L; Absolute temperature T: 300 K
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
pV = nRT is a statement about states, not about processes, and the ratio form p₁V₁/T₁ = p₂V₂/T₂ supplies only one equation for the two variables that changed. First-year habit writes p₁V₁ = p₂V₂ for any compression, but that assumes T did not move, and a gas compressed quickly warms: halve the volume of air in an insulated pump and the pressure rises by a factor near 2.6, not 2, because the temperature rose by about 32%. The equation of state cannot tell you which variable stayed fixed; the apparatus does, through a water bath, a free piston or rigid walls, and until you have named that constraint you hold one equation and two unknowns. The same failure in older clothes is substituting a Celsius reading: the isochore p ∝ T passes through the origin only in kelvin, so a ratio of Celsius temperatures compares two offsets and means nothing.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A diving cylinder of internal volume 12.0 L is filled with air (M = 29.0 g mol⁻¹) to 20.0 MPa at 22.0 °C. Treating the air as ideal, find the amount of gas in moles, its mass, and the volume it would occupy at 101.3 kPa and the same temperature.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Put everything in SI and kelvin before substituting: V = 1.20 × 10⁻² m³, p = 2.00 × 10⁷ Pa, T = 22.0 + 273.15 = 295.15 K.
- n = pV/(RT) = (2.00 × 10⁷)(1.20 × 10⁻²)/(8.314 × 295.15) = 2.40 × 10⁵/2454 = 97.8 mol.
- m = nM with M in kg mol⁻¹: 97.8 × 0.0290 = 2.84 kg. Written with M = 29.0 the result is 2836, which is grams, not kilograms.
- Same n and T, so pV is fixed: V₂ = V₁ p₁/p₂ = 12.0 L × (2.00 × 10⁷)/(1.013 × 10⁵) = 12.0 × 197.4 = 2.37 × 10³ L = 2.37 m³.
- Model check: the molar volume in the cylinder is V/n = 1.23 × 10⁻⁴ m³ mol⁻¹, only about three times the molecules' own excluded volume, so the ideal answer is a first estimate good to a few per cent, not the last word.
Answer. n = 97.8 mol, m = 2.84 kg, and V₂ = 2.37 m³ at 101.3 kPa, all to the accuracy of the ideal model at 200 bar.
MediumExample 2
Two rigid glass bulbs of 1.20 L and 0.400 L are joined by a capillary of negligible volume with a closed tap. The large bulb holds argon at 250 kPa and 300 K; the small one is evacuated. The tap is opened, the large bulb is kept at 300 K and the small bulb is held in an oven at 500 K. Find the final pressure and the amount of argon in each bulb.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Amount before the tap opens: n = p₁V₁/(RT₁) = (2.50 × 10⁵)(1.20 × 10⁻³)/(8.314 × 300) = 300/2494 = 0.1203 mol. Opening a tap moves gas; it does not create it, so this n is conserved.
- Afterwards the pressure is common, because the tube transmits it, but the temperatures are not, so the equation of state must be applied to each bulb on its own: n₁ = pV₁/(RT₁) and n₂ = pV₂/(RT₂).
- Conservation gives n = (p/R)(V₁/T₁ + V₂/T₂), so p = nR/(V₁/T₁ + V₂/T₂). Here nR = p₁V₁/T₁ = 1.000 J K⁻¹ and V₁/T₁ + V₂/T₂ = 4.00 × 10⁻⁶ + 0.80 × 10⁻⁶ = 4.80 × 10⁻⁶ m³ K⁻¹.
- p = 1.000/(4.80 × 10⁻⁶) = 2.08 × 10⁵ Pa. Then n₁ = (2.083 × 10⁵)(1.20 × 10⁻³)/(8.314 × 300) = 0.1002 mol and n₂ = (2.083 × 10⁵)(4.00 × 10⁻⁴)/(8.314 × 500) = 0.0200 mol, which sum to 0.1203 mol.
- The trap is to treat the whole 1.60 L as one system at one temperature: p = 250 × 1.20/1.60 = 187.5 kPa, 10% low. The hot bulb holds fewer molecules per litre, so more of them stay in the cold bulb and the shared pressure sits higher.
Answer. p = 208 kPa; 0.100 mol of argon in the 300 K bulb and 0.0200 mol in the 500 K bulb, 0.120 mol in all.
HardExample 3
A sealed rigid steel vessel holds air at 101.3 kPa and 300 K. Starting from p = nRT/V, obtain the isobaric expansion coefficient β = (1/V)(∂V/∂T)ₚ and the isothermal compressibility κ = −(1/V)(∂V/∂p)T of an ideal gas, show that (∂p/∂T)V = β/κ, and find the pressure after the vessel is heated to 340 K. Use β = 3.6 × 10⁻⁵ K⁻¹ for the steel to justify holding V fixed.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Solve for V = nRT/p. Holding p and n fixed, (∂V/∂T)ₚ = nR/p = V/T, so β = 1/T. At 300 K, β = 3.33 × 10⁻³ K⁻¹.
- Holding T and n fixed, (∂V/∂p)T = −nRT/p² = −V/p, so κ = 1/p = 1/(1.013 × 10⁵ Pa) = 9.87 × 10⁻⁶ Pa⁻¹.
- At fixed V, (∂p/∂T)V = nR/V = p/T, and β/κ = (1/T)/(1/p) = p/T as well: the three response functions of one equation of state are never independent. Value: 1.013 × 10⁵/300 = 338 Pa K⁻¹.
- In a rigid sealed vessel nR/V does not change, so the rise is exact, not first order: Δp = (p/T) ΔT = 337.7 × 40.0 = 1.35 × 10⁴ Pa, giving p₂ = 114.8 kPa. The ratio form checks it: 101.3 × 340/300 = 114.8 kPa.
- The steel expands by a fraction βₛₜₑₑₗ ΔT = 3.6 × 10⁻⁵ × 40 = 1.4 × 10⁻³, so the gas volume grows by 0.14% and the pressure falls by the same fraction, about 0.17 kPa. The gas's own β is 93 times the steel's, which is why the vessel counts as rigid.
Answer. β = 1/T = 3.33 × 10⁻³ K⁻¹, κ = 1/p = 9.87 × 10⁻⁶ Pa⁻¹, (∂p/∂T)V = p/T = 338 Pa K⁻¹; heating to 340 K raises the pressure by 13.5 kPa to 114.8 kPa, and the steel's expansion alters that by only about 0.17 kPa.
Quick check
Select an answer and explain it before checking.
Review & continue
The ideal-gas equation of state, pV = nRT, is the single relation among pressure, volume, absolute temperature and amount of substance that every sufficiently dilute gas obeys, with R = 8.314 J mol⁻¹ K⁻¹ the same for all of them.
- 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 III completion tasks.