Skip to content
Field Atlas

Atlas / Physics / The Entropy Thread

Field · Emerged 1877 – 1926

Statistical Mechanics

How do the laws of heat emerge from the statistics of vast numbers of particles?

5 chapters4 min read5 turning points1 open problem

Branched from
Kinetic Theory of Gases
Branched into
Magnetism + Non-Equilibrium Physics + Old Quantum Theory + Phase Transitions + Turbulence
Figures
Ludwig Boltzmann, Max Planck, Josiah Willard Gibbs, Albert Einstein, Satyendra Nath Bose, Enrico Fermi, Paul Dirac, Eric Cornell, Carl Wieman, Wolfgang Ketterle

In brief

Statistical mechanics derives the behaviour of matter in bulk from the behaviour of its particles, without tracking any of them individually. It counts the microscopic arrangements compatible with what we observe and assumes each is equally likely. From that alone come temperature, pressure, entropy and the laws of thermodynamics.

Boltzmann's formula S=klog⁡WS = k \log W identified entropy with the number of arrangements, and Gibbs turned the idea into a general method in 1902. When quantum mechanics arrived, the same method, with new counting rules, explained the behaviour of light, metals, white dwarf stars and superfluids. It is now used wherever many parts interact, from magnets to neural networks.

Key ideas

Microstate and macrostateEnters 1877

A macrostate is what we observe, such as temperature and pressure. A microstate is a complete specification of every particle. Each macrostate corresponds to an enormous number of microstates.

Entropy as countingEnters 1877

S=klog⁡WS = k \log W, where WW is the number of microstates in a macrostate. Entropy increases because high-entropy macrostates contain overwhelmingly more arrangements.

Ensemble and Boltzmann factorEnters 1902

Gibbs's method: consider all the states a system could be in, each weighted by e−E/kTe^{-E/kT}. Low-energy states are favoured, and more so the lower the temperature.

Bosons and fermionsEnters 1926

Identical quantum particles are counted differently. Bosons, like photons, can share a state and pile up together. Fermions, like electrons, cannot, which is why matter takes up space.

Draws on other domains

Chapter I

Counting Arrangements

Kinetic theory had left a puzzle. If the laws of motion run equally well backwards, how can entropy only increase? In 1877 Ludwig Boltzmann answered by counting. A macroscopic state, such as "the gas fills the box evenly", can be realised by a vast number of microscopic arrangements of the molecules. A state such as "all the gas is in one corner" can be realised by comparatively few. Entropy is a measure of that number, and systems move towards higher entropy because almost all arrangements are high-entropy ones. The second law is a statement about overwhelming probability.

Max Planck wrote the relation in its famous form, S=klog⁡WS = k \log W, and it is engraved on Boltzmann's gravestone.

Chapter II

Gibbs's Ensembles

In 1902 Josiah Willard Gibbs, a reserved professor at Yale who had spent decades on thermodynamics, published a general method. Forget the individual molecules. Imagine every state the whole system could be in, and weight each by the factor e−E/kTe^{-E/kT}, so that states of lower energy are more likely at lower temperature. Every thermodynamic quantity can then be computed from a single sum over states. Gibbs cautioned that the approach could not explain everything: some predictions, like the heat stored in gases, disagreed with experiment. The disagreements were the first signs of quantum mechanics.

Chapter III

Quantum Counting

When quantum theory arrived, statistical mechanics needed only new rules for counting. In 1924 Satyendra Nath Bose, a young physicist in Dacca, derived Planck's law for light by treating photons as truly indistinguishable. His paper had reportedly been rejected, and he sent it to Einstein, who translated it himself and applied the idea to atoms. He predicted that very cold atoms would pile into a single state, a Bose–Einstein condensate. In 1926 Enrico Fermi and Paul Dirac found the rules for particles that refuse to share, such as electrons. Those two kinds of counting explain lasers and superfluids on one side, and metals, chemistry and white dwarf stars on the other.

The condensate took seventy years to make. In 1995 Eric Cornell and Carl Wieman cooled rubidium atoms to 170 billionths of a degree above absolute zero and saw them condense. Wolfgang Ketterle did the same with sodium months later.

Chapter IV

A Closer Look: Why Gas Never Gathers in One Half of a Room

Divide a box into two equal halves and put NN molecules in it, each equally likely to be in either half. What is the chance that all of them are in the left half at a given moment?

Each molecule is on the left with probability 12\tfrac12, so all NN are there with probability 2−N2^{-N}:

Molecules NNChance all are on the left
11 in 2
101 in 1,024
100about 1 in 103010^{30}
6×10236 \times 10^{23} (one mole)about 1 in 101.8×102310^{1.8 \times 10^{23}}

With ten molecules it would happen regularly. With a hundred, you would wait far longer than the age of the universe, about 4×10174 \times 10^{17} seconds. With a mole, about 24 litres of gas at room temperature and pressure, the number 101.8×102310^{1.8 \times 10^{23}} has 1.8×10231.8 \times 10^{23} digits. Written out at one digit per millimetre, it would stretch about 19,000 light-years. Nothing forbids the gas from gathering on one side. It is just that the arrangements where it does are a vanishingly small fraction of all arrangements.

This is Boltzmann's second law. When a gas spreads from one half of a box into the whole box, each molecule has twice as many places to be, so the number of arrangements WW is multiplied by 2N2^N. The entropy increases by

ΔS=klog⁡2N=Nkln⁡2,\Delta S = k \log 2^N = N k \ln 2 ,

which for one mole is 6.02×1023×1.38×10−23×0.693≈5.766.02 \times 10^{23} \times 1.38 \times 10^{-23} \times 0.693 \approx 5.76 J/K. That is exactly the value thermodynamics gives for this expansion, measured with heat and thermometers. The macroscopic law and the microscopic count agree.

Chapter V

Many Bodies

Statistical mechanics now reaches well beyond gases. Its most spectacular successes concern systems where the particles act together, in phase transitions such as boiling and magnetisation. Its methods have spread into biology, economics and machine learning, wherever many interacting parts must be understood without following each one. Its hardest open problems are about systems that never reach equilibrium, from glasses that take longer than the age of the universe to settle to the non-equilibrium physics of living cells.

Applications

Where it is used

  • Biophysics↗ Biology · Molecular Biology

    Why proteins fold

    A protein chain folds into the shape that minimises its free energy, the balance between energy and entropy that statistical mechanics defines. Folding models and simulations, and the understanding of misfolding diseases, are built on this picture.

    › Sources (1)
    • Dill, K. A. & MacCallum, J. L. (2012). The protein-folding problem, 50 years on. Science 338(6110): 1042–1046.
  • Astrophysics

    White dwarfs and neutron stars

    A dead star is held up not by heat but by fermion statistics: electrons, or neutrons, cannot share states, and so resist being squeezed. Chandrasekhar used this in 1931 to find the maximum mass of a white dwarf, about 1.4 solar masses.

    › Sources (1)
    • Chandrasekhar, S. (1931). The maximum mass of ideal white dwarfs. Astrophysical Journal 74: 81–82.
  • Machine learning

    Neural networks as magnets

    John Hopfield described memory in a network of neurons using the statistical mechanics of magnets, and Geoffrey Hinton's Boltzmann machine used the Boltzmann factor to learn. The two shared the 2024 Nobel prize in physics for founding work in machine learning.

    › Sources (1)
    • Hopfield, J. J. (1982). Neural networks and physical systems with emergent collective computational abilities. Proceedings of the National Academy of Sciences 79(8): 2554–2558.

Open problems

Where the map runs out

Open

What is a glass?

Open as of 2026; there is no accepted theory of the glass transition.

Cool most liquids quickly and they do not crystallise. They become ever more viscous until they are rigid, a glass, while their molecules remain as disordered as in a liquid. Is this a true phase transition, with a sharp temperature, or just a liquid slowing down beyond our patience to watch it flow?

Why it is hard

Viscosity rises by more than ten orders of magnitude over a narrow temperature range, with no visible change in structure. The relevant timescales are too long to simulate or measure near the proposed transition, and competing theories make predictions that are hard to tell apart. Philip Anderson called it probably the deepest and most interesting unsolved problem in solid state theory.

What resolving it unlocks

Understanding of glasses, plastics, metallic glasses and amorphous materials, and of other systems that get stuck far from equilibrium, from granular materials to the interior of cells.

› Sources (1)
  • Anderson, P. W. (1995). Through the glass lightly. Science 267(5204): 1615–1616.

Further reading

  1. Sethna, J. P. (2021). Statistical Mechanics: Entropy, Order Parameters, and Complexity (2nd ed.). Oxford University Press.

    A modern textbook with wide-ranging examples. Free to download from the author.

  2. Lindley, D. (2001). Boltzmann's Atom: The Great Debate That Launched a Revolution in Physics. Free Press.

    The story of Boltzmann and the statistical view, for general readers.

  3. Kittel, C. & Kroemer, H. (1980). Thermal Physics (2nd ed.). W. H. Freeman.

    A classic introduction that starts from counting states.