
Written and maintained by the PhDino author · Last reviewed 21 September 2026 · Checked against 3 independent reference calculations · how PhDino checks its numbers
The relationship between a gas's pressure, volume, amount, and temperature.
The ideal gas law combines several simpler gas relationships (Boyle's, Charles's, and Avogadro's) into one equation that describes an idealized gas well enough for most everyday conditions. It treats gas particles as taking up negligible volume themselves and having no attractive forces between them — an approximation that holds up well at ordinary temperatures and pressures, and breaks down as a gas gets very cold or very compressed.
Because the equation links four quantities, knowing any three lets you solve directly for the fourth — which is the most common way it actually gets used: given how much gas you have and the conditions it's under, what pressure (or volume, or temperature) results.
Émile Clapeyron appears to have been one of the first to put Boyle's law and Gay-Lussac's law into a single equation, in his 1834 memoir on the Carnot cycle: pv = R(267 + t), with t in degrees centigrade. Rudolf Clausius corrected the 267 to 273 in 1850 using Henri Victor Regnault's measurements, and in 1873 his student August Horstmann wrote the law per mole, which made R one constant for every gas.
Sources: Jensen (2003), Journal of Chemical Education
PV = nRT R = 0.08206 L·atm/(mol·K)
Solves the ideal gas law, PV = nRT, for whichever quantity you leave blank or at 0: pressure in atmospheres, volume in litres, amount in moles, or temperature in kelvin. Fill in the other three and the fourth appears.
Use it for everyday gas sums: how much space a gas takes, how much is in a cylinder, how pressure rises as a sealed container warms. Near room temperature and at modest pressures it is accurate enough for most purposes; the reading section says when it is not.
How much space do 0.5 mol of nitrogen, about 14 g, take at an absolute pressure of 2 atm and 27 °C? Leave the volume blank and enter the rest, with the temperature as 300 K.
| You enter | Value |
|---|---|
| Pressure (0 = solve for it) | 2 atm |
| Volume (0 = solve for it) | 0 L |
| Moles (0 = solve for it) | 0.5 mol |
| Temperature (0 = solve for it) | 300 K |
| The calculator returns | Value |
|---|---|
| Pressure | 2.000 atm |
| Volume | 6.15 L |
| Moles | 0.5 mol |
| Temperature | 300.0 K |
Worked by hand:
The nitrogen takes about 6.2 litres. The trap is the pressure: it must be absolute. If 2 atm were what a gauge on the container showed, the absolute pressure would be 3 atm and the same gas would fit in 4.1 litres, a third less. Nitrogen at a few atmospheres and room temperature behaves so nearly ideally that the answer is good to well under one percent.
The ideal gas law treats molecules as points that never attract one another. Air, nitrogen, oxygen, helium and hydrogen near room temperature and up to a few atmospheres come very close to that, which is why the law is the default for everyday gas sums.
22.414 L at 0 °C and 1 atm, and about 24.47 L at 25 °C and 1 atm. Any ideal gas gives the same figure, whatever its molecules.
The law says volume is proportional to temperature at constant pressure, which only holds when temperature is counted from absolute zero. Going from 10 °C to 20 °C is not doubling the temperature but raising it by about 3.5%, from 283.15 K to 293.15 K.
Multiply by the molar mass. Nitrogen, N₂, is 28.01 g per mole, so half a mole is about 14 g.
Not to the ideal gas law: a mole of any ideal gas at the same pressure and temperature fills the same volume. The type matters for the mass, and for how far a real gas strays from ideal.
PhDino earns a commission on qualifying purchases made through this link, at no extra cost to you.
Chemistry: A Very Short Introduction by Peter Atkins — A concise overview of reactions, equilibria, and gases from a leading chemistry author. (Bookshop.org UK, UK delivery only)
→ The full PhDino bookshelf on Bookshop.org (UK delivery only)
