AP Chemistry · Unit 3: Properties of Substances and Mixtures

3.4 Ideal Gas Law

Essential Question

How are the pressure, volume, temperature, and amount of a gas related?

Four variables describe any sample of gas. The ideal gas law ties all four together in one equation, so if you know three of them, you can find the fourth. By the end of this lesson, you should be able to solve for any variable and predict how a gas responds when conditions change.

Video not loading? Watch it on YouTube.

Describing a Gas

  • P: pressure, in atm, torr, or kPa
  • V: volume, in liters (L)
  • n: amount, in moles (mol)
  • T: temperature, in kelvin (K)
A box of moving gas particles labeled with the four variables: V is the space the gas fills, n is the number of particles, P comes from wall collisions, and T relates to particle speed.

Each variable connects to what the particles are doing: n counts the particles, V is the space they move through, T reflects how fast they move, and P comes from their collisions with the walls.

The Ideal Gas Law

PV = nRT

  • R = the ideal gas constant
  • Ideal gas: particles take up no space and do not attract each other

No real gas is perfectly ideal, but most gases come very close at high temperature and low pressure, where the particles are far apart and moving fast. Topic 3.6 looks at what happens when that assumption breaks down.

Units to Know

  • 1 atm = 760 torr = 760 mmHg = 101.3 kPa
  • K = °C + 273
  • Temperature must always be in kelvin
  • STP: 273 K and 1 atm

STP is a handy reference point. At STP, 1 mol of any ideal gas takes up about 22.4 L.

Choosing R

Pressure unitR value
atm0.08206 L·atm/(mol·K)
torr or mmHg62.36 L·torr/(mol·K)
kPa8.314 L·kPa/(mol·K)

Match R to your pressure unit. Volume is always in liters. If a problem gives pressure in torr, you can use 62.36 or convert to atm first. Both routes give the same answer.

Pressure and Volume

A piston with a large volume and low pressure is squeezed to a small volume and high pressure. A graph of pressure versus volume shows a curve that falls as volume increases.
  • n and T constant: smaller volume → higher pressure (inverse)

This is Boyle’s law: P1V1 = P2V2. Squeezing a gas into half the volume doubles the pressure, because the particles hit the walls twice as often.

Volume and Temperature

  • P and n constant
  • Higher T → faster particles → larger V
  • Direct relationship, only when T is in kelvin
Graph of volume versus temperature in kelvin at constant P and n. Measured data form a straight line that, when extended as a dashed line, reaches zero volume at 0 K.

This is Charles’s law: V1/T1 = V2/T2. If you extend the measured data (the dashed line), the volume reaches zero at 0 K. That is why the relationship only works in kelvin. 0 °C is not the zero point.

More Direct Relationships

Two straight-line graphs through the origin: pressure versus temperature in kelvin at constant V and n, and volume versus moles at constant P and T.
  • Hotter gas: harder, more frequent collisions → higher P
  • More particles: need more space → larger V

The first graph is Gay-Lussac’s law (P ∝ T at constant V and n). The second is Avogadro’s law (V ∝ n at constant P and T). Avogadro’s law means equal volumes of gases at the same temperature and pressure contain the same number of moles, no matter what the gas is.

Changing Conditions

P1 V1 over n1 T1 equals P2 V2 over n2 T2.
  • Cancel any variable that stays constant
  • Example: T doubles at constant V and n → P doubles

Since PV/nT always equals R, it has the same value before and after any change. Start from this combined equation and cross out whatever stays the same. At constant n and T, it simplifies to Boyle’s law. At constant P and n, it becomes Charles’s law. You only need to remember the one equation.

Dalton’s Law of Partial Pressures

Gas A alone has a pressure of 0.60 atm and Gas B alone has 0.40 atm. Combined in the same volume and temperature, the mixture has a total pressure of 1.00 atm.

Ptotal = PA + PB + PC + …

  • Each gas acts as if it were alone in the container.

In the diagram, Gas A alone exerts 0.60 atm and Gas B alone exerts 0.40 atm. Put both in the same container at the same temperature, and the total pressure is 0.60 atm + 0.40 atm = 1.00 atm. This works because ideal gas particles do not attract or repel each other, so each gas keeps hitting the walls just as it did on its own.

Mole Fraction

  • XA = moles of A ÷ total moles
  • PA = XA × Ptotal
  • Example: 0.60 × 1.00 atm = 0.60 atm
A container with 6 blue Gas A particles and 4 red Gas B particles. The mole fraction of A is 6 out of 10, or 0.60.

In the diagram, 6 of the 10 particles are Gas A, so XA = 6/10 = 0.60. If the total pressure is 1.00 atm, Gas A contributes 0.60 atm of it. The mole fractions of all the gases in a mixture always add up to 1.

↑ Back to top


Worked Examples

Try each problem on your own first, then open the solution to check your work.

Example 1: Finding Pressure

A 10.0 L tank holds 2.50 mol of O2 gas at 25 °C. What is the pressure of the gas in atm?

Show the solution
  1. Equation: PV = nRT, so P = nRT/V
  2. Knowns: V = 10.0 L, n = 2.50 mol, T = 25 + 273 = 298 K. The answer is wanted in atm, so use R = 0.08206 L·atm/(mol·K).
  3. Substitute: P = (2.50 mol)(0.08206 L·atm/(mol·K))(298 K) ÷ 10.0 L
  4. Multiply the top: (2.50)(0.08206)(298) = 61.13 L·atm. The mol and K cancel.
  5. Divide: 61.13 L·atm ÷ 10.0 L = 6.113 atm. The L cancels, leaving atm.
  6. Answer: P = 6.11 atm (3 significant figures)

Example 2: Finding Molar Mass

A 1.00 g sample of an unknown gas fills a 0.560 L flask at 273 K and 1.00 atm. What is the molar mass of the gas?

Show the solution
  1. Plan: molar mass = grams ÷ moles. You know the grams, so use PV = nRT to find the moles.
  2. Solve for n: n = PV/RT
  3. Substitute: n = (1.00 atm)(0.560 L) ÷ [(0.08206 L·atm/(mol·K))(273 K)] = 0.560 ÷ 22.40 = 0.0250 mol
  4. Molar mass: M = 1.00 g ÷ 0.0250 mol
  5. Answer: M = 40.0 g/mol. That is very close to argon (39.95 g/mol).
  6. Shortcut check: 273 K and 1.00 atm is STP, where 1 mol takes up 22.4 L. So 0.560 L ÷ 22.4 L/mol = 0.0250 mol, the same answer.

Example 3: Heating a Balloon

A balloon holds 2.00 L of helium at 25 °C. It is warmed to 75 °C at constant pressure. What is the new volume of the balloon?

Show the solution
  1. Cancel what stays constant: P and n do not change, so the combined equation becomes V1/T1 = V2/T2.
  2. Convert to kelvin: T1 = 25 + 273 = 298 K and T2 = 75 + 273 = 348 K
  3. Solve for V2: V2 = V1 × T2/T1 = 2.00 L × (348 K ÷ 298 K)
  4. Answer: V2 = 2.34 L. The gas got warmer, so the volume got larger, which makes sense.
  5. The trap: using Celsius gives 2.00 L × 75/25 = 6.00 L, which is wrong. Heating from 25 °C to 75 °C does not triple the particle energy. Always use kelvin.

Example 4: Partial Pressure from Moles

A mixture contains 0.60 mol N2 and 0.20 mol O2. The total pressure is 2.00 atm. What is the partial pressure of O2?

Show the solution
  1. Total moles: 0.60 mol + 0.20 mol = 0.80 mol
  2. Mole fraction: XO2 = 0.20 mol ÷ 0.80 mol = 0.25
  3. Partial pressure: PO2 = XO2 × Ptotal = 0.25 × 2.00 atm
  4. Answer: PO2 = 0.50 atm
  5. Check: PN2 = 0.75 × 2.00 atm = 1.50 atm, and 1.50 atm + 0.50 atm = 2.00 atm, which matches the total.

Example 5: Partial Pressure from a Diagram

The container holds a mixture of Gas X and Gas Y. The total pressure is 1.50 atm. What is the partial pressure of Gas X?

A container holding 7 blue Gas Y particles and 3 red Gas X particles.
Show the solution
  1. Count the particles: 3 Gas X (red) and 7 Gas Y (blue), for 10 total. Each particle stands for the same amount of gas, so counts work just like moles.
  2. Mole fraction: XX = 3 ÷ 10 = 0.30
  3. Partial pressure: PX = 0.30 × 1.50 atm
  4. Answer: PX = 0.450 atm. The particle counts are exact, so the 3 significant figures come from 1.50 atm.
  5. Check: PY = 0.70 × 1.50 atm = 1.05 atm, and 0.450 atm + 1.05 atm = 1.50 atm.

↑ Back to top


Practice

Explore gas behavior

Move the piston, heat the gas and add particles, and watch how pressure, volume and temperature respond.

Lab worksheet: PDF | Answer key: PDF

Lab check: answer 5 questions inside the lab for a completion code. Open the Lab check | Lab check sheet: PDF | Answer key: PDF

Explore the Gas Laws

Lock two variables, change another, and watch the particles and a live graph show Boyle’s, Charles’s, Gay-Lussac’s and Avogadro’s laws. No login needed.

Lab worksheet: PDF | Answer key: PDF

Practice with instant feedback

Answer original AP-style questions for Unit 3 and see an explanation right after each one. Choose Topic 3.4 or mix topics. No login needed.

↑ Back to top


Lesson Slides

↑ Back to top


Big Ideas

EquationUse it when…
PV = nRTOne set of conditions
P1V1/(n1T1) = P2V2/(n2T2)Conditions change
Ptotal = PA + PB + …Adding partial pressures
PA = XA × PtotalOne gas in a mixture

Back to the essential question: pressure, volume, temperature, and amount are all linked by PV = nRT. Hold two of them constant, and the other two are either directly proportional (V and T, P and T, V and n) or inversely proportional (P and V). Next up, Topic 3.5 uses kinetic molecular theory to explain why gases behave this way.

↑ Back to top


AP Alignment

This lesson covers Topic 3.4, Ideal Gas Law, in Unit 3 (Properties of Substances and Mixtures) of the College Board AP Chemistry Course and Exam Description (CED). Learning objective:

  • 3.4.A: Explain the relationship between the macroscopic properties of a sample of gas or mixture of gases using the ideal gas law.

Essential knowledge: 3.4.A.1, 3.4.A.2, 3.4.A.3

Suggested skill: 5.C Mathematical Routines. Explain the relationship between variables within an equation when one variable changes.

↑ Back to top