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: . 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.
- The ideal gas law unifies Boyle's, Charles's, Gay-Lussac's, and Avogadro's laws into .
- It is an equation of state: it links , , , 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, , valid in the low-density limit.
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, , 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.
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 and , traces a hyperbola in , and hotter isotherms sit farther from the origin.
The core relations
where: is pressure (Pa), is volume (m³), is amount of substance (mol), is the gas constant, and is absolute temperature (K).
where: is mass density and is molar mass, useful for gas-density and molar-mass determinations.
where: the combined gas law, valid for a fixed amount of gas moving between two states 1 and 2.
where: is the molar volume; at K and bar, L mol⁻¹ (STP); at atm, L mol⁻¹.
Goal. Show that Boyle's law, Charles's law, Gay-Lussac's law, and Avogadro's principle are all special cases of one equation, , and identify what must be.
Step 1: hold and fixed. Boyle's law states that for a fixed amount of gas at constant temperature,
This tells us and multiply to something that can depend only on and , not on or themselves.
Step 2: hold and fixed. Charles's law states that at constant pressure,
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 and fixed. Gay-Lussac's law states that at constant volume,
This is consistent with Step 2 rather than independent of it: combining Steps 1–3 for fixed gives
Step 4: vary at fixed . Avogadro's principle states that equal volumes of gas at the same and contain equal numbers of moles, so at fixed . Substituting into Step 3's result shows the constant on the right must itself be directly proportional to :
where is a proportionality constant independent of , , , and — the same for every ideal gas, because Avogadro's principle guarantees equal molar volumes regardless of chemical identity.
Step 5: identify . Rearranging Step 4 and evaluating at any single known state pins down numerically. Using the measured molar volume at STP, at K and Pa,
Boxed result.
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:
Convert volume to SI units:
Substitute:
Compute the numerator:
Divide by volume:
Convert to atmospheres for a sanity check:
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:
so that
Convert all quantities to SI units:
Substitute into the rearranged law:
Compute the numerator:
Compute the denominator:
Divide:
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
| Situation | What happens | Why |
|---|---|---|
| Ideal gas law becomes exact for any real gas | Molecules are far apart; intermolecular forces and molecular volume become negligible | |
| High pressure | Real gases deviate; | Finite molecular volume and attractive forces matter |
| Low temperature, near condensation | Large deviations, law fails badly | Intermolecular attractions dominate; gas approaches a phase transition |
| Fixed , comparing two states | Use the combined law, | and cancel between the two states |
| Mixing gases | Total pressure needs Dalton's law of partial pressures | Ideal 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 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
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 to cannot depend on molecular identity, mass, or shape — it must be universal. This is precisely why , 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
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 value's units to the units you're using for and , or convert first.
Is pV = nRT ever exactly true for a real gas
Strictly, no real gas obeys 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 in .
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.