Part of the Engineering & Mechanics suite · 123 calculators

Ideal Gas Law Calculator

Solve the ideal gas law for pressure, volume, amount or temperature — PV = nRT — with pressure in kPa, volume in litres and temperature in kelvin or Celsius.

Pressure, volume, moles and temperature — give three, get the fourth.

kPa
L
mol
°C or K (see below)
Results update as you type
Results
Result
22.414
Pressure (kPa)
Volume (L)
Amount (mol)
Temperature (K)
Temperature (°C)
Reviewed September 2026. Physics is the same everywhere: SI units in, with imperial equivalents in the results.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About ideal gas law

How the ideal gas law calculator works

The ideal gas law ties together pressure, volume, amount and temperature: PV = nRT, with R = 8.314 J/(mol·K). It holds well for ordinary gases at everyday pressures. Choose the unknown, enter the other three (pressure in kilopascals, volume in litres, temperature in either kelvin or degrees Celsius), and the calculator converts to SI, solves and converts back.

One mole of any gas occupies 22.4 L at 0 °C and 101.325 kPa, and 24.5 L at 25 °C — the numbers chemists memorise.

Formula: P V = n R T (R = 8.314 J/mol·K)

Worked examples

InputsResultNote
1 mol at 0 °C and 101.325 kPa → volume22.41422.41 L — the molar volume at STP
1 mol at 25 °C → volume24.465424.47 L
2 mol in 10 L at 300 K → pressure498.8678498.9 kPa

Frequently asked questions

What is R?

The universal gas constant, 8.314 J/(mol·K). In other units it is 0.08206 L·atm/(mol·K) — the calculator works in SI and converts.

When is a gas not ideal?

At high pressure or near its boiling point, where molecules are close enough to interact. Air at room conditions is within 1% of ideal.

Why must temperature be in kelvin?

Because the law is proportional to absolute temperature. 0 °C is 273.15 K, not zero — halving the Celsius figure does not halve the volume.

How many moles are in a litre of air?

At 25 °C and 1 atm, 1 ÷ 24.47 ≈ 0.041 mol — about 1.2 g.

Where these figures come from

Last checked: September 2026. Constants are the CODATA 2018 values; formulas are the standard textbook forms.