Skip to content
SoftwareSolutions.net
Calculators & Converters

Gas law calculator

Find the pressure of a gas from its amount, temperature and volume.

Try it

Ready

Inputs

Result

The result appears here as you type.

About Gas law calculator

A gas law calculator uses the ideal gas equation to find the pressure of a gas from its amount, temperature and volume. The equation, PV = nRT, links four quantities: pressure, volume, the amount of gas in moles and the absolute temperature in kelvin. Knowing three of them lets you find the fourth, which is useful in chemistry, diving, cooking and engineering.

The ideal gas law is an approximation. It works well for most gases at room temperature and modest pressures, because the gas molecules are far apart and interact very little. At very high pressure or very low temperature, real gases deviate, and the calculator's answer becomes less accurate.

How to use Gas law calculator

  1. Enter the amount of gas in moles. One mole of an ideal gas occupies about 24.45 litres at 25 °C and 1 atmosphere.
  2. Enter the temperature in kelvin. Add 273.15 to a Celsius figure to convert it.
  3. Enter the volume of the container in litres.
  4. Read the pressure in atmospheres and kilopascals.

Units and conversions

The gas constant used here is 0.082057 litre atmospheres per mole per kelvin. The calculator uses kelvin for temperature because the scale starts at absolute zero, so the figures are always positive. Entering degrees Celsius directly would give wrong answers.

One atmosphere is 101.325 kilopascals, which is the figure most engineering texts use. Gauge pressure, such as the reading on a tyre gauge, is measured above the surrounding air, so add about 1 atmosphere to convert it to absolute pressure.

Practical uses

The same relationship explains why a sealed bottle bulges when it is heated, why a balloon shrinks in a freezer and why a pressure cooker cooks faster. Changing one variable while holding the others steady shows how the gas responds.

Gas mixtures follow the same law if you use the total number of moles. Partial pressures can be found by applying it to each component separately.

Standard conditions

Chemists often quote gas volumes at standard temperature and pressure. Different organisations define those conditions differently, so check which definition a textbook or report uses before comparing volumes from two sources.

For a sealed container, the amount of gas stays the same, so changing the temperature changes the pressure in direct proportion. This is why aerosol cans warn against heating and why tyres feel firmer on a hot day.

Relate the result to everyday experience. A sealed jar placed in a warm oven, or a balloon taken into cold air, shows the same law at work, so the numbers become easier to trust when they match something you can observe.

Frequently asked questions

Why do I need kelvin rather than Celsius?

The gas law depends on absolute temperature. Zero on the Celsius scale is not zero energy, so the formula needs the kelvin scale.

Is this accurate for air in a car tyre?

Roughly, yes, though tyres are pressurised above atmospheric pressure and the gas is at slightly elevated temperature. Use the reading on the gauge for practical checks.

Can I use this for steam?

No. Steam near its boiling point does not behave as an ideal gas. Use steam tables for accurate work.

Related tools

Tools that pair well with this one.