Ideal Gas Law Calculator (PV = nRT)

Enter any three of pressure, volume, amount of gas and temperature, and this calculator returns the fourth using PV = nRT. It handles the units chemistry actually uses — atmospheres, bar, kilopascals, mmHg and psi for pressure, litres or cubic metres for volume, and kelvin, Celsius or Fahrenheit for...

PV = nRT

Three values entered — solving for volume.

solved: 24.4654 L

= 298.15 K — the equation always uses the absolute scale

COMMON SITUATIONS

VOLUME

24.4654 L

MOLAR VOLUME

24.465 L/mol

MOLECULES

6.022e+23

AT STP THIS IS

22.711 L

Pressure

101.325 kPa

In atmospheres

1.0000 atm

Volume

24.4654 L

Amount

1.00000 mol

Temperature

298.15 K

In Celsius

25.00 °C

STEPS

1

Convert to SI: P = 101,325.00 Pa, V = 0.024465 m³, T = 298.15 K.

2

R is exactly 8.31446261815324 J/(mol·K) — the product of Avogadro's constant and the Boltzmann constant, both fixed by definition.

3

V = nRT / P = 1.00000 × 8.3145 × 298.15 ÷ 101,325.00 = 0.024465 m³

WHERE PRESSURE COMES FROM

MORE PARTICLES, FASTER PARTICLES OR A SMALLER BOX — ALL RAISE THE PRESSURE24.47 LAMOUNT n1.000 mol20 particles shownVOLUME V24.47 Lbox size (log scale)TEMPERATURE T298.15 Kparticle speedPRESSURE P101.33 kPathe resulteach particle ≈ 0.050 mol · speeds spread about √T

Pressure is not an input, it is a consequence. Gas particles push on the walls by colliding with them, so anything that makes collisions more frequent or more forceful raises the pressure — more particles, a hotter gas, or a smaller container. Particle speed here follows √T, which is the real relationship: quadruple the temperature and the particles move twice as fast.

PRESSURE AGAINST VOLUME AT THIS AMOUNT AND TEMPERATURE — BOYLE'S LAW0.01923840.02754VOLUME (L) · PRESSURE (kPa) — halve the volume and the pressure doubles

MOLAR VOLUME AT STANDARD CONDITIONS

IUPAC STP · 0 °C, 100 kPa

22.711 L/mol

Classic STP · 0 °C, 1 atm

22.414 L/mol

SATP · 25 °C, 100 kPa

24.790 L/mol

Yours

24.465 L/mol

The familiar 22.4 L/mol is the older standard, at one atmosphere. IUPAC moved to 100 kPa in 1982, which gives 22.711 L/mol — so textbooks and exam boards do not always agree on which figure to use.

HOW HIGH A PRESSURE IS THAT?

Everest summit~0.33 atmSea level1 atmCar tyre32 psi gaugeEspresso machine9 barScuba tank200 barMariana Trench~1,072 atmYOURS1.000 atmlogarithmic · range adjusts to always include your value

Ideal, not real. This model assumes particles have no volume of their own and do not attract one another. That holds well at ordinary pressures and temperatures, and breaks down when a gas is compressed hard or cooled towards its condensation point — which is exactly when it stops behaving like a gas.

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Enter any three of the four boxes — pressure, volume, amount of gas in moles, and temperature. Known values get a solid black border; the one you leave blank is outlined in gold and fills in automatically.

  2. 2

    Pick units beside each field. Pressure in Pa, kPa, bar, atm, mmHg or psi; volume in litres, millilitres or cubic metres; amount in moles; temperature in kelvin, Celsius or Fahrenheit.

  3. 3

    If you enter a temperature in Celsius or Fahrenheit, check the small grey line beneath it — that shows the kelvin value the equation is actually using. Temperature is where most errors in this topic come from.

  4. 4

    Watch the simulation to see why pressure behaves as it does. Change the amount, the volume or the temperature and the particle count, box size and particle speed respond — pressure is the result of all three, not an independent input.

THE FORMULAS

Ideal gas lawPV = nRT
Solve for pressureP = nRT / V
Solve for volumeV = nRT / P
Solve for amountn = PV / RT
Solve for temperatureT = PV / nR
Gas constantR = 8.31446261815324 J/(mol·K)
Combined gas lawP₁V₁/T₁ = P₂V₂/T₂
MoleculesN = n × 6.02214076 × 10²³

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE CHEMISTRY CALCULATORS

Was this calculator helpful?

Last updated: July 29, 2026 · R exact per SI · Eagle-eyed accuracy for every calculation.