Ideal Gases and pV = nRT

AS · 12 min

A gas is the simplest state of matter to describe mathematically: its particles are far apart and moving fast, and one equation, pV=nRTpV = nRT, links its pressure, volume, temperature and amount. This note explains where gas pressure comes from, what makes a gas "ideal" and why real gases fall short, and then drills the ideal gas equation, including the unit conversions that cost students the most marks and its classic use in finding the relative molecular mass of a volatile liquid. Expect a calculation in Paper 2 and possibly a practical question in Paper 3.

The kinetic model of a gas

The particles in a gas (molecules, or atoms for the noble gases) are:

  • in rapid, random motion, travelling in straight lines until they collide;
  • far apart compared with their own size, so most of a gas is empty space;
  • colliding with each other and with the walls of their container.

Where pressure comes from

Key result

Gas pressure is caused by gas particles colliding with the walls of the container. Each collision exerts a tiny force on the wall as the particle's direction (and momentum) changes. Pressure is the total force from all these collisions per unit area of wall.

This explains the everyday gas laws:

  • More particles in the same volume: more collisions with the walls per second, so higher pressure.
  • Smaller volume for the same particles: the particles hit any given area of wall more often, so higher pressure.
  • Higher temperature: the particles move faster, so they hit the walls more often and with more force, so higher pressure (or, if the pressure is held constant, the gas expands).

Ideal gases

An ideal gas is a model: a gas that obeys pV=nRTpV = nRT exactly under all conditions. For that to be true, two assumptions must hold.

Key result

An ideal gas has:

  1. zero particle volume: the particles themselves take up no space;
  2. no intermolecular forces of attraction between the particles.

(The model also assumes the particles are in random motion and that collisions are perfectly elastic: no kinetic energy is lost overall.)

Real gases

No real gas is ideal, but most gases are close to ideal at room temperature and atmospheric pressure, because the particles are far apart (so their volume is a tiny fraction of the total) and moving fast (so the weak attractions between them hardly matter).

Real gases deviate most from ideal behaviour at:

  • high pressure: the particles are pushed close together, so the volume of the particles themselves becomes a significant fraction of the total volume, and intermolecular forces become significant because the particles are close;
  • low temperature: the particles move more slowly, so intermolecular attractions have more effect during collisions and pull particles towards each other, reducing the force with which they strike the walls. Near the boiling point, the gas begins to condense.

The gases closest to ideal are those with the weakest intermolecular forces and smallest particles: helium and hydrogen. Gases with strong intermolecular forces, especially polar ones that hydrogen bond such as ammonia and steam, deviate most.

One way to see this is to plot pVnRT\dfrac{pV}{nRT} against pressure. For an ideal gas this is always exactly 1 (the solid horizontal line). For a typical real gas such as nitrogen at room temperature, it dips slightly below 1 at moderate pressure, where attractions dominate, and then rises above 1 at high pressure, where the particles' own volume dominates (dashed curve).

y = 1 y = 1 - 0.006x + 0.0002x^2

(Horizontal axis: pressure in MPa; vertical axis: pV/nRTpV/nRT. A sketch of the shape, not data to read off.)

Tip

You only need to explain the deviations qualitatively. If asked "under what conditions does a gas behave most ideally?", the answer is high temperature and low pressure, with the reasons above.

The ideal gas equation

Key result
pV=nRTpV = nRT
symbolquantitySI unit
pppressurepascal, Pa (=N m−2= \text{N m}^{-2})
VVvolumem3\text{m}^3
nnamount of gasmol
RRmolar gas constant, 8.31 J K−1 mol−18.31\ \text{J K}^{-1}\ \text{mol}^{-1}J K−1 mol−1\text{J K}^{-1}\ \text{mol}^{-1}
TTtemperaturekelvin, K

The equation only works if every quantity is in SI units. Almost every lost mark in this topic is a unit error.

Key result

Unit conversions

  • T/K=θ/∘C+273T/\text{K} = \theta/^\circ\text{C} + 273
  • 1 kPa=1×103 Pa1\ \text{kPa} = 1 \times 10^{3}\ \text{Pa}; 1 MPa=1×106 Pa1\ \text{MPa} = 1 \times 10^{6}\ \text{Pa}; 1 atm=101 kPa1\ \text{atm} = 101\ \text{kPa} (101 325 Pa)
  • 1 dm3=1×10−3 m31\ \text{dm}^3 = 1 \times 10^{-3}\ \text{m}^3
  • 1 cm3=1×10−6 m31\ \text{cm}^3 = 1 \times 10^{-6}\ \text{m}^3

Linking to the molar volume

At 20 ∘C20\ ^\circ\text{C} (293 K293\ \text{K}) and 101 kPa101\ \text{kPa}, one mole of an ideal gas occupies:

V=nRTp=1×8.31×293101×103=0.0241 m3=24.1 dm3V = \frac{nRT}{p} = \frac{1 \times 8.31 \times 293}{101 \times 10^{3}} = 0.0241\ \text{m}^3 = 24.1\ \text{dm}^3

which is very close to the 24.0 dm3 mol−124.0\ \text{dm}^3\ \text{mol}^{-1} for room conditions that you used in stoichiometry (at 298 K298\ \text{K} the same calculation gives 24.5 dm324.5\ \text{dm}^3; the data booklet value is a convenient rounded figure). The ideal gas equation is the general version: use it whenever the conditions are not room conditions or s.t.p.

Rearrangements you will need

Substitute n=mMn = \dfrac{m}{M} to bring in mass and molar mass:

Key result
pV=mMRT⟹M=mRTpVpV = \frac{m}{M}RT \qquad\Longrightarrow\qquad M = \frac{mRT}{pV}

If mm is in grams, MM comes out in g mol−1\text{g mol}^{-1}, numerically equal to MrM_r.

Dividing by VV gives the density form, ρ=mV\rho = \dfrac{m}{V}:

M=ρRTpM = \frac{\rho RT}{p}

For a fixed amount of gas (nn constant) changing from one set of conditions to another, pVT=nR\dfrac{pV}{T} = nR is constant, so:

p1V1T1=p2V2T2\frac{p_1V_1}{T_1} = \frac{p_2V_2}{T_2}

Here the units of pp and VV only need to match on both sides, but TT must still be in kelvin.

Method

Solving a pV = nRT problem

  1. List the given values with their units.
  2. Convert each to SI: Pa, m3\text{m}^3, K. Write the converted values down.
  3. Rearrange the equation for the unknown before substituting.
  4. Substitute and calculate. Keep extra figures in intermediate steps.
  5. Convert the answer to the units asked for (often dm3\text{dm}^3 or cm3\text{cm}^3), and give it to the same number of significant figures as the least precise data, usually 3.

Worked examples

Volume of a gas

Calculate the volume, in dm3\text{dm}^3, occupied by 0.500 mol0.500\ \text{mol} of an ideal gas at 25 ∘C25\ ^\circ\text{C} and 100 kPa100\ \text{kPa}.

Solution

Convert: T=25+273=298 KT = 25 + 273 = 298\ \text{K}; p=100×103=1.00×105 Pap = 100 \times 10^{3} = 1.00 \times 10^{5}\ \text{Pa}.

V=nRTp=0.500×8.31×2981.00×105=0.01238 m3V = \frac{nRT}{p} = \frac{0.500 \times 8.31 \times 298}{1.00 \times 10^{5}} = 0.01238\ \text{m}^3

Convert to dm3\text{dm}^3: 0.01238×103=12.4 dm30.01238 \times 10^{3} = 12.4\ \text{dm}^3.

Amount from small volumes

How many moles of gas are in a 250 cm3250\ \text{cm}^3 flask at 150 kPa150\ \text{kPa} and 27 ∘C27\ ^\circ\text{C}?

Solution

V=250×10−6=2.50×10−4 m3V = 250 \times 10^{-6} = 2.50 \times 10^{-4}\ \text{m}^3; p=1.50×105 Pap = 1.50 \times 10^{5}\ \text{Pa}; T=300 KT = 300\ \text{K}.

n=pVRT=1.50×105×2.50×10−48.31×300=37.52493=0.0150 moln = \frac{pV}{RT} = \frac{1.50 \times 10^{5} \times 2.50 \times 10^{-4}}{8.31 \times 300} = \frac{37.5}{2493} = 0.0150\ \text{mol}
Relative molecular mass of a volatile liquid

A 0.200 g0.200\ \text{g} sample of a volatile hydrocarbon liquid was injected into a gas syringe in an oven at 100 ∘C100\ ^\circ\text{C}. It vaporised completely, giving 72.0 cm372.0\ \text{cm}^3 of vapour at 101 kPa101\ \text{kPa}. Calculate MrM_r and suggest a molecular formula for the hydrocarbon.

Solution

Convert: T=373 KT = 373\ \text{K}; p=1.01×105 Pap = 1.01 \times 10^{5}\ \text{Pa}; V=72.0×10−6 m3V = 72.0 \times 10^{-6}\ \text{m}^3.

M=mRTpV=0.200×8.31×3731.01×105×72.0×10−6=619.97.272=85.2 g mol−1M = \frac{mRT}{pV} = \frac{0.200 \times 8.31 \times 373}{1.01 \times 10^{5} \times 72.0 \times 10^{-6}} = \frac{619.9}{7.272} = 85.2\ \text{g mol}^{-1}

Mr≈85M_r \approx 85. An alkane CXnHX2n+2\ce{C_nH_{2n+2}} with 14n+2=8614n + 2 = 86 gives n=6n = 6: hexane, CX6HX14\ce{C6H14} (Mr=86.0M_r = 86.0), within experimental error.

Gas volume from a reaction at high temperature

4.20 g4.20\ \text{g} of sodium hydrogencarbonate (Mr=84.0M_r = 84.0) is heated to 120 ∘C120\ ^\circ\text{C} and decomposes completely:

2 NaHCOX3(s)→NaX2COX3(s)+HX2O(g)+COX2(g)\ce{2NaHCO3(s) -> Na2CO3(s) + H2O(g) + CO2(g)}

Calculate the total volume of gas produced, in dm3\text{dm}^3, at 120 ∘C120\ ^\circ\text{C} and 101 kPa101\ \text{kPa}.

Solution

n(NaHCOX3)=4.2084.0=0.0500 moln(\ce{NaHCO3}) = \dfrac{4.20}{84.0} = 0.0500\ \text{mol}.

From the equation, 2 mol NaHCOX3\ce{NaHCO3} gives 1 mol HX2O\ce{H2O} and 1 mol COX2\ce{CO2}: 2 mol of gas. So total gas =0.0500 mol= 0.0500\ \text{mol}. (At 120 ∘C120\ ^\circ\text{C} the water is a gas and counts.)

T=393 KT = 393\ \text{K}, p=1.01×105 Pap = 1.01 \times 10^{5}\ \text{Pa}:

V=0.0500×8.31×3931.01×105=1.617×10−3 m3=1.62 dm3V = \frac{0.0500 \times 8.31 \times 393}{1.01 \times 10^{5}} = 1.617 \times 10^{-3}\ \text{m}^3 = 1.62\ \text{dm}^3
Exam-hard: identifying a gas from its density

A gaseous hydrocarbon contains 85.7%85.7\% carbon by mass. At 273 K273\ \text{K} and 101 kPa101\ \text{kPa} its density is 1.25 g dm−31.25\ \text{g dm}^{-3}. Determine its molecular formula.

Solution

Empirical formula. C: 85.712.0=7.14\dfrac{85.7}{12.0} = 7.14; H: 14.31.0=14.3\dfrac{14.3}{1.0} = 14.3. Ratio 1:21 : 2, so the empirical formula is CHX2\ce{CH2} (empirical mass 14.0).

Molar mass. 1.25 g dm−3=1.25 kg m−3=1250 g m−31.25\ \text{g dm}^{-3} = 1.25\ \text{kg m}^{-3} = 1250\ \text{g m}^{-3}.

M=ρRTp=1250×8.31×2731.01×105=28.1 g mol−1M = \frac{\rho RT}{p} = \frac{1250 \times 8.31 \times 273}{1.01 \times 10^{5}} = 28.1\ \text{g mol}^{-1}

Molecular formula. 28.114.0=2\dfrac{28.1}{14.0} = 2, so the molecular formula is CX2HX4\ce{C2H4} (ethene).

Determining the Mr of a volatile liquid or a gas

Method 1: gas syringe in an oven (volatile liquid).

  1. Fill a hypodermic syringe with the liquid and weigh it.
  2. Inject a small amount (about 0.10.1 to 0.2 g0.2\ \text{g}) through a self-sealing cap into a gas syringe kept in an oven at a known temperature well above the liquid's boiling point (for example 100 ∘C100\ ^\circ\text{C} for hexane).
  3. Reweigh the hypodermic syringe: the difference is the mass injected.
  4. When the plunger stops moving, record the volume of vapour, the oven temperature and the atmospheric pressure.
  5. Calculate M=mRTpVM = \dfrac{mRT}{pV}.

Method 2: butane from a lighter refill (a gas).

  1. Weigh the canister. Fill a measuring cylinder with water and invert it in a trough of water.
  2. Release butane under the water into the cylinder until about 100100 to 200 cm3200\ \text{cm}^3 is collected; level the water inside and outside the cylinder so the gas is at atmospheric pressure.
  3. Dry the canister carefully and reweigh it. Record room temperature and pressure.
  4. Calculate MM; for butane, expect about 5858.

Variables and errors

source of erroreffect on calculated MrM_rimprovement
liquid not fully vaporised (Method 1)VV too small, MrM_r too highuse a higher oven temperature
vapour condenses on cold parts of the syringeVV too smallallow the syringe to reach oven temperature first
some butane dissolves in water (Method 2)VV too small, MrM_r too highuse water already saturated with the gas
canister wet when reweighedmass loss too small, MrM_r too lowdry thoroughly before reweighing
gas collected contains water vapourVV includes water vapourcorrect for the vapour pressure of water
real gas, not ideal (close to boiling point)equation slightly inaccuratework at higher temperature, lower pressure

The largest percentage uncertainty is usually in the small mass (for example ±0.01 g\pm 0.01\ \text{g} in 0.20 g0.20\ \text{g} is ±5%\pm 5\%), so use a balance reading to 0.001 g0.001\ \text{g} or a larger sample.

Watch out
  • Celsius in the equation. TT must be in kelvin. Using 2525 instead of 298298 gives an answer about twelve times too small.
  • kPa and dm³ together. If you put pp in kPa and VV in dm3\text{dm}^3, the factors of 10310^3 cancel and you get the right nn, but only by luck: as soon as cm3\text{cm}^3 or mass is involved, mixing units fails. Always convert to Pa and m3\text{m}^3.
  • cm3\text{cm}^3 to m3\text{m}^3. The factor is 10−610^{-6}, not 10−310^{-3}.
  • Density units. 1 g dm−3=1 kg m−3=1000 g m−31\ \text{g dm}^{-3} = 1\ \text{kg m}^{-3} = 1000\ \text{g m}^{-3}.
  • Forgetting that water is a gas above 100 ∘C100\ ^\circ\text{C} when counting moles of gas in a reaction.
Exam tip
  • "Explain the origin of gas pressure": particles collide with the walls of the container, exerting a force; pressure is force per unit area. Two marks: collisions, with the walls.
  • "State the assumptions of an ideal gas": the syllabus pair is zero particle volume and no intermolecular forces. Give these two first.
  • Show every conversion as a separate line. If the final answer is wrong, the conversions still earn method marks.
  • Read the question for the units of the answer: dm3\text{dm}^3, cm3\text{cm}^3 or m3\text{m}^3. Quote 3 significant figures unless told otherwise.
  • In Paper 3, an MrM_r experiment question often asks why the result is higher or lower than expected: link each error to whether it makes VV or mm too big or small, then to M=mRT/pVM = mRT/pV.
Summary
  • Gas pressure: particles colliding with the container walls; force per unit area.
  • Ideal gas: zero particle volume, no intermolecular forces. Real gases are nearly ideal at high temperature and low pressure; deviate at high pressure and low temperature, especially polar molecules.
  • pV=nRTpV = nRT with pp in Pa, VV in m3\text{m}^3, TT in K, R=8.31 J K−1 mol−1R = 8.31\ \text{J K}^{-1}\ \text{mol}^{-1}.
  • M=mRTpVM = \dfrac{mRT}{pV} and M=ρRTpM = \dfrac{\rho RT}{p} find relative molecular masses.
  • For fixed nn: p1V1T1=p2V2T2\dfrac{p_1V_1}{T_1} = \dfrac{p_2V_2}{T_2}.
  • Conversions: +273+273; kPa×103\text{kPa} \times 10^3; dm3×10−3\text{dm}^3 \times 10^{-3}; cm3×10−6\text{cm}^3 \times 10^{-6}.

Practice

Question
  1. Explain, in terms of particles, why the pressure of a gas in a sealed rigid container increases when it is heated.
  2. State the two assumptions about particles in an ideal gas, and explain why real gases deviate from ideal behaviour at high pressure.
  3. Calculate the pressure, in kPa, exerted by 2.00 mol2.00\ \text{mol} of gas in a 40.0 dm340.0\ \text{dm}^3 container at 300 K300\ \text{K}.
  4. A 5.00 dm35.00\ \text{dm}^3 steel cylinder contains oxygen at 2.00 MPa2.00\ \text{MPa} and 20 ∘C20\ ^\circ\text{C}. Calculate the mass of oxygen in the cylinder.
  5. 0.640 g0.640\ \text{g} of a gaseous oxide occupies 0.250 dm30.250\ \text{dm}^3 at 300 K300\ \text{K} and 100 kPa100\ \text{kPa}. Calculate its MrM_r and suggest its identity.
  6. Which gas would you expect to behave less ideally at room temperature, ammonia or helium? Explain.
  7. In a syringe experiment, 0.150 g0.150\ \text{g} of a volatile liquid gave 62.5 cm362.5\ \text{cm}^3 of vapour at 98 ∘C98\ ^\circ\text{C} and 102 kPa102\ \text{kPa}. Calculate its MrM_r and suggest the formula of an alkane that fits.
  8. 500 cm3500\ \text{cm}^3 of gas at 20 ∘C20\ ^\circ\text{C} and 100 kPa100\ \text{kPa} is heated to 100 ∘C100\ ^\circ\text{C} and compressed to 150 kPa150\ \text{kPa}. Calculate its new volume.
  9. Ammonium nitrate decomposes on strong heating: NHX4NOX3(s)→NX2O(g)+2 HX2O(g)\ce{NH4NO3(s) -> N2O(g) + 2H2O(g)}. Calculate the total volume of gas, in dm3\text{dm}^3, formed from 1.00 g1.00\ \text{g} of ammonium nitrate at 500 K500\ \text{K} and 101 kPa101\ \text{kPa}. In a sealed container, explain why the pressure falls considerably when the products are cooled to room temperature.
  10. A compound contains 24.3%24.3\% C, 4.1%4.1\% H and 71.6%71.6\% Cl by mass. 0.484 g0.484\ \text{g} of the compound, completely vaporised at 100 ∘C100\ ^\circ\text{C} and 101 kPa101\ \text{kPa}, occupies 150 cm3150\ \text{cm}^3. Determine the molecular formula and draw the structures of two possible isomers.
Answers
  1. Heating increases the average kinetic energy of the particles, so they move faster. They collide with the walls more frequently and with greater force per collision. The total force on the walls per unit area increases, so the pressure rises (the volume cannot change).
  2. Zero particle volume; no intermolecular forces of attraction. At high pressure the particles are close together, so their own volume is a significant fraction of the container's volume, and intermolecular attractions become significant because the particles are close; both assumptions fail.
  3. V=40.0×10−3=0.0400 m3V = 40.0 \times 10^{-3} = 0.0400\ \text{m}^3. p=nRTV=2.00×8.31×3000.0400=1.25×105 Pa=125 kPap = \dfrac{nRT}{V} = \dfrac{2.00 \times 8.31 \times 300}{0.0400} = 1.25 \times 10^{5}\ \text{Pa} = 125\ \text{kPa}.
  4. p=2.00×106 Pap = 2.00 \times 10^{6}\ \text{Pa}, V=5.00×10−3 m3V = 5.00 \times 10^{-3}\ \text{m}^3, T=293 KT = 293\ \text{K}. n=2.00×106×5.00×10−38.31×293=4.11 moln = \dfrac{2.00 \times 10^{6} \times 5.00 \times 10^{-3}}{8.31 \times 293} = 4.11\ \text{mol}. Mass =4.11×32.0=131 g= 4.11 \times 32.0 = 131\ \text{g}.
  5. M=0.640×8.31×3001.00×105×2.50×10−4=1595.525.0=63.8M = \dfrac{0.640 \times 8.31 \times 300}{1.00 \times 10^{5} \times 2.50 \times 10^{-4}} = \dfrac{1595.5}{25.0} = 63.8. Mr≈64M_r \approx 64: sulfur dioxide, SOX2\ce{SO2} (Mr=64.1M_r = 64.1).
  6. Ammonia. Its molecules are polar and form hydrogen bonds, so there are significant intermolecular attractions; its molecules are also larger. Helium atoms are tiny and have only very weak id-id forces between them, so helium is close to ideal.
  7. T=371 KT = 371\ \text{K}. M=0.150×8.31×3711.02×105×62.5×10−6=462.46.375=72.5M = \dfrac{0.150 \times 8.31 \times 371}{1.02 \times 10^{5} \times 62.5 \times 10^{-6}} = \dfrac{462.4}{6.375} = 72.5. An alkane with 14n+2=7214n + 2 = 72 gives n=5n = 5: pentane, CX5HX12\ce{C5H12} (Mr=72.0M_r = 72.0).
  8. V2=V1×p1p2×T2T1=500×100150×373293=424 cm3V_2 = V_1 \times \dfrac{p_1}{p_2} \times \dfrac{T_2}{T_1} = 500 \times \dfrac{100}{150} \times \dfrac{373}{293} = 424\ \text{cm}^3.
  9. Mr(NHX4NOX3)=80.0M_r(\ce{NH4NO3}) = 80.0; n=1.0080.0=0.0125 moln = \dfrac{1.00}{80.0} = 0.0125\ \text{mol}. Moles of gas =3×0.0125=0.0375 mol= 3 \times 0.0125 = 0.0375\ \text{mol}. V=0.0375×8.31×5001.01×105=1.54×10−3 m3=1.54 dm3V = \dfrac{0.0375 \times 8.31 \times 500}{1.01 \times 10^{5}} = 1.54 \times 10^{-3}\ \text{m}^3 = 1.54\ \text{dm}^3. On cooling to room temperature the steam condenses to liquid water, so two-thirds of the gas molecules are removed from the gas phase; the temperature is also lower. Both reduce the number and energy of collisions with the walls, so the pressure falls considerably.
  10. Empirical: C 24.312.0=2.03\dfrac{24.3}{12.0} = 2.03; H 4.11.0=4.1\dfrac{4.1}{1.0} = 4.1; Cl 71.635.5=2.02\dfrac{71.6}{35.5} = 2.02. Ratio 1:2:11 : 2 : 1: CHX2Cl\ce{CH2Cl}, empirical mass 49.549.5. M=0.484×8.31×3731.01×105×150×10−6=99.0M = \dfrac{0.484 \times 8.31 \times 373}{1.01 \times 10^{5} \times 150 \times 10^{-6}} = 99.0. 99.049.5=2\dfrac{99.0}{49.5} = 2: molecular formula CX2HX4ClX2\ce{C2H4Cl2}. Isomers: 1,1-dichloroethane, CHX3CHClX2\ce{CH3CHCl2}, and 1,2-dichloroethane, CHX2ClCHX2Cl\ce{CH2ClCH2Cl}.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action