Ideal Gas Law Calculator Formula
Understand the math behind the ideal gas law calculator. Each variable explained with a worked example.
Formulas Used
Pressure (P)
pressure = (n * 0.08206 * temp) / volumePressure
pressure_kpa = ((n * 0.08206 * temp) / volume) * 101.325Variables
| Variable | Description | Default |
|---|---|---|
n | Amount of Gas (n)(mol) | 1 |
temp | Temperature (T)(K) | 273.15 |
volume | Volume (V)(L) | 22.414 |
How It Works
Ideal Gas Law
Formula
PV = nRT
Solving for P: P = nRT / V
Where:
The ideal gas law assumes no intermolecular forces and negligible molecular volume.
Worked Example
1 mole of gas at 273.15 K (0°C) in 22.414 L.
n = 1temp = 273.15volume = 22.414
- 01P = nRT / V
- 02P = (1)(0.08206)(273.15) / 22.414
- 03P = 22.414 / 22.414
- 04P = 1.000 atm
Ready to run the numbers?
Open Ideal Gas Law Calculator