The Ideal Gas Law
Gases obey one master equation. It unifies three separate rules — Boyle's, Charles's, and Avogadro's Laws. Together they form a single relation among pressure, volume, temperature, and amount of substance. That relation, , lets a chemist predict how a gas will behave. This works under almost any conditions of pressure and temperature. No three different formulas for three different experiments are needed. It is the single most-used equation in introductory gas chemistry. It is also the bridge between the macroscopic world of pressure gauges. That bridge connects to the microscopic world of the Mole Concept. This article builds the ideal gas law from its historical pieces. It calibrates the gas constant . It defines standard conditions and molar volume. It also works through the combined-law reasoning. That reasoning lets you connect two different states of the same gas sample.
- The ideal gas law, , merges Boyle's Law (), Charles's Law (), and Avogadro's Law () into one equation.
- The gas constant (or ) is the universal proportionality constant that makes the equation dimensionally consistent.
- Standard Temperature and Pressure (STP) is defined as (273.15 K) and 1 atm (or 1 bar under the modern IUPAC definition); at STP one mole of ideal gas occupies 22.4 L.
- Temperature in every gas-law calculation must be in kelvin — never Celsius — because the relation depends on absolute temperature.
- The combined gas law, , is just held constant when doesn't change, and it lets you jump between two states without ever computing .
- Key idea: four gas properties—pressure, volume, temperature, amount—are locked together by one constant, R, so fixing any three determines the fourth.
says that the product of pressure and volume, divided by amount and absolute temperature, is always the same number for an ideal gas: it is .
The physical picture
Imagine a rigid sealed cylinder of gas fitted with a movable piston. Squeeze the piston (raise ) and the volume shrinks — that's Boyle's Law. Heat the gas at constant pressure and it expands — that's Charles's Law. Pump in more gas molecules at fixed pressure and temperature and the volume grows in direct proportion to the moles added — that's Avogadro's Law. Each of these was discovered separately, using different apparatus and different gases, over more than a century. The remarkable empirical fact is that all three relationships hold simultaneously, for essentially any gas, as long as the pressure isn't too high and the temperature isn't too low. A gas that obeys all three laws exactly, at all conditions, is called an ideal gas — a useful idealization, much like a frictionless surface in mechanics. Real gases (O₂, N₂, CO₂, He) follow the ideal gas law quite closely near room temperature and atmospheric pressure, which is exactly why the law is so useful in everyday chemistry. The picture to hold in your head: pressure comes from molecules battering the container walls; volume is the space they're free to roam in; temperature is a measure of their average kinetic energy; and moles just count how many molecules are doing the battering. Combine those four measurable quantities and one constant ties them together for every gas, every container, every condition.
The core relations
where:
- = pressure, in atmospheres (atm) or pascals (Pa) — must match the units built into
- = volume, in liters (L) or cubic meters (m³)
- = amount of gas, in moles (mol)
- = the gas constant, or
- = absolute temperature, in kelvin (K) — never Celsius
where:
- subscripts 1 and 2 denote an initial and a final state of the same fixed amount of gas
- this combined form eliminates and entirely, so it's often faster than reusing twice
where:
- is the molar volume of an ideal gas at Standard Temperature and Pressure
- STP (older convention) = 273.15 K and exactly 1 atm; IUPAC's current STP uses 1 bar (100 kPa), giving 22.7 L/mol instead — always check which convention a problem specifies
Goal. Combine Boyle's, Charles's, and Avogadro's Laws into a single equation and show that the proportionality constant is the same for every ideal gas, justifying the universal constant .
Step 1. State the three laws separately. Boyle's Law (constant , ):
Charles's Law (constant , ):
Avogadro's Law (constant , ):
Step 2. Merge the three proportionalities. Since is proportional to , to , and to independently, it must be proportional to their combined product:
Step 3. Insert a single proportionality constant. Call that constant :
Rearranging gives the familiar form:
Step 4. Show is universal by evaluating it from one measured data point. Experimentally, one mole of an ideal gas at and occupies . Substitute:
Step 5. Confirm universality. Repeating this measurement with a completely different gas — helium instead of nitrogen, say — reproduces the same to within experimental precision, provided pressures are modest and temperatures aren't extremely low. This independence from the identity of the gas is precisely what makes a universal constant, and it is the deep reason the ideal gas law works for essentially any gas, not just the one used to calibrate it.
Limiting-case check. If (vanishing amount of gas), the equation gives for fixed — consistent with there being no gas left to exert pressure or occupy volume, which is physically sensible.
Worked examples
Example 1 — Finding pressure from moles, volume, and temperature (asymmetric numbers). A rigid steel tank holds 3.70 mol of nitrogen gas in a volume of 18.5 L at a temperature of 41 °C. Find the pressure inside the tank, in atm.
Step 1. Convert temperature to kelvin.
Step 2. Solve the ideal gas law for pressure.
Step 3. Substitute numbers.
Step 4. Compute the numerator.
Step 5. Divide by volume.
The tank holds nitrogen at roughly 5.15 atm — about five times atmospheric pressure, reasonable for a compressed gas cylinder.
Limiting-case check. If the same amount of gas were instead allowed to expand into a much larger volume (say ) at fixed , the formula predicts , matching the intuition that a fixed number of molecules spread over an enormous volume exert almost no pressure.
Example 2 — Combined gas law across two states (off-round values). A weather balloon contains 12.8 L of helium at 0.950 atm and 22 °C at ground level. It rises to an altitude where the temperature drops to −34 °C and the ambient pressure falls to 0.220 atm. Find the new volume of the balloon, assuming no gas escapes.
Step 1. Convert both temperatures to kelvin.
Step 2. Write the combined gas law and isolate .
Step 3. Substitute the pressure ratio.
Step 4. Substitute the temperature ratio.
Step 5. Multiply everything together.
The balloon expands from 12.8 L to about 44.8 L — nearly a 3.5-fold increase, driven mainly by the large drop in external pressure, only partly offset by the drop in temperature (which alone would have shrunk the balloon).
Limiting-case check. If temperature and pressure changed by identical ratios in the same direction (say both fell by the same factor), the two effects would cancel and would equal — confirming that it is genuinely the relative change in that drives the volume change, not either variable alone.
Limiting cases & common traps
| Situation | What happens | Why |
|---|---|---|
| or (formula breaks down) | Real gases liquefy/solidify long before absolute zero; the ideal gas law is not valid there | |
| fixed, fixed, doubles | doubles | Direct proportionality between and at constant (Gay-Lussac's Law, a special case) |
| Very high pressure | Real gas volume smaller than ideal prediction | Molecules have finite size; intermolecular repulsion becomes significant |
| Very low temperature | Real gas volume smaller than ideal prediction | Attractive forces between molecules become significant, pulling them closer than ideal behavior predicts |
| Using STP = 22.4 L/mol at non-1-atm, non-273 K conditions | Wrong answer | 22.4 L/mol applies only at the specific STP conditions (0 °C, 1 atm) — recompute for any other |
The chemist behind it
The ideal gas law as a combined equation was first written explicitly by the French engineer Émile Clapeyron in 1834, who fused Boyle's Law, Charles's Law (also associated with Gay-Lussac), and the not-yet-formalized Avogadro's Law into one relation while working on the theory of heat engines. Clapeyron's version used a constant he wrote differently, but the structure — pressure times volume proportional to temperature — was already the modern law in disguise. It took decades more for chemists to connect the volume term properly to the mole, following Avogadro's 1811 hypothesis that equal volumes of gas at the same temperature and pressure contain equal numbers of particles — a claim that went largely unappreciated in his own lifetime, in part because Avogadro didn't clearly distinguish atoms from molecules. The now-standard numerical value of emerged from careful nineteenth- and twentieth-century measurements of gas volumes at controlled pressure and temperature, ultimately tied to the same physical constant that appears in the ideal-gas form of the Kinetic Molecular Theory and in Planck's blackbody law (via Boltzmann's constant, ). That shows up in such disparate corners of physics and chemistry is a hint of how deep the underlying idea — energy shared among a huge number of particles — really runs.
Origins · 1 minAmedeo Avogadro and how this was discovered
Avogadro proposed in 1811 that equal volumes of gas at equal temperature and pressure contain equal numbers of molecules, a hypothesis crucial to relating gas volume to the mole. It was largely ignored for nearly fifty years until Stanislao Cannizzaro revived and publicized it at the 1860 Karlsruhe Congress, finally resolving decades of confusion over atomic and molecular weights.
Ask the tutor: If I mix two different ideal gases in the same rigid container, does each gas still obey PV = nRT on its own, and how do their individual pressures add up to the total pressure I measure?
Why does temperature have to be in kelvin, not Celsius?
The ideal gas law is built on absolute temperature, where zero corresponds to the theoretical state of minimum molecular kinetic energy. Celsius has an arbitrary zero point (the freezing point of water), so only holds true when is measured on the absolute (kelvin) scale — plugging in Celsius values introduces a constant offset that breaks every proportionality in the law.
Is 22.4 L/mol always the molar volume of a gas?
No — 22.4 L/mol applies specifically at the older STP definition of 0 °C and exactly 1 atm. At any other combination of temperature and pressure, you must recompute the molar volume using . Also note that IUPAC's current STP definition uses 1 bar rather than 1 atm, giving a molar volume of 22.7 L/mol instead — always check which convention a given source or problem is using.
When should I use PV = nRT versus the combined gas law?
Use whenever you know (or need to find) the actual amount of gas in moles, since only this form contains explicitly. Use the combined law whenever a fixed amount of gas moves between two different states of pressure, volume, and temperature — it saves you from needing or at all, since they cancel out.
Does the ideal gas law work for real gases like oxygen or carbon dioxide?
Reasonably well, under everyday conditions — moderate pressure (around 1 atm) and moderate-to-high temperature (room temperature or above). It breaks down noticeably at high pressure (molecules take up a non-negligible fraction of the container's volume) and at low temperature (intermolecular attractions become significant, especially near a gas's condensation point). More accurate real-gas behavior requires corrections such as the van der Waals equation.
How is the ideal gas law connected to gas density and molar mass?
Because (mass divided by molar mass), substituting into and rearranging gives a direct relationship between a gas's density, its molar mass, and the conditions of pressure and temperature. That relationship — useful for identifying an unknown gas from a simple pressure/temperature/density measurement — is developed fully in Gas Density and Molar Mass.