College Chemistry • States of Matter, Solutions, Intermolecular Forces

Ideal Gas Law

A unifying equation relating pressure, volume, temperature, and amount for gases under ideal conditions.

Laboratory test tubes with an atom and science notebook.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

The behavior of gases captivated natural philosophers and chemists for centuries, driven by practical needs ranging from the design of steam engines to understanding atmospheric phenomena. Before a single unifying equation existed, experimentalists painstakingly discovered individual relationships among the macroscopic variables of gas systems—pressure, volume, temperature, and amount of substance. Each empirical law held one or two variables constant, revealing a partial picture of gas behavior. The quest to merge these fragments into a coherent whole ultimately gave rise to the ideal gas law, one of the most widely applied equations in all of physical science.

1662 • Boyle's Law

Robert Boyle demonstrated that at constant temperature, the pressure of a gas is inversely proportional to its volume (P ∝ 1/V). Edme Mariotte independently confirmed this on the continent, so the relationship is sometimes called the Boyle–Mariotte law.

1787 • Charles's Law

Jacques Charles showed that the volume of a gas at constant pressure increases linearly with absolute temperature (V ∝ T). Joseph-Louis Gay-Lussac later published the supporting data.

1811 • Avogadro's Hypothesis

Amedeo Avogadro proposed that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules (V ∝ n), linking macroscopic volume to microscopic particle count.

1834 • Clapeyron's Combined Equation

Benoît Paul Émile Clapeyron synthesized the earlier proportionalities into a single equation of state, PV = nRT, introducing the universal gas constant R and establishing the ideal gas law in its modern algebraic form.

1873 • Van der Waals Corrections

Johannes van der Waals refined the ideal model by adding terms for intermolecular attractions and finite molecular volumes, earning the 1910 Nobel Prize and revealing precisely when and why the ideal approximation breaks down.

The central question these investigators sought to answer was deceptively simple: can the macroscopic properties of any gas be predicted from a single, elegant relationship? The ideal gas law provides an affirmative answer—under the assumption that gas particles occupy negligible volume and experience no intermolecular forces. Understanding when these assumptions hold, and when they fail, is essential for every practicing chemist and engineer.

SECTION 2

Core Principles & Definitions

The ideal gas law rests on a set of simplifying assumptions collectively known as the kinetic molecular theory of gases. These assumptions define an ideal gas—a hypothetical substance whose particles behave in perfectly predictable ways. Real gases approximate this model well under conditions of low pressure and high temperature, where intermolecular forces and molecular volumes become negligible relative to the bulk properties of the system.

1

Negligible Particle Volume

The volume occupied by the gas molecules themselves is assumed to be infinitesimally small compared to the volume of the container. The gas is essentially point masses moving through empty space.
2

No Intermolecular Forces

Ideal gas particles experience no attractive or repulsive interactions with one another. The only interactions are perfectly elastic collisions with the container walls and other particles.
3

Random, Continuous Motion

Particles move in straight-line paths at random velocities described by the Maxwell–Boltzmann distribution. The average kinetic energy is directly proportional to absolute temperature.
4

Elastic Collisions

All collisions—particle–particle and particle–wall—are perfectly elastic, meaning total kinetic energy is conserved. No energy is lost to deformation, rotation, or heat.
5

Large Number of Particles

Statistical averaging is valid because the system contains an enormous number of molecules (on the order of Avogadro's number), ensuring that macroscopic properties are well-defined averages.
✦

KEY TAKEAWAY

Think of ideal gas particles like perfectly hard billiard balls on a frictionless pool table that extends in three dimensions. The balls are so tiny relative to the table that they almost never encounter each other; when they do collide, they bounce off without losing any speed. The ideal gas law describes the statistical behavior of trillions of such balls—each one oblivious to the others' existence, collectively generating a measurable pressure when they strike the walls of the container.

SECTION 3

Visual Explanation — Microscopic to Macroscopic

The diagram below illustrates the microscopic picture underlying the ideal gas law. On the left, a container holds a fixed number of ideal gas particles whose random motions generate collisions with the walls, producing a measurable pressure. The three scenarios on the right show how changing one macroscopic variable—while holding the others constant—shifts the equilibrium described by PV = nRT.

Ideal Gas: Microscopic View & Macroscopic RelationshipsReference StateP₁, V₁, T₁, nEffect of Changing Variables↑ Temperature (const n, V)Faster particles → ↑ P↓ Volume (const n, T)More collisions → ↑ P↑ Moles (const T, V)More particles → ↑ PComponent Gas Laws UnifiedBoyle's LawP₁V₁ = P₂V₂(const T, n)Charles's LawV₁/T₁ = V₂/T₂(const P, n)Avogadro's LawV₁/n₁ = V₂/n₂(const T, P)PV = nRT
Top left: a reference state of n moles at pressure P₁, volume V₁, and temperature T₁. Top right: three scenarios illustrating how increasing temperature, decreasing volume, or adding moles each raises pressure. Bottom: the three component gas laws that combine into PV = nRT.

Notice how each component law isolates one proportionality: Boyle's law captures the inverse relationship between P and V, Charles's law the direct proportionality between V and T, and Avogadro's law the direct proportionality between V and n. When all three are combined algebraically—recognizing that V ∝ nT/P—the proportionality constant that emerges is precisely the universal gas constant R. This synthesis is elegant because a single equation, PV = nRT, encodes the complete macroscopic behavior of any ideal gas, regardless of its chemical identity.

SECTION 4

Mathematical Framework

The ideal gas law can be derived by combining the three empirical proportionalities. Starting from V ∝ 1/P (Boyle), V ∝ T (Charles), and V ∝ n (Avogadro), we write the joint proportionality V ∝ nT/P. Introducing a proportionality constant R yields V = nRT/P, which rearranges to the standard form.

IDEAL GAS LAW

PV=nRTPV = nRT

P = pressure (atm, Pa, or other units) • V = volume (L or m³) • n = amount of substance (mol) • R = universal gas constant • T = absolute temperature (K)

Values of the Gas Constant R

Value of RUnitsCommon Context
0.08206L·atm·mol⁻¹·K⁻¹General chemistry (P in atm, V in L)
8.314J·mol⁻¹·K⁻¹ (= Pa·m³·mol⁻¹·K⁻¹)SI system, thermodynamics, physical chemistry
62.36L·torr·mol⁻¹·K⁻¹Low-pressure / vacuum systems
1.987cal·mol⁻¹·K⁻¹Older thermochemistry literature

Common values of R and their unit systems

MOLAR VOLUME AT STP

V=nRT/P=(1mol)(0.08206L⋅atm⋅mol−1⋅K−1)(273.15K)/(1atm)≈22.41LV = nRT / P = (1 mol)(0.08206 L·atm·mol⁻¹·K⁻¹)(273.15 K) / (1 atm) ≈ 22.41 L

At standard temperature and pressure (STP: 0 °C and 1 atm), one mole of an ideal gas occupies approximately 22.41 L—a benchmark frequently used in stoichiometric calculations.

DENSITY FORM

ρ=PM/RTρ = PM / RT

Substituting n = m/M into PV = nRT and rearranging gives density ρ = PM / RT, where M is the molar mass (g·mol⁻¹). This form is useful for determining molar mass from measured gas densities.

⚠

Unit Consistency Warning

The most common source of error in ideal gas law problems is mismatched units. Always verify that the value of R you choose is consistent with the units of P, V, n, and T in your problem. Temperature must be in Kelvin; convert from Celsius via T(K) = T(°C) + 273.15.

SECTION 5

P–V–T Behavior & Graphical Relationships

A powerful way to internalize the ideal gas law is through its graphical representations. Plotting pressure versus volume at constant temperature yields a family of isotherms—hyperbolic curves that shift upward and to the right as temperature increases. Similarly, plotting volume versus temperature at constant pressure produces straight lines (isobars) that, when extrapolated, converge at absolute zero (0 K). The diagram below presents both representations side by side.

Isotherms (P vs V) and Isobars (V vs T) for an Ideal GasBoyle's Law IsothermsPressure (atm)Volume (L)T₃ (high)T₂ (mid)T₁ (low)0Charles's Law IsobarsVolume (L)Temperature (K)P₁ (low)P₂ (mid)P₃ (high)0 K
Left: Boyle's law isotherms showing the hyperbolic P–V relationship. Higher temperatures shift the curve outward, meaning greater pressure at any given volume. Right: Charles's law isobars demonstrating that V is directly proportional to T. All lines extrapolate to the origin at 0 K (absolute zero), where an ideal gas would theoretically occupy zero volume.

Several important features deserve attention. On the P–V plot, each isotherm is a rectangular hyperbola, meaning that the product PV remains constant along any single curve—a direct restatement of Boyle's law. As the temperature increases from T₁ to T₃, the value of this constant increases proportionally (since PV = nRT). On the V–T plot, the slope of each isobar equals nR/P; lower pressures yield steeper slopes because the same temperature increment produces a larger volume change. The convergence at 0 K underscores why the Kelvin scale is indispensable: using Celsius would shift these lines away from the origin, obscuring the direct proportionality between V and T.

SECTION 6

Worked Example

A rigid steel cylinder with a volume of 12.0 L contains nitrogen gas (N₂) at 25.0 °C and a gauge pressure of 150 atm. Determine the number of moles of N₂ in the cylinder and the mass of the gas.

Finding Moles and Mass of N₂ in a Cylinder

  1. 1

    Step 1 — Identify Given Values and Convert Units

    We are given V = 12.0 L, T = 25.0 °C, and P = 150 atm (gauge). Since gauge pressure measures pressure above atmospheric pressure, the absolute pressure is Pabs = 150 + 1.00 = 151 atm. Convert temperature to Kelvin: T = 25.0 + 273.15 = 298.15 K ≈ 298 K.
    P = 151 atm, V = 12.0 L, T = 298 K
  2. 2

    Step 2 — Select the Appropriate Value of R

    Since pressure is in atm and volume is in liters, we use R = 0.08206 L·atm·mol⁻¹·K⁻¹. This ensures dimensional consistency across all terms in the ideal gas law.
    R = 0.08206 L·atm·mol⁻¹·K⁻¹
  3. 3

    Step 3 — Solve for n

    Rearrange PV = nRT to isolate n: n = PV / (RT). Substituting: n = (151 atm)(12.0 L) / [(0.08206 L·atm·mol⁻¹·K⁻¹)(298 K)] = 1812 / 24.45 ≈ 74.1 mol.
    n ≈ 74.1 mol N₂
  4. 4

    Step 4 — Calculate Mass

    The molar mass of N₂ is M = 2 × 14.01 = 28.02 g·mol⁻¹. Therefore: m = nM = (74.1 mol)(28.02 g·mol⁻¹) ≈ 2080 g ≈ 2.08 kg.
    m ≈ 2.08 kg N₂
  5. 5

    Step 5 — Reasonableness Check

    At STP one mole of gas occupies 22.4 L, so 12.0 L at STP would hold about 0.54 mol. Multiplying by the pressure ratio 151/1 gives roughly 81 mol—close to our calculated 74.1 mol (the difference arises because our temperature is above 273 K, expanding each mole's effective contribution). The answer is physically reasonable for a high-pressure industrial cylinder.

SECTION 7

Strengths & Limitations of the Ideal Gas Model

The ideal gas law is remarkably powerful, yet it is an approximation. Its accuracy depends on how closely real gases meet the kinetic molecular theory assumptions. Understanding where the model excels and where it fails is crucial for selecting the correct equation of state in both laboratory and industrial contexts.

AspectStrengthLimitation
SimplicitySingle equation with four variables and one constant; easy to rearrange for any unknown.Oversimplifies behavior near phase transitions and at extreme conditions.
UniversalityApplies to any gas regardless of chemical identity; R is truly universal.Ignores gas-specific properties such as molecular size, polarity, and shape.
Low-P / High-T AccuracyExcellent predictions for gases well above their boiling points and at moderate pressures (≤ 5 atm).Significant deviations at high pressures (> 100 atm) or near the condensation temperature.
Stoichiometric CalculationsMolar volume at STP (22.41 L) provides a convenient bridge between moles and volume in gas-phase reactions.Real molar volumes deviate from 22.41 L for gases with strong intermolecular forces (e.g., SO₂, NH₃).
MixturesDalton's law of partial pressures follows directly: P_total = Σ nᵢRT/V.Cross-interactions between dissimilar molecules (e.g., polar + nonpolar) are ignored.

Strengths and limitations of the ideal gas law

⚡

WHEN DOES THE MODEL BREAK DOWN?

Picture a packed concert venue versus an empty stadium. In the stadium (low pressure), people move freely without interacting—ideal behavior. In the packed venue (high pressure), people push against one another and physically occupy significant space—real gas behavior. The compressibility factor Z = PV/(nRT) quantifies this deviation: Z = 1 for an ideal gas, and deviations from unity signal that molecular volume and intermolecular attractions are significant.

SECTION 8

Connection to Real Gas Equations of State

When the ideal gas law proves insufficient, chemists and engineers turn to more sophisticated equations of state that incorporate corrections for intermolecular forces and finite molecular volume. The most historically significant of these is the van der Waals equation, which modifies PV = nRT by adding two substance-specific parameters, a and b. More advanced treatments—such as the Redlich–Kwong, Peng–Robinson, and virial equations—offer progressively higher accuracy at the cost of added mathematical complexity.

FeatureIdeal Gas LawVan der Waals Equation
EquationPV = nRT(P + an²/V²)(V − nb) = nRT
Molecular VolumeAssumed zeroCorrected by the parameter b (excluded volume per mole)
Intermolecular ForcesAssumed absentCorrected by the parameter a (attractive force strength)
Accuracy at High PPoor; overestimates V significantlyGood for moderate deviations; qualitatively captures condensation
Mathematical ComplexityLinear in all variables; trivial algebraCubic in V; may require numerical or iterative solution
Substance SpecificityUniversal (only R)Requires tabulated a, b values for each gas

Ideal gas law vs. van der Waals equation

In physical chemistry and chemical engineering courses, you will encounter the virial equation of state, which expands PV/(nRT) as a power series in 1/V (or in P): Z = 1 + B/V + C/V² + …, where B, C, … are temperature-dependent virial coefficients derived from statistical mechanics. The ideal gas law is simply the zeroth-order truncation of this series—Z = 1—making it clear that 'ideal' behavior is the limiting case when all higher-order interactions vanish. Understanding this hierarchy prepares you to choose the right level of theory for any engineering or research scenario.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A sealed, rigid container holds a fixed amount of an ideal gas. If the absolute temperature of the gas is doubled, explain qualitatively what happens to the pressure and why, referencing both the macroscopic equation and the molecular-level picture.
Show answer
From PV = nRT with V and n constant, P is directly proportional to T, so doubling T doubles P. At the molecular level, the average kinetic energy of the gas particles is KE = (3/2)kT, so doubling T doubles the average speed of collisions with the container walls. Each collision transfers more momentum, and the frequency of collisions also increases, resulting in exactly twice the pressure. This direct proportionality is Gay-Lussac's law, a special case of the ideal gas law at constant volume and amount.

Question 2: BASIC CALCULATION

What volume does 0.500 mol of an ideal gas occupy at 37.0 °C and 0.980 atm?
Show answer
Convert temperature: T = 37.0 + 273.15 = 310.15 K. Apply V = nRT/P = (0.500 mol)(0.08206 L·atm·mol⁻¹·K⁻¹)(310.15 K) / (0.980 atm) = 12.73 / 0.980 ≈ 13.0 L. The answer is slightly larger than the 11.2 L one mole would occupy at STP scaled by 0.5, which makes sense because the temperature is above 273 K and the pressure is below 1 atm—both factors increase volume.

Question 3: INTERMEDIATE

A 5.00 L flask contains a mixture of 0.200 mol He and 0.300 mol Ar at 300 K. Calculate the total pressure and the partial pressure of each gas.
Show answer
The total moles are n_total = 0.200 + 0.300 = 0.500 mol. Using PV = nRT: P_total = n_total RT / V = (0.500)(0.08206)(300) / 5.00 = 12.309 / 5.00 = 2.46 atm. By Dalton's law, the partial pressure of each gas is proportional to its mole fraction: P_He = (0.200/0.500)(2.46) = 0.984 atm; P_Ar = (0.300/0.500)(2.46) = 1.48 atm. Note that P_He + P_Ar = 2.46 atm, confirming internal consistency. Partial pressures are additive for ideal gas mixtures because each component behaves independently.

Question 4: APPLIED

A chemist collects 245 mL of an unknown gas over water at 25.0 °C and a barometric pressure of 758 torr. The vapor pressure of water at 25.0 °C is 23.8 torr. If the dry gas has a mass of 0.384 g, determine the molar mass of the gas.
Show answer
First, find the pressure of the dry gas: P_gas = P_total − PHP_H₂O = 758 − 23.8 = 734.2 torr. Convert to atm: 734.2 / 760 = 0.9661 atm. Convert volume: 245 mL = 0.245 L. Convert temperature: T = 25.0 + 273.15 = 298.15 K. Find moles using n = PV/(RT) = (0.9661)(0.245) / [(0.08206)(298.15)] = 0.2367 / 24.47 = 9.67 × 10⁻³ mol. Molar mass = m/n = 0.384 g / 9.67 × 10⁻³ mol ≈ 39.7 g/mol. This value is close to the molar mass of argon (39.95 g/mol), suggesting the unknown gas may be argon.

Question 5: CRITICAL THINKING

Consider 1.00 mol of CO₂ at 500 K. Using the ideal gas law, calculate the molar volume at P = 200 atm. Then, using the van der Waals equation with a = 3.59 L²·atm·mol⁻² and b = 0.0427 L·mol⁻¹, estimate the molar volume by iterating from the ideal value. Compare the two results and discuss which intermolecular effect—attraction or excluded volume—dominates at this pressure.
Show answer
Ideal: V_ideal = nRT/P = (1.00)(0.08206)(500)/200 = 0.2052 L. For van der Waals, (P + a/V²)(V − b) = RT. Substituting the ideal V as a first guess: (200 + 3.59/0.2052²)(0.2052 − 0.0427) = (200 + 85.3)(0.1625) = 285.3 × 0.1625 = 46.4, but RT = 41.03. Since the left side exceeds RT, V must be smaller. Iterating with V = 0.175 L: (200 + 3.59/0.0306)(0.175 − 0.0427) = (200 + 117.3)(0.1323) = 317.3 × 0.1323 = 41.98, closer to 41.03. Further iteration yields V ≈ 0.17 L. The van der Waals volume (0.17 L) is about 17% smaller than the ideal (0.205 L). At 200 atm, the attractive correction a/V² substantially augments the effective pressure, pulling molecules closer together and compressing the gas beyond the ideal prediction. The excluded volume correction b works in the opposite direction but is comparatively small (b = 0.043 L versus V ≈ 0.17 L). Therefore, intermolecular attraction dominates at this condition.

SUMMARY

Summary

Summary

The ideal gas law, PV = nRT, unifies Boyle's law (P ∝ 1/V at constant T and n), Charles's law (V ∝ T at constant P and n), and Avogadro's law (V ∝ n at constant T and P) into a single equation of state governed by the universal gas constant R. The equation rests on the assumptions of the kinetic molecular theory: negligible molecular volume, no intermolecular forces, random elastic collisions, and a statistically large particle count.

The model is most accurate at low pressures and high temperatures where real gases approximate ideal behavior. Useful rearrangements include the density form ρ = PM / RT for molar mass determination and Dalton's law of partial pressures for gas mixtures. When deviations become significant, the van der Waals equation and higher-order virial expansions provide the necessary corrections, with the ideal gas law serving as the limiting zeroth-order case.

Varsity Tutors • College Chemistry • Ideal Gas Law