Ideal Gas Law Calculator
Enter any three of pressure, volume, amount of gas and temperature to find the fourth.
How to use the Ideal Gas Law Calculator
- Choose the solve for.
- Enter the pressure and pick its unit.
- Enter the volume and pick its unit.
- Enter the amount of gas.
- Enter the temperature and pick its unit.
- Press Calculate. The result updates automatically as you type, and you can switch the result unit at any time.
About the Ideal Gas Law Calculator
The ideal gas law combines Boyle's, Charles's and Avogadro's laws into one equation that predicts how a gas responds to changes in pressure, volume, temperature and amount. It is accurate to within a few percent for most gases near room temperature and atmospheric pressure, which covers balloons, tire inflation, lab gas collection and many engineering estimates.
Two details trip people up. First, temperature must be absolute, so the calculator converts °C and °F to kelvin automatically. Second, pressure must be absolute, not gauge: a tire gauge reading of 32 psi is about 46.7 psi absolute at sea level. At high pressures or very low temperatures, real gases deviate from ideal behavior and an equation of state such as van der Waals is more accurate.
Formula
P × V = n × R × T
P is absolute pressure, V volume, n moles of gas, T absolute temperature in kelvin (K = °C + 273.15) and R the gas constant: 8.314 J/(mol·K) = 0.082057 L·atm/(mol·K). Example: 1 mol at 0 °C and 1 atm occupies 1 × 0.082057 × 273.15 ÷ 1 ≈ 22.41 L.
Example calculation
Using the default values:
- Solve for = Volume (V)
- Pressure = 1 atm
- Amount of gas = 1 mol
- Temperature = 0 °C
the calculator returns:
- Volume: 22.414 L
- Temperature in kelvin: 273.15 K
Frequently asked questions
What is the volume of one mole of gas at STP?
About 22.414 L at 0 °C and 1 atm, or 22.711 L at the current IUPAC standard of 0 °C and 100 kPa.
Which value of R should I use?
Use the one that matches your units: 8.314 J/(mol·K) with Pa and m³, or 0.08206 L·atm/(mol·K) with liters and atmospheres. This calculator handles units for you.
Why must temperature be in kelvin?
The law relies on temperature being proportional to molecular kinetic energy, which is zero at absolute zero. Celsius and Fahrenheit have arbitrary zero points.
Last updated: · Category: Science calculators