The Gas Laws

What are the gas laws and how do you use the ideal gas law?

IntermediateStates of Matter & GasesLast reviewed 4 October 2026

What is it?

The gas laws describe how four quantities of a gas are related:

QuantitySymbolCommon units
PressurePPatm, kPa, mmHg
VolumeVVL, mL
TemperatureTTK (kelvin) only
Amountnnmol

They all combine into a single equation, the ideal gas law:

PV=nRTPV = nRT

where RR is the gas constant: R=0.08206 L⋅atm/(mol⋅K)R = 0.08206\ \text{L·atm/(mol·K)} or R=8.314 L⋅kPa/(mol⋅K)R = 8.314\ \text{L·kPa/(mol·K)}.

Key idea

Gas temperatures must always be in kelvin: T(K)=T(°C)+273.15T(\text{K}) = T(°\text{C}) + 273.15 (many courses use 273). Gas laws use kelvin because it starts from absolute zero, where the volume of an ideal gas would shrink to zero. If a temperature is given in °F, convert it to °C first: TC=(5 °C/9 °F)(TF−32 °F)T_\text{C} = (5\ °\text{C}/9\ °\text{F})(T_\text{F} - 32\ °\text{F}) (see Temperature Scales).

Why does it matter?

  • Everyday life: tyres lose pressure in winter, aerosol cans warn “do not heat”, and a sealed bag of crisps puffs up on a plane.
  • Calculations: with PV=nRTPV = nRT you can turn a gas volume into moles and then use stoichiometry for reactions that make or use gases.
  • Molar mass: measuring the mass and volume of a gas sample lets you identify the gas.

How does it work?

1. The simple gas laws

Each law keeps two quantities fixed and links the other two:

LawFixedRelationshipEquation
Boyle’s lawnn, TTPP and VV inversely proportionalP1V1=P2V2P_1V_1 = P_2V_2
Charles’s lawnn, PPVV proportional to TTV1T1=V2T2\dfrac{V_1}{T_1} = \dfrac{V_2}{T_2}
Gay-Lussac’s lawnn, VVPP proportional to TTP1T1=P2T2\dfrac{P_1}{T_1} = \dfrac{P_2}{T_2}
Avogadro’s lawPP, TTVV proportional to nnV1n1=V2n2\dfrac{V_1}{n_1} = \dfrac{V_2}{n_2}

2. Why gases behave this way

Gas particles move quickly and randomly, and pressure comes from their collisions with the container walls.

  • Smaller volume (Boyle): the particles hit the walls more often, so pressure rises.
  • Higher temperature (Gay-Lussac): the particles move faster and hit the walls harder and more often, so pressure rises. If the container can expand (Charles), the volume grows instead.
  • More particles (Avogadro): more collisions, so at fixed pressure the gas takes up more space.

3. The combined gas law

When nn stays the same but PP, VV and TT all change:

P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2}

Any unit of pressure or volume works here, as long as both sides use the same units. Temperature must be in kelvin.

4. The ideal gas law

PV=nRTPV = nRT works for a single state of a gas: give it any three of PP, VV, nn and TT and it finds the fourth. Choose RR to match your units:

  • PP in atm, VV in L: use R=0.08206 L⋅atm/(mol⋅K)R = 0.08206\ \text{L·atm/(mol·K)}
  • PP in kPa, VV in L: use R=8.314 L⋅kPa/(mol⋅K)R = 8.314\ \text{L·kPa/(mol·K)}

Molar volume: at 0 °C and 1 atm, one mole of any ideal gas occupies about 22.4 L. At 25 °C and 1 atm it is about 24.5 L.

Think of it like this

Picture a crowd of people moving around a room. Shrink the room (smaller V) or make everyone run faster (higher T), and they bump into the walls more often: that’s higher pressure. Add more people (more n) and, to keep the bumping the same, you need a bigger room.

More precisely

The ideal gas law assumes the particles have no volume and no attractions to each other. Real gases follow it closely at low pressure and high temperature, but deviate at high pressure and low temperature (especially near the point where they condense). “Standard temperature and pressure” (STP) is defined differently by different sources: 0 °C and 1 atm gives 22.4 L/mol, while the IUPAC definition of 0 °C and 1 bar (100 kPa) gives 22.7 L/mol. Check which one your course uses.

Visualise it

Two graphs. Top, Boyle's law: pressure against volume is a falling curve; at 2 L the pressure is 4 atm and at 4 L it is 2 atm, so halving the volume doubles the pressure. Bottom, Charles's law: volume against temperature in degrees Celsius is a straight line, 1 L at 0 °C rising to about 2.1 L at 300 °C; extended back as a dashed line, it reaches zero volume at −273 °C, which is 0 K or absolute zero.
Boyle's law is an inverse relationship; Charles's law is a straight line through absolute zero.

Worked example

Worked example: Boyle's law

Question: A gas occupies 2.0 L at 1.0 atm. It is compressed to 0.50 L at constant temperature. What is the new pressure?

  1. P1V1=P2V2P_1V_1 = P_2V_2, so:

    P2=P1V1V2=(1.0 atm)(2.0 L)0.50 L=4.0 atm\begin{aligned} P_2 &= \frac{P_1V_1}{V_2} \\[4pt] &= \frac{(1.0\ \text{atm})(2.0\ \text{L})}{0.50\ \text{L}} \\[4pt] &= 4.0\ \text{atm} \end{aligned}
  2. The units of L cancel, leaving atm. P2=4.0 atmP_2 = \textbf{4.0 atm}: the volume became 4 times smaller, so the pressure became 4 times larger.

Worked example: Charles's law

Question: A balloon holds 3.00 L of gas at 27 °C. What is its volume at 127 °C, at the same pressure?

  1. Convert to kelvin: T1=27 °C+273.15=300.15 KT_1 = 27\ °\text{C} + 273.15 = 300.15\ \text{K} and T2=127 °C+273.15=400.15 KT_2 = 127\ °\text{C} + 273.15 = 400.15\ \text{K}

  2. Rearrange V1T1=V2T2\dfrac{V_1}{T_1} = \dfrac{V_2}{T_2} and substitute:

    V2=V1×T2T1=3.00 L×400.15 K300.15 K=4.00 L\begin{aligned} V_2 &= V_1 \times \frac{T_2}{T_1} \\[4pt] &= 3.00\ \text{L} \times \frac{400.15\ \text{K}}{300.15\ \text{K}} \\[4pt] &= 4.00\ \text{L} \end{aligned}
  3. The units of K cancel, leaving L. V2=4.00 LV_2 = \textbf{4.00 L}

Worked example: The ideal gas law

Question: What volume does 0.500 mol of gas occupy at 25 °C and 1.00 atm?

  1. Convert to kelvin: T=25 °C+273.15=298.15 KT = 25\ °\text{C} + 273.15 = 298.15\ \text{K}

  2. Pressure is in atm, so use R=0.08206 L⋅atm/(mol⋅K)R = 0.08206\ \text{L·atm/(mol·K)}. Rearrange PV=nRTPV = nRT and substitute:

    V=nRTP=(0.500 mol)×(0.08206 L⋅atmmol⋅K)×(298.15 K)÷(1.00 atm)=12.2 L\begin{aligned} V &= \frac{nRT}{P} \\[6pt] &= (0.500\ \text{mol}) \\ &\quad \times \left(0.08206\ \dfrac{\text{L·atm}}{\text{mol·K}}\right) \\ &\quad \times (298.15\ \text{K}) \\[2pt] &\quad \div (1.00\ \text{atm}) \\[6pt] &= 12.2\ \text{L} \end{aligned}
  3. The units of mol, K and atm cancel, leaving L. V=12.2 LV = \textbf{12.2 L}

Common mistake

Common mistake: Using degrees Celsius

Heating a gas from 100 °C to 200 °C does not double its volume. In kelvin it goes from 373 K to 473 K, so the volume increases by a factor of only about 1.27.

Common mistake: Mixing units with R

With R=0.08206 L⋅atm/(mol⋅K)R = 0.08206\ \text{L·atm/(mol·K)}, pressure must be in atm and volume in L. With R=8.314 L⋅kPa/(mol⋅K)R = 8.314\ \text{L·kPa/(mol·K)}, use kPa and L. Convert first: 1 atm = 101.325 kPa = 760 mmHg; 1 L = 1000 mL.

Common mistake: Flipping the relationship in Boyle's law

Pressure and volume are inversely proportional: when one goes up, the other goes down. Check that your answer makes sense.

Notation note

  • Pressure may be given in atm, kPa, mmHg, torr (1 torr = 1 mmHg) or bar (1 bar = 100 kPa).
  • Subscripts 1 and 2 mean “before” and “after” a change.
  • Some books write V∝TV \propto T (“V is proportional to T”).

Remember this

Remember this

  • Always use kelvin: K = °C + 273.15.
  • Boyle P1V1=P2V2P_1V_1 = P_2V_2; Charles V/TV/T constant; Gay-Lussac P/TP/T constant; Avogadro V/nV/n constant.
  • Combined: P1V1T1=P2V2T2\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2}; ideal: PV=nRTPV = nRT.
  • R=0.08206 L⋅atm/(mol⋅K)R = 0.08206\ \text{L·atm/(mol·K)} or R=8.314 L⋅kPa/(mol⋅K)R = 8.314\ \text{L·kPa/(mol·K)}; about 22.4 L/mol at 0 °C and 1 atm.

Test yourself

Check your understanding before moving on.

Flashcards

The Gas Laws: Flashcards

10 cards

  1. Question
    State Boyle's law.
    Answer

    At constant n and T, pressure is inversely proportional to volume: P1V1=P2V2P_1V_1 = P_2V_2

  2. Question
    State Charles's law.
    Answer

    At constant n and P, volume is proportional to kelvin temperature: V1/T1=V2/T2V_1/T_1 = V_2/T_2

  3. Question
    State Gay-Lussac's law.
    Answer

    At constant n and V, pressure is proportional to kelvin temperature: P1/T1=P2/T2P_1/T_1 = P_2/T_2

  4. Question
    State Avogadro's law.
    Answer

    At constant P and T, volume is proportional to the number of moles: V1/n1=V2/n2V_1/n_1 = V_2/n_2

  5. Question
    Write the ideal gas law.
    Answer

    PV=nRTPV = nRT

  6. Question
    Give two values of the gas constant R.
    Answer

    0.08206 L·atm/(mol·K) and 8.314 L·kPa/(mol·K)

  7. Question
    Convert 25 °C to kelvin.
    Answer

    25 °C + 273.15 = 298.15 K (about 298 K)

  8. Question
    Why must gas law temperatures be in kelvin?
    Answer

    Kelvin starts at absolute zero, so V and P are proportional to it. In °C, doubling the number does not double the temperature.

  9. Question
    What volume does 1 mol of ideal gas occupy at 0 °C and 1 atm?
    Answer

    About 22.4 L

  10. Question
    Write the combined gas law.
    Answer

    P1V1T1=P2V2T2\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2}

Quiz

The Gas Laws: Quiz

7 questions

  1. Question 1EasyAt constant temperature, the volume of a gas is halved. What happens to its pressure?
    Show answer

    Answer: It doubles

    Boyle's law: P × V stays constant, so halving V doubles P.

  2. Question 2MediumA gas at constant pressure is heated from 100 °C to 200 °C. By what factor does its volume change?
    Show answer

    Answer: 1.27

    Use kelvin: 100 °C = 373 K and 200 °C = 473 K. V₂/V₁ = 473 K ÷ 373 K = 1.27 (the units cancel). Doubling the Celsius number does not double the temperature.

  3. Question 3EasyWhich temperature must be used in gas law calculations?
    Show answer

    Answer: Kelvin

    Gas laws need an absolute scale that starts at zero. Even if both temperatures are in °C, the ratio is wrong.

  4. Question 4MediumA sealed can contains gas at 1.00 atm and 27 °C. It is heated to 327 °C. What is the new pressure?
    Show answer

    Answer: 2.00 atm

    Gay-Lussac: T₁ = 27 °C + 273 = 300 K and T₂ = 327 °C + 273 = 600 K. P₂ = 1.00 atm × (600 K ÷ 300 K) = 2.00 atm. (Using °C would give 12.1 atm, which is wrong.)

  5. Question 5MediumWhat is the pressure of 0.200 mol of gas in a 10.0 L container at 27 °C? (R = 8.314 L·kPa/(mol·K))
    Show answer

    Answer: 49.9 kPa

    T = 27 °C + 273.15 = 300.15 K. P = nRT/V = (0.200 mol × 8.314 L·kPa/(mol·K) × 300.15 K) ÷ 10.0 L = 49.9 kPa. The units of mol, K and L cancel, leaving kPa.

  6. Question 6MediumAt the same temperature and pressure, 2 mol of nitrogen and 2 mol of helium occupy…
    Show answer

    Answer: the same volume

    Avogadro's law: equal moles of ideal gases at the same T and P occupy equal volumes, whatever the gas.

  7. Question 7HardUnder which conditions does a real gas behave most like an ideal gas?
    Show answer

    Answer: Low pressure and high temperature

    Then the particles are far apart and fast, so their own volume and the attractions between them matter least.

Notes and downloads

  • Worksheet

    Gas Laws Worksheet

    9 questions on Boyle's, Charles's and Gay-Lussac's laws, the combined gas law and PV = nRT. Answer key included.

    IntermediateFree

References

  1. Brown, T. L.; LeMay, H. E., Jr.; Bursten, B. E.; Murphy, C. J.; Woodward, P. M.; Stoltzfus, M. W. Chemistry: The Central Science, 15th ed.; Pearson, 2022.

Spotted a mistake? Let us know and we'll fix it.