Definition and concept
The microcanonical ensemble describes an isolated system where energy, volume, and particle number are all fixed. It's the most fundamental ensemble in statistical mechanics because every other ensemble (canonical, grand canonical) can be derived from it.
The core idea: if you know the total energy of an isolated system, you can figure out its thermodynamic properties by counting how many microscopic arrangements (microstates) are compatible with that energy.
Isolated systems
An isolated system exchanges neither energy nor matter with its surroundings. The three conserved quantities that define a microcanonical ensemble are:
- Energy (no heat or work exchange)
- Volume (rigid walls)
- Particle number (impermeable walls)
A perfectly insulated, sealed, rigid container is the textbook example. In practice, perfect isolation is impossible, but the framework is still essential for building up the theory. On a grand scale, the universe itself is sometimes treated as a microcanonical system since there's nothing "outside" it to exchange energy with.
Energy conservation principle
Because the system is isolated, its total energy doesn't change over time:
This doesn't mean every particle keeps the same energy. Energy constantly redistributes among the system's internal degrees of freedom through collisions and interactions. The constraint is only on the total.
Equal a priori probability
This is the foundational postulate of statistical mechanics: all accessible microstates at a given energy are equally probable. There's no theoretical proof of this from first principles; it's an assumption justified by its success.
This postulate gives you a concrete rule for assigning probabilities. If there are accessible microstates, each one has probability . The closely related ergodic hypothesis states that over long enough times, the system visits all accessible microstates, so time averages equal ensemble averages.
Mathematical formulation
Phase space
Phase space is the abstract space where each point represents a complete microscopic state of the system. For particles in three dimensions, you need 3 position coordinates and 3 momentum coordinates per particle, giving a -dimensional phase space.
A single point specifies every particle's position and momentum. The microcanonical ensemble occupies a thin energy shell in this space: the set of all phase-space points where the Hamiltonian equals the fixed energy (or falls within a narrow window to ).
Density of states
The density of states counts how many microstates the system can access at energy . For a classical system, it's defined as:
The factor (where is Planck's constant) makes the count dimensionless and connects the classical expression to quantum mechanics. The in the denominator corrects for the indistinguishability of identical particles (Gibbs' correction factor), which is necessary to make entropy an extensive quantity.
For most systems, increases extremely rapidly with energy. This rapid growth is what makes the microcanonical ensemble tractable: the overwhelming majority of microstates cluster near a single macroscopic condition.
Boltzmann's entropy formula
The bridge between counting microstates and thermodynamics is Boltzmann's entropy:
Here is Boltzmann's constant. This equation gives a statistical meaning to entropy: it measures how many microscopic arrangements are compatible with the macroscopic state. More microstates means higher entropy.
This formula also provides a statistical foundation for the second law of thermodynamics. An isolated system evolves toward the macrostate with the largest , which corresponds to maximum entropy.
Thermodynamic properties
Once you have , all equilibrium thermodynamic quantities follow from partial derivatives. This is how statistical mechanics generates thermodynamics from scratch.
Temperature derivation
Temperature is defined through:
Since typically grows with , the derivative is positive, giving positive temperatures. However, in systems with a bounded energy spectrum (like a collection of spins in a magnetic field, where there's a maximum possible energy), can decrease at high energies. This leads to negative absolute temperatures, which are actually hotter than any positive temperature because energy flows from the negative-temperature system to any positive-temperature system.
Pressure calculation
Pressure comes from the volume derivative:
This connects the microscopic picture (how the number of accessible states changes when you expand the container) to the macroscopic force per unit area on the walls.
Other thermodynamic variables
- Chemical potential: , which tells you the free energy cost of adding one particle.
- Heat capacity: , derived by inverting the temperature relation.
- Magnetic susceptibility: obtained from fluctuations in magnetization for spin systems.
Together, these derivatives provide a complete thermodynamic description from the single function .

Microcanonical partition function
Definition and significance
The microcanonical partition function is the density of states . For a system with discrete energy levels :
For a continuous classical system, the sum becomes the phase-space integral described above. This single quantity encodes all the statistical information about the isolated system.
Relation to entropy
The connection is direct:
This is the same Boltzmann formula, restated to emphasize that plays the same role in the microcanonical ensemble that the partition function plays in the canonical ensemble. Every thermodynamic property flows from taking derivatives of .
Calculation methods
How you actually compute depends on the system:
- Direct counting for simple discrete systems (e.g., two-level spins: just count the number of ways to distribute energy among the spins).
- Phase-space integration for continuous classical systems (e.g., the ideal gas, where the integral over momenta gives a known geometric result).
- Saddle-point / Stirling approximations for large , where exact counting is impractical but logarithmic approximations become extremely accurate.
- Computational methods (Monte Carlo sampling, Wang-Landau algorithm) for complex interacting systems where analytical solutions don't exist.
Applications
Ideal gas
The ideal gas is the standard test case. For non-interacting particles in a box of volume with total energy :
The accessible phase-space volume is the surface area of a -dimensional sphere of radius , multiplied by . Working through the calculation (using the formula for the surface area of a high-dimensional sphere and applying Stirling's approximation) yields the Sackur-Tetrode equation for the entropy. From there, taking derivatives reproduces:
- The ideal gas law:
- The equipartition theorem: each quadratic degree of freedom carries average energy
This is a powerful consistency check: purely statistical reasoning recovers the empirical gas law.
Paramagnetic systems
Consider non-interacting spin- particles in an external magnetic field . Each spin has energy or . If spins point up, the total energy is .
The density of states is just the binomial coefficient . Using Stirling's approximation on and differentiating gives the temperature, which can become negative when more than half the spins are in the higher energy state. This system is one of the cleanest examples of negative temperature physics.
Quantum systems
For systems with discrete energy levels (atoms, molecules, quantum harmonic oscillators), the microcanonical approach involves counting the number of ways to distribute energy quanta among the available states. This naturally leads into:
- Bose-Einstein statistics for indistinguishable bosons (integer spin)
- Fermi-Dirac statistics for indistinguishable fermions (half-integer spin)
The microcanonical framework shows why quantum statistics differ from classical counting: the indistinguishability of particles fundamentally changes how many distinct microstates exist.
Limitations and assumptions
Finite vs. infinite systems
The microcanonical ensemble is defined for finite systems, but most calculations use the thermodynamic limit (, , with held constant). In this limit, energy fluctuations become negligible relative to the total energy, and the ensemble becomes equivalent to the canonical ensemble.
For small systems (nanoparticles, small atomic clusters), finite-size effects matter. Surface contributions to entropy can't be ignored, and the equivalence between ensembles may break down.
Quantum vs. classical considerations
Classical statistical mechanics fails when the thermal de Broglie wavelength becomes comparable to the interparticle spacing. This happens at low temperatures, high densities, or for light particles (electrons, helium atoms). Signatures of this breakdown include:
- Zero-point energy: particles retain kinetic energy even at
- Quantum degeneracy: occupation of energy levels is restricted by particle statistics
- Heat capacities that deviate from classical predictions (e.g., the freezing out of vibrational modes in diatomic gases)

Ergodic hypothesis
The assumption that time averages equal ensemble averages is not universally valid. Systems can fail to be ergodic due to:
- Integrable dynamics (too many conserved quantities restrict the trajectory)
- Glassy behavior (the system gets trapped in metastable states for astronomically long times)
- Many-body localization in quantum systems
When ergodicity breaks down, the microcanonical ensemble may not correctly predict the system's long-time behavior.
Relation to other ensembles
Microcanonical vs. canonical
| Feature | Microcanonical | Canonical |
|---|---|---|
| Fixed quantity | Energy | Temperature |
| Environment | Isolated | In contact with heat bath |
| Energy | Exactly fixed | Fluctuates around |
| Central function | ||
| The canonical ensemble is usually easier to work with because sums over Boltzmann factors are more tractable than constrained energy-shell integrals. But the microcanonical ensemble is more fundamental since it doesn't assume the existence of an external heat bath. |
Equivalence of ensembles
In the thermodynamic limit, all ensembles give the same thermodynamic predictions. The relative energy fluctuations in the canonical ensemble scale as , which vanishes for large , so fixing versus fixing makes no practical difference.
This equivalence can break down near first-order phase transitions, where the energy distribution becomes bimodal, and in systems with long-range interactions (like gravitational systems), where the thermodynamic limit itself can behave unusually.
Historical context
Boltzmann's contributions
Ludwig Boltzmann developed the statistical interpretation of entropy in the 1870s. He introduced the idea that macroscopic irreversibility arises from the overwhelming number of disordered microstates compared to ordered ones. His formula is engraved on his tombstone in Vienna.
Boltzmann faced strong opposition, particularly from Ernst Mach and Wilhelm Ostwald, who questioned the existence of atoms. The eventual acceptance of atomic theory vindicated his approach.
Development of statistical mechanics
- Maxwell (1860s) developed the kinetic theory of gases and the Maxwell speed distribution.
- Boltzmann (1870s) generalized this to the full statistical framework and introduced the H-theorem.
- Gibbs (1902) formalized ensemble theory in his monograph, introducing the canonical and grand canonical ensembles.
- Einstein and Planck (early 1900s) applied statistical mechanics to quantum phenomena (specific heats of solids, blackbody radiation), revealing the limits of classical statistics.
Experimental relevance
Measuring microcanonical quantities
Directly measuring is rarely possible. Instead, experimentalists access microcanonical information indirectly:
- Heat capacity measurements reveal how the density of states grows with energy.
- Spectroscopy probes individual energy levels in atoms, molecules, and solids.
- Single-molecule and single-particle experiments (optical traps, ion traps) can track individual microstates in small systems.
Realizing isolated systems
True isolation is an idealization, but several experimental platforms come close:
- Ultracold atomic gases in optical or magnetic traps, where coupling to the environment is extremely weak
- Trapped ions in ultra-high vacuum, which can maintain coherence for seconds or longer
- Nuclear spin systems, where spin-lattice relaxation times can be very long, allowing the spin subsystem to behave as effectively isolated
- Space-based experiments, which exploit the natural vacuum and thermal isolation of space
Computational methods
Monte Carlo simulations
Monte Carlo methods estimate by randomly sampling phase space. The basic procedure:
- Generate a random configuration of the system.
- Compute its energy.
- Accept or reject the configuration based on a sampling criterion.
- Accumulate statistics over many samples.
The Metropolis algorithm is the most common variant for canonical simulations, while the Wang-Landau algorithm is specifically designed to compute the microcanonical density of states by iteratively flattening the energy histogram.
Molecular dynamics approaches
Molecular dynamics (MD) simulates the actual time evolution of particles by numerically integrating Newton's equations of motion. Because total energy is conserved in a properly integrated trajectory, MD naturally samples the microcanonical ensemble.
Key considerations include choosing a stable integrator (the velocity Verlet algorithm is standard), selecting an appropriate time step, and running long enough to adequately sample phase space. MD also gives access to dynamical properties (diffusion coefficients, correlation functions) that pure Monte Carlo cannot.