Ideal Gas Law Calculator

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.

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

  1. Type three values you know and choose their units.
  2. Leave the fourth empty; it’s calculated in the unit you selected and highlighted.
  3. 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.

ParameterWhat it sets
pPressure.
puPressure unit: kPa, atm, bar, Pa, psi or mmHg.
vVolume.
vuVolume unit: L, m3, mL or ft3.
nAmount of gas in moles.
tTemperature.
tuTemperature unit: K, C or F.

Example: https://toolabelle.com/ideal-gas-law/#pu=kPa&v=10&vu=L&n=2&t=25&tu=C

Related tools