The Ideal Gas Law Formula
PV = nRT
Pressure × Volume = moles × Gas constant × Temperature
The Ideal Gas Law is one of the most useful equations in chemistry and physics. It relates the pressure (P), volume (V), amount of substance (n), and absolute temperature (T) of an ideal gas through the gas constant R.
This calculator lets you solve for any one of the four variables while giving you complete freedom over units. All conversions are performed with high precision so you never lose accuracy when switching between atm, kPa, torr, psi, liters, m³, °C, K, etc.
How to use this calculator
- Select which variable you want to solve for (P, V, n, or T).
- Enter the known values and choose the appropriate units.
- The result updates instantly with a full step-by-step solution.
- Use the presets for common conditions (STP, 25 °C, SI units).
Common values of the gas constant R
| Value | Units | Typical use |
|---|---|---|
| 0.082057 | L·atm/(mol·K) | Most chemistry problems |
| 8.3145 | J/(mol·K) | SI / physics |
| 62.364 | L·torr/(mol·K) | When pressure is in torr |
| 0.083145 | L·bar/(mol·K) | When pressure is in bar |
Standard conditions
- STP (Standard Temperature and Pressure): 0 °C (273.15 K) and 1 atm. One mole of ideal gas occupies 22.414 L.
- SATP (Standard Ambient Temperature and Pressure): 25 °C (298.15 K) and 1 bar. Molar volume ≈ 24.79 L.