Kades PhysicsEveryday physics, calculated properly

All guides

The Ideal Gas Law: Four Variables, One Equation

Three laws folded into one

The ideal gas law, P V = n R T, compresses three older experimental laws into a single statement. Boyle's law holds pressure inversely proportional to volume at fixed temperature. Charles's law holds volume proportional to temperature at fixed pressure. Avogadro added that equal volumes of gas at the same conditions hold equal numbers of molecules. Fold them together and one equation links the four state variables of a gas: pressure, volume, amount in moles, and temperature in kelvin, with R, the gas constant 8.314 joules per mole per kelvin, as the price of the fold. The ideal gas calculator on this site solves for any one of the four. The word ideal is a disclaimer: the law models a gas of point particles with no forces between them, which real gases imitate well at ordinary pressures and temperatures and abandon under compression or near condensation.

Why Kelvin is non-negotiable

Every proportionality in the gas laws runs from absolute zero, so temperatures must be in kelvin before they enter the equation. Using Celsius quietly breaks the mathematics: doubling from 20 to 40 degrees Celsius is not a doubling of temperature in any physical sense, while 293 to 313 kelvin is the honest, modest rise it represents. The most common ideal gas error in examinations is exactly this, a Celsius temperature marched straight into the formula. The second most common is unit drift: pressure in pascals, volume in cubic metres, amount in moles and temperature in kelvin produce consistent answers; swap in litres or atmospheres and the constant R must change its form to match. Professionals pick one consistent set and convert everything into it before touching the algebra, a habit the temperature converter exists to support.

What the law lets you do

With the law in hand, invisible quantities become measurable. Weigh a gas cylinder before and after filling and the law turns pressure and volume readings into moles and mass. A weather balloon's expansion as it climbs into thinner, colder air follows from the same four variables trading against each other. Chemists predict how much gas a reaction will release; engineers size pressure vessels; divers calculate how long a tank lasts at depth, where each breath draws gas at the ambient pressure. The law also explains its own failures usefully: measure a real gas carefully at high pressure and its deviation from P V = n R T maps the size and stickiness of its molecules, the very properties the ideal model pretended away. A model whose failures are this informative has earned its place at the centre of the subject.

Try it: Ideal Gas Law Calculator

Pressure, volume, amount and temperature of a gas are bound together by the ideal gas law. Choose which value to solve for and enter the other three.

Open the calculator