Ideal Gas Law Calculator (PV = nRT)

The ideal gas law PV = nRT links the pressure, volume, amount and temperature of a gas. One mole of gas at 273.15 K and 101.325 kPa occupies 22.414 litres, while at 298.15 K (25 °C) it occupies 24.465 litres.

Last updated · By · Runs in your browser, nothing is uploaded

mol
Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is the Ideal Gas Law?

The ideal gas law is a single equation that describes how a gas behaves when you change its pressure, volume or temperature. It combines three older laws: Boyle’s law (pressure and volume are inversely related at constant temperature), Charles’s law (volume rises with temperature at constant pressure) and Avogadro’s law (equal volumes of gases at the same conditions hold equal numbers of molecules).

It is called “ideal” because it assumes gas molecules are points that do not attract or repel each other. Real gases at everyday pressures and temperatures behave very close to this ideal, which makes PV = nRT one of the most useful equations in chemistry and physics: it tells you how much gas is in a tank, how a balloon expands as it rises, or how a tyre’s pressure changes on a hot day.

Molar Volume of a Gas

ConditionsTemperaturePressureVolume of 1 mol
STP (standard temperature and pressure)273.15 K (0 °C)101.325 kPa22.414 L
Room temperature298.15 K (25 °C)101.325 kPa24.465 L
Body temperature310.15 K (37 °C)101.325 kPa25.45 L

Ideal Gas Law Formula

P V = n R T R = 8.314 J/(mol·K) = 8.314 L·kPa/(mol·K) = 0.08206 L·atm/(mol·K) P = nRT ÷ V V = nRT ÷ P n = PV ÷ RT T = PV ÷ nR
  • P is the pressure. This calculator uses kilopascals (kPa). 101.325 kPa = 1 atm = 760 mmHg.
  • V is the volume in litres.
  • n is the amount of gas in moles.
  • T is the temperature in kelvin. Add 273.15 to a Celsius temperature.
  • R is the universal gas constant. Its numerical value depends on the units used for P and V, so with kPa and litres it is 8.314.

To turn a mass of gas into moles, divide by the molar mass, which you can find with the molar mass calculator.

How Is It Calculated? Worked Examples

Volume of 1 Mole at STP

  1. Given P = 101.325 kPa, n = 1 mol and T = 273.15 K.
  2. V = nRT ÷ P = 1 × 8.314 × 273.15 ÷ 101.325.
  3. V = 22.41 L.

Pressure of 2 Moles in a 10 L Tank at 300 K

  1. P = nRT ÷ V = 2 × 8.314 × 300 ÷ 10.
  2. P = 498.9 kPa, which is 4.92 atm.

Molar Volume at Room Temperature

At 298.15 K and 101.325 kPa, V = 8.314 × 298.15 ÷ 101.325 = 24.47 L per mole. That is why 24 L is the commonly used molar volume at “room conditions”.

Scuba Diving and Boyle’s Law

At 10 m depth the absolute pressure is about 2 atm, twice the surface value. A diver’s lungful of air at constant temperature would shrink to half its volume, which is why divers must never hold their breath while ascending: the air in the lungs expands as pressure falls.

How Many Moles Are in a Breath?

A 1 L breath of air at 101.325 kPa and 310.15 K contains n = PV ÷ RT = 101.325 × 1 ÷ (8.314 × 310.15) = 0.0393 mol, about 39 millimoles of gas.

How to Use This Ideal Gas Law Calculator

  1. Choose which quantity to find: pressure, volume, moles or temperature.
  2. Enter the other three values in the units shown: kPa, litres, moles and kelvin.
  3. Read the result, with the pressure also given in atmospheres.

Always convert Celsius to kelvin first: 25 °C is 298.15 K. Leave the field being solved for at any value, since it is ignored.

Where the Ideal Gas Law Is Used

  • Chemistry labs: calculating the amount of gas produced in a reaction.
  • Engineering: sizing gas cylinders, compressors and pipelines.
  • Weather and atmosphere: air density and pressure changes with altitude and temperature.
  • Medicine and diving: gas volumes in the lungs and in breathing mixtures.
  • Everyday life: why tyre pressure rises when it is warm and why sealed bags puff up on mountains.

What Are the Most Common Mistakes With the Ideal Gas Law Calculator (PV = nRT)?

  • Using Celsius for T. Temperature must be in kelvin.
  • Mismatched units for R. The calculator uses kPa and litres consistently.
  • Gauge vs absolute pressure. Tyre gauges read pressure above atmospheric. Add 101.3 kPa for absolute pressure.
  • Applying it to liquids or solids. The law is for gases.
  • Ignoring non-ideal behaviour. At very high pressures or low temperatures, real gases deviate from the ideal law.
  • Mixing up moles and grams. n is in moles, not mass.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is the ideal gas law?

PV = nRT, where P is pressure, V is volume, n is the number of moles, R is the gas constant and T is the absolute temperature in kelvin.

What is the volume of one mole of gas at STP?

22.414 litres at 273.15 K and 101.325 kPa.

Why must temperature be in kelvin?

Because the law relates to absolute temperature, where zero means no thermal motion. Using Celsius would give wrong ratios.

What value of R should I use?

8.314 J/(mol·K) in SI units, or 8.314 L·kPa/(mol·K), or 0.08206 L·atm/(mol·K).

What is the difference between ideal and real gases?

Ideal gases have no intermolecular forces and zero molecular volume. Real gases deviate at high pressure and low temperature.

How do Boyle’s and Charles’s laws relate to PV = nRT?

Boyle’s law is PV = constant at fixed T and n. Charles’s law is V ÷ T = constant at fixed P and n. Both come from the ideal gas law.