Microstates vs Macrostates
Microstates: Specific Configurations of Particles
A microstate is one exact configuration of every particle in a system at a single instant. To fully specify a microstate, you need the position and momentum of every particle. For a gas of particles, that means recording and for each one. In classical mechanics, this corresponds to a single point in -dimensional phase space.
Because even tiny changes in one particle's position or momentum produce a different microstate, the number of microstates available to a macroscopic system is astronomically large.
Macrostates: Macroscopic Descriptions of Systems
A macrostate is the system described only by its measurable thermodynamic variables: temperature , pressure , volume , internal energy , and so on. A macrostate tells you nothing about where any individual particle is or how fast it's moving. Two containers of gas at the same are in the same macrostate even though their particles are almost certainly in completely different arrangements.
Relationship between Microstates and Macrostates
A single macrostate can be realized by an enormous number of distinct microstates. The number of microstates that correspond to a given macrostate is called its multiplicity, and it directly determines how probable that macrostate is.
- Many different particle arrangements produce the same values of , , and .
- Macrostates with larger are overwhelmingly more likely to be observed. At thermodynamic scales (), the most probable macrostate dominates so completely that fluctuations away from it are negligible.
- Macroscopic properties emerge from the collective, statistical behavior of huge numbers of particles. Statistical thermodynamics exists precisely to formalize this connection.

Ensemble Averages and Thermodynamic Properties
Ensembles: A Statistical Tool
An ensemble is a (conceptual) collection of a very large number of copies of the same system, all sharing the same macroscopic constraints but each sitting in a different microstate. You choose the ensemble type based on what's held fixed:
- Microcanonical ensemble (NVE): fixed particle number, volume, and total energy. Models an isolated system.
- Canonical ensemble (NVT): fixed particle number, volume, and temperature. The system can exchange energy with a heat bath.
- Grand canonical ensemble (VT): fixed chemical potential, volume, and temperature. The system can exchange both energy and particles with a reservoir.
Computing Ensemble Averages
An ensemble average of some property is the weighted sum of that property across all microstates:
where is the probability of microstate and is the value of in that microstate. In the canonical ensemble, the probability follows the Boltzmann distribution:
where is the canonical partition function. The partition function acts as a normalizing constant and turns out to encode essentially all thermodynamic information about the system.

Thermodynamic Properties as Ensemble Averages
Key thermodynamic quantities map directly onto ensemble averages:
- Internal energy: , the ensemble average of the total energy.
- Pressure: , related to how microstate energies change with volume (connected to the virial).
- Entropy: related to the distribution of probabilities across microstates. In the canonical ensemble, (the Gibbs entropy).
The Ergodic Hypothesis
The ergodic hypothesis states that, for a system at equilibrium, the time average of a property equals its ensemble average:
This is what makes ensemble averages physically meaningful. Instead of needing to observe millions of copies of your system, you can (in principle) track one system long enough and get the same result. The hypothesis holds for most systems at equilibrium, and it's the foundational assumption that lets statistical mechanics make contact with experiment.
Entropy and Number of Microstates
The Boltzmann Equation
The entropy of a system is directly tied to the number of accessible microstates through the Boltzmann equation:
- is the entropy.
- J/K is the Boltzmann constant, which sets the scale between microscopic energies and macroscopic temperature.
- is the number of microstates accessible to the system at a given energy.
The logarithm is essential here: it makes entropy an extensive (additive) property. If you combine two independent subsystems with multiplicities and , the total multiplicity is , but the total entropy is . Without the logarithm, entropy wouldn't add up the way thermodynamics requires.
Numerical example: For a system with microstates:
This is a tiny entropy, reflecting that microstates is actually quite small by thermodynamic standards. Real macroscopic systems have multiplicities more like .
Entropy and the Second Law of Thermodynamics
The second law states that the entropy of an isolated system never decreases. Statistical thermodynamics reveals why: the system evolves toward the macrostate with the largest simply because that macrostate is overwhelmingly more probable.
- Spontaneous processes move the system toward higher-multiplicity macrostates.
- At equilibrium, the system occupies the macrostate that maximizes (subject to constraints like fixed total energy).
- The second law is fundamentally a statistical law. A decrease in entropy isn't impossible, just fantastically improbable for macroscopic systems.
A classic example: two gases initially separated by a partition will mix spontaneously when the partition is removed. The mixed state has far more accessible microstates than the separated state, so increases and entropy rises. The reverse process (spontaneous unmixing) would require the system to find its way back to a vanishingly small subset of microstates, which is statistically negligible for particles.