Solve PV = nRT for any variable: pressure, volume, temperature, or moles of an ideal gas.
How to Use This Ideal Gas Law Calculator
Enter any three of: pressure (P), volume (V), moles (n), or temperature (T). The calculator solves for the fourth using the ideal gas law.
Formula & How It Works
PV = nRT, where R = 8.314 J/(mol·K) = 0.0821 L·atm/(mol·K). At STP (0°C, 1 atm): 1 mole of gas = 22.4 liters.
Calculation Example
2 moles of gas at 300 K and 1 atm: V = nRT/P = 2 × 0.0821 × 300 / 1 = 49.26 liters.
Expert Tips
The ideal gas law works best at high temperatures and low pressures. Real gases deviate at high pressure and low temperature. Always convert temperature to Kelvin (K = °C + 273.15). Match your units to the R constant you use.