CHEMISTRY BEGINNER

Gas Laws

How does doubling the pressure of a gas halve its volume? Why must temperature always be in kelvin for gas calculations? The four gas laws — Boyle's, Charles's, Gay-Lussac's, and Avogadro's — all combine into a single equation: PV = nRT.

01 · The four laws

Boyle, Charles, Gay-Lussac, and Avogadro

Each gas law describes the relationship between two gas variables while holding the other(s) constant. They were discovered experimentally before the molecular theory of gases was established.

LawEquationHeld constantProportionality
Boyle's law P₁V₁ = P₂V₂ Temperature, n P ∝ 1/V
Charles's law V₁/T₁ = V₂/T₂ Pressure, n V ∝ T
Gay-Lussac's law P₁/T₁ = P₂/T₂ Volume, n P ∝ T
Avogadro's law V₁/n₁ = V₂/n₂ Temperature, Pressure V ∝ n

A useful memory trick: BBC-AG — Boyle (P,V), Charles (V,T), Avogadro (V,n), Gay-Lussac (P,T). All four constants are 298.15 K and 100 kPa for standard calculations. See our moles guide for the definition of n (amount in mol).

02 · Ideal gas law

The ideal gas law: PV = nRT

The four laws combine into one equation:

PV = nRT

P Pressure — SI unit: pascals (Pa); also kPa, atm
V Volume — SI unit: m³; lab use: L (1 m³ = 1000 L)
n Amount in moles
R Gas constant = 8.314 J mol⁻¹ K⁻¹ = 8.314 L kPa mol⁻¹ K⁻¹
T Temperature — MUST be in kelvin (K = °C + 273.15)

Key point: temperature must always be in kelvin — using Celsius will give completely wrong answers. 0 °C = 273.15 K.

At STP (0 °C, 100 kPa), one mole of ideal gas occupies 22.4 L — the molar volume. This is extremely useful for gas collection experiments in the lab, such as measuring hydrogen produced by a metal + acid reaction (see reaction rates guide).

03 · Worked examples

Worked examples

Example 1: Boyle's law

A gas occupies 2.0 L at 150 kPa. What volume will it occupy at 100 kPa (temperature constant)?

P₁V₁ = P₂V₂

150 × 2.0 = 100 × V₂

V₂ = 300 / 100 = 3.0 L

Example 2: Ideal gas law

How many moles of CO₂ are in a 500 mL container at 25 °C and 200 kPa?

n = PV / RT

n = (200 × 0.500) / (8.314 × 298.15)

n = 100 / 2478.8 = 0.0403 mol

Note: V converted from mL to L (÷1000). For molar mass of CO₂ use our molar mass calculator (M = 44.01 g/mol).

Example 3: Gas from a reaction

2.43 g of magnesium reacts with excess HCl: Mg + 2HCl → MgCl₂ + H₂. What volume of H₂ is produced at RTP (25 °C, 100 kPa)?

n(Mg) = 2.43 / 24.31 = 0.100 mol

n(H₂) = 0.100 mol (1:1 ratio)

V = nRT/P = (0.100 × 8.314 × 298.15) / 100

V = 247.9 / 100 = 2.479 L ≈ 2.48 L

This links to moles and stoichiometry. Gas collection experiments like this often use a gas syringe — the volume gives you back the moles for stoichiometric yield calculations.

04 · Real gases

Real gas deviations and van der Waals

An ideal gas has molecules with no volume and no intermolecular attractions. Real gases deviate from PV = nRT because:

  • Gas molecules occupy a finite volume — important at high pressure
  • Gas molecules attract each other (van der Waals / London dispersion forces) — important at low temperature

The van der Waals equation corrects for both effects:

[P + a(n/V)²](V − nb) = nRT

where a accounts for intermolecular attractions and b accounts for molecular volume. Real gases behave ideally at high temperature (thermal energy dominates attractions) and low pressure (molecules far apart). See our chemical bonding guide for intermolecular forces.

Gas laws are directly relevant to the hydrogen fuel cell technology — hydrogen is stored at 350–700 bar compressed gas, making gas law calculations essential for safe tank design.

05 · Gas laws in depth: Dalton's law and the combined gas law

Beyond the basics: partial pressure and combined equations

The gas laws provide a complete framework for predicting how gases behave under changing conditions. The ideal gas law PV = nRT combines all four individual relationships — Boyle's law (P inversely proportional to V), Charles's law (V proportional to T), Avogadro's law (V proportional to n) and Gay-Lussac's law (P proportional to T). The combined gas law P₁V₁/T₁ = P₂V₂/T₂ is particularly useful when amount of gas is constant but pressure, volume and temperature all change simultaneously.

Partial pressure is described by Dalton's law: the total pressure of a gas mixture equals the sum of the partial pressures of each component gas (P_total = P₁ + P₂ + ... + Pₙ). Each partial pressure is proportional to the mole fraction of that gas: Pᵢ = xᵢ × P_total. This is essential in respiratory physiology (partial pressure of O₂ and CO₂ in blood), industrial gas storage and atmospheric chemistry. The RSC education resources offer gas law calculation worksheets with Dalton's law problems.

In practice, gas law calculations appear throughout chemistry: measuring gas volumes collected over water (correcting for water vapour pressure), calculating molar mass from gas density (M = dRT/P), and predicting volumes in industrial processes such as the Haber process for ammonia synthesis. The Khan Academy gas laws module provides interactive practice covering all gas law equations and their applications.

Gas laws FAQ: combined gas law and partial pressure

When do you use the combined gas law instead of the ideal gas law?

Use the combined gas law (P₁V₁/T₁ = P₂V₂/T₂) when comparing the same sample of gas under two different sets of conditions and you do not need to know the number of moles. Use PV = nRT when you need to find moles, mass or molar mass, or when dealing with gas mixtures. The ACS education portal has decision-tree worksheets for choosing the right gas equation.

Gas laws — common questions

The four gas laws: Boyle's law (P ∝ 1/V, constant T) — discovered 1662; Charles's law (V ∝ T, constant P) — discovered 1787; Gay-Lussac's law (P ∝ T, constant V) — discovered 1809; Avogadro's law (V ∝ n, constant T, P) — 1812. Combined: PV = nRT. See our moles guide for the definition of n.

Gas law examples need molar mass

Gas density calculations require M (g/mol). Calculate molar mass for any formula instantly with our free tool.

Molar mass calculator →