The Gas Laws: Boyle's, Charles's, Gay-Lussac's, Avogadro's, and the Ideal Gas Law

Pick a gas law and the held-constant quantities lock; drag the one free control and watch pressure, volume, and temperature respond, with every formula, graph, and worked example in real units.

Pick a gas law and the held-constant quantities lock. Drag the one free control and watch the gas, the graph, and the equation respond, all from PV = nRT in real units.

Pressure
1.00atm
Volume
24.6L
Temperature
300K
27 °C
Amount
1.00mol

The indigo bar is a piston (its position shows the volume); dot colour shows temperature (blue = cold, red = hot). green = the quantity you control, brand = the result, grey = held constant.

Held constant
Temperature = 300 KAmount = 1.00 mol
smallbig
Pressure follows: P ∝ 1 / V
Pressure (atm) vs Volume (L)
Volume (L)
The law, with your live numbers
P₁V₁ = P₂V₂
P ∝ 1 / V
1.00 × 24.6 = 1.00 × 24.6 (≈ 24.6 atm·L)

Left side is the starting state; right side is your current one. The two stay equal because the held quantities don't change.

These are real units (atm, L, K, mol) computed from the ideal gas law PV = nRT with R = 0.082057 L·atm/(mol·K). Temperature is in kelvin: gas laws are proportionalities measured from absolute zero, so 0 K (−273.15 °C), not 0 °C, is where a line of volume or pressure heads to zero. Real gases drift from these ideal lines at very high pressure or very low temperature.

Boyle's Law. Temperature held at 300 K, Amount held at 1.00 mol. Volume set to 24.6 L, so Pressure is 1.00 atm.

Four numbers describe any gas

To pin down a gas you only need four measurements, and the gas laws are the rules that tie them together:

Change one and the others respond. The simulator above lets you change exactly one at a time: pick a law and it locks the two quantities that law holds constant, leaving you one slider. Everything you watch (the piston, the graph, the equation) is computed live from the single relationship that contains all the gas laws, the ideal gas law:

P V = n R T

The rest of this page takes that apart one law at a time. Each law just answers “if I hold these two steady and change that one, what happens to the fourth?”

Boyle’s law: squeeze it and pressure climbs

At constant temperature (and a fixed amount of gas), pressure and volume are inversely proportional. Halve the volume and the pressure doubles; the product stays constant.

P₁V₁ = P₂V₂

Boyle’s law in real life: pushing a capped syringe or a bicycle pump gets harder as the trapped air’s pressure climbs; a scuba diver’s lungs and air bubbles are squeezed as the total pressure on them roughly doubles by 10 m depth; and breathing itself works this way, as expanding your chest lowers your lung pressure so air flows in.

Charles’s law: heat it and it expands

At constant pressure, volume is directly proportional to absolute temperature. Heat the gas and it expands; cool it and it shrinks, in lockstep with the kelvin temperature.

V₁ / T₁ = V₂ / T₂

Charles’s law in real life: a hot-air balloon rises because heating the air expands it and lowers its density; a balloon shrinks in a freezing car overnight and re-inflates indoors; and bread and cakes rise as trapped gas pockets expand in the oven.

Gay-Lussac’s law: heat a sealed can and pressure rises

At constant volume (a rigid, sealed container), pressure is directly proportional to absolute temperature.

P₁ / T₁ = P₂ / T₂

Avogadro’s law: more gas, more volume

At constant temperature and pressure, volume is directly proportional to the amount of gas. Add twice the moles and the volume doubles.

V₁ / n₁ = V₂ / n₂

The combined gas law: when everything changes at once

When a fixed amount of gas moves from one set of conditions to another and pressure, volume, and temperature all change together, merge the three single laws into one:

P₁V₁ / T₁ = P₂V₂ / T₂

Worked example. A gas occupies 4.00 L at 1.00 atm and 300 K. The pressure is raised to 2.00 atm and the temperature to 600 K. Solving for V₂:

V₂ = (P₁V₁T₂) / (T₁P₂) = (1.00 × 4.00 × 600) / (300 × 2.00) = 4.00 L

Doubling the temperature alone would double the volume; doubling the pressure alone would halve it. Here the two effects exactly cancel, so the volume is unchanged.

The ideal gas law: PV = nRT

Hold nothing constant and you need the full relationship. The ideal gas law ties all four quantities together with one constant, R:

P V = n R T

SymbolMeaningUnit
Ppressureatm
VvolumeL
namount of gasmol
Ttemperature (absolute)K
Runiversal gas constant0.082057 L·atm/(mol·K)

R is the same physical constant everywhere; in SI units it is 8.314 J/(mol·K). You pick the version of R whose units match your pressure and volume.

Worked example. What volume does 2.00 mol of gas occupy at 3.00 atm and 27 °C? First convert the temperature: T = 27 + 273 = 300 K. Then

V = nRT / P = (2.00 × 0.082057 × 300) / 3.00 = 16.4 L

The gas law formulas at a glance

LawHeld constantFormulaRelationship
Boyle’sT, nP₁V₁ = P₂V₂P inversely proportional to V
Charles’sP, nV₁/T₁ = V₂/T₂V directly proportional to T
Gay-Lussac’sV, nP₁/T₁ = P₂/T₂P directly proportional to T
Avogadro’sP, TV₁/n₁ = V₂/n₂V directly proportional to n
CombinednP₁V₁/T₁ = P₂V₂/T₂merges the three above
Ideal(nothing)PV = nRTall four at once

Always use kelvin

The single most common gas-law mistake is using Celsius. Every temperature in these formulas must be in kelvin. The laws are proportionalities measured from absolute zero: plot the volume of any gas against Celsius temperature, extend the line backward, and every gas reaches zero volume at the same point, −273.15 °C. That point is 0 K. Only on the kelvin scale does “twice the temperature” mean “twice the volume,” because 0 °C is an ordinary, energetic temperature, not zero. Convert with T(K) = T(°C) + 273.15.

Why the gas laws work, and where they bend

These laws are the large-scale shadow of what individual particles are doing. Pressure is countless tiny collisions with the walls; temperature is the particles’ average kinetic energy. Watch that microscopic story directly in the Particle Box, where the same PV ∝ nT emerges from a live box of bouncing atoms. The gas laws describe an ideal gas; real gases drift from them at very high pressure or very low temperature, where the particles’ own volume and their attractions start to matter.

It’s free to embed on your own site or LMS. Next, see the gas laws emerge from moving particles in the Particle Box, or connect amount to mass in the mole.

Frequently asked questions

What are the gas laws?
The gas laws describe how the pressure (P), volume (V), temperature (T), and amount (n, in moles) of a gas relate to each other. The four simple laws each hold two of these constant: Boyle's law (P inversely proportional to V at constant T, n), Charles's law (V directly proportional to T at constant P, n), Gay-Lussac's law (P directly proportional to T at constant V, n), and Avogadro's law (V directly proportional to n at constant P, T). Combined, they give the ideal gas law, PV = nRT.
What are the gas law formulas?
Boyle's law: P1V1 = P2V2. Charles's law: V1/T1 = V2/T2. Gay-Lussac's law: P1/T1 = P2/T2. Avogadro's law: V1/n1 = V2/n2. Combined gas law: P1V1/T1 = P2V2/T2. Ideal gas law: PV = nRT, where R = 0.082057 L·atm/(mol·K) or 8.314 J/(mol·K). All temperatures must be in kelvin.
Why must temperature be in kelvin for the gas laws?
Because the gas laws are proportionalities measured from absolute zero. Volume and pressure head to zero at 0 K (-273.15 °C), so only on the kelvin scale does doubling the temperature truly double the volume or pressure. Using Celsius would make the ratios meaningless: 0 °C is an ordinary, energetic temperature, not zero. Convert with T(K) = T(°C) + 273.15.
What is R, the gas constant?
R is the universal (molar) gas constant, the single constant that makes PV = nRT balance. It is 0.082057 L·atm/(mol·K) when pressure is in atmospheres and volume in liters, or 8.314 J/(mol·K) in SI units. R never changes from problem to problem; only its units change to match the units you are using.
What is the difference between Boyle's law and Charles's law?
Boyle's law holds temperature constant and relates pressure and volume inversely: squeeze the gas smaller and the pressure rises. Charles's law holds pressure constant and relates volume and temperature directly: heat the gas and it expands. Boyle is an inverse relationship (P up, V down); Charles is a direct one (T up, V up).

Sources

Last reviewed: 2026-06-30

Embed this on your site

Free to use. Paste this anywhere; a link back to PrepOK is included.

Related