Skip to main content

Ideal Gas Law Explained

By the Periodixy Editorial Team · Last reviewed July 10, 2026

The ideal gas law, PV = nRT, packs four properties of a gas — pressure, volume, amount and temperature — into one equation. Know any three and the fourth follows. It works because gases, unlike solids and liquids, behave remarkably alike regardless of what molecules they contain.

Balloons filled with gas, illustrating gas pressure and volume
Photo by Vladimir Srajber on Pexels

Meet the variables

SymbolMeaningCommon unit
Ppressureatm (or kPa, torr)
VvolumeL
namount of gasmol
Rgas constant0.0821 L·atm/mol·K
TtemperatureK — always kelvin
⚠ Common mistake: Temperature must be in kelvin: K = °C + 273.15. Celsius (or worse, Fahrenheit) in PV = nRT is the single most common gas-law mistake.

R changes numeric value with your pressure unit: 0.0821 for atm, 8.314 for kPa, 62.4 for torr. Pick the R that matches your units and everything cancels cleanly.

Worked examples

Finding a volume

What volume does 0.50 mol of gas occupy at 25 °C and 1.0 atm?

  1. Convert temperature: 25 + 273.15 = 298 K.
  2. V = nRT ÷ P = (0.50 × 0.0821 × 298) ÷ 1.0

Answer: ≈ 12.2 L

Finding moles (and then grams)

A 5.0 L tank holds gas at 3.0 atm and 300 K. How many moles is that?

  1. n = PV ÷ RT = (3.0 × 5.0) ÷ (0.0821 × 300)

Answer: ≈ 0.61 mol. Multiply by molar mass to get grams if needed.

💡 Tip: Landmark number: at STP (0 °C, 1 atm), one mole of any ideal gas occupies 22.4 L — a great sanity check for answers.

Where does the law come from?

PV = nRT merges three older laws: Boyle's (P and V inverse at fixed T), Charles's (V grows with T at fixed P) and Avogadro's (V grows with n). Each is a slice of the ideal gas law with something held constant.

When “ideal” fails

The law assumes gas molecules have zero size and no attraction to each other. That approximation cracks at high pressure (molecules crowd) and low temperature (attractions matter — gases eventually condense). For everyday classroom conditions near room temperature and one atmosphere, the ideal gas law is accurate to about 1%.

Solve any arrangement of PV = nRT — with automatic unit conversion — in the Ideal Gas Law Calculator.

Summary

  • PV = nRT connects pressure, volume, moles and temperature.
  • Match R to your pressure unit; temperature is always kelvin.
  • 1 mol of ideal gas ≈ 22.4 L at STP.
  • The law weakens at high pressure and low temperature.

Frequently asked questions

What is STP?

Standard temperature and pressure: 0 °C (273.15 K) and 1 atm in the classic convention. One mole of ideal gas occupies 22.4 L there. (IUPAC's newer definition uses 100 kPa, giving 22.7 L.)

Does the ideal gas law work for all gases?

It approximates all gases well at moderate conditions. Small nonpolar molecules (He, N₂) behave most ideally; large or polar molecules (water vapour) deviate sooner.

Why must temperature be in kelvin?

Kelvin starts at absolute zero, making temperature proportional to molecular kinetic energy. Celsius has an arbitrary zero, which would break the proportionality the law depends on.

Practise with these tools

Related study guides