Ideal Gas Law Calculator
Solve the ideal gas law, PV = nRT, for pressure, volume, moles or temperature.
Formula: pressure × volume = amount × gas constant × temperature (PV = nRT), with R = 8.314 J/(mol·K). Temperature must be in kelvin.
How to use the ideal gas law calculator
- Choose what to solve for in the “Solve for” box — Pressure, Volume, Amount or Temperature.
- Enter the three values you know, in pascals, cubic metres, moles and kelvin.
- Press “Calculate” to see the answer with the working shown.
Ideal gas law calculation example
One mole of gas at 0 °C (273.15 K) and 1 atm (101,325 Pa) occupies V = nRT ÷ P = 1 × 8.314 × 273.15 ÷ 101,325 ≈ 0.0224 m³ = 22.4 L — the molar volume at STP.
Tips for using the ideal gas law calculator
- Use SI units throughout: pascals, cubic metres, kelvin. 1 L = 0.001 m³.
- Real gases deviate at high pressure and low temperature.
- At room temperature (25 °C) one mole occupies about 24.5 L.
Ideal gas law calculator: common questions
- What is the ideal gas constant R?
- 8.314 J/(mol·K). It links pressure, volume, amount and temperature in the ideal gas law.
- How do I convert Celsius to kelvin?
- Add 273.15. So 0 °C is 273.15 K and 25 °C is 298.15 K. Always use kelvin in this formula.
- When does the ideal gas law break down?
- At very high pressure or very low temperature, real gases stop behaving ideally and the result becomes an approximation.
- Is my data stored?
- No. The calculation runs in your browser.
- How many moles of air are in a room?
- A 4 × 5 × 3 m room holds 60 m³; at 25 °C and 1 atm that is about 60 ÷ 0.0245 ≈ 2,450 mol.