In short
The ideal gas law, PV = nRT, links pressure, volume, amount and temperature for a gas. Temperature must be in kelvin, and R must match your units (0.08206 L·atm·mol⁻¹·K⁻¹ is the usual choice). Rearranged, it gives molar mass from density, M = dRT/P. In a mixture, each gas contributes a partial pressure, and the total is their sum (Dalton's law): PA = XA × Ptotal, where XA is the mole fraction.
What you need to know
- Use PV = nRT to calculate an unknown property of a gas.
- Convert temperatures to kelvin and choose R to match the units.
- Determine the molar mass of a gas from its density or from mass and volume data.
- Apply Dalton's law and mole fractions to gas mixtures.
PV = nRT
For an ideal gas, pressure (P), volume (V), amount in moles (n) and absolute temperature (T) are related by PV = nRT. The gas constant R is on the AP formula sheet in two forms: 0.08206 L·atm·mol⁻¹·K⁻¹ (use with litres and atmospheres) and 8.314 J·mol⁻¹·K⁻¹ (use in energy calculations). The sheet also gives 1 atm = 760 mm Hg = 760 torr.
Worked example: 2.00 mol of a gas at 27 °C in a 10.0 L container. T = 27 + 273 = 300 K. P = nRT/V = (2.00)(0.08206)(300) ÷ 10.0 = 4.92 atm.
When the amount of gas is fixed and conditions change, the same equation gives P₁V₁/T₁ = P₂V₂/T₂, which contains Boyle's law (P and V inversely proportional at constant T) and Charles's law (V proportional to T at constant P).
Molar mass and density of a gas
Since n = m/M, the ideal gas law can be rewritten as PV = (m/M)RT. Dividing by V gives density, d = m/V, so M = dRT/P. This is how an unknown gas can be identified from a density measurement.
Example: a gas has a density of 1.25 g/L at 273 K and 1.00 atm. M = (1.25)(0.08206)(273) ÷ 1.00 = 28.0 g/mol, consistent with N₂ or CO.
Gas mixtures: Dalton's law
In a mixture of gases that do not react, each gas behaves as if it were alone in the container and exerts its own partial pressure. The total pressure is the sum: Ptotal = PA + PB + …
The partial pressure of a gas is proportional to its share of the moles: PA = XA × Ptotal, where the mole fraction XA = moles of A ÷ total moles. A mixture of 2.0 mol N₂ and 1.0 mol O₂ at a total pressure of 3.00 atm has X(O₂) = 1/3, so P(O₂) = 1.00 atm.
Key terms
- Ideal gas law
- PV = nRT, relating pressure, volume, moles and absolute temperature of an ideal gas.
- Gas constant (R)
- 0.08206 L·atm·mol⁻¹·K⁻¹ or 8.314 J·mol⁻¹·K⁻¹.
- Absolute temperature
- Temperature in kelvin: K = °C + 273.
- Partial pressure
- The pressure one gas in a mixture would exert if it were alone in the container.
- Dalton's law
- The total pressure of a gas mixture is the sum of the partial pressures.
- Mole fraction (X)
- Moles of one component ÷ total moles in the mixture.
Common mistakes
Using 25 for the temperature in PV = nRT at 25 °C.
Convert to kelvin: 298 K.
Using R = 8.314 with litres and atmospheres.
Use 0.08206 L·atm·mol⁻¹·K⁻¹ with L and atm; 8.314 goes with SI units and joules.
The gas with the larger mass in a mixture always has the larger partial pressure.
Partial pressure depends on moles, not mass; convert masses to moles first.
Doubling the Celsius temperature doubles the pressure.
Pressure is proportional to absolute temperature; work in kelvin.
How this topic is tested
- Write the equation, the rearranged form and every value with units before substituting; it earns method points.
- Check whether pressure is given in torr or mm Hg and divide by 760 to convert to atm.
- For mixtures, find moles of each gas first; mole fractions and partial pressures follow directly.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 5 · Mathematical Routines
What volume is occupied by 0.500 mol of an ideal gas at 273 K and 1.00 atm?
Question 2 · SP 5 · Mathematical Routines
A sealed rigid container of gas is heated from 27 °C to 327 °C. By what factor does the pressure change?
Question 3 · SP 5 · Mathematical Routines
A 1.00 L flask contains 0.20 mol He and 0.30 mol Ar at a total pressure of 5.0 atm. What is the partial pressure of argon?
Question 4 · SP 4 · Model Analysis
Samples of four gases are at the same temperature and pressure. Which has the greatest density?
Question 5 · SP 2 · Question and Method
A student collects hydrogen gas over water at 25 °C and records a total pressure of 765 torr. To find the moles of H₂, what should the student do first?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Short answer (4 points) · 4 points
A 0.850 g sample of an unknown gas occupies 0.500 L at 25 °C and 0.950 atm.
- (a) Calculate the number of moles of gas.
- (b) Calculate the molar mass of the gas.
- (c) Identify a gas consistent with this molar mass.
- (d) The student used 25 for the temperature in the calculation. Describe the effect on the calculated molar mass.
Scoring guide: one point for each of the following
Part (a)
- n = PV/RT = (0.950)(0.500) ÷ (0.08206 × 298) = 0.0194 mol.
Part (b)
- M = 0.850 g ÷ 0.0194 mol = 43.8 g/mol (≈ 44 g/mol).
Part (c)
- CO₂ (44.01 g/mol) (or N₂O or C₃H₈).
Part (d)
- n would be far too large (T too small by a factor of about 12), so the calculated molar mass would be far too small.
Connected topics
Frequently asked questions
Is STP used on the AP Chemistry exam?
Questions usually give the temperature and pressure directly. If you do use STP, it is 273 K and 1 atm, where one mole of ideal gas occupies about 22.4 L.
Which R value should I use?
Match R to your units. With litres and atmospheres use 0.08206; with joules (energy, ΔG = −RT ln K) use 8.314.
Does Dalton's law work for gases that react?
Only for gases that don't react with each other. If they react, find the amounts after the reaction first.