AP PHYSICS 2: ALGEBRA-BASED • THERMODYNAMICS

The Ideal Gas Law

A unifying equation that connects pressure, volume, temperature, and the number of particles in a gas.

Historical Context & Motivation

The behavior of gases captivated natural philosophers for centuries, driven by practical questions about steam engines, weather, and the very nature of matter. Before the ideal gas law emerged as a single unifying equation, a series of empirical gas laws were discovered independently, each isolating the relationship between two state variables while holding others constant. The synthesis of these separate laws into one elegant expression represents a triumph of scientific reasoning—combining observation, mathematical generalization, and the emerging kinetic theory of matter into a tool of remarkable predictive power.

1662
Boyle's Law
Robert Boyle demonstrated that for a fixed amount of gas at constant temperature, pressure and volume are inversely proportional: PV = constant. This was one of the first quantitative laws in physical science.
1787
Charles's Law
Jacques Charles found that the volume of a gas at constant pressure increases linearly with temperature. His unpublished work, later confirmed by Gay-Lussac, established the concept of absolute zero as the temperature at which volume extrapolates to zero.
1811
Avogadro's Hypothesis
Amedeo Avogadro proposed that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules. This revolutionary idea linked macroscopic volume to microscopic particle count.
1834
Clapeyron's Synthesis
Émile Clapeyron combined Boyle's, Charles's, and Gay-Lussac's laws into a single equation of state: PV = nRT. This compact expression unified decades of empirical gas research into one framework.
1857
Kinetic Theory Foundation
Rudolf Clausius provided a microscopic derivation of the ideal gas law from the kinetic theory of gases, showing that pressure arises from molecular collisions with container walls—connecting macroscopic thermodynamics to atomic-scale mechanics.

The central question these scientists addressed was deceptively simple: how do the macroscopic properties of a gas—pressure, volume, and temperature—relate to each other and to the amount of gas present? The ideal gas law provides the answer under conditions where intermolecular forces and molecular volumes are negligible, which serves as the starting point for all gas-phase thermodynamics in AP Physics 2.

Core Principles & Definitions

An ideal gas is a theoretical model in which gas molecules are treated as point particles that undergo perfectly elastic collisions and exert no long-range forces on one another. While no real gas behaves ideally under all conditions, the model provides an excellent approximation at low pressures and high temperatures—precisely the regime explored in most AP Physics 2 problems. Understanding the assumptions and variables of this model is essential before applying the equation.

1

Point-Particle Assumption

Gas molecules occupy negligible volume compared to the container. The actual molecular volume is ignored, so the entire container volume is available for motion.
2

No Intermolecular Forces

Between collisions, molecules neither attract nor repel each other. The only interactions are perfectly elastic collisions with walls and other molecules, conserving total kinetic energy.
3

Thermal Equilibrium

Temperature reflects the average translational kinetic energy of molecules. At equilibrium, every molecule shares the same average KE regardless of mass, following Kavg = (3/2)kBT.
4

State Variables

The ideal gas law connects four macroscopic state variables: pressure (P), volume (V), absolute temperature (T), and number of moles (n) or number of molecules (N). Each must be in consistent SI units.
KEY TAKEAWAY
KEY TAKEAWAY

Visualizing Gas Behavior

The diagram below illustrates how the three classic gas laws—Boyle's, Charles's, and Gay-Lussac's—are each special cases of the ideal gas law. Each panel shows a piston-cylinder system with the constrained variable indicated, demonstrating how fixing one quantity produces a predictable relationship between the other two.

Each panel shows a piston-cylinder system. Boyle's law (left) holds temperature constant and shows the inverse P–V relationship. Charles's law (center) holds pressure constant, revealing the direct V–T relationship. Gay-Lussac's law (right) holds volume constant, showing the direct P–T relationship. Faster-moving molecules (longer velocity arrows) indicate higher temperature.

Notice that in every case, one variable is held constant while the other two change. The ideal gas law, PV = nRT, encodes all three relationships simultaneously—fixing any one variable and the amount of gas recovers the corresponding historical law. This is why a single equation replaces three separate ones, and why recognizing which variables are held constant in a given AP problem is the essential first step in selecting the right approach.

Mathematical Framework

The ideal gas law can be written in two equivalent forms depending on whether you count gas in moles or in individual molecules. Both forms appear on the AP Physics 2 exam, and you must be comfortable converting between them.

MOLAR FORM
PV = nRT
P = absolute pressure (Pa) • V = volume (m³) • n = number of moles (mol) • R = universal gas constant = 8.314 J/(mol·K) • T = absolute temperature (K)
MOLECULAR FORM
PV = Nk_BT
N = number of molecules • kB = Boltzmann constant = 1.381 × 10⁻²³ J/K • Since N = nNA and R = NAkB, the two forms are algebraically equivalent.
COMBINED GAS LAW (FIXED n)
P₁V₁ / T₁ = P₂V₂ / T₂
When the amount of gas is unchanged between two states, dividing PV = nRT for each state yields this ratio form. This is extremely useful for AP problems where a sealed gas undergoes a change in conditions.
UNIT ALERT

The ideal gas law also connects to the microscopic picture through the average translational kinetic energy of a molecule. From kinetic theory, Kavg = (3/2)kBT. This means temperature is not merely a thermometer reading; it is a direct measure of the average kinetic energy per molecule. Doubling the absolute temperature doubles Kavg and increases the root-mean-square speed by a factor of √2.

KINETIC ENERGY – TEMPERATURE LINK
K_avg = (3/2) k_B T
This equation holds for any ideal gas regardless of molecular mass. Heavier molecules move more slowly but carry the same average KE at the same temperature.

PV Diagrams & Processes

A PV diagram (pressure vs. volume) is the standard graphical tool for analyzing gas processes in thermodynamics. Each point on a PV diagram represents a unique equilibrium state of the gas, and a curve connecting two states represents the path of a quasi-static process. For an ideal gas, the equation PV = nRT defines a family of isotherms—hyperbolic curves along which temperature remains constant. Different thermodynamic processes trace distinct paths on this diagram, and the area under any path equals the work done by the gas.

Four common thermodynamic processes on a PV diagram. The isobaric process is horizontal (constant P), the isochoric process is vertical (constant V), the isothermal process follows a hyperbola (PV = constant), and the adiabatic process (no heat exchange) curves more steeply than the isotherm. The area under each curve represents the work done by the gas.
Summary of common ideal gas processes
ProcessHeld ConstantIdeal Gas ConsequenceWork Done by Gas
IsobaricPressure (P)V/T = constantW = PΔV
IsochoricVolume (V)P/T = constantW = 0
IsothermalTemperature (T)PV = constantW = nRT ln(V₂/V₁)
AdiabaticQ = 0 (no heat)PVγ = constantW = −ΔU

Worked Example

1
Step 1 — Read and IdentifyA sealed weather balloon contains 2.00 mol of helium at sea level where the temperature is 20.0 °C and the pressure is 1.013 × 10⁵ Pa. The balloon rises to an altitude where the pressure is 5.07 × 10⁴ Pa and the temperature is −20.0 °C. Find the volume of the balloon at altitude.
2
Step 2 — List Known Quantitiesn = 2.00 mol (sealed, so constant). State 1: P₁ = 1.013 × 10⁵ Pa, T₁ = 20.0 + 273.15 = 293.15 K. State 2: P₂ = 5.07 × 10⁴ Pa, T₂ = −20.0 + 273.15 = 253.15 K. Unknown: V₂. We also need V₁ to use the combined gas law, or we can compute V₂ directly from PV = nRT.
T₁ = 293.15 K, T₂ = 253.15 K
3
Step 3 — Choose EquationSince we know n, R, P₂, and T₂, we can find V₂ directly from PV = nRT without needing V₁. Rearranging: V₂ = nRT₂ / P₂.
4
Step 4 — Substitute and CalculateV₂ = (2.00 mol)(8.314 J/(mol·K))(253.15 K) / (5.07 × 10⁴ Pa). Numerator: 2.00 × 8.314 × 253.15 = 4209.7 J. Denominator: 5.07 × 10⁴ Pa. Since 1 J = 1 Pa·m³, we get V₂ = 4209.7 / 50700 = 0.08303 m³.
V₂ ≈ 0.0830 m³ ≈ 83.0 L
5
Step 5 — Verify with Combined Gas LawAs a check, find V₁ = nRT₁/P₁ = (2.00)(8.314)(293.15)/(1.013 × 10⁵) = 0.04808 m³. Now apply P₁V₁/T₁ = P₂V₂/T₂, solving for V₂: V₂ = V₁ × (P₁/P₂) × (T₂/T₁) = 0.04808 × (1.013 × 10⁵ / 5.07 × 10⁴) × (253.15/293.15) = 0.04808 × 1.998 × 0.8636 = 0.0830 m³. ✓ Consistent result.
Both methods confirm V₂ ≈ 0.0830 m³
6
Step 6 — Physical InterpretationThe balloon's volume at altitude is roughly 1.73 times its sea-level volume. The decrease in pressure tends to expand the balloon (Boyle's law effect), while the decrease in temperature tends to contract it (Charles's law effect). The net result is expansion because the pressure drops by about half, which dominates over the relatively modest temperature decrease of about 14%.

Strengths & Limitations

The ideal gas law is remarkably powerful within its domain of validity, but it is a model with clear boundaries. Understanding when the approximation breaks down is just as important as knowing how to apply it—the AP exam frequently tests this conceptual understanding.

When the ideal gas law works—and when it doesn't
StrengthsLimitations
Accurate for most gases at atmospheric pressure and moderate-to-high temperatures.Fails at very high pressures where molecular volume becomes significant compared to container volume.
Simple algebra—no calculus required for most applications.Fails near the boiling point of a substance, where intermolecular attractions cause condensation.
Unifies Boyle's, Charles's, Gay-Lussac's, and Avogadro's laws into one equation.Cannot account for phase transitions (liquid ↔ gas ↔ solid).
Connects macroscopic variables (P, V, T) to microscopic energy via kinetic theory.Does not describe polar or highly interactive gases (e.g., H₂O, NH₃) well at moderate pressures.
KEY TAKEAWAY
WHEN TO TRUST THE MODEL

Connection to Real Gases & Advanced Theory

While AP Physics 2 focuses on the ideal gas law, it is instructive to see how the model extends to real gases. The most famous correction is the van der Waals equation, which modifies PV = nRT by adding two parameters: one that accounts for intermolecular attraction (reducing effective pressure) and one that accounts for finite molecular volume (reducing effective volume). This equation smoothly reduces to the ideal gas law when the corrections are small, confirming that PV = nRT is the correct low-density limit.

Ideal vs. van der Waals gas models
FeatureIdeal Gas (PV = nRT)van der Waals Gas
Molecular volumeZero (point particles)Finite (correction parameter b)
Intermolecular forcesNoneAttractive (correction parameter a)
Phase transitionsNot predictedPredicted (liquid–gas coexistence)
EquationPV = nRT(P + an²/V²)(V − nb) = nRT
AP Physics 2 relevanceCore equation—used in most problemsConceptual awareness only—not calculated on exam

The ideal gas law also connects forward to statistical mechanics, where PV = nRT is derived from first principles by computing the ensemble average of molecular momenta colliding with container walls. In AP Physics 2, you should be prepared to explain qualitatively why increasing temperature increases pressure (faster molecules strike walls harder and more frequently) and why decreasing volume increases pressure (same molecules hit walls more often in a smaller space). These microscopic explanations reinforce the macroscopic equation and are commonly assessed in free-response questions.

Practice Problems

1
A sealed, rigid container holds an ideal gas at temperature T. If the absolute temperature is doubled, which of the following correctly describes the changes to the gas?
2
A 0.50 m³ tank contains nitrogen gas at a pressure of 2.0 × 10⁵ Pa and a temperature of 300 K. How many moles of nitrogen are in the tank? (R = 8.314 J/(mol·K))
3
An ideal gas initially at pressure P₁, volume V₁, and temperature T₁ undergoes an isothermal expansion to volume 3V₁, followed by an isochoric (constant-volume) heating that doubles its absolute temperature. What is the final pressure?
PROBLEM 4APPLIED
A student has access to a sealed syringe (whose volume can be measured by reading the graduations), a digital pressure sensor, a beaker of hot water, a beaker of ice water, and a thermometer. Design an experiment to verify that the pressure and temperature of a fixed amount of gas at constant volume obey Gay-Lussac's law (P/T = constant). (a) Describe a step-by-step procedure the student should follow. (b) State what quantities should be measured and how they should be plotted. (c) Explain how the resulting graph should look if Gay-Lussac's law is correct. (d) Identify one significant source of error and explain its effect on the results.
PROBLEM 5CRITICAL THINKING
Two identical rigid containers, A and B, each hold an ideal gas at the same initial pressure P₀ and temperature T₀. Container A holds helium (monatomic, molar mass 4 g/mol) and container B holds nitrogen (diatomic, molar mass 28 g/mol). Both containers are heated so that each gas absorbs the same amount of thermal energy Q. (a) Determine which container reaches a higher final temperature. Justify your answer using the ideal gas law and the concept of degrees of freedom. (b) Determine which container reaches a higher final pressure. Justify your answer. (c) A student claims that since both gases started at the same pressure and temperature in identical containers, they must have the same number of moles. Evaluate this claim. (d) Compare the final rms speeds of helium and nitrogen molecules in their respective containers. Justify your reasoning.
Varsity Tutors • AP Physics 2: Algebra-Based • The Ideal Gas Law