COLLEGE PHYSICS • THERMODYNAMICS

The Ideal Gas Law

A unifying equation relating pressure, volume, temperature, and quantity of a gas under idealized conditions.

Historical Context & Motivation

The quest to understand the behavior of gases stretches back to the seventeenth century, when natural philosophers first began conducting systematic experiments on air and other "elastic fluids." At the time, the nature of matter itself was deeply contested—atomism was far from universally accepted, and quantitative physical laws were still emerging from qualitative observations. What drove these early investigators was a fundamentally practical question: how does a confined gas respond when you change its pressure, temperature, or volume? The answers they uncovered, one empirical law at a time, would eventually coalesce into a single, elegant equation—the ideal gas law—that remains one of the most widely used relationships in all of physics and chemistry.

The development of the ideal gas law was not the work of a single mind but rather the gradual synthesis of several independent discoveries spanning nearly two centuries. Each contributor isolated one pair of variables while holding others constant, and it was the eventual recognition that these separate laws could be unified that gave rise to the equation of state we use today. Understanding this historical arc is valuable not only for appreciating the science, but also for recognizing that the ideal gas law is fundamentally an empirical approximation—a model that works extraordinarily well under many conditions but has well-defined limits.

1662
Boyle's Law
Robert Boyle demonstrated that the pressure and volume of a gas are inversely proportional at constant temperature (P ∝ 1/V), establishing one of the first quantitative laws in physical science.
1787
Charles's Law
Jacques Charles discovered that the volume of a gas at constant pressure is directly proportional to its absolute temperature (V ∝ T), though his work was not published until later by Gay-Lussac.
1802
Gay-Lussac's Law
Joseph Louis Gay-Lussac showed that the pressure of a gas at constant volume is directly proportional to its absolute temperature (P ∝ T), completing the trio of component laws.
1811
Avogadro's Hypothesis
Amedeo Avogadro proposed that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules, introducing the crucial link between volume and amount of substance (V ∝ n).
1834
The Combined Gas Law
Émile Clapeyron synthesized the individual gas laws into a single equation of state, PV = nRT, in his work on the Carnot cycle—giving birth to the ideal gas law in its modern form.

The central question that the ideal gas law answers is deceptively simple: given any three of the macroscopic state variables—pressure, volume, temperature, and amount of gas—can we predict the fourth? The power of PV = nRT lies in its ability to do exactly that, providing a remarkably accurate prediction for gases under a wide range of ordinary conditions. It also serves as the foundation upon which more sophisticated equations of state—such as the van der Waals equation—are built when real-gas behavior departs from the ideal.

Core Principles & Definitions

The ideal gas law rests on a set of simplifying assumptions about the microscopic nature of a gas. An ideal gas is a theoretical construct in which molecules are treated as point particles with no volume, experiencing no intermolecular forces except during perfectly elastic collisions. While no real gas satisfies these criteria exactly, many gases—particularly at low pressures and high temperatures—behave closely enough to the ideal that the model provides predictions accurate to within a few percent. To apply the ideal gas law effectively, one must understand each of its constituent variables and the physical principles they encode.

1

Pressure (P)

The force per unit area exerted by gas molecules as they collide with container walls. Measured in pascals (Pa), atmospheres (atm), or torr. In SI, 1 atm = 101 325 Pa.
2

Volume (V)

The three-dimensional space occupied by the gas. In SI, measured in cubic meters (m³), though liters (L) are common in chemistry contexts. 1 m³ = 1000 L.
3

Amount of Substance (n)

The number of moles of gas present. One mole contains Avogadro's number (Nₐ ≈ 6.022 × 10²³) of molecules. Connects macroscopic measurements to molecular counts.
4

Temperature (T)

A measure of the average translational kinetic energy of gas molecules. Must always be expressed in kelvins (K) for the ideal gas law: T(K) = T(°C) + 273.15.
5

Universal Gas Constant (R)

The proportionality constant linking the state variables. R = 8.314 J/(mol·K) in SI. Alternative values: 0.08206 L·atm/(mol·K) when using liters and atmospheres.
KEY TAKEAWAY
Think of the ideal gas law as a budget equation for molecular energy. Just as a household budget must balance income against expenditures, PV = nRT balances the mechanical pressure–volume product (which has units of energy) against the thermal energy stored in the gas (proportional to nT). If you increase the temperature while holding the container rigid (V constant), the gas molecules move faster and the pressure must rise to maintain the balance—exactly as an increased income, with fixed expenses, leaves more in the account.

Visual Explanation — State Variables in Action

The relationships embedded in PV = nRT become most intuitive when visualized graphically. The following diagram illustrates the three component gas laws—Boyle's law, Charles's law, and Gay-Lussac's law—as separate P–V, V–T, and P–T plots. Each curve represents the behavior of a fixed amount of ideal gas when one variable is held constant.

Figure 1. The three component gas laws shown as separate graphs. Left: Boyle's law shows the hyperbolic inverse relationship between P and V at constant temperature. Center: Charles's law shows V rising linearly with T at constant pressure, with all lines extrapolating to zero volume at 0 K. Right: Gay-Lussac's law shows P rising linearly with T at constant volume.

Several features of these plots deserve careful attention. In the Boyle's law panel, each isothermal curve is a rectangular hyperbola—the product PV remains constant along any one curve, and shifting to a higher temperature translates the curve outward because the same number of molecules now carries more kinetic energy. In the Charles's and Gay-Lussac's panels, the linear relationships extrapolate to zero volume or zero pressure at absolute zero (0 K), which historically provided strong evidence for the existence of an absolute temperature scale. Of course, real gases liquefy or solidify before reaching 0 K, so these extrapolations remain theoretical—but they underscore the deep connection between temperature and molecular motion that the ideal gas model captures.

Mathematical Framework

The ideal gas law can be derived by combining the proportionalities established by Boyle, Charles, and Avogadro. From Boyle's law at constant T and n, we have V ∝ 1/P. From Charles's law at constant P and n, V ∝ T. From Avogadro's principle at constant P and T, V ∝ n. Combining these three proportionalities yields V ∝ nT/P, and introducing the proportionality constant R gives the equation of state.

IDEAL GAS LAW
PV = nRT
P = absolute pressure (Pa), V = volume (m³), n = amount of substance (mol), R = 8.314 J/(mol·K), T = absolute temperature (K). The product PV has units of energy (joules).

An alternative molecular-level form of the equation replaces the mole count n with the total number of molecules N = nNA and the gas constant R with the Boltzmann constant kB = R/NA. This form is particularly useful in statistical mechanics and kinetic theory.

MOLECULAR FORM
PV = Nk_BT
N = number of molecules, kB = 1.381 × 10⁻²³ J/K (Boltzmann constant). This equation connects the macroscopic state variables directly to the microscopic particle count.

A third useful variant applies when the amount of gas is fixed (n = const) and one wishes to compare two states of the same sample. Dividing PV = nRT for state 1 by the same equation for state 2 yields the combined gas law.

COMBINED GAS LAW
P₁V₁ / T₁ = P₂V₂ / T₂
Subscripts 1 and 2 denote the initial and final states, respectively. This form is especially convenient for problems in which a gas undergoes a change of state and two of the three variables change simultaneously.
⚠️ Unit Consistency
The single most common source of error in ideal gas law calculations is a failure to use consistent units. If P is in pascals and V in cubic meters, then R = 8.314 J/(mol·K). If P is in atmospheres and V in liters, then R = 0.08206 L·atm/(mol·K). Temperature must always be in kelvins—never Celsius or Fahrenheit.

Microscopic Origin — Kinetic Theory of Gases

The ideal gas law is an empirical equation, but the kinetic theory of gases provides a powerful microscopic derivation from first principles. By modeling a gas as a large number of identical particles undergoing perfectly elastic collisions in a container, one can show that pressure arises from the transfer of momentum to the container walls. Specifically, for N identical particles of mass m in a cubic container of side length L, the pressure exerted on one wall is P = Nm⟨v²⟩/(3V), where ⟨v²⟩ is the mean square speed. Identifying ½m⟨v²⟩ with the average translational kinetic energy per molecule, ⟨K⟩ = (3/2)kBT, recovers PV = NkBT exactly. This derivation reveals the deep physical meaning of temperature: it is a direct measure of average translational kinetic energy at the molecular level.

Figure 2. Kinetic theory visualization. Gas molecules (colored circles) move randomly within a rigid container, colliding elastically with walls and each other. Velocity vectors (arrows) show the random distribution of speeds. The assumptions box lists the five idealizations of the kinetic model; their consequence—the ideal gas law PV = NkBT—is highlighted in the result box.

The diagram above emphasizes a critical insight: pressure is not an intrinsic property of individual molecules but an emergent, statistical property arising from the collective bombardment of container walls by an enormous number of particles. Each molecule contributes a tiny impulse during its collision with a wall, and the time-averaged force per unit area over many such collisions is what a pressure gauge measures. The ideal gas law, therefore, is inherently a macroscopic average over microscopic events—a bridge between the molecular and the measurable.

AVERAGE KINETIC ENERGY PER MOLECULE
⟨K⟩ = (3/2) k_B T
This equation links temperature directly to molecular kinetic energy. Each translational degree of freedom contributes (1/2)kBT, and a monatomic ideal gas has three translational degrees of freedom.

Worked Example

Consider the following problem: A rigid steel cylinder of volume 50.0 L contains nitrogen gas (N₂) at a gauge pressure of 150 atm and a temperature of 25.0 °C. How many moles of nitrogen are in the cylinder, and what would the pressure become if the cylinder were heated to 80.0 °C?

Nitrogen in a Steel Cylinder
1
Step 1 — Identify Given Values and Convert UnitsVolume: V = 50.0 L. Gauge pressure: Pgauge = 150 atm, so absolute pressure P = 150 + 1 = 151 atm (adding atmospheric pressure). Temperature: T₁ = 25.0 °C = 298.15 K. We will use R = 0.08206 L·atm/(mol·K) to match the pressure and volume units.
P = 151 atm, V = 50.0 L, T₁ = 298.15 K
2
Step 2 — Solve for n Using PV = nRTRearranging the ideal gas law: n = PV/(RT). Substituting: n = (151 atm × 50.0 L) / (0.08206 L·atm/(mol·K) × 298.15 K). Computing the numerator: 151 × 50.0 = 7550 L·atm. Computing the denominator: 0.08206 × 298.15 = 24.47 L·atm/mol.
n = 7550 / 24.47 ≈ 308.5 mol
3
Step 3 — Apply Combined Gas Law for Heated StateThe cylinder is rigid (V = constant) and sealed (n = constant), so we use Gay-Lussac's law: P₁/T₁ = P₂/T₂. The new temperature is T₂ = 80.0 °C = 353.15 K. Solving for P₂: P₂ = P₁ × (T₂/T₁) = 151 atm × (353.15 / 298.15).
P₂ = 151 × 1.1844 ≈ 178.8 atm (absolute)
4
Step 4 — Interpret the ResultThe pressure increased by roughly 18.4% for a temperature increase from 298 K to 353 K—a ratio of about 1.18. This proportional increase is characteristic of Gay-Lussac's law and is why pressurized gas cylinders carry warnings about high-temperature storage. The gauge pressure reading would be P₂ − 1 atm ≈ 177.8 atm.
Pgauge177.8 atm

Strengths & Limitations of the Ideal Gas Model

No model in physics is universally valid, and understanding the boundary between where a model works well and where it breaks down is essential to scientific literacy. The ideal gas law is an outstanding approximation for many situations, but it fails systematically under conditions where the two core idealizations—point-like molecules and zero intermolecular forces—become poor assumptions.

Table 1 — Strengths and limitations of the ideal gas model
FeatureStrengthLimitation
SimplicityOnly four variables and one constant; easy to memorize and apply across many contexts.Oversimplifies reality; no account of molecular size, shape, or polarity.
Low-pressure accuracyPredicts gas behavior within ~1% for most gases near atmospheric pressure and room temperature.At high pressures (hundreds of atm), molecular volume is no longer negligible compared to container volume.
High-temperature accuracyIntermolecular forces are swamped by kinetic energy, making the no-forces assumption valid.Near the boiling point or critical temperature, attractive forces cause significant deviation (compressibility < 1).
UniversalityApplies equally to helium, nitrogen, methane, or any gas—identity-independent.Cannot distinguish between gases; fails to predict condensation, critical phenomena, or phase transitions.
MixturesDalton's law of partial pressures follows naturally: P_total = Σn_iRT/V for each component i.Breaks down for mixtures with strong component interactions (e.g., NH₃ + HCl).
KEY TAKEAWAY
The ideal gas law is to thermodynamics what Newtonian mechanics is to dynamics: a spectacularly useful first-order model that captures the essential physics for a wide range of conditions but must be replaced by more sophisticated theories (van der Waals, virial expansions, or full statistical mechanics) when pushed to extreme pressures, low temperatures, or situations where molecular identity matters. Knowing the regime of validity of a model is as important as knowing the model itself.

Connection to Real Gases & Advanced Theory

When real-gas behavior deviates noticeably from the ideal gas law, physicists and engineers turn to refined equations of state. The most historically important is the van der Waals equation, which introduces two corrections: a term a/V² that accounts for intermolecular attractions reducing the effective pressure, and a term b that accounts for the finite volume occupied by the molecules themselves. More general treatments include the virial expansion, which expresses PV/(nRT) as a power series in density, with each coefficient (the virial coefficients) encoding increasingly complex molecular interactions.

Table 2 — Ideal gas law vs. van der Waals equation
PropertyIdeal Gas LawVan der Waals Equation
EquationPV = nRT(P + an²/V²)(V − nb) = nRT
Molecular volumeNeglected (point particles)Accounted for via excluded volume parameter b
Intermolecular forcesNone assumedAttractive forces modeled by parameter a
Phase transitionsCannot predict; no liquid phaseQualitatively predicts liquid–gas transition and critical point
Compressibility factor ZAlways Z = 1Z < 1 at moderate P (attraction dominates); Z > 1 at very high P (repulsion dominates)
ComplexityLinear in all variables; analytically simpleCubic in V; may require numerical solution

The concept of the compressibility factor Z = PV/(nRT) provides a quantitative measure of how much a real gas deviates from ideality. For an ideal gas, Z = 1 by definition. Real gases typically have Z < 1 at moderate pressures (where attractive forces pull molecules closer together, reducing the volume relative to the ideal prediction) and Z > 1 at very high pressures (where molecular volume causes the gas to occupy more space than the ideal law predicts). Plots of Z versus pressure for different gases at a common temperature all converge to Z = 1 at low pressures, confirming that every real gas approaches ideal behavior in the low-density limit.

Practice Problems

PROBLEM 1CONCEPTUAL
A sealed, flexible balloon is carried from a warm room (25 °C) into a walk-in freezer (−20 °C). Assuming the gas inside behaves ideally and the external pressure remains constant, will the balloon expand, contract, or remain the same size? Explain your reasoning in terms of the ideal gas law.
PROBLEM 2BASIC CALCULATION
What volume does 2.50 mol of an ideal gas occupy at a pressure of 1.20 atm and a temperature of 350 K? Use R = 0.08206 L·atm/(mol·K).
PROBLEM 3INTERMEDIATE
A 12.0 L gas cylinder contains oxygen at 20.0 °C and 5.00 atm. The gas is transferred to an evacuated 30.0 L container at 40.0 °C. What is the final pressure of the oxygen?
PROBLEM 4APPLIED
A weather balloon is filled with 1.50 kg of helium (M = 4.003 g/mol) at sea level where the pressure is 101.3 kPa and the temperature is 15.0 °C. Estimate the volume of the balloon in cubic meters using the ideal gas law.
PROBLEM 5CRITICAL THINKING
The compressibility factor Z = PV/(nRT) for CO₂ at 300 K and 100 atm is approximately 0.20, far below the ideal value of 1.0. Explain physically why Z is so low under these conditions, and discuss whether the ideal gas law would overpredict or underpredict the actual molar volume. How would the van der Waals parameters a and b contribute to correcting the prediction?

Summary — The Ideal Gas Law

The ideal gas law, PV = nRT, unifies three historically independent empirical relationships—Boyle's law (P ∝ 1/V at constant T), Charles's law (V ∝ T at constant P), and Gay-Lussac's law (P ∝ T at constant V)—along with Avogadro's principle (V ∝ n) into a single equation of state. It describes a hypothetical ideal gas composed of point particles with no intermolecular forces, and is most accurate at low pressures and high temperatures where real gases most closely approximate these idealized conditions.

The kinetic theory of gases provides a microscopic derivation of the law, revealing that temperature is proportional to the average translational kinetic energy of molecules (⟨K⟩ = (3/2)kBT) and that pressure is the statistical result of molecular collisions with container walls. When real-gas deviations become significant, the compressibility factor Z quantifies departure from ideality, and the van der Waals equation or other advanced equations of state provide improved accuracy by accounting for finite molecular volume and intermolecular attractions.

Varsity Tutors • College Physics • The Ideal Gas Law