Ideal Gas Law Calculator
Calculate gas properties using PV=nRT.
How it works
This calculator solves the ideal gas law, PV = nRT, for pressure, volume, amount or temperature. It works in atmospheres, litres, moles and kelvin.
The ideal gas model treats molecules as points that don't attract each other. It's very good for most gases near room temperature and pressure, and less accurate at high pressure or near the temperature where a gas liquefies.
Worked example: how many moles in a 10 L cylinder?
- The cylinder holds gas at 2.00 atm and 27 °C. Convert the temperature: 27 + 273.15 = 300.15 K, about 300 K.
- At 0 °C and 1 atm, one mole of any ideal gas fills 0.08206 × 273.15 = 22.4 L; at 25 °C it fills 24.5 L.
Always use kelvin
Using Celsius gives wrong answers, and at 0 °C it would make the volume zero. Add 273.15 to a Celsius temperature before entering it.
Match R to your units
R = 0.08206 L·atm/(mol·K) goes with atmospheres and litres. In SI units, R = 8.314 J/(mol·K) with pascals and cubic metres. Mixing them up gives answers that are off by about 100 times.
When it breaks down
At high pressure the molecules' own volume matters, and when cold, attractions between them do. The van der Waals calculator corrects for both; for 1 mol of CO₂ in 1 L at 300 K it gives about 22.4 bar instead of the ideal 24.9.
Common questions
What if I have pressure in kPa?
Divide by 101.325 to get atmospheres. 200 kPa is 1.97 atm; 760 mmHg is 1 atm.
What if the gas changes conditions?
If the amount stays fixed, P₁V₁/T₁ = P₂V₂/T₂. The combined gas law calculator handles that directly.
Does the type of gas matter?
Not in the ideal model: a mole of helium and a mole of CO₂ take up the same volume. The mass differs, so to work from grams, divide by the molar mass first.
Use it with
- Combined Gas Law Calculator: follow a fixed amount of gas through a change
- Van der Waals Calculator: correct for real gas behaviour
- Mass to Moles Converter: convert grams of gas to moles
- Boyle's Law Calculator Calculate pressure-volume relationships
- Charles's Law Calculator Calculate volume-temperature relationships
- Combined Gas Law Calculator Calculate combined gas properties
- Molarity Calculator Calculate molar concentration of solutions
- Dilution Calculator Calculate dilution ratios and concentrations
- Mass to Moles Converter Convert mass to moles using molar mass
- Moles to Mass Converter Convert moles to mass using molar mass
- Percent Composition Calculator Calculate percentage of each element in a compound