Ideal Gas Law Calculator

One mole of gas at 300 kelvin in 24.6 liters is at 1 atmosphere, or 101.4 kilopascals, close to room conditions since a mole of an ideal gas at about 0 degrees Celsius fills 22.4 liters and about 24.5 liters at 25. Raising the temperature or the amount of gas raises the pressure, and increasing the volume lowers it. Use the law to estimate how a tank's pressure changes as it warms.

Ideal Gas Law Calculator: inputs

Calculated result
Pressure (atm)1
Pressure (kPa)101.4

Ideal Gas Law Calculator: Amount of gas (mol) sensitivity

Ideal Gas Law Calculator: Amount of gas (mol) and Pressure (atm)5 calculations vary the “Amount of gas (mol)” input while holding the other entered inputs constant.0.80.8010.90.901111.11.11.21.2

Ideal Gas Law: formula

P = n × R × T ÷ V, with R = 0.082057 L·atm ÷ (mol·K)

OpenStax Chemistry: gas

Enter the amount of gas in moles, the absolute temperature in kelvin and the volume in liters. The pressure is the amount times the gas constant, 0.082057 liter-atmospheres per mole per kelvin, times the temperature, divided by the volume. Convert Celsius to kelvin by adding 273.15.

The result is given in atmospheres and kilopascals.

Ideal Gas Law: worked example

Amount of gas (mol)1
Temperature (K)300
Volume (L)24.6
Pressure (atm)1
Pressure (kPa)101.4

The law is an approximation that works well for gases at moderate pressure and high temperature. Real gases deviate at high pressure and near condensation, where other equations apply. Temperature must be in kelvin.

Gauge pressure differs from absolute pressure by one atmosphere.

Ideal Gas Law: changing Amount of gas (mol)

Amount of gas (mol)Pressure (atm)Pressure (kPa)
0.80.80181.1
0.90.90191.3
1 (example)1101.4
1.11.1111.5
1.21.2121.7

Ideal Gas Law: compare input ranges

InputTested fromToPressure (atm): low inputPressure (atm): high inputSwing
Volume (L)22271.10.9120.207 (21%)
Temperature (K)2703300.9011.10.2 (20%)
Amount of gas (mol)0.91.10.9011.10.2 (20%)

Ideal Gas Law: individual input comparisons

InputValuePressure (atm)Pressure (kPa)
Amount of gas (mol)0.80.80181.1
0.90.90191.3
11101.4
1.11.1111.5
1.21.2121.7
Temperature (K)2400.80181.1
2700.90191.3
3001101.4
3301.1111.5
3601.2121.7
Volume (L)201.2124.7
221.1113.4
250.98599.8
270.91292.4
300.82183.1

Ideal Gas Law: combined input changes

Amount of gas (mol) / Temperature (K)240300360
0.80.640.8010.961
0.90.7210.9011.1
10.80111.2
1.10.8811.11.3
1.20.9611.21.4

Ideal Gas Law: which assumptions move the result?

Ideal Gas Law: Pressure (atm) as Volume (L) changesPressure (atm) starts at 1.2. Moving Volume (L) from 20 to 30 changes it to 0.821, with Amount of gas (mol) 1; Temperature (K) 300 kept fixed.201.2221.1250.985270.912300.821
Chart quantityDisplayed settings
Volume (L)20 → 30
Pressure (atm)1.2 → 0.821
Amount of gas (mol)1
Temperature (K)300
Ideal Gas Law: Pressure (atm) as Temperature (K) changesPressure (atm) starts at 0.801. Moving Temperature (K) from 240 to 360 changes it to 1.2, with Amount of gas (mol) 1; Volume (L) 24.6 kept fixed.2400.8012700.90130013301.13601.2
Chart quantityDisplayed settings
Temperature (K)240 → 360
Pressure (atm)0.801 → 1.2
Amount of gas (mol)1
Volume (L)24.6

Ideal Gas Law: values and definitions

Quantity and definitionValue used
Amount of gas (mol)1
Temperature (K) — Kelvin: add 273.15 to a Celsius reading.300
Volume (L)24.6
Pressure (atm)1
Pressure (kPa)101.4

Ideal Gas Law: half and double Volume (L)

Volume (L)Pressure (atm)
12.32
24.61
49.20.5

Common error: Applying the law to a gas near condensing or at very high pressure. Real gases depart from the ideal formula there, and the result can be well off.

Physics & Mechanics calculators: Gravitational Potential Energy Calculator, Work and Power Calculator, Wavelength and Frequency Calculator, Projectile Motion Calculator, Free Fall Calculator, Centripetal Force Calculator.

Pressure, volume and temperature of a gas are tied together by the amount of gas. Squeeze the same gas into half the space and the pressure doubles. Heat it and the pressure climbs in step with the kelvin temperature, which is why a sealed can is dangerous when it is heated.

Use kelvin, not Celsius. Adding 273.15 to a Celsius reading is the step people skip, and it changes the answer by a large factor.

See the energy on the kinetic energy calculator, the work on the work and power calculator and the temperature on the temperature converter. The pressure and volume converters change units, and the density and molarity calculators cover related chemistry.

Why does the gas law need kelvin?

Because the law depends on absolute temperature, and Celsius or Fahrenheit would give wrong results and even zero or negative pressure.

What is the ideal gas law?

The equation is PV = nRT. Pressure and volume describe the gas state. Amount n counts moles, and temperature T uses an absolute scale.

Choose units consistent with the gas constant R before solving for the missing quantity.

What is the volume of a mole of gas?

At 0°C and one atmosphere, one ideal-gas mole occupies about 22.4 liters. At 25°C and the same pressure, it occupies about 24.5 liters. Temperature matters.

A molar-volume value needs its pressure and temperature conditions attached.