Dove's LibraryDove's Library

3.4 - Ideal Gas Law

Overview

Gases are the one phase with a simple equation that connects their properties. The ideal gas law ties together pressure, volume, temperature, and moles, and every other gas relationship comes out of it. On the AP exam you'll calculate with it, and just as often you'll explain what happens to one variable when another one changes.

The ideal gas law

PV=nRTPV = nRT
  • PP = pressure, usually in atm (1 atm=760 torr=760 mm Hg1\ \mathrm{atm} = 760\ \mathrm{torr} = 760\ \mathrm{mm\ Hg})
  • VV = volume, in liters
  • nn = moles of gas
  • TT = temperature in kelvins: K=∘C+273.15\mathrm{K} = {}^\circ\mathrm{C} + 273.15
  • RR = the gas constant, 0.08206 L atm mol−1 K−10.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}} (or 8.314 J mol−1 K−18.314\ \mathrm{J\,mol^{-1}\,K^{-1}} when energy is involved, as in Topic 3.5)
The units of RR set your units: with 0.08206 L atm mol−1 K−10.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}}, pressure must be in atm and volume in liters, so convert torr and mL first.
At STP (273.15 K and 1.0 atm), one mole of any ideal gas fills 22.4 L. That value is on the reference sheet, and it comes straight from the ideal gas law:
Vn=RTP=(0.08206 L atm mol−1 K−1)(273.15 K)1.0 atm=22.4 L/mol\frac{V}{n} = \frac{RT}{P} = \frac{(0.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}})(273.15\ \mathrm{K})}{1.0\ \mathrm{atm}} = 22.4\ \mathrm{L/mol}
An ideal gas is a model: its particles take up no space and don't attract each other (Topic 3.5 explains the model). Real gases follow it closely at ordinary conditions; Topic 3.6 covers when they don't.

Example 1: Using the ideal gas law

A 2.50 L flask holds 0.105 mol of O2\mathrm{O_2} at 25.0 °C. What is the pressure in atm and in torr?
Step 1: Convert the temperature: T=25.0+273.15=298.2 KT = 25.0 + 273.15 = 298.2\ \mathrm{K}.
Step 2: Solve PV=nRTPV = nRT for PP.
P=nRTV=(0.105 mol)(0.08206 L atm mol−1 K−1)(298.2 K)2.50 L=1.03 atmP = \frac{nRT}{V} = \frac{(0.105\ \mathrm{mol})(0.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}})(298.2\ \mathrm{K})}{2.50\ \mathrm{L}} = 1.03\ \mathrm{atm}
Step 3: Convert to torr.
1.028 atm×760 torr1 atm=781 torr1.028\ \mathrm{atm} \times \frac{760\ \mathrm{torr}}{1\ \mathrm{atm}} = 781\ \mathrm{torr}
Answer: P=1.03P = 1.03 atm, or 781 torr. (Keep an extra digit, 1.028, until the last step.)

How the variables are related

Hold some variables constant in PV=nRTPV = nRT, and the classic gas laws fall out:
Held constant
Relationship
In words
nn, TT
P1V1=P2V2P_1V_1 = P_2V_2
PP and VV are inversely proportional (Boyle's law)
nn, PP
V1/T1=V2/T2V_1/T_1 = V_2/T_2
VV is directly proportional to Kelvin TT (Charles's law)
nn, VV
P1/T1=P2/T2P_1/T_1 = P_2/T_2
PP is directly proportional to Kelvin TT (Gay-Lussac's law)
PP, TT
V1/n1=V2/n2V_1/n_1 = V_2/n_2
VV is directly proportional to nn (Avogadro's law)
For a fixed amount of gas, they combine into one equation on the reference sheet:
P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2}
You don't need the names. You need the reasoning: figure out what's constant, then decide whether the two changing variables go up together (direct) or move in opposite directions (inverse).

Graphs of gas behavior

3.4 - Ideal Gas Law
An inverse relationship gives a curve that drops toward the axis. A direct relationship gives a straight line through the origin, but only if temperature is in kelvins.
Why kelvins? Measure the volume of a gas at several Celsius temperatures, extend the line backward, and every sample reaches zero volume at the same point: −273.15 °C, which is 0 K (absolute zero). The Kelvin scale starts there, so on it, volume and temperature are truly proportional.
3.4 - Ideal Gas Law

Example 2: Predicting a change

A sealed, rigid steel tank holds a gas at 1.20 atm and 27 °C. It's heated to 327 °C. What is the new pressure?
Step 1: The tank is sealed and rigid, so nn and VV are constant, and PP is directly proportional to TT in kelvins: T1=300.15 KT_1 = 300.15\ \mathrm{K}, T2=600.15 KT_2 = 600.15\ \mathrm{K}.
Step 2:
P2=P1×T2T1=1.20 atm×600.15 K300.15 K=2.40 atmP_2 = P_1 \times \frac{T_2}{T_1} = 1.20\ \mathrm{atm} \times \frac{600.15\ \mathrm{K}}{300.15\ \mathrm{K}} = 2.40\ \mathrm{atm}
Answer: 2.40 atm. The Kelvin temperature doubled, so the pressure doubled. With Celsius you'd have multiplied by 327/27, about 12, which is badly wrong.
Quick checks like this are a big part of the exam. Halve the volume at constant nn and TT, and PP doubles. Double nn at constant PP and TT, and VV doubles. Double the Kelvin temperature and halve the volume, and PP becomes 4 times as large.

Example 3: Molar mass from gas data (AP-style)

A student puts a few mL of an unknown volatile liquid in a 250.0 mL flask, covers it with foil that has a pinhole, and heats it in boiling water at 100.0 °C. The liquid vaporizes, the extra vapor escapes through the pinhole, and the flask is left full of vapor at the air pressure, 750. torr. The student cools the flask and finds 0.695 g of condensed liquid. (a) Find the molar mass. (b) The liquid is pentane (72.15 g/mol), hexane (86.17 g/mol), or heptane (100.20 g/mol). Which one? (c) The outside of the flask was still wet when it was weighed. How does that affect the calculated molar mass?
(a) Step 1: Combine n=m/Mn = m/\mathcal{M} with PV=nRTPV = nRT:
PV=mMRT⇒M=mRTPVPV = \frac{m}{\mathcal{M}}RT \quad \Rightarrow \quad \mathcal{M} = \frac{mRT}{PV}
Step 2: Convert: P=750. torr×1 atm760 torr=0.9868 atmP = 750.\ \mathrm{torr} \times \frac{1\ \mathrm{atm}}{760\ \mathrm{torr}} = 0.9868\ \mathrm{atm}, V=0.2500 LV = 0.2500\ \mathrm{L}, T=373.15 KT = 373.15\ \mathrm{K}.
Step 3:
M=(0.695 g)(0.08206 L atm mol−1 K−1)(373.15 K)(0.9868 atm)(0.2500 L)=86.3 g/mol\mathcal{M} = \frac{(0.695\ \mathrm{g})(0.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}})(373.15\ \mathrm{K})}{(0.9868\ \mathrm{atm})(0.2500\ \mathrm{L})} = 86.3\ \mathrm{g/mol}
(b) 86.3 g/mol is closest to hexane, C6H14\mathrm{C_6H_{14}} (86.17 g/mol).
(c) Water on the outside adds mass, so the measured mm is too large. Since M=mRT/PV\mathcal{M} = mRT/PV is directly proportional to mm, the calculated molar mass is too high. (Leftover liquid that never vaporized would cause the same error.)

Mixtures of gases: partial pressures

In a mixture of ideal gases, each gas behaves as if the others weren't there. The pressure each gas would exert by itself in the container is its partial pressure, and the total pressure is the sum:
Ptotal=PA+PB+PC+⋯P_{\mathrm{total}} = P_A + P_B + P_C + \cdots
All the gases share the same VV and TT, so each gas's partial pressure is proportional to its moles. That makes the partial pressure proportional to the mole fraction, XX:
PA=Ptotal×XA,XA=moles of Atotal molesP_A = P_{\mathrm{total}} \times X_A, \qquad X_A = \frac{\text{moles of A}}{\text{total moles}}
Mole fractions have no units and add up to 1. A gas's partial pressure is independent of the other gases because, in the ideal model, particles don't attract each other and take up no space: adding Ar atoms doesn't change how often the He atoms hit the walls.

Example 4: Partial pressures from a particle diagram (AP-style)

3.4 - Ideal Gas Law
The container on the left holds a mixture of He and Ar at a total pressure of 2.40 atm. (a) Find the partial pressure of each gas. (b) Five more Ar atoms are added at the same volume and temperature, as shown on the right. Find the new partial pressures and the new total pressure.
(a) Count the particles: 6 He and 4 Ar, 10 in all.
PHe=(2.40 atm)(610)=1.44 atm,PAr=(2.40 atm)(410)=0.960 atmP_{\mathrm{He}} = (2.40\ \mathrm{atm})\left(\frac{6}{10}\right) = 1.44\ \mathrm{atm}, \qquad P_{\mathrm{Ar}} = (2.40\ \mathrm{atm})\left(\frac{4}{10}\right) = 0.960\ \mathrm{atm}
(b) The number of He atoms, the volume, and the temperature haven't changed, so PHeP_{\mathrm{He}} stays 1.44 atm. Each atom contributes 2.40 atm/10=0.240 atm2.40\ \mathrm{atm} / 10 = 0.240\ \mathrm{atm}, so the 9 Ar atoms give
PAr=9×0.240 atm=2.16 atm,Ptotal=1.44+2.16=3.60 atmP_{\mathrm{Ar}} = 9 \times 0.240\ \mathrm{atm} = 2.16\ \mathrm{atm}, \qquad P_{\mathrm{total}} = 1.44 + 2.16 = 3.60\ \mathrm{atm}
Check with the mole fraction: XHe=6/15=0.400X_{\mathrm{He}} = 6/15 = 0.400, and (3.60 atm)(0.400)=1.44 atm(3.60\ \mathrm{atm})(0.400) = 1.44\ \mathrm{atm}. The mole fraction of He went down, but its partial pressure didn't change: partial pressure depends on how much of that gas is present, not on what else is in the container.

Example 5: Collecting a gas over water

Hydrogen gas from a reaction is collected over water at 22.0 °C. The collected gas fills 125 mL at a total pressure of 755 torr. The vapor pressure of water at 22.0 °C is 19.8 torr. How many moles of H2\mathrm{H_2} were collected?
Step 1: The gas in the tube is a mixture of H2\mathrm{H_2} and water vapor, so subtract the water's share:
PH2=755 torr−19.8 torr=735 torr=0.967 atmP_{\mathrm{H_2}} = 755\ \mathrm{torr} - 19.8\ \mathrm{torr} = 735\ \mathrm{torr} = 0.967\ \mathrm{atm}
Step 2: Use T=295.15 KT = 295.15\ \mathrm{K} and V=0.125 LV = 0.125\ \mathrm{L}:
n=PVRT=(0.967 atm)(0.125 L)(0.08206 L atm mol−1 K−1)(295.15 K)=4.99×10−3 moln = \frac{PV}{RT} = \frac{(0.967\ \mathrm{atm})(0.125\ \mathrm{L})}{(0.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}})(295.15\ \mathrm{K})} = 4.99 \times 10^{-3}\ \mathrm{mol}
Answer: 4.99×10−34.99 \times 10^{-3} mol of H2\mathrm{H_2}.

Common mistakes

  • Using Celsius in a gas law calculation. Always convert to kelvins.
  • Mixing units with RR. With 0.08206 L atm mol−1 K−10.08206\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}}, pressure must be in atm and volume in liters.
  • Thinking a gas's partial pressure changes when another gas is added at constant VV and TT. Only the total and the mole fractions change.
  • Forgetting to subtract water's vapor pressure when a gas is collected over water.
  • Calling a VV vs. TT graph in °C proportional. It's a straight line, but it passes through the origin only when TT is in kelvins.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.