Barometric Formula
Climb a mountain and the air thins — but by exactly how much, and why exponentially rather than linearly? The barometric formula answers both. In an atmosphere held at a single temperature under uniform gravity , the pressure and number density fall off as , an exponential decay whose only scale is the scale height — the altitude over which the density drops by a factor of . For Earth's air that height is about , comparable to the tallest peaks, which is precisely why the summit of Everest holds only a third of sea-level pressure. What makes the formula a jewel of statistical mechanics is that it can be derived two completely independent ways that meet at the same answer. The macroscopic route balances forces: each layer of air must support the weight of everything above it (hydrostatic equilibrium), and combined with the ideal-gas law this yields a first-order differential equation with an exponential solution. The microscopic route counts molecules: because gravity couples only to height, the canonical Boltzmann factor with gives the spatial density directly. The two agree because they are the same physics seen from two altitudes of description — and the barometric formula is really the position-space sibling of the Maxwell-Boltzmann velocity distribution, governed by the same . The formula is the uniform-gravity special case of the general Boltzmann distribution in an external potential, and it has a reach far beyond meteorology. Replace gravity with a centrifugal field and you get the gas centrifuge that separates uranium isotopes; replace with a buoyant mass and you recover Perrin's colloid experiment that first measured Avogadro's number and settled the reality of atoms.
- In an isothermal atmosphere under uniform gravity, pressure and number density fall off exponentially with height: , and likewise for and .
- The single emergent length is the scale height — the altitude over which density drops by a factor ; for air at , .
- Two independent derivations agree exactly: hydrostatic force balance (with the ideal-gas law) and the microscopic Boltzmann factor .
- It is the spatial counterpart of the Maxwell-Boltzmann velocity distribution — momenta give , position in a field gives , with the same .
- Because , heavier molecules settle lower — gravitational separation, exploited in centrifuges for isotope enrichment.
- The uniform-gravity case is a special case of the general external-potential density .
- Key idea: a classical gas in a gravitational field arranges itself so that density decays as , an exponential set entirely by the ratio of thermal energy to gravitational energy , with scale height .
A classical gas in uniform gravity at temperature arranges itself so that its number density decays exponentially with height, , with scale height — the altitude over which thermal energy and gravitational energy come into balance and the density falls by a factor of .
Where this lives today
The barometric formula and its scale height remain the working backbone of planetary and stellar atmosphere science. Every model of a planetary atmosphere begins by computing to set the vertical grid; comparing to the planet's radius, and the thermal speed to the escape velocity, tells you whether an atmosphere is gravitationally retained over geological time — the reason Earth keeps its nitrogen but has lost its primordial hydrogen and helium. In laboratory and industrial practice the same law, with gravity replaced by the centrifugal potential , drives the gas centrifuge: the tiny mass difference between and is amplified by the enormous centrifugal acceleration inside a rapidly rotating gas centrifuge, producing a measurable separation that enables uranium enrichment. In soft-matter physics, sedimentation equilibrium of colloids, polymers, and macromolecules — the modern descendant of Perrin's experiment — is a standard tool of the analytical ultracentrifuge for measuring particle masses. And in optical-trapping and cold-atom experiments, the density of atoms in a gravitational or optical potential is read directly through the same Boltzmann profile, now imaged atom by atom.
The physical picture
Think of the air molecules as a swarm of tiny balls bouncing in a gravitational well. A molecule reaches height only if it has enough upward kinetic energy to pay the potential cost , and the Boltzmann factor is exactly the fraction of molecules for which that cost is thermally affordable. Higher up, fewer qualify, and the density thins exponentially. The same picture explains why the decay is exponential and not linear: each thin layer of air must hold up the weight of the entire column above it, and since that weight is itself proportional to the local density, the balance is self-similar — a constant fractional drop per unit height, which is the signature of an exponential. The one number that controls everything is the scale height , the altitude at which gravitational energy exactly equals thermal energy . Below thermal jostling keeps the gas well-mixed; above it gravity wins and the density plummets. For Earth's air , which is why mountaineers feel the thinning air so acutely — a few kilometres is already a full -folding.
The second figure is the punchline: the scale height is inversely proportional to molecular mass, so light and heavy gases separate under gravity. Hydrogen, fourteen times lighter than nitrogen, has a scale height fourteen times larger; its density barely changes over the first ten kilometres, while a heavy gas hugs the ground. Plotting several species on one graph, the light gas is a gently sloping line and the heavy one a steep cliff — the geometric picture of gravitational fractionation, and the exact principle a centrifuge exploits to enrich uranium.
The core equations
The central result is the exponential density (or pressure) profile. It follows from the balance between thermal spreading and gravitational settling, and the exponent is simply the ratio of the gravitational potential energy of a molecule to the thermal energy .
where: — number density at height ; — pressure at height ; — reference values at ; — mass of one molecule; — gravitational acceleration (assumed uniform); ; — the (constant) temperature. Reading it: at fixed the ideal-gas law makes , , and all proportional, so they share the identical exponential profile. The exponent is dimensionless — energy over energy. The single length scale controlling the decay is the scale height, which can be written per-particle or per-mole.
where: — the -folding height; ; — the molar mass. Reading it: is the altitude at which , so the density there is . The two forms are identical because and ; a light or hot gas has a large and extends far, a heavy or cold gas a small and hugs the ground. The macroscopic starting point is hydrostatic equilibrium: the pressure gradient supports the weight of the gas.
where: — the vertical pressure gradient; — mass density; the second equality uses to write . Reading it: this is a first-order linear ODE with constant coefficient ; its solution is the exponential of equation (1). The microscopic starting point is the canonical Boltzmann factor for a molecule whose energy separates into kinetic and gravitational parts.
where: is the momentum integral, the same at every height. Reading it: because the energy is a sum of a momentum part and a position part, the Boltzmann factor factorizes; integrating out momenta leaves exactly the configurational factor — the identical profile as the macroscopic derivation. A quick consequence worth remembering: for an isothermal atmosphere extending from to , the mean height is , so the mean gravitational potential energy is . These are expectation values over the exponential density distribution, not the maximum height reached by a molecule.
where: — the average altitude; — the average gravitational potential energy. Reading it: a coordinate appearing linearly in the energy (over the half-line ) contributes a full to the average energy — not the of a quadratic degree of freedom, a small but instructive echo of the generalized equipartition rule with .
The goal is to derive the exponential pressure profile from mechanical equilibrium alone, treating the atmosphere as a continuous fluid at uniform temperature. The strategy is to write down the hydrostatic balance for a thin slab of air, use the ideal-gas law to eliminate the density in favour of the pressure, obtain a first-order linear differential equation, and integrate it. The only physical inputs are that each layer supports the weight above it and that the gas obeys at constant .
Step 1. Balance forces on a thin slab between and of cross-sectional area . It feels an upward push from below, a downward push from above, and its own weight . Equilibrium requires , which in the differential limit is .
Step 2. Eliminate the density using the ideal-gas law at constant temperature. Since and , we have . Substituting, . Why this is an exponential. The differential equation has the form , so the fractional change in pressure over a small height interval is the constant fraction . Repeating the same fractional decrease layer after layer produces an exponential profile.
Step 3. Separate variables and integrate from the reference level to height : , giving .
Step 4. Exponentiate: . Because at fixed , all three obey the same profile. In the limit the exponent vanishes and (a uniform, weightless gas), as it must. Note: the ODE integrates symbolically to , and the two forms of the scale height satisfy the identity exactly.
Go deeper · Derivation B · 1 minThe microscopic route: the Boltzmann factor and its agreement with hydrostatics
The goal is to obtain the identical density profile from the canonical ensemble, showing that the barometric law is the position-space projection of the Boltzmann distribution and that the same temperature governs both the velocity distribution and the spatial profile. The strategy is to write the single-molecule energy as kinetic plus gravitational, use that the Boltzmann factor of a sum factorizes, and integrate out the momenta — leaving only the configurational factor, which must match the macroscopic result.
Step 1. Write the single-particle energy , kinetic plus gravitational potential. The canonical phase-space density is , a product because the exponent is a sum.
Step 2. Obtain the spatial density by integrating out the momenta: . The momentum Gaussian integrates to the constant , which is the same at every height. Why the momentum integral drops out. The kinetic energy does not depend on , so the velocity distribution is identical at every altitude — the air at the summit is locally the same Maxwell-Boltzmann gas as at sea level, just rarer. The height dependence lives entirely in the configurational factor.
Step 3. The surviving factor is with — exactly the macroscopic barometric law. The two derivations agree because hydrostatic balance is the coarse-grained statement of the same microscopic weighting.
Step 4. As a cross-check, the mean height is , so the mean potential energy is — the linear-potential analogue of equipartition. Note: the momentum Gaussian is height-independent, confirming that the velocity distribution is identical at every altitude; the Boltzmann and hydrostatic profiles agree exactly; and with .
Limiting cases
The profile behaves in instructive ways at the edges of its parameters.
| Case | Result | Meaning |
|---|---|---|
| Low altitude, | Linearizing gives a constant gradient — ordinary incompressible hydrostatics near the surface. | |
| High temperature, | , | Thermal motion overwhelms gravity; the gas fills the column uniformly. |
| Heavy or cold, | collapses to | Gravity dominates; nearly all molecules settle into a thin layer at the floor. |
| Multiple species | Each gas has its own ; heavy species are relatively enriched below (gravitational fractionation). |
Worked examples
Example 1 — The scale height of air and the pressure at the summit of Everest (compute the length, then the boundary number). Take dry air at , molar mass , and .
Step 1. Compute the molecular mass: .
Step 2. Compute the scale height: . (Equivalently , the same number.)
Step 3. Boundary number. At the summit of Everest, , the isothermal formula gives . The observed value is about –; the isothermal model overestimates because the real atmosphere cools with height, making it denser aloft than a uniform-temperature column would be. Even this crude one-temperature model captures the key fact — a third of an atmosphere at the roof of the world — and explains the need for supplemental oxygen.
Example 2 — Gravitational separation of hydrogen and nitrogen (why the upper atmosphere is light-gas enriched). Compare the scale heights of hydrogen () and nitrogen () at .
Step 1. Since , the scale height is inversely proportional to the molar mass. Nitrogen: . Hydrogen: .
Step 2. Apply the profiles. At a height of , nitrogen's density has fallen by of its surface value, while hydrogen's has fallen only by .
Step 3. Boundary number. The ratio of hydrogen to nitrogen abundance has grown by a factor relative to the ground. In diffusive equilibrium the abundance ratio of hydrogen to nitrogen increases exponentially with altitude because hydrogen has the larger scale height. In Earth's atmosphere, however, turbulent mixing keeps the homosphere (roughly the lowest 80–100 km) nearly uniform in composition, so significant gravitational separation appears only above this region. The same dependence on molecular mass is exploited much more efficiently in gas centrifuges, where the effective acceleration is enormously larger than gravity.
Origins · 1 minbarometric formula and how this was discovered
The barometric formula relates atmospheric pressure to altitude through the exponential . Edmond Halley (1686) first published a quantitative pressure-altitude relation from Boyle's law and barometer readings, and Pierre-Simon Laplace refined the barometric height formula for surveying and meteorology in the early 1800s. Its statistical-mechanical meaning came with Ludwig Boltzmann, whose distribution (1868–1877) revealed the atmosphere's exponential thinning as a special case of the general law for a gas in any external potential. The formula's most celebrated use was by Jean Perrin (1908–1913), who applied its colloidal analogue to settling resin spheres to measure Avogadro's number and confirm the reality of atoms.
Going further
References. Pathria & Beale, Statistical Mechanics, 3rd ed., §3.7 (equipartition and external-field discussions) · Reif, Fundamentals of Statistical and Thermal Physics, §7.9 and §1 · Kardar, Statistical Physics of Particles, Ch. 4 · Sethna, Statistical Mechanics: Entropy, Order Parameters, and Complexity, Ch. 3 · Landau & Lifshitz, Statistical Physics Part 1, §38. Key results to keep in mind: (i) the hydrostatic ODE integrates to ; (ii) the canonical factorization yields the identical configurational density; (iii) for dry air at ; (iv) the isothermal Everest ratio ; (v) and , and the mass-scaling . Constants used throughout: , , .
Builds on: Classical Ideal Gas · Maxwell-Boltzmann Velocity Distribution · Equipartition Theorem Leads to: Maxwell-Boltzmann Speed Distribution · Virial Theorem in Statistical Mechanics · Boltzmann Distribution in External Potentials
Why is the atmosphere's decay exponential and not linear?
Because the balance is self-similar. Each thin layer of air must hold up the weight of the entire column above it, and that weight is proportional to the local density, which is proportional to the local pressure. So the fractional drop in pressure per unit height is constant — and a quantity whose fractional rate of change is constant decays exponentially, . A linear drop would require the weight above to be independent of altitude, which is false: as you go up there is less air above, so the pressure falls more slowly, producing the concave exponential rather than a straight line.
Why do the force-balance and Boltzmann-factor derivations give the same answer?
Because they are the same physics described at two levels. The Boltzmann factor is the microscopic probability that a molecule sits at height , given only that its energy there is . Hydrostatic equilibrium is the macroscopic, coarse-grained statement of that same weighting: when you average the microscopic distribution over many molecules, the net upward pressure gradient must exactly support the weight. They must agree — if they did not, the gas would not be in equilibrium. The agreement is a concrete demonstration that thermodynamics (force balance) and statistical mechanics (the Boltzmann distribution) are consistent.
Why is the mean potential energy kT and not ½kT?
Equipartition gives per quadratic degree of freedom, but the gravitational potential is linear in the coordinate, not quadratic. The generalized equipartition rule is for an energy homogeneous of degree ; here , so the share is a full . You can also see it directly: the mean height is , so . The linear potential over the half-line stores twice the energy of a quadratic coordinate at the same temperature.
Does the formula work for a real atmosphere?
Only as a first approximation. The exponential law assumes a single constant temperature, but the real troposphere cools with altitude at roughly per kilometre (the adiabatic lapse rate). Because a cooler gas is denser, the true profile falls off somewhat faster than the isothermal exponential predicts — the isothermal formula gives of sea-level pressure at Everest's summit, while the measured value is closer to . For accurate work you replace the constant with and integrate ; a linear lapse rate then gives a power-law rather than a pure exponential.
How did Perrin use this to measure Avogadro's number?
Perrin suspended micron-sized resin spheres in water and watched their equilibrium vertical distribution under a microscope. The same barometric law applies, but with the molecular mass replaced by the buoyant mass , which accounts for the water the sphere displaces. By counting how the particle concentration fell with height and knowing , , and , he could solve for — and hence for Avogadro's number . The result agreed with values from utterly different methods, which is what clinched the reality of atoms and won Perrin the 1926 Nobel Prize.
How does a gas centrifuge relate to the barometric formula?
It is the same law with the gravitational potential replaced by the centrifugal potential . Spinning the gas at angular velocity gives a density profile — density now increases outward, and increases faster for heavier molecules. The tiny mass difference between and (less than ) produces a small but exploitable difference in the radial profiles; rotating at rim speeds near the speed of sound amplifies the separation, and cascading thousands of centrifuges enriches uranium. The physics is identical to the atmosphere — only the external potential has changed.
What is the general law behind the barometric formula?
The barometric formula is the uniform-gravity special case of the general Boltzmann distribution in an external potential: for a classical gas in any potential at temperature , the number density is . Setting recovers the atmosphere; setting gives the centrifuge; setting with a buoyant mass gives Perrin's colloids. The momentum degrees of freedom always integrate out to a height-independent constant, leaving the configurational Boltzmann factor to shape the spatial density — which is why the same exponential structure recurs across all these problems.