Gases · Physics & Chemistry

Ideal Gas Law Calculator

Solve pressure, volume, amount, or absolute temperature with selectable units that are converted internally to SI.

Formula shown Runs locally Reviewed Aug 11, 2026
Follow us on Google
Equation guide

Ideal gas in SI units and at thermodynamic equilibrium

Equation of state

PV = nRT

Useful rearrangements

P = nRT/VV = nRT/PT = PV/(nR)
Gas-state calculator

Solve PV = nRT

Values and results use up to three decimal places. Calculations are converted internally to SI units.

PV=nRT

The solved gas variable will appear here.

Using the model

Symbols, assumptions and limitations

Interpretation notes

The calculation uses Pa, m³, mol, and K internally with R = 8.314462618 J·mol⁻¹·K⁻¹. Interface choices such as kPa, bar, atm, litres, and degrees Celsius are converted before evaluation; pressure must be absolute and temperature must be above absolute zero.

Worked examples

See the method in practice

01

Room-temperature gas

One mole at 100 kPa and 298.15 K occupies about 0.02479 m³, or 24.79 L.

02

Solving temperature

Rearrange to T = PV/nR when pressure, volume, and amount are known.

Questions

Frequently asked

Why must temperature be in kelvin?

The gas law requires an absolute temperature scale; Celsius cannot be inserted directly.

When does the ideal gas law become inaccurate?

Real gases deviate most at high pressure, low temperature, and near phase changes.

Sources & review

Equations and examples are checked against the references below. Results are educational and should be independently verified for safety-critical work.

OpenStax Chemistry — the ideal gas law

Written by the STEM Hub editorial team · Reviewed August 11, 2026 · Review methodology