Ideal gas law — AP Chemistry Study Guide
For: AP Chemistry candidates sitting AP Chemistry.
Covers: The ideal gas law formula , standard temperature and pressure (STP) definitions, molar volume at STP, rearrangements for gas molar mass and density, Dalton’s law of partial pressures, and AP exam-specific problem-solving for ideal gas questions.
You should already know: Basic empirical gas laws (Boyle's, Charles's, Avogadro's). Unit conversion for temperature, pressure, and volume. Molar mass calculation from chemical formulas.
A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Chemistry style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.
1. What Is Ideal gas law?
The ideal gas law is a combined equation of state that relates the four measurable properties of an ideal gas: pressure (), volume (), temperature (), and amount of gas in moles (). An ideal gas is defined as a gas where intermolecular forces are negligible and gas molecules have no volume relative to their container, an approximation that holds for most gases at low pressure and high temperature, which covers nearly all problems you will see on the AP exam.
Per the College Board AP Chemistry CED, Unit 3 (Intermolecular Forces and Properties) accounts for 18-22% of total exam weight, and ideal gas law questions appear regularly on both multiple-choice (MCQ) and free-response (FRQ) sections, making up 5-10% of your total exam score directly, with additional connections to other topics like stoichiometry, equilibrium, and thermodynamics. Unlike individual empirical gas laws that only relate two variables while holding others constant, the ideal gas law relates all four variables at once, making it applicable to nearly all introductory gas problems.
2. Core Ideal Gas Law () and Unit Requirements
The ideal gas law is derived from combining the three empirical gas laws: Boyle’s law ( at constant ), Charles’s law ( at constant ), and Avogadro’s law ( at constant ). Combining these proportionalities gives the core formula: Where is the universal gas constant. For almost all AP Chemistry problems, you will use , which matches the most common units of pressure (atmospheres) and volume (liters) on the exam. If you work with energy units later in the course, you will use , but this is rarely needed for ideal gas law problems.
The non-negotiable requirement of the ideal gas law is that temperature must be in Kelvin, the absolute temperature scale. All other units must match the units of : if you use , pressure must be in atmospheres and volume in liters.
Worked Example
Problem: A 2.50 L sample of nitrogen gas is held at 32.0 °C and 1.15 atm. How many moles of nitrogen gas are in the sample?
- Convert temperature from Celsius to Kelvin:
- List all known values with units matching : , , ,
- Rearrange the ideal gas law to solve for :
- Plug in values and calculate:
- Verify units: All units cancel except moles, which matches the question request.
Exam tip: Always write down units for every variable and cancel units as you go. If your final units do not match what the question asks for, you know you rearranged the formula incorrectly before you calculate a wrong numerical answer.
3. Derived Relationships: Molar Mass and Gas Density
The ideal gas law can be rearranged to solve for two extremely useful properties for unknown gases: molar mass () and density (). Recall that moles are defined as , where is mass of the gas in grams, and is molar mass in g/mol. Substitute this into the core ideal gas law: Rearranging to solve for molar mass gives: Since density , substitute this into the equation to get a direct relationship between density, molar mass, pressure, and temperature: These derivations are very common on AP FRQs, where you may be asked to derive the relationship yourself or use it to find the molar mass of an unknown gas from experimental data.
Worked Example
Problem: A 0.512 g sample of an unknown volatile liquid is vaporized at 98.0 °C and 0.980 atm. The volume of the vapor is measured as 273 mL. What is the molar mass of the unknown liquid?
- Convert units to match : , , ,
- Use the rearranged formula for molar mass:
- Plug in values:
- Cancel units: atm, L, and K cancel, leaving g/mol (the correct unit for molar mass).
- Calculate:
Exam tip: If you forget the derived formula for molar mass or density, just start from and substitute step-by-step. You will never lose points for deriving it yourself, and you avoid memorizing the formula incorrectly.
4. Dalton's Law of Partial Pressures
For mixtures of non-reacting ideal gases, the ideal gas law applies to the mixture as a whole and to each individual gas in the mixture. Dalton’s law of partial pressures states that the total pressure of a mixture is equal to the sum of the partial pressures of each individual gas, where the partial pressure of a gas is the pressure it would exert if it occupied the entire container alone. Mathematically: Since all gases in the same mixture share the same volume and temperature, partial pressure is proportional to the mole fraction of the gas , giving the useful relationship: .
One of the most common AP exam applications of Dalton’s law is for gases collected over water: the total pressure in the collection vessel is the sum of the pressure of the collected gas and the vapor pressure of water at the experimental temperature, so .
Worked Example
Problem: Oxygen gas is collected over water at 25 °C. The total pressure in the collection vessel is 1.02 atm, and the vapor pressure of water at 25 °C is 0.0313 atm. If the volume of the vessel is 1.50 L, how many moles of oxygen gas were collected?
- Calculate the partial pressure of oxygen using Dalton’s law:
- Convert temperature to Kelvin:
- Rearrange the ideal gas law to solve for :
- Plug in values:
Exam tip: When a problem says a gas is collected over water, always look for the given water vapor pressure and subtract it first. The AP exam always provides the water vapor pressure, you never need to memorize it, but you do need to remember to use it.
5. Common Pitfalls (and how to avoid them)
- Wrong move: Using temperature in Celsius instead of Kelvin in . Why: Most problems give experimental temperatures in Celsius for realism, and students forget the ideal gas law requires absolute temperature. Correct move: Always convert temperature to Kelvin as your first step after writing down known values.
- Wrong move: Mismatching units of pressure/volume to the gas constant R. Why: Students memorize but forget it requires liters and atmospheres; they leave volume in mL or pressure in kPa and get the wrong order of magnitude. Correct move: After writing down R, explicitly check that your P and V units match R’s units, and convert if necessary before plugging in.
- Wrong move: Forgetting to subtract water vapor pressure when calculating moles of gas collected over water. Why: Students only use the total pressure given in the problem, ignoring that water contributes to the total pressure. Correct move: If the problem states the gas is collected over water, always subtract the given water vapor pressure from total pressure first.
- Wrong move: Using the old STP molar volume of 22.4 L/mol for problems using the current AP STP definition. Why: Many older textbooks teach the pre-1982 IUPAC STP definition; the AP CED uses the current IUPAC definition. Correct move: Remember current AP STP is 1 bar (0.9869 atm) and 273.15 K, with a molar volume of 22.7 L/mol; confirm which STP the problem specifies.
- Wrong move: Calculating mole fraction from mass percentages directly without converting to moles first. Why: Students confuse mass percent with mole percent and use mass fractions to calculate partial pressure. Correct move: Always convert masses of each gas to moles first, then calculate mole fraction from total moles.
- Wrong move: Assuming density is proportional to molar mass regardless of conditions. Why: Students memorize but forget density depends on P and T, so two gases with different molar masses can have the same density at different conditions. Correct move: Always use the full relationship for calculations, don’t rely on proportionality unless P and T are explicitly held constant.
6. Practice Questions (AP Chemistry Style)
Question 1 (Multiple Choice)
A rigid 5.0 L cylinder contains 0.10 mol of helium gas and 0.20 mol of neon gas at 25 °C. What is the partial pressure of helium in the cylinder? A) 0.49 atm B) 0.12 atm C) 0.98 atm D) 1.47 atm
Worked Solution: Convert temperature to Kelvin: . Use the ideal gas law directly for helium: . This can also be verified by calculating total pressure (1.47 atm) and multiplying by the mole fraction of helium (0.10/0.30 = 1/3) to get 0.49 atm. The correct answer is A.
Question 2 (Free Response)
A student performs an experiment to determine the molar mass of an unknown gas. The student measures 0.250 g of the gas in a 250 mL flask at 22 °C and 1.00 atm of pressure. (a) Calculate the molar mass of the unknown gas from the data. (b) If the actual molar mass of the gas is 62 g/mol, calculate the percent error in the student's experiment. (c) The student claims that the gas behaves ideally. State one condition under which the gas would deviate significantly from ideal behavior, and explain why the deviation occurs in terms of ideal gas assumptions.
Worked Solution: (a) Convert units: , . Use : (b) Percent error: (c) The gas will deviate significantly from ideal behavior at high pressure or low temperature. At high pressure, gas molecules are packed closely together, so the volume of the molecules themselves is no longer negligible compared to the container volume, violating a core assumption of ideal behavior. At low temperature, intermolecular attractive forces become significant, which also violates the ideal gas assumption of no intermolecular interactions.
Question 3 (Application / Real-World Style)
A standard propane () barbecue tank holds 12.0 kg of liquid propane. When connected to a barbecue, the propane vaporizes at 30 °C and 1.00 atm. What volume of gaseous propane is available for combustion at these conditions?
Worked Solution: First, calculate the molar mass of propane: . Convert mass of propane to moles: . Convert temperature to Kelvin: . Rearrange the ideal gas law to solve for volume: In context, this means a full barbecue tank produces approximately 6770 liters (240 cubic feet) of gaseous propane at room temperature and atmospheric pressure, which matches the large volume expansion observed when liquid propane vaporizes.
7. Quick Reference Cheatsheet
| Category | Formula | Notes |
|---|---|---|
| Core Ideal Gas Law | T must be in Kelvin; for most AP problems | |
| Molar Mass from Ideal Gas Law | m = mass of gas in grams; use when you know mass, P, V, T | |
| Gas Density Relationship | d = density in g/L; P units must match R | |
| Dalton's Law of Partial Pressures | Sum of partial pressures equals total pressure | |
| Partial Pressure from Mole Fraction | ; mole fraction is unitless | |
| AP Current STP | 1 bar (0.9869 atm), 273.15 K | Molar volume = 22.7 L/mol at STP |
| Gas collected over water | Water vapor pressure is always given in the problem | |
| Mole Fraction Definition | Sum of all mole fractions in a mixture equals 1 |
8. What's Next
Mastering the ideal gas law is a critical prerequisite for the next topics in Unit 3: deviation from ideal gas behavior and kinetic molecular theory (KMT). Without a solid understanding of how to manipulate and solve for unknown gas properties, you will struggle to explain why real gases deviate from ideal behavior and connect KMT molecular predictions to measurable gas properties. The ideal gas law also connects to later topics across the AP Chemistry curriculum: it is used to calculate pressure changes in equilibrium problems, find molar masses of gaseous products in reaction stoichiometry, and relate gas properties to thermodynamics problems involving vaporization. Next, you will build on this foundation to explain gas behavior at the molecular level.