The Ideal Gas Law

Fill a bicycle pump, push the handle, and feel the resistance grow. That resistance is pressure obeying a single compact law. Chemists compress the behavior of any dilute gas into one equation: pV=nRTpV = nRT. It matters because it lets you predict pressure, volume, temperature, or amount from any three of the other variables. This article builds that law from its empirical roots. It shows the derivation, works two full numerical examples, and flags where the law breaks down.

Key takeaways
  • The ideal gas law unifies Boyle's, Charles's, Gay-Lussac's, and Avogadro's laws into pV=nRTpV = nRT.
  • It is an equation of state: it links pp, VV, nn, TT for a hypothetical gas with no intermolecular forces and point-like particles.
  • At standard conditions (273.15 K, 1 bar) one mole of ideal gas occupies 22.71 L; at 1 atm it is 22.41 L.
  • The law is exact only in the zero-pressure, zero-density limit; real gases deviate as pressure rises or temperature falls.
  • Combining two states of the same fixed amount of gas gives the practical combined gas law.
  • Key idea: pressure, volume, temperature, and amount of an ideal gas are locked together by one linear relation, pV=nRTpV = nRT, valid in the low-density limit.
The core insight

The ideal gas law is not a new physical discovery but a unification: it packages Boyle's inverse pressure–volume relation, Charles's direct volume–temperature relation, Gay-Lussac's direct pressure–temperature relation, and Avogadro's amount–volume relation into a single equation of state, pV=nRTpV = nRT, that becomes exact for any real gas in the limit of vanishing pressure.

The physical picture

Picture a mole of gas molecules as tiny, structureless points darting around a container, colliding with the walls and each other but never attracting or sticking together. Each collision with a wall delivers a tiny push; billions of pushes per second, averaged over the wall's area, is what a manometer reads as pressure. If you shrink the container at constant temperature, the same number of collisions happens in less space and less time between hits, so the pressure rises — that is Boyle's law. If you heat the gas at constant volume, the molecules move faster, hit the walls harder and more often, so pressure rises — that is Gay-Lussac's law. If you let the container expand freely at constant pressure while heating, the volume must grow to keep the collision frequency per unit area constant — that is Charles's law. Add more molecules at fixed temperature and pressure, and the container must simply get bigger to keep the crowding, hence the pressure, the same — that is Avogadro's principle. The ideal gas law is the single equation that reproduces all four limiting behaviors simultaneously. It describes a mathematical idealization: a gas of point particles with no intermolecular forces, valid for any real gas at sufficiently low pressure and high temperature, where molecules are far apart and rarely interact.

Figure
Four empirical laws folding into one equation of state
Boyle p ∝ 1/V n, T fixed Charles V ∝ T n, p fixed Gay-Lussac p ∝ T n, V fixed Avogadro V ∝ n p, T fixed pV = nRT ideal-gas equation of state

The equation of state is best visualized as a surface, but a simpler and very common view is a family of isotherms on a pressure–volume plot: at fixed TT and nn, pp traces a hyperbola in VV, and hotter isotherms sit farther from the origin.

Figure
Isotherms of an ideal gas on a p–V plot, n = 1 mol
V / L p / atm 400 K 300 K 200 K 0

The core relations

pV=nRTpV = nRT

where: pp is pressure (Pa), VV is volume (m³), nn is amount of substance (mol), R=8.31446 J K−1mol−1R = 8.31446\ \text{J K}^{-1}\text{mol}^{-1} is the gas constant, and TT is absolute temperature (K).

p=nRTV=ρRTMp = \frac{nRT}{V} = \rho \frac{RT}{M}

where: ρ\rho is mass density and MM is molar mass, useful for gas-density and molar-mass determinations.

p1V1T1=p2V2T2\frac{p_1 V_1}{T_1} = \frac{p_2 V_2}{T_2}

where: the combined gas law, valid for a fixed amount nn of gas moving between two states 1 and 2.

Vm=RTpV_m = \frac{RT}{p}

where: Vm=V/nV_m = V/n is the molar volume; at T=273.15T = 273.15 K and p=1p = 1 bar, Vm=22.71V_m = 22.71 L mol⁻¹ (STP); at p=1p = 1 atm, Vm=22.41V_m = 22.41 L mol⁻¹.

Derivation ABuilding pV = nRT from the four empirical laws

Goal. Show that Boyle's law, Charles's law, Gay-Lussac's law, and Avogadro's principle are all special cases of one equation, pV=nRTpV = nRT, and identify what RR must be.

Step 1: hold nn and TT fixed. Boyle's law states that for a fixed amount of gas at constant temperature,

pV=constant(n,T).pV = \text{constant}(n, T).

This tells us pp and VV multiply to something that can depend only on nn and TT, not on pp or VV themselves.

Step 2: hold nn and pp fixed. Charles's law states that at constant pressure,

VT=constant(n,p).\frac{V}{T} = \text{constant}(n, p).

Volume is directly proportional to absolute temperature. This is the piece that fixes the temperature dependence of the "constant" found in Step 1.

Step 3: hold nn and VV fixed. Gay-Lussac's law states that at constant volume,

pT=constant(n,V).\frac{p}{T} = \text{constant}(n, V).

This is consistent with Step 2 rather than independent of it: combining Steps 1–3 for fixed nn gives

pVT=constant(n).\frac{pV}{T} = \text{constant}(n).

Step 4: vary nn at fixed p,Tp, T. Avogadro's principle states that equal volumes of gas at the same pp and TT contain equal numbers of moles, so V∝nV \propto n at fixed p,Tp, T. Substituting into Step 3's result shows the constant on the right must itself be directly proportional to nn:

pVT=nR\frac{pV}{T} = nR

where RR is a proportionality constant independent of pp, VV, TT, and nn — the same for every ideal gas, because Avogadro's principle guarantees equal molar volumes regardless of chemical identity.

Step 5: identify RR. Rearranging Step 4 and evaluating at any single known state pins down RR numerically. Using the measured molar volume at STP, Vm=22.71×10−3 m3mol−1V_m = 22.71\times10^{-3}\ \text{m}^3\text{mol}^{-1} at T=273.15T = 273.15 K and p=1.000×105p = 1.000\times10^{5} Pa,

R=pVmT=(1.000×105 Pa)(22.71×10−3 m3mol−1)273.15 K=8.314 J K−1mol−1.R = \frac{pV_m}{T} = \frac{(1.000\times10^{5}\ \text{Pa})(22.71\times10^{-3}\ \text{m}^3\text{mol}^{-1})}{273.15\ \text{K}} = 8.314\ \text{J K}^{-1}\text{mol}^{-1}.

Boxed result.

pV=nRT\boxed{pV = nRT}

Worked examples

Example 1 — Foundational: finding pressure of a fixed amount of gas. A rigid 5.00 L steel cylinder holds 0.220 mol of nitrogen gas at 298 K. Find the pressure, assuming ideal behavior. Rearrange the ideal gas law for pressure:

p=nRTV.p = \frac{nRT}{V}.

Convert volume to SI units:

V=5.00 L=5.00×10−3 m3.V = 5.00\ \text{L} = 5.00\times10^{-3}\ \text{m}^3.

Substitute:

p=(0.220 mol)(8.314 J K−1mol−1)(298 K)5.00×10−3 m3.p = \frac{(0.220\ \text{mol})(8.314\ \text{J K}^{-1}\text{mol}^{-1})(298\ \text{K})}{5.00\times10^{-3}\ \text{m}^3}.

Compute the numerator:

(0.220)(8.314)(298)=545.1 J=545.1 Pa ⋅ m3.(0.220)(8.314)(298) = 545.1\ \text{J} = 545.1\ \text{Pa}\,\cdot\,\text{m}^3.

Divide by volume:

p=545.15.00×10−3=1.090×105 Pa=1.09×105 Pa.p = \frac{545.1}{5.00\times10^{-3}} = 1.090\times10^{5}\ \text{Pa} = 1.09\times10^{5}\ \text{Pa}.

Convert to atmospheres for a sanity check:

p=1.090×105 Pa1.013×105 Pa atm−1=1.08 atm.p = \frac{1.090\times10^{5}\ \text{Pa}}{1.013\times10^{5}\ \text{Pa atm}^{-1}} = 1.08\ \text{atm}.

That is a modest overpressure above 1 atm, entirely reasonable for a small amount of gas in a 5 L cylinder near room temperature — the answer passes the sanity check.

Example 2 — Applied: molar mass of an unknown vapor from density. A chemist vaporizes 0.3625 g of an unknown volatile liquid completely in a 250.0 mL flask at 373.0 K, and measures the pressure of the vapor as 1.00 atm (1.013×10⁵ Pa). Find the molar mass, and suggest what the substance might be. Start from the density form of the ideal gas law:

p=mM⋅RTVp = \frac{m}{M}\cdot\frac{RT}{V}

so that

M=mRTpV.M = \frac{mRT}{pV}.

Convert all quantities to SI units:

m=0.3625 g=3.625×10−4 kg,V=250.0 mL=2.500×10−4 m3.m = 0.3625\ \text{g} = 3.625\times10^{-4}\ \text{kg}, \quad V = 250.0\ \text{mL} = 2.500\times10^{-4}\ \text{m}^3.

Substitute into the rearranged law:

M=(3.625×10−4 kg)(8.314 J K−1mol−1)(373.0 K)(1.013×105 Pa)(2.500×10−4 m3).M = \frac{(3.625\times10^{-4}\ \text{kg})(8.314\ \text{J K}^{-1}\text{mol}^{-1})(373.0\ \text{K})}{(1.013\times10^{5}\ \text{Pa})(2.500\times10^{-4}\ \text{m}^3)}.

Compute the numerator:

(3.625×10−4)(8.314)(373.0)=1.1240 kg ⋅ J ⋅ K−1mol−1K (numerically)=1.124 J ⋅ kg⋅units cancel to kg ⋅ mol−1 after full division.(3.625\times10^{-4})(8.314)(373.0) = 1.1240\ \text{kg}\,\cdot\,\text{J}\,\cdot\,\text{K}^{-1}\text{mol}^{-1}\text{K}\ \text{(numerically)} = 1.124\ \text{J}\,\cdot\,\text{kg} \cdot \text{units cancel to kg}\,\cdot\,\text{mol}^{-1}\text{ after full division}.

Compute the denominator:

(1.013×105)(2.500×10−4)=25.33 Pa ⋅ m3=25.33 J.(1.013\times10^{5})(2.500\times10^{-4}) = 25.33\ \text{Pa}\,\cdot\,\text{m}^3 = 25.33\ \text{J}.

Divide:

M=1.12425.33=0.04438 kg mol−1=44.4 g mol−1.M = \frac{1.124}{25.33} = 0.04438\ \text{kg mol}^{-1} = 44.4\ \text{g mol}^{-1}.

A molar mass near 44 g mol⁻¹ is consistent with carbon dioxide (44.01 g mol⁻�1) or propane (44.10 g mol⁻¹); given a volatile liquid vaporizing at 373 K, this points toward a small organic compound like acetaldehyde derivatives or, more simply, confirms the vapor density method used industrially for unknown identification. The number is physically sensible: small, positive, and in the range of common light gases — not an absurd result like a negative or astronomically large mass.

Limiting cases & common traps

SituationWhat happensWhy
p→0p \to 0Ideal gas law becomes exact for any real gasMolecules are far apart; intermolecular forces and molecular volume become negligible
High pressureReal gases deviate; pVm/RT≠1pV_m/RT \neq 1Finite molecular volume and attractive forces matter
Low temperature, near condensationLarge deviations, law fails badlyIntermolecular attractions dominate; gas approaches a phase transition
Fixed nn, comparing two statesUse the combined law, p1V1/T1=p2V2/T2p_1V_1/T_1 = p_2V_2/T_2RR and nn cancel between the two states
Mixing gasesTotal pressure needs Dalton's law of partial pressuresIdeal gas law alone gives total moles, not individual contributions

The chemist behind it

The law's modern algebraic form was assembled in 1834 by Émile Clapeyron, who combined Boyle's and Charles's/Gay-Lussac's laws into a single relation using the newly developed calculus of Carnot's ideal heat engine analysis. Clapeyron's version used a gas-specific constant; it was later generalized with Avogadro's principle so that a single universal constant RR serves every gas, giving the equation the compact, chemically powerful form used today.

Origins · 1 minBenoît Paul Émile Clapeyron and how this was discovered
BP
Benoît Paul Émile Clapeyron
1799–1864 · French engineer who first wrote the combined ideal gas law in analytic form while extending Sadi Carnot's work on heat engines

Ask the tutor: How does the ideal gas law change once we add the van der Waals correction terms for real gases?

Why is R the same number for every gas

Avogadro's principle guarantees that equal volumes of any ideal gas at the same pressure and temperature contain the same number of moles. That means the proportionality constant linking pV/TpV/T to nn cannot depend on molecular identity, mass, or shape — it must be universal. This is precisely why RR, unlike gas-specific constants used in older engineering formulas, works identically for helium, nitrogen, or water vapor, as long as each behaves ideally under the conditions used.

What are the units of R and why do so many versions exist

RR appears in whatever pressure–volume–temperature unit system is convenient: 8.314 J K⁻¹mol⁻¹ in SI, 0.08206 L atm K⁻¹mol⁻¹ for lab-scale gas calculations, or 8.314 kPa L K⁻¹mol⁻¹. All represent the same physical constant; the value changes only because pressure and volume units differ. Always match your RR value's units to the units you're using for pp and VV, or convert first.

Is pV = nRT ever exactly true for a real gas

Strictly, no real gas obeys pV=nRTpV = nRT exactly at any finite pressure, because real molecules have volume and attract each other weakly. However, the law becomes asymptotically exact as pressure approaches zero, since intermolecular separations grow large and interactions become negligible. For many gases near room temperature and 1 atm, deviations are under one percent, which is why the law is such a reliable working approximation.

How does the ideal gas law connect to Dalton's law of partial pressures

When several ideal gases share one container, each behaves as though the others were absent, because ideal molecules do not interact. The ideal gas law applied to the total moles gives total pressure, while applying it to each gas's own moles gives its partial pressure. Dalton's law states these partial pressures sum to the total, a direct consequence of the linearity of pV=nRTpV = nRT in nn.

Why do STP molar volume values differ between 22.41 L and 22.71 L

The discrepancy comes from which pressure standard is used. Older STP defined standard pressure as 1 atm (101.325 kPa), giving 22.41 L mol⁻¹. The current IUPAC-recommended STP uses 1 bar (100 kPa) exactly, giving 22.71 L mol⁻¹. Both use 273.15 K. Always check which convention a problem or textbook uses before quoting molar volume.

Before this

Where this leads