14.03.03 · genchem-pchem / stoichiometry

Ideal and real gas laws: van der Waals equation and compressibility factor

shipped3 tiersLean: nonepending prereqs

Anchor (Master): Reif — Fundamentals of Statistical and Thermal Physics (1965), Ch. 7; Hirschfelder, Curtiss & Bird — Molecular Theory of Gases and Liquids (1954)

Intuition Beginner

The ideal gas law works well at low pressure and high temperature. Under those conditions, gas molecules are far apart and their individual volumes are negligible compared to the container. Molecules also rarely interact with each other — they fly freely between wall collisions.

Real gases deviate from this picture. Two physical effects break the ideal-gas assumptions. First, molecules occupy real space. At high pressure, the container volume is not fully available because the molecules themselves take up room. Second, molecules attract each other through intermolecular forces. At low temperature, molecules move slowly enough that these attractions pull them together, reducing the pressure they exert on the walls.

The van der Waals equation corrects for both effects with two constants, and , that differ for every gas. The constant represents the excluded volume per mole — the space unavailable because molecules have finite size. The constant represents the strength of intermolecular attraction.

The compressibility factor tells you at a glance whether a gas behaves ideally. When , the gas follows the ideal gas law exactly. When , attractive forces dominate and the pressure is lower than predicted. When , repulsive forces dominate and the pressure is higher than predicted.

Visual Beginner

Imagine a container full of gas molecules. In the ideal-gas picture, the molecules are dimensionless points bouncing off the walls. The entire container volume is free space. In the real-gas picture, each molecule occupies a small but nonzero volume, and nearby molecules tug on each other with weak attractive forces.

The diagram shows that every gas follows the ideal gas law at sufficiently low pressure, but the onset and direction of deviation depend on the specific gas and the temperature.

Worked example Beginner

Calculate the pressure of 1.00 mol of in a 0.250 L container at 350 K using both the ideal gas law and the van der Waals equation. The van der Waals constants for are Pa m/mol and m/mol.

Ideal gas law:

Van der Waals:

The van der Waals pressure (8.21 MPa) is 29% lower than the ideal-gas prediction (11.6 MPa). At this high density, intermolecular attractions significantly reduce the pressure. The compressibility factor is , confirming that at these conditions is far from ideal.

Check your understanding Beginner

Formal definition Intermediate+

The ideal gas law relates pressure , volume , amount , and temperature :

It subsumes three empirical laws. Boyle's law: is inversely proportional to at constant and . Charles's law: is directly proportional to at constant and . Gay-Lussac's law: is directly proportional to at constant and .

Dalton's law of partial pressures. For a mixture of ideal gases, each component exerts a partial pressure proportional to its mole fraction :

Kinetic molecular theory provides the microscopic foundation for the ideal gas law through five assumptions: (1) gas molecules are point particles with negligible volume; (2) intermolecular forces are absent except during collisions; (3) collisions with walls and other molecules are perfectly elastic; (4) molecular motion is random and continuous; (5) the average kinetic energy is proportional to absolute temperature. Under these assumptions, kinetic theory recovers exactly.

The van der Waals equation relaxes assumptions (1) and (2). For moles of gas:

where (units Pa m/mol) quantifies intermolecular attraction and (units m/mol) quantifies excluded volume. The pressure correction adds to the measured pressure because attractions between molecules reduce the momentum transferred to the walls. The volume correction subtracts the space occupied by the molecules themselves.

The compressibility factor measures deviation from ideal behaviour:

For an ideal gas, at all conditions. Real gases have when attractive forces dominate (typically at moderate pressures) and when repulsive forces dominate (typically at very high pressures). The crossover point where at nonzero pressure defines the Boyle temperature .

Counterexamples to common slips

  • "The ideal gas law fails because molecules have mass." Molecular mass does not violate any ideal-gas assumption. The ideal gas law fails when molecular volume is non-negligible or intermolecular forces are non-negligible — both consequences of finite molecular size and electronic structure, not mass.

  • "Boyle's law and Charles's law are independent of the ideal gas law." They are special cases. Boyle's law is at fixed and ; Charles's law is the same equation at fixed and . They are not independent empirical facts but consequences of one equation.

  • "The van der Waals equation is always more accurate than the ideal gas law." At very high density and near the critical point, the van der Waals equation can give worse predictions than more modern equations of state (Redlich-Kwong, Peng-Robinson). It is qualitatively correct but quantitatively limited.

  • "A gas with is always more compressible than an ideal gas." means the pressure is lower than the ideal-gas prediction at the same and — equivalently, the molar volume is lower than the ideal-gas prediction at the same and . The gas is denser, not necessarily "more compressible" in the sense of being easier to compress further.

Key theorem with proof Intermediate+

Theorem (Critical point from the van der Waals equation). The van der Waals equation for one mole of gas,

predicts a unique critical point at which the gas and liquid phases become indistinguishable. The critical constants are

Proof. At the critical point, the -versus- isotherm has a horizontal inflection point. This requires two conditions simultaneously:

Computing the first derivative from :

Computing the second derivative:

Dividing the second equation by the first:

Cross-multiplying: , giving .

Substituting into the first-derivative equation:

Solving: .

Substituting and into the van der Waals equation:

Corollary. The compressibility factor at the critical point is a universal constant for all van der Waals gases:

Real gases have between 0.23 and 0.30, indicating that the van der Waals model overestimates but captures the qualitative universality.

Worked example at intermediate level

The van der Waals constants for nitrogen are Pa m/mol and m/mol. Compute the predicted critical temperature, critical pressure, and critical molar volume. Compare with the experimental values K, MPa, L/mol.

Predicted: m/mol L/mol.

K.

Pa MPa.

The predicted and match the experimental values well. The predicted (0.116 L/mol) overestimates the experimental value (0.0895 L/mol) by 30%, a known weakness of the van der Waals model.

Bridge. The critical-point theorem connects directly to 14.06.01 thermodynamics, where the equation of state determines the Gibbs free energy, phase boundaries, and the Clausius-Clapeyron equation. The compressibility factor introduced here becomes the bridge to fugacity, which replaces pressure in the thermodynamic treatment of real-gas equilibria. The van der Waals constants and will reappear in the context of the Lennard-Jones potential and intermolecular force theory in 14.09.01 solutions and phase equilibria.

Exercises Intermediate+

The virial expansion Master

The virial equation of state [Kamerlingh Onnes 1901] provides a systematic framework for real-gas corrections. The compressibility factor is expanded as a power series in :

The coefficients (second virial coefficient), (third), (fourth), etc., are temperature-dependent functions determined experimentally from PVT measurements. The virial expansion converges at sufficiently low density; it diverges near the critical point where the compressibility diverges.

The physical interpretation is hierarchical. accounts for pair interactions: it is negative when attractions dominate (low ), passes through zero at the Boyle temperature, and becomes positive when repulsions dominate (high ). accounts for three-body interactions. Higher virial coefficients describe successively more complex clustering of molecules.

The van der Waals equation is equivalent to a truncated virial expansion:

Reading off the coefficients: and . The van der Waals model predicts that the third virial coefficient is temperature-independent — a prediction that is incorrect for most real gases. This illustrates a general principle: each successive equation of state improves the representation of higher virial coefficients.

An alternative form of the virial expansion expresses as a power series in pressure rather than inverse volume:

The pressure-explicit coefficients are related to the volume-explicit ones by , , and so on. The pressure form is convenient for engineering calculations because and are the controlled variables in most experiments.

Proposition (statistical-mechanical expression for ). For a gas of spherical molecules interacting via a pair potential , the second virial coefficient is

Proof sketch. The configurational partition function for particles is with . A cluster expansion reorganises as a sum over -body clusters. The two-body (Mayer) cluster integral gives the first correction to the ideal-gas pressure. Defining the Mayer -function , the two-body cluster integral is . The virial coefficient is , yielding the stated expression.

This result connects the macroscopic equation of state directly to the microscopic intermolecular potential. For the hard-sphere potential ( for , for ): , independent of temperature. For a potential with both repulsive and attractive parts (such as the Lennard-Jones potential ), interpolates between large positive values at high (repulsion-dominated) and negative values at low (attraction-dominated), crossing zero at the Boyle temperature .

The law of corresponding states Master

Theorem (Principle of corresponding states). All gases at the same reduced pressure and reduced temperature have approximately the same compressibility factor . The principle holds to within a few percent for spherical, nonpolar molecules.

The van der Waals equation provides an exact realisation. Substituting , , with the critical constants , , yields the reduced van der Waals equation:

This equation contains no substance-specific parameters: and have cancelled completely. Every van der Waals gas is described by the same equation in reduced coordinates. The corresponding-states principle is therefore built into the van der Waals model at its foundations.

Real gases do not obey the van der Waals equation exactly, but the corresponding-states principle still holds approximately because the intermolecular potential has a universal shape when scaled by the well depth and molecular diameter . The generalised compressibility chart plots versus at constant , and data for many gases collapse onto a single family of curves.

The accuracy of the corresponding-states prediction is improved by the Pitzer acentric factor , which measures the non-sphericity of the intermolecular potential. The Pitzer correlation reproduces to within 2--3% for most gases. The acentric factor is zero for spherical molecules (argon, krypton, xenon) and increases for elongated or polar molecules (water , n-octane ).

Cubic equations of state Master

The van der Waals equation is the simplest member of the family of cubic equations of state — so called because they are cubic in when solved for . Several extensions improve its quantitative accuracy:

Redlich-Kwong equation (1949):

The modified temperature dependence in the attractive term improves vapour-pressure predictions.

Soave-Redlich-Kwong (SRK) equation (1972):

where and is a function of the acentric factor. The SRK equation accurately predicts vapour-liquid equilibria for hydrocarbon mixtures.

Peng-Robinson equation (1976):

The Peng-Robinson equation is the standard for hydrocarbon processing because it predicts liquid densities and vapour pressures with typical errors of 1--3%. It improves upon the van der Waals and SRK equations near the critical point and for liquids.

All cubic equations share the critical-point structure of the van der Waals equation: they predict a critical point, a universal , and a corresponding-states form. Their accuracy varies because the functional forms of the repulsive and attractive terms differ. Modern process simulation software uses the Peng-Robinson equation as the default equation of state for nonpolar and weakly polar mixtures.

The virial coefficients of any cubic equation of state can be extracted by expanding in powers of . For the Peng-Robinson equation: (same functional form as van der Waals, but with a temperature-dependent ), while differs from the van der Waals prediction and provides a better fit to experimental data.

Connections Master

  • Stoichiometry and the ideal gas law 14.03.01 introduced , Dalton's law, and the limiting-reagent framework. This unit deepens the gas-law treatment by examining when and why the ideal gas law fails, and how real-gas equations of state correct for intermolecular forces and finite molecular volume. The stoichiometric mole concept carries through: every equation of state in this unit relates , , and to .

  • Chemical thermodynamics 14.06.01 uses the equation of state to compute PV work () and defines thermodynamic potentials (, ) that depend on the relationship between , , and . The compressibility factor introduced here becomes the basis for fugacity , where , which replaces pressure in the equilibrium-constant expressions for real gases.

  • Solutions and phase equilibria 14.09.01 extends the equation-of-state concept to mixtures and phase diagrams. The critical point derived from the van der Waals equation is the terminus of the liquid-vapour coexistence curve. The corresponding-states principle generalises to mixtures through mixing rules for the equation-of-state parameters.

  • Statistical mechanics 14.07.01 derives the virial coefficients from first principles by computing the partition function of an interacting gas. The Mayer cluster expansion connects to the two-body integral over the intermolecular potential, to the three-body integral, and so on. This provides the microscopic interpretation of the macroscopic virial coefficients treated here.

  • Chemical kinetics 14.08.01 uses the molar concentration for real gases. When , the relationship between partial pressure and concentration deviates from the ideal-gas form, affecting the rate constants and equilibrium positions of gas-phase reactions.

Historical and philosophical context Master

The empirical gas laws were discovered across two centuries. Boyle established the inverse pressure-volume relationship in 1662 using a J-tube with mercury. Charles found the linear volume-temperature dependence in 1787; Gay-Lussac published it in 1802 and independently established the pressure-temperature law. These three proportionalities, combined with Avogadro's 1811 hypothesis that equal volumes contain equal numbers of molecules, imply the ideal gas law .

The kinetic molecular theory, developed by Clausius (1857) and Maxwell (1860), provided the microscopic explanation: point particles in random motion exert pressure by elastic collisions with the walls. The theory predicted the Maxwell-Boltzmann speed distribution and established that temperature measures average kinetic energy.

Deviations from ideality were observed throughout the nineteenth century. Thomas Andrews's 1869 experiments on carbon dioxide isotherms [Andrews 1869] revealed the critical point and the continuity between gas and liquid states. His isotherms showed that above a certain temperature, no amount of pressure could liquefy — a finding that contradicted the then-prevailing view that gases and liquids were fundamentally different states of matter.

Johannes Diderik van der Waals's 1873 doctoral dissertation [van der Waals 1873] proposed the equation of state that bears his name, providing a single continuous function describing both gas and liquid phases. Van der Waals derived his equation from physical reasoning: molecules have finite size (the parameter) and attract each other (the parameter). The equation predicted the existence of the critical point and the law of corresponding states, earning van der Waals the 1910 Nobel Prize. His work demonstrated that macroscopic thermodynamic behaviour could be derived from simple assumptions about molecular properties — a conceptual breakthrough that laid the groundwork for statistical mechanics.

Kamerlingh Onnes introduced the virial expansion in 1901 [Kamerlingh Onnes 1901] as a systematic empirical representation of PVT data. The statistical-mechanical interpretation came later, through the cluster-expansion work of Ursell and Mayer in the 1920s--1930s, which expressed the virial coefficients as integrals over intermolecular potentials. This completed the conceptual arc: empirical gas laws → phenomenological equation of state → microscopic derivation from molecular interactions.

The Redlich-Kwong equation (1949) and the Peng-Robinson equation (1976) extended the van der Waals framework to achieve the quantitative accuracy required for chemical-engineering process design. These modern equations of state are used in every refinery and petrochemical plant, processing billions of dollars of materials annually. The progression from Boyle's glass tubes to Peng-Robinson software illustrates how fundamental physical insight, refined over centuries, becomes industrial infrastructure.

Bibliography Master

Primary literature:

  • Boyle, R., New Experiments Physico-Mechanicall, Touching the Spring of the Air and its Effects (1662). The inverse pressure-volume relationship.

  • Charles, J. A. C., unpublished lecture (1787); published by Gay-Lussac (1802). Volume-temperature proportionality.

  • Andrews, T., "On the Continuity of the Gaseous and Liquid States of Matter", Phil. Trans. R. Soc. 159 (1869), 575--590. Critical-point isotherms.

  • van der Waals, J. D., Over de Continuiteit van den Gas- en Vloeistoftoestand (Leiden, 1873). The equation of state.

  • Kamerlingh Onnes, H., "Expression of the Equation of State of Gases and Liquids", Commun. Phys. Lab. Leiden 71 (1901). The virial expansion.

  • Redlich, O. & Kwong, J. N. S., "On the Thermodynamics of Solutions", Chem. Rev. 44 (1949), 233--244. The Redlich-Kwong equation.

  • Peng, D.-Y. & Robinson, D. B., "A New Two-Constant Equation of State", Ind. Eng. Chem. Fundam. 15 (1976), 59--64. The Peng-Robinson equation.

Modern references:

  • Zumdahl, S. S. & DeCoste, D. J., Chemical Principles, 8e (Cengage, 2017), Ch. 5. Introductory gas laws and real-gas behaviour.

  • Atkins, P. & de Paula, J., Physical Chemistry, 12e (Oxford, 2023), Ch. 1. Equations of state and the virial expansion.

  • McQuarrie, D. A. & Simon, J. D., Physical Chemistry (University Science Books, 1997), Ch. 1. The properties of gases.

  • Reif, F., Fundamentals of Statistical and Thermal Physics (McGraw-Hill, 1965), Ch. 7. Statistical mechanics of ideal gases and the virial expansion.

  • Hirschfelder, J. O., Curtiss, C. F. & Bird, R. B., Molecular Theory of Gases and Liquids (Wiley, 1954). The definitive reference on intermolecular forces and equations of state.