Science & Physics

The Ideal Gas Law: What PV = nRT Actually Tells You

October 8, 2026
6 min read

The short version

  • PV = nRT links a gas's pressure, volume, amount, and temperature in one equation.
  • Change one, and another must respond — squeeze the volume and pressure rises; heat it and pressure or volume grows.
  • Temperature must be in kelvin, because the law is built around absolute zero.
  • It's an approximation that works beautifully at everyday conditions and drifts at extremes.
  • To solve for any one of P, V, n, or T, use the Ideal Gas Law Calculator.

Four properties, one tidy sentence

Gases feel formless and unpredictable, but their bulk behaviour is governed by a single, remarkably compact rule — the ideal gas law:

PV = nRT

It ties together the four things you can measure about a gas: its pressure (P), the volume it occupies (V), the amount of it in moles (n), and its temperature (T), connected by a fixed number called the gas constant (R). The deep message is that these quantities aren't independent. You can't change one in isolation — nudge the temperature and either the pressure or the volume has to give. That interdependence explains a surprising amount of everyday life.

Reading the equation as a set of trade-offs

You don't need to memorise it as a formula so much as understand the trade-offs it enforces, holding the others steady:

  • Squeeze the volume down → pressure goes up. (A bicycle pump: push the plunger, the trapped air pushes back harder.)
  • Heat the gas → pressure rises, or it expands. (A sealed can thrown on a fire is dangerous for exactly this reason.)
  • Add more gas → pressure rises. (Pumping more air into a fixed tyre.)

Each of these is one slice of PV = nRT with the other variables fixed — the historical "gas laws" of Boyle, Charles, and Avogadro, which this single equation unifies. If you want to put numbers to any of these scenarios, the Ideal Gas Law Calculator solves for whichever variable you leave blank.

Why your tyres (and crisp packets) misbehave

Two everyday mysteries fall straight out of the equation.

Hot tyres read higher. Drive on the motorway and friction heats your tyres and the air sealed inside. The volume is essentially fixed by the tyre itself, so with T rising and V fixed, P must rise — your gauge reads several psi above the cold value. This is precisely why manufacturers specify checking pressures cold; a hot reading flatters the true setting.

Crisp packets puff on a plane. A sealed bag is packed at ground-level air pressure. As the cabin climbs and the surrounding pressure drops, the trapped gas expands to push back out — and the bag balloons. Same gas, same temperature, lower external pressure, bigger volume.

The kelvin rule you can't skip

The single most common mistake with gas calculations is using the wrong temperature scale. Temperature must be in kelvin.

The reason is that the ideal gas law is anchored to absolute zero — the temperature at which particle motion stops. The kelvin scale begins there, so doubling the kelvin temperature genuinely doubles the thermal energy, and the proportionality in PV = nRT holds. Celsius, by contrast, puts its zero at the freezing point of water, an arbitrary choice as far as gas physics is concerned. Plug in Celsius and you can get nonsense — even negative "pressures." The fix is simple: kelvin = Celsius + 273.15, a conversion the calculator handles for you so the mistake can't creep in.

What the gas constant R is doing there

R, the gas constant, is the fudge-free proportionality factor that makes both sides of the equation balance — about 8.314 joules per mole per kelvin in SI units. You can think of it as the stitching that joins the separate gas laws into one. Its numerical value depends on the units you choose for pressure and volume (there's a different-looking version for atmospheres and litres), which is exactly why working in consistent SI units — or letting a tool convert — avoids a lot of grief.

"Ideal" is an approximation — a very good one

The law is called ideal because it assumes two things that aren't strictly true: that gas particles take up no space themselves, and that they don't attract one another. At ordinary temperatures and pressures these assumptions are close enough that the law is accurate to within a per cent or two for most gases.

Push to extremes and the cracks show. At very high pressure, particles are crammed close enough that their own volume matters. At very low temperature, near the point of condensing into a liquid, their mutual attractions matter. In those regimes chemists reach for refinements like the van der Waals equation. For everything from inflating a tyre to a school chemistry problem, though, PV = nRT is all you need.

Running the numbers

Fill in any three of pressure, volume, amount, and temperature in the Ideal Gas Law Calculator and it returns the fourth, converting units and kelvin automatically. If you're working out the amount of a substance first, the Molar Mass Calculator gets you from grams to moles.

Sources

  1. Clapeyron, Benoît. Early combined statement of the gas laws (1834); building on Boyle, Charles, Gay-Lussac, and Avogadro.
  2. International Union of Pure and Applied Chemistry (IUPAC). Value of the molar gas constant R.
  3. National Institute of Standards and Technology (NIST). CODATA recommended value of the gas constant.

This article is for general educational purposes and is not safety advice for handling pressurised gases.

TA

Written by

Tufail Ahmed

Computer Scientist

Tufail builds CalcPool's calculators and writes the research behind them, turning documented formulas and primary sources into tools and explainers you can actually use.

Reviewed by Khizar Nadim · Technical Reviewer