Ideal Gas Law Calculator
Solve PV = nRT for any variable.
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
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?
What value of R does the calculator use?
How many moles are in 22.4 L at 273.15 K and 1 atm?
Do I enter temperature in Celsius?
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 YouTubeCrash Course Chemistry Preview
CrashCourse
Series overview for students using chemistry helpers.
Watch on YouTube
- Chemistry | Khan Academy
Khan Academy
Practice path for stoichiometry and solutions math.
- Periodic Table
Royal Society of Chemistry
Interactive table for element property lookups.