The Ideal Gas Law

pV = nRT combines all four gas variables into one equation. Applications include molar volume, gas density, molar mass determination, and gas stoichiometry.

The combined gas law relates pressure, volume, and temperature for a fixed amount of gas. To include the amount, we combine it with Avogadro’s law: since V is proportional to n at constant T and p, the full relationship is

\[ pV = nRT \]

This is the ideal gas law. It treats the gas molecules as occupying negligible volume compared to their container and as exerting negligible forces on one another. These two assumptions hold at moderate temperatures and pressures, where the molecules are far apart. When those conditions fail, at high pressure or low temperature, real gases deviate from pV = nRT by an amount measured by the compressibility factor.

NoteWho Wrote pV = nRT?

Émile Clapeyron combined the laws of Boyle and Gay-Lussac into a single equation in 1834. He wrote it for a unit mass of gas, as pv = R(267 + t) with t in degrees Celsius, so his R had a different value for each gas. Rudolf Clausius changed the 267 to 273 in 1850 and wrote the equation with the absolute temperature in 1864. The molar form, with one R for every gas, came in 1873 from Clausius’s student August Horstmann, and Dmitri Mendeleev arrived at it independently in 18741. In Russian texts the equation is still called the Mendeleev–Clapeyron equation.

The Gas Constant R

The proportionality constant R, an exact value, is the gas constant (also called the molar gas constant, universal gas constant, or ideal gas constant). Rearranging the ideal gas law gives

\[ R = \dfrac{pV}{nT} \]

Because R is a ratio of measurable quantities, it can be found from any gas sample whose p, V, n, and T are known.

Example: A 0.2000 mol sample of helium at 25.00 °C and 1.000 atm occupies 4.893 L. Calculate R (in L atm mol−1 K−1) from these data.

\[ \begin{align*} R &= \dfrac{pV}{nT} \\[1.5ex] &= \dfrac{(1.00\bar{0}~\mathrm{atm})(4.89\bar{3}~\mathrm{L})}{(0.200\bar{0}~\mathrm{mol})(298.1\bar{5}~\mathrm{K})} \\[1.5ex] &= 0.0820\bar{5}60~\mathrm{L~atm~mol^{-1}~K^{-1}} \\[1.5ex] &= 0.08206~\mathrm{L~atm~mol^{-1}~K^{-1}} \end{align*} \]

Example: A 0.5000 mol sample of argon at 100.00 °C and 2.500 atm occupies 6.124 L. Calculate R (in L atm mol−1 K−1) from these data.

\[ \begin{align*} R &= \dfrac{pV}{nT} \\[1.5ex] &= \dfrac{(2.50\bar{0}~\mathrm{atm})(6.12\bar{4}~\mathrm{L})}{(0.500\bar{0}~\mathrm{mol})(373.1\bar{5}~\mathrm{K})} \\[1.5ex] &= 0.0820\bar{5}81~\mathrm{L~atm~mol^{-1}~K^{-1}} \\[1.5ex] &= 0.08206~\mathrm{L~atm~mol^{-1}~K^{-1}} \end{align*} \]

An argon atom has ten times the mass of a helium atom, and the two samples differ in amount, temperature, pressure, and volume, yet both give 0.08206 L atm mol−1 K−1. Any gas at low pressure gives this value; the callout What Makes R Universal? below gives the reason.

R no longer has to be measured this way. It is the Boltzmann constant scaled to a per-mole basis: R = NAkB. Since the 2019 SI redefinition, both NA and kB are exact by definition, so R itself is exact:

\[ \begin{align*} R &= N_{\mathrm{A}}\,k_{\mathrm{B}} \\[1.5ex] &= \left (\dfrac{6.022\,140\,76 \times 10^{23}}{\mathrm{mol}} \right ) \left (\dfrac{1.380\,649 \times 10^{-23}~\mathrm{J}}{\mathrm{K}} \right ) \\[1.5ex] &= 8.314\,462\,618\,153\,24~\mathrm{J~mol^{-1}~K^{-1}} \quad \text{(exact)} \\[1.5ex] &\approx 8.3145~\mathrm{J~mol^{-1}~K^{-1}} \end{align*} \]

To express R in other units, convert using exact unit factors. A pressure times a volume is an energy. A pascal is a force per area (1 Pa = 1 N m−2), so a pascal times a cubic meter is a newton times a meter, which is a joule. The atmosphere and the liter are both defined exactly in SI units (1 atm = 101 325 Pa and 1 L = 10−3 m3), so the liter-atmosphere is an exact number of joules:

\[ \begin{align*} 1~\mathrm{L~atm} &= \left( 10^{-3}~\mathrm{m^3} \right) \left( 101\,325~\mathrm{Pa} \right) \\[1.5ex] &= 101.325~\mathrm{Pa~m^3} \\[1.5ex] &= 101.325~\mathrm{J} \end{align*} \]

For gas-law calculations in atm and L:

\[ \begin{align*} R &= \left( \dfrac{8.314\,462\,618\,153\,24~\mathrm{J}}{\mathrm{mol~K}}\right)\!\left(\dfrac{1~\mathrm{L~atm}}{101.325~\mathrm{J}}\right) \\[1.5ex] &= \dfrac{8.314\,462\,618\,153\,24~\mathrm{L~atm}}{101.325~\mathrm{mol~K}} \quad \text{(exact)} \\[1.5ex] &\approx 0.08206~\mathrm{L~atm~mol^{-1}~K^{-1}} \end{align*} \]

The numerical value changes with the units, but R itself is one constant:

The first two rows have the same numerical value because 1 kPa L = (103 Pa)(10−3 m3) = 1 J. Choose the value of R whose pressure and volume units match your data. A value of R whose units do not match the data gives a wrong answer with no warning.

NoteWhat Makes R Universal?

R is universal in two senses.

Same value for every gas. At a given temperature, all ideal-gas molecules have the same average translational kinetic energy, ⟨Ek⟩ = (3/2)kBT. Heavier molecules move slower and lighter ones faster, in just the proportion that keeps that energy the same at a given temperature. Per mole, that average energy is (3/2)RT, and nothing in it depends on which gas it is.

Same constant across thermodynamics. kB converts temperature to thermal energy per particle, and R does the same per mole. That is why the same R appears in the Arrhenius equation, the Nernst equation, ΔG = ΔG° + RT ln Q, the Clausius–Clapeyron equation, and the osmotic pressure equation.

For a deeper treatment of why R appears across thermodynamics, see The Gas Constant.

Example: A sample of 0.250 mol of nitrogen gas is held at 25.00 °C and 1.20 atm. What volume (in L) does it occupy?

\[ \begin{align*} pV &= nRT \longrightarrow \\[1.5ex] V &= \dfrac{nRT}{p} \\[1.5ex] &= \dfrac{(0.25\bar{0}~\mathrm{mol})(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(298.1\bar{5}~\mathrm{K})}{1.2\bar{0}~\mathrm{atm}} \\[1.5ex] &= 5.0\bar{9}71~\mathrm{L} \\[1.5ex] &= 5.10~\mathrm{L} \end{align*} \]

The pressure and volume are both in atm and L, so R = 0.08206 is the correct choice. The result is slightly over 5 L, consistent with about one-quarter of the molar volume at these conditions.

Molar Volume

For 1 mol of gas, pV = RT, so the molar volume is

\[ V_{\mathrm{m}} = \dfrac{RT}{p} \]

At STP (0 °C, 1 bar = 100 kPa), using R = 8.3145 kPa L mol−1 K−1 (the units are equivalent to J mol−1 K−1, since 1 J = 1 kPa L):

\[ \begin{align*} V_{\mathrm{m}} &= \dfrac{RT}{p} \\[1.5ex] &= \dfrac{(8.3145~\mathrm{kPa~L~mol^{-1}~K^{-1}})(273.15~\mathrm{K})}{100~\mathrm{kPa}} \\[1.5ex] &= 22.711~\mathrm{L~mol^{-1}} \end{align*} \]

Under the older convention (0 °C, 1 atm), using R = 0.082057 L atm mol−1 K−1 (one figure more than the usual 0.08206, which would give 22.415):

\[ \begin{align*} V_{\mathrm{m}} &= \dfrac{(0.082057~\mathrm{L~atm~mol^{-1}~K^{-1}})(273.15~\mathrm{K})}{1~\mathrm{atm}} \\[1.5ex] &= 22.414~\mathrm{L~mol^{-1}} \end{align*} \]

Here R, T, and p are reference values, not measured data, so they carry no overbars.

The 1.3 % difference between 22.711 L and 22.414 L comes entirely from the difference between 1 bar and 1 atm. Many textbooks and older data tables still use the 22.414 L value. Both are correct for their respective pressure standards.

In physical terms, 22.7 L is the volume of a cube about 28.3 cm on each side, roughly the size of a standard milk crate. One mole of any ideal gas at STP fills that space, regardless of the identity of the gas.

Gas Density and Molar Mass

Starting from pV = nRT and substituting n = m/M (mass over molar mass):

\[ pV = \dfrac{m}{M} RT \]

Since density ρ = m/V:

\[ \rho = \dfrac{pM}{RT} \]

This can be rearranged to determine the molar mass of an unknown gas from a density measurement:

\[ M = \dfrac{\rho RT}{p} \]

This relationship is the basis of the Dumas method (1826). A weighed glass flask with a pinhole opening is partially filled with a volatile liquid, one that boils below 100 °C, and heated in a boiling-water bath. The liquid makes far more vapor than the flask can hold, so gas streams out through the pinhole and carries the air with it. When the liquid is gone, only vapor fills the flask, at the bath temperature and atmospheric pressure. The flask is then taken out, cooled, and dried. The vapor condenses to a few drops of liquid, and air flows back in through the pinhole, so the reweighed flask holds air plus the condensed liquid. The mass gain is therefore the mass m of the vapor, which filled the flask’s volume V at the bath temperature T and atmospheric pressure p (read from a barometer). So ρ = m/V and M = ρRT/p. The air is driven out by pressure, so the method works whether the vapor is denser or lighter than air.

The Dumas method: a flask of volatile liquid is heated until its vapor drives out the air, then cooled so the vapor condenses and the air returnsA round flask with a long neck, closed by a cap with a pinhole, is weighed and then set in a beaker of boiling water on a hot plate; a thermometer in the bath reads 100 degrees Celsius. At the start the flask holds air, drawn as hollow rings, and a little volatile liquid in its bulb. As it heats, the liquid boils away, its vapor, drawn as filled dots, fills the flask, and the air leaves through the pinhole, until only vapor fills the flask, at the bath temperature and atmospheric pressure. In step 3 the flask is taken out of the bath and cools to room temperature on a cork ring: the vapor condenses to a small drop of liquid, and air flows back in through the pinhole. In step 4 the flask is weighed again. The mass gained is the condensed vapor, which had filled the flask volume at the bath temperature and atmospheric pressure; that gives its density and then its molar mass from M = rho R T / p.heatroomtemperaturepinhole020406080100°Cboiling waterStep 1: heat the weighed flask in boiling waterStep 2: the vapor pushes the air outStep 3: cool it; the vapor condenses, air flows back inStep 4: weigh the flask againthe mass gained is the condensed vapor, which filledthe flask (V) at the bath T and atmospheric pairvapor of the liquidρ = m/V, then M = ρRT/p

Example: A Dumas flask with a pinhole foil cap holds 265.0 mL. The flask and cap, full of air, weigh 104.3127 g. About 3 mL of an unknown volatile liquid is added, and the flask is held in boiling water at 99.62 °C until the liquid is gone. The barometer reads 0.9868 atm. The flask is cooled to 25.00 °C and dried, and the flask, cap, air, and condensed liquid then weigh 105.0496 g. Assuming the vapor is ideal and all of it condenses on cooling, what is the molar mass of the liquid (in g mol−1)?

The flask holds air at both weighings, so the air cancels, and the mass gain is the mass of the vapor that filled the flask in the bath:

\[ m = 105.0496~\mathrm{g} - 104.3127~\mathrm{g} = 0.7369~\mathrm{g} \]

The amount of vapor follows from its p, V, and T in the bath:

\[ \begin{align*} n &= \dfrac{pV}{RT} \\[1.5ex] &= \dfrac{(0.986\bar{8}~\mathrm{atm})(0.265\bar{0}~\mathrm{L})}{(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(372.7\bar{7}~\mathrm{K})} \\[1.5ex] &= 0.00854\bar{8}74~\mathrm{mol} \end{align*} \]

\[ \begin{align*} M &= \dfrac{m}{n} \\[1.5ex] &= \dfrac{0.736\bar{9}~\mathrm{g}}{0.00854\bar{8}74~\mathrm{mol}} \\[1.5ex] &= 86.1\bar{9}98~\mathrm{g~mol^{-1}} \\[1.5ex] &= 86.20~\mathrm{g~mol^{-1}} \end{align*} \]

This matches hexane (C6H14, 86.20 g mol−1), which boils at 69 °C, well below the bath temperature.

NoteGoing Deeper: The Vapor Left in the Cooled Flask

The example above assumes all the vapor condenses when the flask cools. It does not. Hexane has a vapor pressure of about 0.20 atm at 25 °C, the temperature of the second weighing, so the cooled flask still holds hexane vapor at that partial pressure, and the air that flows back in through the pinhole only brings the total up to 0.9868 atm. About a fifth of the air present at the first weighing stays out.

All the hexane is still in the flask, as liquid or vapor, so the missing air is the whole error. At 25 °C the flask holds 0.31 g of air when full. A fifth of that is 0.062 g, so the balance would show a gain of 0.674 g instead of 0.737 g, and the molar mass would come out near 79 g mol−1, about 8 % low.

There are two common fixes. One is to add the missing air back: look up the liquid’s vapor pressure at room temperature and add the mass of air it keeps out. The other is to choose a liquid with a low vapor pressure at room temperature, although any liquid that boils below 100 °C has some. Hexane vapor near 100 °C is also slightly nonideal, enough to push the result about 3 % high, so in a real measurement the two errors partly cancel.

Example: Calculate the density (in g L−1) of carbon dioxide at 0.00 °C and 1.00 atm, assuming ideal behavior. (M(CO2) = 44.01 g mol−1)

\[ \begin{align*} \rho &= \dfrac{pM}{RT} \\[1.5ex] &= \dfrac{(1.0\bar{0}~\mathrm{atm})(44.0\bar{1}~\mathrm{g~mol^{-1}})}{(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(273.1\bar{5}~\mathrm{K})} \\[1.5ex] &= 1.9\bar{6}34~\mathrm{g~L^{-1}} \\[1.5ex] &= 1.96~\mathrm{g~L^{-1}} \end{align*} \]

The measured density of CO2 at these conditions is 1.977 g L−1, about 0.7 % higher than the ideal prediction. The table in the next section compares other gases.

Example: An unknown gas has a density of 1.25 g L−1 at 25.00 °C and 1.00 atm. What is its molar mass (in g mol−1)?

\[ \begin{align*} M &= \dfrac{\rho RT}{p} \\[1.5ex] &= \dfrac{(1.2\bar{5}~\mathrm{g~L^{-1}})(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(298.1\bar{5}~\mathrm{K})}{1.0\bar{0}~\mathrm{atm}} \\[1.5ex] &= 30.\bar{5}82~\mathrm{g~mol^{-1}} \\[1.5ex] &= 30.6~\mathrm{g~mol^{-1}} \end{align*} \]

A molar mass near 30 g mol−1 is consistent with ethane (C2H6, 30.07 g mol−1) or nitric oxide (NO, 30.01 g mol−1). Combustion analysis or spectroscopy would distinguish them.

How Well Does the Ideal Gas Law Work?

The table below compares measured gas densities at 0 °C and 1 atm with the values predicted by ρ = pM/(RT). The ideal molar volume at these conditions is 22.414 L mol−1.

At 0 °C and 1 atm, every gas in the table is within 1 % of the ideal prediction. Most are within 0.1 %. CO2 shows the largest deviation because its molecules have stronger intermolecular attractions than the others, pulling them slightly closer together and increasing the measured density above the ideal value. H2 and He deviate in the opposite direction: their molecules are so small and interact so weakly that finite molecular volume slightly outweighs attraction, raising the real molar volume and leaving the measured density slightly below ideal, the −0.1 % shown here.

Gases behave most ideally when the temperature is far above the boiling point. The gases in the table were all measured at 273 K, which is well above the boiling points of H2 (20 K), He (4 K), N2 (77 K), O2 (90 K), and Ar (87 K). CO2 sublimes at 195 K, only 78 K below the measurement temperature, which partly explains its larger deviation.

NoteWhen Does the Ideal Gas Law Fail?

Two assumptions underlie the ideal gas law: (1) gas molecules occupy negligible volume compared to the container, and (2) intermolecular forces are negligible. Both assumptions break down at high pressure (molecules are crowded and their volume matters) and at low temperature (molecules move slowly enough for attractions to pull them together). The size of the departure is measured by the compressibility factor Z = pV/(nRT), which equals 1 for an ideal gas, and real-gas equations such as the van der Waals equation are needed to model it. Both are developed in full there.

Gas Stoichiometry

When a reaction produces or consumes a gas, pV = nRT converts between moles and volume at any specified conditions. As in solution stoichiometry, the balanced equation gives mole ratios, and the ideal gas law converts between moles and volume. Just as cV gives moles in solution, pV/(RT) gives moles in the gas phase.

At constant temperature and pressure, volume ratios equal mole ratios. This is a direct consequence of Avogadro’s law and was first observed by Gay-Lussac in 1809 as the law of combining volumes.

Example: Calcium carbonate decomposes on heating:

\[ \mathrm{CaCO_3(s) \longrightarrow CaO(s) + CO_2(g)} \]

What volume (in L) of CO2, measured at 25.00 °C and 0.980 atm, is produced by heating 10.0 g of CaCO3? (M(CaCO3) = 100.09 g mol−1)

Example: heating 10.0 g of calcium carbonate and collecting the CO2 in a gas syringeA stoppered test tube of solid calcium carbonate, 10.0 g, is heated over a burner. The carbon dioxide it gives off, drawn as dots, runs through a delivery tube into a gas syringe, and the plunger slides out as the gas comes in. The solid in the tube does not disappear: it turns into calcium oxide, 5.60 g, which takes up about half the room. The syringe sits at room temperature, 25.00 degrees Celsius, with a thermometer beside it, and its plunger moves freely, so the gas is at the pressure of the room, 0.980 atm. The volume of CO2 is the unknown.02040°CroomtemperatureCaCO3(s)CaO(s)gas syringeStep: heat the CaCO3; collect the CO2m(CaCO3) = 10.0 gT = 25.00 °C, in the syringep = 0.980 atm, the room's pressureV(CO2) = ? (unknown)CO2The CO2 cools to room temperature in the syringe.The T in the gas law is the syringe's, not the flame's.

\[ \begin{align*} n(\mathrm{CaCO_3}) &= \dfrac{m}{M} \\[1.5ex] &= \dfrac{10.\bar{0}~\mathrm{g}}{100.0\bar{9}~\mathrm{g~mol^{-1}}} \\[1.5ex] &= 0.099\bar{9}10~\mathrm{mol} \\[3ex] n(\mathrm{CO_2}) &= n(\mathrm{CaCO_3}) ~ r(\mathrm{CO_2,CaCO_3}) \\[1.5ex] &= 0.099\bar{9}10~\mathrm{mol} \left ( \dfrac{1~\mathrm{mol~CO_2}}{1~\mathrm{mol~CaCO_3}} \right ) \\[1.5ex] &= 0.099\bar{9}10~\mathrm{mol} \\[3ex] pV &= n(\mathrm{CO_2})RT \longrightarrow \\[1.5ex] V &= \dfrac{n(\mathrm{CO_2})RT}{p} \\[1.5ex] &= \dfrac{(0.099\bar{9}10~\mathrm{mol})(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(298.1\bar{5}~\mathrm{K})}{0.98\bar{0}~\mathrm{atm}} \\[1.5ex] &= 2.4\bar{9}43~\mathrm{L} \\[1.5ex] &= 2.49~\mathrm{L} \end{align*} \]

The stoichiometry is 1 : 1, so the moles of CO2 equal the moles of CaCO3. If the problem asked for the volume at STP instead, we could simply multiply the moles by the molar volume (22.711 L mol−1).

Example: Propane burns in oxygen:

\[ \mathrm{C_3H_8(g) + 5~O_2(g) \longrightarrow 3~CO_2(g) + 4~H_2O(g)} \]

What volume (in L) of CO2, measured at 25.00 °C and 1.00 atm, is produced by burning 8.80 g of propane? (M(C3H8) = 44.11 g mol−1)

Example: propane burning, drawn as moleculesTwo boxes of molecules drawn as space-filling atoms: carbon gray, oxygen red, hydrogen white. Before: one propane molecule, C3H8, and five oxygen molecules. After: three carbon dioxide molecules and four water molecules, made from the same atoms. The three carbon atoms, numbered 1 to 3, are in the one propane molecule before and in three different CO2 molecules after, so the amount of CO2 is three times the amount of propane. Below: 8.80 g of propane; the CO2 is measured at 25.00 degrees Celsius and 1.00 atm; its volume is the unknown.beforeafter1 C3H8 + 5 O23 CO2 + 4 H2O123123Step: burn the propane; measure the CO2m(C3H8) = 8.80 gT = 25.00 °C, p = 1.00 atm, for the CO2V(CO2) = ? (unknown)COHCarbons 1, 2 and 3 of the C3H8 end up in three CO2 molecules,so n(CO2) = 3 n(C3H8).

\[ \begin{align*} n(\mathrm{C_3H_8}) &= \dfrac{m}{M} \\[1.5ex] &= \dfrac{8.8\bar{0}~\mathrm{g}}{44.1\bar{1}~\mathrm{g~mol^{-1}}} \\[1.5ex] &= 0.19\bar{9}50~\mathrm{mol} \\[3ex] n(\mathrm{CO_2}) &= n(\mathrm{C_3H_8}) ~ r(\mathrm{CO_2,C_3H_8}) \\[1.5ex] &= 0.19\bar{9}50~\mathrm{mol} \left ( \dfrac{3~\mathrm{mol~CO_2}}{1~\mathrm{mol~C_3H_8}} \right ) \\[1.5ex] &= 0.59\bar{8}50~\mathrm{mol} \\[3ex] pV &= n(\mathrm{CO_2})RT \longrightarrow \\[1.5ex] V &= \dfrac{n(\mathrm{CO_2})RT}{p} \\[1.5ex] &= \dfrac{(0.59\bar{8}50~\mathrm{mol})(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(298.1\bar{5}~\mathrm{K})}{1.0\bar{0}~\mathrm{atm}} \\[1.5ex] &= 14.\bar{6}43~\mathrm{L} \\[1.5ex] &= 14.6~\mathrm{L} \end{align*} \]

The 3 : 1 mole ratio between CO2 and C3H8 triples the moles before converting to volume.

Dalton’s Law of Partial Pressures

In a mixture of non-reacting gases, each gas exerts pressure independently of the others, as if it alone occupied the container. The pressure contributed by one component is its partial pressure. Dalton’s law states that the total pressure equals the sum of the partial pressures:

\[ p_{\mathrm{total}} = p_1 + p_2 + p_3 + \cdots \]

Each partial pressure equals the mole fraction of that gas, xi = ni / ntotal, times the total pressure: pi = xi ptotal. Mole fraction is developed further under concentration units. For dry air at sea level (ptotal ≈ 760 mmHg), the approximate composition by moles is 78 % N2, 21 % O2, and 1 % Ar, so the mole fractions are x(N2) ≈ 0.78, x(O2) ≈ 0.21, and x(Ar) ≈ 0.01:

  • p(N2) ≈ 0.78 × 760 = 593 mmHg
  • p(O2) ≈ 0.21 × 760 = 160 mmHg
  • p(Ar) ≈ 0.01 × 760 = 8 mmHg

The partial pressures add to 761 mmHg, just over the 760 mmHg total because each one was rounded to the nearest mmHg. Dalton’s law applies whenever the gases do not react with each other, which is the case for most gas mixtures at moderate conditions.

Collecting Gas over Water

When a gas is produced in a reaction and collected by displacing water in an inverted container, the collected gas is mixed with water vapor. By Dalton’s law, the total pressure inside the container is the sum of the dry gas pressure and the vapor pressure of water at the collection temperature:

\[ p_{\mathrm{total}} = p_{\mathrm{gas}} + p_{\mathrm{water}} \]

To find the pressure of the dry gas alone:

\[ p_{\mathrm{gas}} = p_{\mathrm{total}} - p_{\mathrm{water}} \]

The vapor pressure of water depends only on temperature. The full reference table runs from the triple point to the critical point; a few common values are:

Use pgas, not ptotal, in the ideal gas law when calculating moles of the collected gas.

Example: Zinc reacts with hydrochloric acid:

\[ \mathrm{Zn(s) + 2~HCl(aq) \longrightarrow ZnCl_2(aq) + H_2(g)} \]

A sample of zinc is dissolved in excess HCl, and the hydrogen gas is collected over water at 25.00 °C. The gas occupies 245 mL at a total pressure of 758 mmHg. What mass (in g) of zinc reacted? (pwater at 25.00 °C = 23.8 mmHg; M(Zn) = 65.38 g mol−1)

\[ \begin{align*} p(\mathrm{H_2}) &= p_{\mathrm{total}} - p_{\mathrm{water}} \\[1.5ex] &= 75\bar{8}~\mathrm{mmHg} - 23.\bar{8}~\mathrm{mmHg} \\[1.5ex] &= 73\bar{4}.2~\mathrm{mmHg} \\[3ex] p(\mathrm{H_2})V &= n(\mathrm{H_2}) RT \longrightarrow \\[1.5ex] n(\mathrm{H_2}) &= \dfrac{p(\mathrm{H_2})V}{RT} \\[1.5ex] &= \dfrac{(73\bar{4}.2~\mathrm{mmHg})(0.24\bar{5}~\mathrm{L})}{(62.3\bar{6}~\mathrm{L~mmHg~mol^{-1}~K^{-1}})(298.1\bar{5}~\mathrm{K})} \\[1.5ex] &= 0.0096\bar{7}47~\mathrm{mol} \\[3ex] n(\mathrm{Zn}) &= n(\mathrm{H_2}) ~ r(\mathrm{Zn,H_2})\\[1.5ex] &= 0.0096\bar{7}47~\mathrm{mol} \left ( \dfrac{1~\mathrm{mol~Zn}}{1~\mathrm{mol~H_2}} \right ) \\[1.5ex] &= 0.0096\bar{7}47~\mathrm{mol} \\[3ex] m(\mathrm{Zn}) &= n(\mathrm{Zn}) ~ M(\mathrm{Zn}) \\[1.5ex] &= (0.0096\bar{7}47~\mathrm{mol})(65.3\bar{8}~\mathrm{g~mol^{-1}}) \\[1.5ex] &= 0.63\bar{2}53~\mathrm{g} \\[1.5ex] &= 0.633~\mathrm{g} \end{align*} \]

The subtraction step is easy to forget. Without it, using 758 mmHg instead of 734 mmHg would overestimate the moles of H2 by about 3 %.

Practice


A gas cylinder contains 2.50 L of gas at 742 mmHg and 22.00 °C. How many moles of gas are in the cylinder?

Solution

\[ \begin{align*} pV &= nRT \longrightarrow \\[1.5ex] n &= \dfrac{pV}{RT} \\[1.5ex] &= \dfrac{(74\bar{2}~\mathrm{mmHg})(2.5\bar{0}~\mathrm{L})}{(62.3\bar{6}~\mathrm{L~mmHg~mol^{-1}~K^{-1}})(295.1\bar{5}~\mathrm{K})} \\[1.5ex] &= 0.10\bar{0}78~\mathrm{mol} \\[1.5ex] &= 0.101~\mathrm{mol} \end{align*} \]

With pressure in mmHg, use R = 62.36 L mmHg mol−1 K−1.

Practice


A gas at 0.00 °C and 1.00 atm has a density of 1.43 g L−1. What is its molar mass (in g mol−1), and what gas is it likely to be?

Solution

\[ \begin{align*} M &= \dfrac{\rho RT}{p} \\[1.5ex] &= \dfrac{(1.4\bar{3}~\mathrm{g~L^{-1}})(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(273.1\bar{5}~\mathrm{K})}{1.0\bar{0}~\mathrm{atm}} \\[1.5ex] &= 32.\bar{0}53~\mathrm{g~mol^{-1}} \\[1.5ex] &= 32.1~\mathrm{g~mol^{-1}} \end{align*} \]

A molar mass of 32.1 g mol−1 matches molecular oxygen (O2, 32.00 g mol−1).

Practice


Hydrogen gas is collected over water at 22.00 °C. The collected volume is 185 mL at a total pressure of 749 mmHg. How many moles of dry H2 were collected? (pwater at 22.00 °C = 19.8 mmHg)

Solution

\[ \begin{align*} p(\mathrm{H_2}) &= p_{\mathrm{total}} - p_{\mathrm{water}} \\[1.5ex] &= 74\bar{9}~\mathrm{mmHg} - 19.\bar{8}~\mathrm{mmHg} \\[1.5ex] &= 72\bar{9}.2~\mathrm{mmHg} \\[3ex] p(\mathrm{H_2})V &= n(\mathrm{H_2}) RT \longrightarrow \\[1.5ex] n(\mathrm{H_2}) &= \dfrac{p(\mathrm{H_2})V}{RT} \\[1.5ex] &= \dfrac{(72\bar{9}.2~\mathrm{mmHg})(0.18\bar{5}~\mathrm{L})}{(62.3\bar{6}~\mathrm{L~mmHg~mol^{-1}~K^{-1}})(295.1\bar{5}~\mathrm{K})} \\[1.5ex] &= 0.0073\bar{2}94~\mathrm{mol} \\[1.5ex] &= 0.00733~\mathrm{mol} \end{align*} \]

Without the subtraction step, using 749 mmHg instead of 729 mmHg would overestimate n by about 3 %.

Practice


Sodium bicarbonate reacts with hydrochloric acid:

\[ \mathrm{NaHCO_3(s) + HCl(aq) \longrightarrow NaCl(aq) + H_2O(l) + CO_2(g)} \]

If 4.20 g of NaHCO3 is dissolved in excess HCl, what volume (in L) of CO2 is produced at 22.00 °C and 755 mmHg? (M(NaHCO3) = 84.01 g mol−1)

Solution

\[ \begin{align*} n(\mathrm{NaHCO_3}) &= \dfrac{m}{M} \\[1.5ex] &= \dfrac{4.2\bar{0}~\mathrm{g}}{84.0\bar{1}~\mathrm{g~mol^{-1}}} \\[1.5ex] &= 0.049\bar{9}94~\mathrm{mol} \\[3ex] n(\mathrm{CO_2}) &= n(\mathrm{NaHCO_3}) ~ r(\mathrm{CO_2,NaHCO_3}) \\[1.5ex] &= 0.049\bar{9}94~\mathrm{mol} \left ( \dfrac{1~\mathrm{mol~CO_2}}{1~\mathrm{mol~NaHCO_3}} \right )\\[1.5ex] &= 0.049\bar{9}94~\mathrm{mol} \\[3ex] pV &= n(\mathrm{CO_2})RT \longrightarrow \\[1.5ex] V &= \dfrac{n(\mathrm{CO_2})RT}{p} \\[1.5ex] &= \dfrac{(0.049\bar{9}94~\mathrm{mol})(62.3\bar{6}~\mathrm{L~mmHg~mol^{-1}~K^{-1}})(295.1\bar{5}~\mathrm{K})}{75\bar{5}~\mathrm{mmHg}} \\[1.5ex] &= 1.2\bar{1}87~\mathrm{L} \\[1.5ex] &= 1.22~\mathrm{L} \end{align*} \]

The stoichiometry is 1 : 1. Using R = 62.36 keeps the pressure in mmHg without an additional conversion step.

Practice


Potassium chlorate decomposes on heating:

\[ \mathrm{2~KClO_3(s) \longrightarrow 2~KCl(s) + 3~O_2(g)} \]

What mass (in g) of KClO3 must decompose to produce 1.50 L of O2 at 25.00 °C and 0.980 atm? (M(KClO3) = 122.55 g mol−1)

Solution

Work backward from volume to mass: find n(O2) from the ideal gas law, then use the 3 : 2 mole ratio.

\[ \begin{align*} pV &= n(\mathrm{O_2})RT \longrightarrow \\[1.5ex] n(\mathrm{O_2}) &= \dfrac{pV}{RT} \\[1.5ex] &= \dfrac{(0.98\bar{0}~\mathrm{atm})(1.5\bar{0}~\mathrm{L})}{(0.0820\bar{6}~\mathrm{L~atm~mol^{-1}~K^{-1}})(298.1\bar{5}~\mathrm{K})} \\[1.5ex] &= 0.060\bar{0}82~\mathrm{mol} \\[3ex] n(\mathrm{KClO_3}) &= n(\mathrm{O_2}) ~ r(\mathrm{KClO_3,O_2})\\[1.5ex] &= 0.060\bar{0}82~\mathrm{mol} \left ( \dfrac{2~\mathrm{mol~KClO_3}}{3~\mathrm{mol~O_2}} \right ) \\[1.5ex] &= 0.040\bar{0}54~\mathrm{mol} \\[3ex] m(\mathrm{KClO_3}) &= n(\mathrm{KClO_3}) ~ M(\mathrm{KClO_3}) \\[1.5ex] &= (0.040\bar{0}54~\mathrm{mol})(122.5\bar{5}~\mathrm{g~mol^{-1}}) \\[1.5ex] &= 4.9\bar{0}86~\mathrm{g} \\[1.5ex] &= 4.91~\mathrm{g} \end{align*} \]

The 2 : 3 ratio means fewer moles of KClO3 are needed than moles of O2 produced.

Practice


A 3.50 g block of dry ice (solid CO2) sublimes completely. What volume (in L) does the CO2 gas occupy at STP? (M(CO2) = 44.01 g mol−1)

Solution

At STP the ideal gas law reduces to V = n Vm, the special case of pV = nRT at 0 °C and 1 bar, where every gas has the same molar volume Vm = 22.711 L mol−1.

\[ \begin{align*} n(\mathrm{CO_2}) &= \dfrac{m}{M} \\[1.5ex] &= \dfrac{3.5\bar{0}~\mathrm{g}}{44.0\bar{1}~\mathrm{g~mol^{-1}}} \\[1.5ex] &= 0.079\bar{5}27~\mathrm{mol} \\[3ex] V &= n(\mathrm{CO_2})~V_{\mathrm{m}} \\[1.5ex] &= (0.079\bar{5}27~\mathrm{mol})(22.71\bar{1}~\mathrm{L~mol^{-1}}) \\[1.5ex] &= 1.8\bar{0}61~\mathrm{L} \\[1.5ex] &= 1.81~\mathrm{L} \end{align*} \]

The shortcut works only at STP. At any other temperature or pressure, evaluate pV = nRT directly.

Practice


An unknown gas has a density of 1.12 g L−1 at 30.00 °C and 755 mmHg. What is its molar mass (in g mol−1), and what gas could it be?

Solution

\[ \begin{align*} M &= \dfrac{\rho RT}{p} \\[1.5ex] &= \dfrac{(1.1\bar{2}~\mathrm{g~L^{-1}})(62.3\bar{6}~\mathrm{L~mmHg~mol^{-1}~K^{-1}})(303.1\bar{5}~\mathrm{K})}{75\bar{5}~\mathrm{mmHg}} \\[1.5ex] &= 28.\bar{0}43~\mathrm{g~mol^{-1}} \\[1.5ex] &= 28.0~\mathrm{g~mol^{-1}} \end{align*} \]

A molar mass of 28.0 g mol−1 matches molecular nitrogen (N2, 28.01 g mol−1) or carbon monoxide (CO, 28.01 g mol−1). Combustion analysis or IR spectroscopy would distinguish them.

Summary

The Ideal Gas Law

\[ pV = nRT \]

p = pressure, V = volume, n = amount of gas (mol), T = absolute temperature (K), R = gas constant. Choose the value of R that matches your units.

Derived Relationships

Molar volume: Vm = RT/p (22.711 L mol−1 at STP; 22.414 L mol−1 at 0 °C and 1 atm)

Gas density: ρ = pM/(RT)

Molar mass from density: M = ρRT/p

Gas stoichiometry: balanced equation → mole ratio → pV = nRT → volume

Dalton’s Law and Gas Collection

ptotal = p1 + p2 + p3 + …

Collecting gas over water: pgas = ptotal − pwater

References

(1)
Jensen, W. B. The Universal Gas Constant R. J. Chem. Educ. 2003, 80 (7), 731–732. https://doi.org/10.1021/ed080p731.