About the Ideal Gas Law Calculator
The ideal gas law links the pressure, volume, amount and temperature of a gas in a single equation. It’s one of the most useful tools in chemistry and physics, and it works well for many real gases at ordinary conditions.
This ideal gas law calculator solves PV = nRT for any one of the four variables. Choose the one to find, enter the other three in the units you prefer, and see the answer with all four values converted to standard units.
How to use the Ideal Gas Law Calculator
- Choose the variable to solve for: pressure, volume, moles or temperature.
- Enter the other three values and pick their units.
- Read the answer in the unit you chose.
- Check the list below to see all four values in common units.
Ideal gas law
- P × V = n × R × T
- R = 0.082057 L·atm/(mol·K) = 8.3145 J/(mol·K)
- T (Kelvin) = °C + 273.15
- 1 atm = 101.325 kPa = 760 mmHg = 1.01325 bar
Temperature must be absolute (Kelvin) in the equation. The calculator converts from °C and °F for you.
Ideal gas law examples
1 mole of an ideal gas at 0 °C (273.15 K) and 1 atm takes up 22.414 L. This is the molar volume at standard temperature and pressure.
At 25 °C (298.15 K) and 1 atm, 1 mole occupies 24.465 L.
2 moles in a 10 L container at 300 K have a pressure of 2 × 8.3145 × 300 ÷ 10 ÷ 1,000 ≈ 498.9 kPa, or 4.92 atm.
When the ideal gas law works
- It works best for gases at low pressure and high temperature, where particles are far apart and interact weakly.
- At high pressures or near the point of condensing, real gases deviate. The van der Waals equation is a better model.
- Always use absolute temperature. Using °C directly gives wrong answers.
- Pressure units matter. Choose the unit that matches the problem so the answer needs no conversion.
Frequently asked questions
What is the ideal gas law formula?
PV = nRT, where P is pressure, V is volume, n is moles, R is the gas constant and T is the absolute temperature.
What value of R should I use?
0.082057 L·atm/(mol·K) when using atm and litres, or 8.3145 J/(mol·K) in SI units. The calculator handles the conversions.
What is the volume of 1 mole of gas at STP?
22.414 litres at 0 °C and 1 atm.
Why do I need to use Kelvin?
The law is based on absolute temperature, where zero means no thermal motion. Celsius and Fahrenheit have arbitrary zeros.
Does the ideal gas law work for liquids and solids?
No. It is a model for gases only.