Ideal Gas Law Calculator
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
Fill in three values; leave the one you want empty.
Results
- Pressure
- —
- Volume
- —
- Amount of gas (mol)
- —
- Temperature
- —
PV = nRT, with R = 8.314462618 J/(mol·K). Temperatures are converted to kelvins.
Your input is too long to share as a link, so the page address no longer includes it.
The ideal gas law ties together the pressure, volume, temperature and amount of a gas: PV = nRT. It describes air, nitrogen, helium and most gases well at everyday pressures and temperatures, and is the starting point for chemistry homework, tire and tank pressures, and balloon problems.
How to use it
- Type three values you know and choose their units.
- Leave the fourth empty; it’s calculated in the unit you selected and highlighted.
- Temperatures can be in kelvins, °C or °F; they’re converted to kelvins for the formula.
Examples: 1 mol of gas at 101.325 kPa and 273.15 K takes up 22.414 L (the molar volume at STP). 2 mol in 10 L at 25 °C is at 495.791 kPa.
Questions and answers
Why must the temperature be in kelvins?
The law needs an absolute temperature that is zero when molecules stop moving. Celsius and Fahrenheit have their zero elsewhere, so the calculator converts them first.
When is the ideal gas law inaccurate?
At high pressures and low temperatures, close to where a gas would condense, molecules take up space and attract each other. Real-gas equations such as van der Waals then do better.
Should I use gauge or absolute pressure?
Absolute. A tire gauge shows pressure above the atmosphere; add about 101.3 kPa (14.7 psi) to get the absolute pressure the formula needs.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
p | Pressure. |
pu | Pressure unit: kPa, atm, bar, Pa, psi or mmHg. |
v | Volume. |
vu | Volume unit: L, m3, mL or ft3. |
n | Amount of gas in moles. |
t | Temperature. |
tu | Temperature unit: K, C or F. |
Example: https://toolabelle.com/ideal-gas-law/#pu=kPa&v=10&vu=L&n=2&t=25&tu=C