← thecodex.expert
Thermodynamics & Statistical Mechanics Hub Physicist Biographies
Definition Curious Exploring Deep Dive Sources
Statistical Mechanics · Concept

Grand Canonical Ensemble

Reading time: 9 minConfidence: HighLast verified: October 2026

The grand canonical ensemble describes a system of fixed volume V in contact with a reservoir with which it exchanges both energy and particles, characterised by temperature T and chemical potential μ. A microstate with N particles and energy E occurs with probability proportional to e−(E − μN)/kBT; the normalising grand partition function Ξ gives the grand potential Φ = −kBT ln Ξ = −pV.

Curious

One sentence that captures itThe grand canonical ensemble describes a region that can swap both heat and particles with its surroundings, like a small volume of air in an open room.

Imagine a tiny imaginary box inside a room. Air molecules wander in and out freely, so the number inside keeps changing, as does the energy. The temperature is set by the room and so is a new quantity, the chemical potential μ, which measures how strongly particles “want” to move in or out (see Gibbs Free Energy).

This framework is the easiest way to derive the Fermi-Dirac and Bose-Einstein distributions, which describe electrons in metals and photons and helium atoms, and to describe gases sticking to surfaces, chemical reactions and electrons in semiconductors.

Exploring

Worked example — molecules in a cubic micrometreFor an ideal gas in the grand canonical ensemble, the particle number fluctuates with variance equal to its mean, ⟨(ΔN)²⟩ = ⟨N⟩ (Poisson statistics). Air at room conditions has about 2.45×1025 molecules per m³, so a 1 μm³ region contains on average 2.45×107 molecules, fluctuating by about √N ≈ 4,950, or 0.02%. Such density fluctuations on small scales are what scatter sunlight and make the sky blue (Rayleigh scattering, explained by Einstein and Smoluchowski in terms of fluctuations). (Computed in Python.)
EnsembleFixedExchanges with surroundingsKey function
MicrocanonicalE, V, NNothing (isolated)Multiplicity Ω, entropy S = kB ln Ω
CanonicalT, V, NEnergyPartition function Z, free energy F = −kBT ln Z
Grand canonicalT, V, μEnergy and particlesGrand partition function Ξ, grand potential Φ = −kBT ln Ξ
Common mistake — Commonly ConfusedChemical potential is not the same as potential energy, nor a chemical-only concept: photons and phonons, which can be created freely, have μ = 0, while electrons in a solid have μ approximately equal to the Fermi energy at low temperature (see Fermi Energy).

Deep Dive

Primary sourceGibbs, J.W. (1902). Elementary Principles in Statistical Mechanics. New York: Scribner's (the “grand ensemble”).

Formalism. Ξ(T, V, μ) = ΣN eμN/kBT ZN(T, V), and ⟨N⟩ = kBT ∂ ln Ξ/∂μ. For non-interacting quantum particles, Ξ factorises over single-particle states, giving mean occupations 1/(e(ε−μ)/kBT ± 1), the Fermi–Dirac (+) and Bose–Einstein (−) distributions; this is the standard textbook derivation.

Fluctuations and compressibility. Number fluctuations are related to the isothermal compressibility: ⟨(ΔN)²⟩/⟨N⟩ = n kBT κT. Near a critical point κT diverges, so density fluctuations become huge, producing critical opalescence (see Critical Point).

Applications. The Langmuir adsorption isotherm, the occupancy of binding sites by molecules (including oxygen binding in haemoglobin, in simplified models), carrier concentrations in semiconductors (see P-N Junction) and the thermodynamics of quantum gases are all naturally treated grand canonically. In Bose–Einstein condensation the grand canonical ensemble predicts unphysically large fluctuations of the condensate number, a known subtlety resolved by treating particle number more carefully.

Sources

  • Gibbs, J.W. (1902). Elementary Principles in Statistical Mechanics. Scribner's.
  • Pathria, R.K., Beale, P.D. (2011). Statistical Mechanics (3rd ed.). Academic Press.
  • Einstein, A. (1910). “Theorie der Opaleszenz von homogenen Flüssigkeiten und Flüssigkeitsgemischen in der Nähe des kritischen Zustandes.” Annalen der Physik, 33, 1275–1298.
Last verified: October 2026 · Source: Gibbs (1902); Pathria & Beale (2011); Einstein (1910) · Confidence: high