Skip to content
LoveToCalc

Definition — what does that mean?

Ideal gas law

One formula that is every gas law at once — the others are this one with two quantities held still.

In Swedish: Allmänna gaslagen

Ideal gas law

The relation

pV=nRT

Pressure times volume equals the amount of gas times the gas constant times the absolute temperature — every gas law in one line.

Solve for
Solved for p

p=nRTV

p=99.768

p equals ((1 times 8.314) times 300) divided by 25, equals (8.314 times 300) divided by 25, equals 2,494.2 divided by 25, equals 99.768

Working4 steps

Practice questions

You are given

  • p=1197.216
  • V=5
  • n=2
  • R=8.314

Round to 2 decimals.

The formula

Quantity Means Unit
p pressure kPa
V volume dm³
n amount of substance mol
R the gas constant, 8.314 J/(mol·K)
T temperature K

Holds for gases at low pressure and at temperatures well above condensation, where the molecules take up little room and barely pull on each other.

It is also called the ideal gas equation, or the general gas equation.

The units kPa and dm³ are chosen because they fit R without a conversion: a kilopascal times a cubic decimetre is a joule. Work in pascals and the volume has to be in cubic metres, which no gas container is ever marked in.

Kelvin is not a matter of taste

This is a formula where degrees Celsius is simply the wrong number. T sits inside a product, and a product with zero in it is zero — so a gas at 0 °C would have no pressure at all, which it plainly has.

K = °C + 273.15. Room temperature 20 °C is 293 K, boiling water 373 K, a cold winter day at −20 °C is 253 K.

A rise from 20 to 40 °C is therefore not a doubling but an increase of seven percent, which is why a tyre pressure read in summer differs less than one expects.

The other gas laws are special cases

Hold n still — the same gas in a closed container — and then two quantities at a time:

Law Held still Gives
Boyle’s law T p · V is constant
Charles’ law p V / T is constant
Gay-Lussac’s law V p / T is constant

The three laws have pages of their own, but all of them follow from this one.

Worked examples

One mole in 25 litres at room temperature. p = 1 · 8.314 · 300 / 25 ≈ 99.8 kPa, which is about the air pressure around you.

The molar volume. At 0 °C and 101.325 kPa: V = 1 · 8.314 · 273.15 / 101.325 ≈ 22.4 dm³. That is the number in every textbook. At 25 °C the same mole takes 24.5 dm³.

How much air is in a room? 30 m³ = 30,000 dm³ at 20 °C and 101.325 kPa: n = 101.325 · 30,000 / (8.314 · 293.15) ≈ 1,250 mol, that is, about 36 kg of air.

A balloon in the fridge. 2.0 dm³ at 20 °C, put into 0 °C at the same pressure: V₂ = 2.0 · 273 / 293 ≈ 1.9 dm³. It shrinks visibly, but not dramatically.

Common mistakes

Frequently asked questions

What does “ideal” gas mean? A gas whose molecules neither take up room nor pull on each other. Real gases do both, but so slightly that the difference rarely shows at ordinary pressures.

Why is R 8.314? The gas constant is Boltzmann’s constant times Avogadro’s number, both now defined exactly. R is therefore 8.314462618… J/(mol·K), and 8.314 is enough everywhere.

How does it connect to amount of substance? n is the same n as in n = m/M. Weigh the gas, convert to moles, substitute.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
pnRTV1·8.314·3002599.768
VnRTp1·8.314·30099.76825
npVRT99.768·258.314·3001
RpVnT99.768·251·3008.314
TpVnR99.768·251·8.314300

Last reviewed October 6, 2026 ·How pages are reviewed

Gas lawsAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.