Fiveable

🎲Statistical Mechanics Unit 2 Review

QR code for Statistical Mechanics practice questions

2.4 Zeroth law of thermodynamics

2.4 Zeroth law of thermodynamics

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🎲Statistical Mechanics
Unit & Topic Study Guides

Definition and Significance

The zeroth law of thermodynamics establishes thermal equilibrium as a transitive relation between systems. In plain terms: if system A is in thermal equilibrium with system C, and system B is also in thermal equilibrium with system C, then A and B are in thermal equilibrium with each other.

This might sound obvious, but it's doing serious logical work. It gives us the right to treat temperature as a single number that characterizes a system's thermal state. Without transitivity, you couldn't meaningfully compare the temperatures of two systems that have never been in contact. The zeroth law is what makes thermometers possible.

Historical Context

The law was formalized in the 1930s by Ralph H. Fowler and E. A. Guggenheim, though the underlying idea had been used implicitly by James Clerk Maxwell and Ludwig Boltzmann decades earlier. It was named the "zeroth" law because the first, second, and third laws had already been numbered, and this principle was recognized as logically prior to all of them. It needed to come before the first law, so it got a number before one.

Fundamental Concept

The formal statement: If two systems are each in thermal equilibrium with a third system, they are in thermal equilibrium with each other.

A few things this establishes:

  • Thermal equilibrium means no net heat flows between systems in thermal contact.
  • Temperature is an intensive property, meaning it doesn't depend on system size. Two cups of water at 50°C have the same temperature regardless of volume.
  • You can compare temperatures between systems that have never touched, as long as both have been compared to a common reference (like a thermometer).

Thermal Equilibrium

Two systems are in thermal equilibrium when they share the same temperature and no net energy transfers between them as heat. From a statistical mechanics perspective, this is the macroscopic consequence of microscopic energy distributions reaching a steady state. Particles in both systems exchange energy through collisions or radiation, and equilibrium is reached when the distribution of energies in each system is consistent with the same temperature parameter.

Thermal equilibrium is not the same as having identical internal energies. Two systems can have very different total energies, particle counts, and volumes while still being at the same temperature.

Mathematical Formulation

Transitive Property

The zeroth law defines an equivalence relation on the set of thermodynamic systems. If we write ABA \sim B to mean "A is in thermal equilibrium with B," the zeroth law states:

AC and BC    ABA \sim C \text{ and } B \sim C \implies A \sim B

An equivalence relation must be reflexive, symmetric, and transitive. Reflexivity (AAA \sim A) and symmetry (AB    BAA \sim B \implies B \sim A) are physically obvious. The zeroth law supplies the non-trivial piece: transitivity.

Because thermal equilibrium is an equivalence relation, it partitions all thermodynamic systems into equivalence classes. Each class groups together every system that would be in mutual thermal equilibrium. The label we assign to each class is what we call temperature.

Temperature as a State Variable

The zeroth law guarantees that there exists some function of state, TT, such that two systems are in thermal equilibrium if and only if TA=TBT_A = T_B. This is what makes temperature a well-defined state variable rather than just a vague notion of "hotness."

Once temperature is established as a state variable:

  • It appears in equations of state (e.g., PV=NkBTPV = Nk_BT for an ideal gas).
  • It determines the direction of heat flow: heat flows spontaneously from higher TT to lower TT.
  • It enters thermodynamic potentials like internal energy UU, Helmholtz free energy F=UTSF = U - TS, and Gibbs free energy G=U+PVTSG = U + PV - TS.
  • In statistical mechanics, it connects to the microscopic world through β=1kBT\beta = \frac{1}{k_B T}, the inverse temperature parameter that governs Boltzmann distributions.

Implications for Thermodynamics

Basis for Temperature Measurement

A thermometer works because of the zeroth law. When you place a thermometer in contact with a system, the thermometer reaches thermal equilibrium with that system. You then read the thermometer's state (mercury height, electrical resistance, etc.) and assign a temperature. If you move the thermometer to a second system and get the same reading, the zeroth law guarantees those two systems are in equilibrium with each other.

This reasoning underpins both empirical scales (Celsius, Fahrenheit) and absolute scales (Kelvin, Rankine). The Kelvin scale is particularly important in statistical mechanics because it's anchored to absolute zero, where T=0 KT = 0 \text{ K}, and appears directly in the Boltzmann factor eE/kBTe^{-E/k_BT}.

Historical context, 1.1 Temperature and Thermal Equilibrium – University Physics Volume 2

Connection to Other Laws

The zeroth law is logically prior to the other three laws of thermodynamics:

  • First law (energy conservation): You need a definition of thermal equilibrium before you can rigorously distinguish heat from work. The zeroth law provides that definition.
  • Second law (entropy increase): The second law describes the direction of spontaneous processes. The zeroth law's concept of equilibrium defines the endpoint those processes are heading toward.
  • Third law (absolute zero): The third law makes claims about system behavior as T0T \to 0. The zeroth law is what makes TT a meaningful quantity in the first place.

Experimental Verification

Thermal Contact Experiments

The simplest verification involves three objects, A, B, and C:

  1. Bring A and C into thermal contact and wait until no net heat flows (verified by stable temperature readings). They are now in equilibrium.
  2. Separately bring B and C into thermal contact and wait for equilibrium.
  3. Now bring A and B into thermal contact. The zeroth law predicts no net heat flow between them.

Precision calorimetry confirms this prediction across gases, liquids, and solids, and for systems of very different sizes and compositions. The universality of the result is what gives the zeroth law its status as a law rather than a special case.

Equilibrium Demonstrations

Phase transitions provide clean demonstrations. For example, a mixture of ice and water at 1 atm sits at 0°C regardless of the ratio of ice to water. Any object in thermal equilibrium with one ice-water bath will also be in equilibrium with a separate ice-water bath, confirming transitivity. Precision resistance thermometers can verify temperature equality to within millikelvins.

Applications in Statistical Mechanics

Ensemble Theory

The zeroth law justifies the construction of statistical ensembles. When a small system is in thermal equilibrium with a large heat reservoir, the zeroth law guarantees they share a common temperature. This is exactly the setup that defines the canonical ensemble: a system at fixed TT, exchanging energy with a reservoir.

  • The microcanonical ensemble describes an isolated system at fixed energy. Thermal equilibrium between subsystems within it is governed by the zeroth law.
  • The canonical ensemble fixes TT by coupling the system to a reservoir. The zeroth law ensures TT is well-defined and shared.
  • The grand canonical ensemble extends this to systems exchanging both energy and particles, but the thermal equilibrium condition (same TT) still rests on the zeroth law.

Partition Functions

The canonical partition function is defined as:

Z=ieβEiZ = \sum_i e^{-\beta E_i}

where β=1kBT\beta = \frac{1}{k_B T} and the sum runs over all microstates ii with energy EiE_i. The parameter TT appearing here is meaningful precisely because the zeroth law guarantees that thermal equilibrium defines a unique temperature.

From ZZ, you can extract macroscopic thermodynamic quantities:

  • Helmholtz free energy: F=kBTlnZF = -k_B T \ln Z
  • Average energy: E=lnZβ\langle E \rangle = -\frac{\partial \ln Z}{\partial \beta}
  • Entropy: S=kB(lnZ+βE)S = k_B \left( \ln Z + \beta \langle E \rangle \right)

The partition function is the central computational tool in equilibrium statistical mechanics, and its entire foundation rests on the zeroth law's guarantee that equilibrium temperature is a consistent, transitive property.

Limitations and Extensions

Historical context, The First Law of Thermodynamics and Some Simple Processes · Physics

Quantum Systems

For systems with discrete energy levels, the zeroth law still holds, but the concept of temperature requires care. At very low temperatures, quantum effects dominate:

  • Systems with a finite number of accessible states can exhibit population inversion, where higher-energy states are more populated than lower ones. This corresponds to a formal negative temperature (T<0T < 0 on the Kelvin scale), which is actually hotter than any positive temperature.
  • Quantum entanglement between subsystems can complicate the notion of independent thermal states. Strongly entangled systems may not have well-defined local temperatures.
  • Low-temperature phenomena like Bose-Einstein condensation and superconductivity involve macroscopic quantum coherence, where the statistical mechanics must be built on quantum ensembles (Bose-Einstein or Fermi-Dirac statistics) rather than classical Boltzmann statistics.

The zeroth law remains valid in quantum statistical mechanics, but the systems it applies to must be in true thermal equilibrium, not in metastable or coherence-dominated states.

Non-Equilibrium Thermodynamics

The zeroth law is strictly an equilibrium statement. It says nothing about how fast equilibrium is reached or what happens in systems driven away from equilibrium.

For non-equilibrium situations, extensions include:

  • Local equilibrium assumption: In systems with slow spatial gradients (e.g., a metal bar with one hot end and one cold end), you can define a local temperature T(r,t)T(\mathbf{r}, t) at each point. The zeroth law applies locally even though the system as a whole is out of equilibrium.
  • Fluctuation theorems: These describe the statistics of energy exchange in small systems far from equilibrium, where temperature fluctuations become significant.
  • Driven and active systems (molecular motors, living cells) may not have a well-defined temperature at all, and the zeroth law does not directly apply.

Relationship to Other Concepts

First Law vs. Zeroth Law

The zeroth law and first law address different questions:

Zeroth LawFirst Law
Central conceptThermal equilibriumEnergy conservation
DefinesTemperature (TT)Internal energy (UU)
Key statementEquilibrium is transitiveΔU=QW\Delta U = Q - W
RoleMakes temperature measurableQuantifies energy changes

Both are needed to describe heat transfer. The zeroth law tells you when heat will flow (whenever TATBT_A \neq T_B). The first law tells you how much energy is transferred and how it relates to work.

Entropy and the Zeroth Law

Entropy in statistical mechanics is defined as S=kBlnΩS = k_B \ln \Omega, where Ω\Omega is the number of accessible microstates. The condition for thermal equilibrium between two systems (zeroth law) turns out to be equivalent to maximizing the total entropy Stotal=SA+SBS_{\text{total}} = S_A + S_B subject to a fixed total energy.

When you work through the math, the equilibrium condition SAEA=SBEB\frac{\partial S_A}{\partial E_A} = \frac{\partial S_B}{\partial E_B} defines a quantity that must be equal for both systems. That quantity is 1T\frac{1}{T}. So the zeroth law and the statistical definition of entropy are deeply connected: temperature equality (zeroth law) is the same thing as entropy maximization (second law) at equilibrium.

Practical Applications

Temperature Measurement Devices

Every thermometer relies on the zeroth law. Common types include:

  • Liquid-in-glass thermometers: Thermal expansion of mercury or alcohol indicates temperature.
  • Resistance thermometers (RTDs): Electrical resistance of platinum changes predictably with temperature, enabling precision measurements to ±0.001 K\pm 0.001 \text{ K}.
  • Thermocouples: A voltage develops at the junction of two different metals, proportional to temperature. Widely used in industrial settings.
  • Infrared pyrometers: Measure thermal radiation emitted by an object. These are non-contact methods, but they still rely on the zeroth law: the detector reaches a reading that corresponds to the object's equilibrium temperature.

Industrial Processes

The zeroth law underlies thermal engineering across many fields:

  • Heat exchangers transfer energy between fluid streams. Design calculations assume both streams will approach thermal equilibrium, governed by the zeroth law.
  • Chemical reactors require precise temperature control because reaction rates depend exponentially on TT (through the Arrhenius factor eEa/kBTe^{-E_a / k_B T}).
  • HVAC systems maintain thermal equilibrium between indoor air and a target temperature.
  • Food processing uses controlled heating and cooling to achieve specific temperatures for sterilization, pasteurization, and preservation.