AP Chemistry · Unit 3 · Topic 3.4

3.4 Ideal Gas Law

6-minute read1 picture1 sim1 step-by-step problem3 practice questions

TLDR

Four measurements describe a sample of gas: pressure P, volume V, moles n and kelvin temperature T. The ideal gas law ties them together: PV = nRT, with R = 0.08206 L·atm/(mol·K) when P is in atm, V in L and T in K. Hold two of the four fixed and the other two move together: P and V are inverse, while V and P each rise in direct proportion to n and to T in kelvin. In a mixture every gas pushes as if it were alone, so its partial pressure is its mole fraction times the total.

Guess firstA sealed, rigid steel tank of gas is warmed from 20 °C to 40 °C. What happens to the pressure inside?

Pick one now. The page tells you if you were right at the end, after the picture and the sim show you why.

The whole topic in one picture

A piston cylinder of air read by four instruments: gauge 1.00 atm split into N₂ and O₂ shares, volume 12.0 L, 293 K and 0.500 mol, with graphs for Boyle's and Charles's laws and pressure against kelvin temperaturePatmVL=nmolR0.08206TK1.00 atm05101512.0 L293 K20 °Cn = 0.500 mol02atmP = 1.00 atmN₂ 0.750 atmO₂ 0.250 atmP ∝ 1/Vn, T fixedPVV ∝ Tn, P fixedVT (K)0 KP ∝ Tn, V fixedPT (K)0 K12345
One sample of air in a piston cylinder: a gauge reads P, a scale reads V, a thermometer reads T, and the particles count n, with graphs of what happens when two of them are held fixed. Original diagram, Green Flask Science.
  1. P: the push on the walls. Particles hit every wall, and the gauge reads that push per area: 1.00 atm. With a free lid, the gas pushes back exactly as hard as the lid and weight push down. Here the blue part of the dial is the N2 share and the red part is the O2 share.
  2. V: the space the gas fills. A gas spreads through its whole container, so V is the volume under the lid: 12.0 L. With R = 0.08206 L·atm/(mol·K), V must be in liters, so divide mL by 1000.
  3. T: always in kelvin. K = °C + 273, so 20 °C is 293 K. Kelvin starts at zero, so doubling the kelvin number really doubles the temperature; doubling a Celsius number does not.
  4. n: count the particles, of any kind. 0.500 mol in all: 0.375 mol N2 (12 dots) and 0.125 mol O2 (4 dots). Each gas pushes in proportion to its mole fraction: PO2 = (0.125 ÷ 0.500)(1.00 atm) = 0.250 atm. Check the law: PV = (1.00)(12.0) = 12.0 and nRT = (0.500)(0.08206)(293) = 12.0 L·atm.
  5. Hold two fixed, watch the other two. With n and T fixed, P and V are inverse: double P, half the volume. With n and P fixed, V is proportional to T; with n and V fixed, P is proportional to T. Both lines head to zero at 0 K, not at 0 °C.
Pressure (P)
Force per area from particles hitting a wall. Use atm with R = 0.08206 L·atm/(mol·K).
Ideal gas
A model gas whose particles take up no space and do not attract each other. Real gases come close at low P and high T.
Gas constant (R)
0.08206 L·atm/(mol·K), or 8.314 J/(mol·K). Pick the one whose units match your data.
Kelvin temperature
K = °C + 273. Zero kelvin is the bottom of the scale, so T in kelvin is proportional to average kinetic energy.
Partial pressure
The pressure one gas in a mixture would exert alone in the same container. The partial pressures add up to the total.
Mole fraction (X)
Moles of one gas ÷ total moles. It has no units, and PA = XA × Ptotal.

What the exam hands you, and what it doesn't

On the exam already

  • PV = nRT, with R = 0.08206 L·atm/(mol·K) and R = 8.314 J/(mol·K)
  • K = °C + 273
  • Dalton's law: Ptotal = PA + PB + …, PA = Ptotal × XA, XA = moles of A ÷ total moles
  • n = m ÷ M and D = m ÷ V, plus the periodic table for molar masses
  • A calculator for every part of the exam

You bring

  • The combined gas law, P1V1 ÷ T1 = P2V2 ÷ T2: it is not on the sheet, but it is PV = nRT with n fixed
  • Unit habits before you calculate: °C to K, mL to L, and the R that matches
  • Which pairs are inverse (P and V) and which are direct (V or P with n and T), and the graph shapes
  • Mole fraction, not mass fraction, for partial pressure
  • A quick estimate: 1 mol near room temperature and 1 atm fills about 24 L

Try it: Weights, pins and a piston

Pick a lid: free under 1 or 2 weights (P is held) or pinned at 10.0 L (V is held). Then change the temperature and the moles and watch the lid, the gauge and the wall hits. The card checks PV against nRT every time.

Work it: Find the pressure, then heat the gas

Type each step: kelvin, moles, liters, then PV = nRT. Then decide what heating does with the lid pinned or free and calculate it. A wrong answer gets a reason, and a second miss shows the line.

In the full Unit 3 review: a 3.4 slide on PV = nRT and Dalton's law, a Work It that solves for P, V, n or T with unit conversions, a Work It that finds a gas's molar mass, and a Draw It box for partial pressures, then kinetic molecular theory (3.5) and real gases (3.6).

How it shows up on the exam

  • Plug-in calculations with a unit change hidden inside: mL to L, °C to K, grams to moles. Often this is one step of a bigger problem, like finding the moles of a gas made in a reaction (stoichiometry) or a molar mass from a flask of vapor.
  • Mixtures and partial pressures: the pressure of one gas from its mole fraction, or the moles of a gas from its partial pressure, sometimes read off a particle diagram where you count the dots.
  • Explain or justify on free response: why P rises when a rigid container is heated. Name the particles: "At higher T the molecules move faster, so they hit the walls more often and with more force, and with V fixed the pressure increases." Graph questions ask which line shape matches a pair of variables.

Find the wrong step

What pressure does 0.0500 mol of O2 exert in a 750. mL flask at 25 °C? Click the line with the mistake.

Practice: 3 questions

Original AP-style questions. Every wrong choice is a real trap, and the explanation names it.

1

A gas is held at constant pressure and moles while its volume is measured at several temperatures in °C. When the data are graphed with V on the y-axis and temperature in °C on the x-axis, which description fits the graph?

2

A rigid 5.00 L flask at 300. K holds 0.100 mol of He and 0.300 mol of Ar. What is the partial pressure of Ar?

3

A gas sits in a cylinder with a lid that slides freely, so its pressure stays constant. Which change doubles the volume of the gas?

How it connects

Ideas from this topic show up again in other topics. These are the links the exam uses most.

Back to your guessA sealed, rigid steel tank of gas is warmed from 20 °C to 40 °C. What happens to the pressure inside?

Answer: B. It rises by about 7 percent. Pressure is proportional to the kelvin temperature when n and V are fixed. 20 °C is 293 K and 40 °C is 313 K, so P rises by 313 ÷ 293 = 1.07, about 7 percent. The Celsius number doubled, but the temperature did not.

Quick questions

What is the ideal gas law in chemistry?

PV = nRT. It links the pressure (P), volume (V), moles (n) and kelvin temperature (T) of a gas through the gas constant R. With P in atm and V in liters, R = 0.08206 L·atm/(mol·K).

Why do you have to use kelvin in gas laws?

Volume and pressure are proportional to the temperature measured from absolute zero. Kelvin starts at absolute zero; Celsius starts at the freezing point of water, so ratios of Celsius numbers give wrong answers. Add 273 to every °C value.

How do you find partial pressure?

Multiply the total pressure by the mole fraction of the gas: PA = XA × Ptotal, where XA is moles of A ÷ total moles. Or use PV = nRT with only that gas's moles, since each gas acts as if it were alone.

Go deeper

Gases: the full Unit 3 lesson

About 13 minutes of interactive slides on topics 3.4 to 3.6, with step-by-step math, particle drawings, a diagnostic that finds your weak spots, a 50-question bank and AI-scored free response.