Ideal Gas Law Formula

Relate the pressure, volume, temperature and amount of a gas.

The formula

P × V = n × R × T

Variables and units

SymbolMeaningUnit
Pabsolute pressurePa
Vvolumem³
namount of gasmol
Rmolar gas constant, 8.314462618J/(mol·K)
Tabsolute temperatureK

Other forms of the formula

The same relationship rearranged, so you can solve for whichever quantity is unknown.

  • V = n × R × T ÷ P
  • n = P × V ÷ (R × T)
  • T = P × V ÷ (n × R)

How it works

For a fixed amount of gas, pressure times volume is proportional to absolute temperature. The law is a good approximation for most gases at ordinary pressures and temperatures.

Temperature must be in kelvins and pressure must be absolute. Using Celsius or gauge pressure is the most common cause of wrong answers.

Worked example

What volume does 1 mol of gas occupy at 101,325 Pa and 0 °C?

  1. T = 0 + 273.15 = 273.15 K
  2. V = n × R × T ÷ P
  3. V = 1 × 8.314462618 × 273.15 ÷ 101325
  4. V = 0.022414 m³

22.414 liters, the well-known molar volume at standard conditions.

Common mistakes

  • Using degrees Celsius or Fahrenheit for T.
  • Using gauge pressure. A tire at 220 kPa gauge is at about 321 kPa absolute.

Where it is used

Gas cylinder contents, tire pressure changes with temperature, balloon lift and chemical reaction calculations.

Frequently asked questions

What is the formula for ideal gas law?

P × V = n × R × T. Rearranged to find the other quantities: V = n × R × T ÷ P; n = P × V ÷ (R × T); T = P × V ÷ (n × R).

What do the symbols mean, and which units should I use?

P is absolute pressure (Pa); V is volume (m³); n is amount of gas (mol); R is molar gas constant, 8.314462618 (J/(mol·K)); T is absolute temperature (K). Use consistent units so the answer comes out in the unit you expect.

What are common mistakes with this formula?

Using degrees Celsius or Fahrenheit for T. Using gauge pressure. A tire at 220 kPa gauge is at about 321 kPa absolute.

Where is this formula used?

Gas cylinder contents, tire pressure changes with temperature, balloon lift and chemical reaction calculations.

Is there a worked example?

Yes. What volume does 1 mol of gas occupy at 101,325 Pa and 0 °C? 22.414 liters, the well-known molar volume at standard conditions.