Ideal Gas Law Calculator

Solve PV = nRT for any variable.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Choose the unknown (pressure, volume, moles or temperature), enter the other three and read the answer. Units are atm, litres, moles and kelvin.

How to use

1
Step 1
Select the variable to solve for.
2
Step 2
Enter the other three in atm, L, mol and K.
3
Step 3
Press Calculate to read the result.

How it works

The ideal gas law treats gas particles as non-interacting points. It works well at low pressure and high temperature. The calculator uses R = 0.082057 L·atm/(mol·K), so pressure must be in atm and temperature in kelvin (add 273.15 to °C).

PV = nRT      R = 0.082057 L·atm·mol⁻¹·K⁻¹

Worked example

Pressure of 2 mol in 10 L at 300 K

Input
Solve P: n = 2 mol, V = 10 L, T = 300 K
Output
P = 4.92342 atm
Walkthrough
P = nRT ÷ V = 2 × 0.082057 × 300 ÷ 10 = 4.923 atm.

Limitations

  • Pressure is atm only; convert kPa by dividing by 101.325.
  • Real gases deviate near condensation or at high pressure.
  • Temperature must be absolute (kelvin).

Questions

What volume does one mole of gas occupy at STP?
22.414 L at 273.15 K and 1 atm.
What value of R does the calculator use?
0.082057 L·atm/(mol·K).
How many moles are in 22.4 L at 273.15 K and 1 atm?
0.9994 mol, a touch under 1 because 22.4 is rounded from 22.414.
Do I enter temperature in Celsius?
No. Convert to kelvin first by adding 273.15.

Features

  • Solve for any variable
  • Uses the standard gas constant
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • The Periodic Table: Crash Course Chemistry #4

    CrashCourse

    Periodic table context for element and molar mass tools.

    Watch on YouTube
  • Crash Course Chemistry Preview

    CrashCourse

    Series overview for students using chemistry helpers.

    Watch on YouTube