Gas law

Ideal Gas Law: PV = nRT Explained

Understand the variables, rearrangements, density form, and real-world limits of the ideal gas law.

The ideal gas law is one of the most useful equations in introductory thermodynamics because it links pressure, volume, temperature, and amount of gas in a single compact relationship. Written in its standard form, the equation is PV = nRT. It is simple enough to teach early, but powerful enough to support real engineering estimates when conditions stay near everyday pressures and temperatures.

What each symbol means

  • P: absolute pressure
  • V: volume
  • n: amount of substance in moles
  • R: universal gas constant
  • T: absolute temperature in Kelvin

The equation says that if you know any four of these relationships, you can solve for the fifth. That makes it a foundational tool for gas storage, ventilation, lab planning, and process engineering.

Why absolute pressure and Kelvin matter

The ideal gas law works with absolute quantities. Pressure must be measured relative to vacuum, not relative to local atmosphere. Temperature must be measured from absolute zero in Kelvin, not in raw Celsius. That is why engineering calculators convert user inputs before solving.

For example, 20°C is not used directly in the denominator. It must first become 293.15 K. Likewise, a pressure gauge reading must be converted to absolute pressure before it can be inserted into the law.

Rearranging the ideal gas law

One reason the law is so practical is that it can be rearranged in many useful ways:

  • P = nRT / V for pressure
  • V = nRT / P for volume
  • n = PV / RT for moles
  • T = PV / nR for temperature

Gas density is one of the most common derived forms. Since density is mass divided by volume and mass can be written as n x M, where M is molar mass, substitution gives rho = PM / RT. That is the equation used by the gas density calculator.

What the equation tells you physically

The ideal gas law explains several intuitive effects. Increase pressure while holding temperature constant and the gas becomes denser because more gas is packed into the same space. Increase temperature at constant pressure and the gas becomes less dense because it expands. Increase molar mass and the gas becomes denser because each mole contains more mass.

Those relationships show up everywhere: hot-air balloons rise because heated air is less dense, compressed-gas cylinders store more mass because the gas is denser, and altitude reduces air density because atmospheric pressure drops.

When the ideal gas law works well

The model works best for gases at moderate pressure and temperature, especially when the molecules are small and do not interact strongly. For most atmospheric engineering work, ventilation estimates, classroom problems, and quick process checks, it is accurate enough to be highly useful.

When it starts to fail

The ideal gas law assumes gas molecules have no volume and no intermolecular attraction. Those assumptions break down at high pressure, low temperature near condensation, and for strongly interacting gases such as water vapor or ammonia. In those regimes, real-gas equations of state provide better answers.

As a rule of thumb, once you move into high-pressure cylinder work, supercritical CO2, cryogenic gases, or process conditions near the phase boundary, the ideal model should be treated as a first pass rather than a final answer.

Where to go next

If you want the broader mass-volume relationship first, open the density formula guide. If you want direct numbers for engineering use, go to the gas density calculator. If your problem involves liquids rather than gases, switch to the liquid density calculator.