Skip to content

Ideal Gas Law Calculator (PV = nRT)

Any three of pressure, volume, moles and temperature give the fourth.

Type any three of pressure, volume, amount and temperature to get the fourth, in metric or US units, with the gas constant matched to your units and a piston that moves with the numbers.

Solving
24.5
Gas, for its mass and densityNot set

Try

ExampleVolume

24.5L

1.00 atm, 24.5 L, 1.00 mol and 25.0 °C, with R = 0.0820574 atm·L/(mol·K).

Type your own values, or pick what to solve for.

24.5 L at 25.0 °C
Also
6.46 US gal
In kelvin
298.15 K
Molar volume
24.5 L/mol
How this works: 4 sources,

How this works

Method

PV = nRT with R = 8.314 462 618 153 24 J/(mol·K), exact since the 2019 SI (Nₐ × k), solved in exact fractions. Units convert by exact definitions: 1 atm = 101 325 Pa, 1 bar = 100 000 Pa, 1 mmHg = 133.322 387 415 Pa, psi from the international pound and inch, 0 °C = 273.15 K. Gauge psi adds one standard atmosphere. The two-state laws keep P·V/T constant with whatever the law holds fixed left out. Answers round to the significant figures you type, never fewer than three.

How it’s tested

11 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: PV = nRT for any value in metric and US units with gauge pressure, a piston drawing, and Boyle’s, Charles’s, Gay-Lussac’s and the combined gas law.

Every change on What’s new

How we make toolsReport a mistake

Key facts

  • R = 8.314 462 618 J/(mol·K) exactly, the product of the Avogadro and Boltzmann constants fixed in the 2019 SI.
  • One mole of ideal gas fills 22.414 L at 0 °C and 1 atm, and 24.465 L at 25 °C and 1 atm.
  • The standard atmosphere is defined as exactly 101 325 Pa, which is 14.696 psi and 760 mmHg.

Common questions

What is the ideal gas law?

PV = nRT: pressure times volume equals the amount of gas in moles times the gas constant times the absolute temperature. Give any three of P, V, n and T and the fourth follows. It describes real gases well at ordinary pressures and temperatures, and less well when they are squeezed hard or nearly cold enough to condense.

Which value of R should I use?

The one that matches your units: 8.314 J/(mol·K) with pascals and cubic metres, 0.08206 L·atm/(mol·K) with litres and atmospheres, 8.314 L·kPa/(mol·K) with litres and kilopascals. They are the same constant in different units. The tool shows R in the units you picked.

Why does temperature have to be in kelvin?

Because PV is proportional to the temperature measured from absolute zero. Type °C or °F if you like; the tool converts them to kelvin (adding 273.15 to °C) before using the law and converts the answer back.

What is gauge pressure?

Pressure above the surrounding air, which is what tire and scuba gauges show. The gas laws need absolute pressure, so pick “psi (gauge)” and one standard atmosphere, 14.696 psi, is added for you.