The Cosmological Fluid and Equation of State
The universe is a preposterously complicated object — a hundred billion galaxies of stars, gas, dust, black holes, streaming neutrinos, and a dark sector nobody has held in their hand. Yet cosmology extracts a working model of the whole thing from a single act of courage: on scales larger than about 100 Mpc, throw away every detail and treat each ingredient as a perfect fluid, a smooth continuum with nothing but an energy density and a pressure. The Cosmological Principle licenses the move — homogeneity and isotropy forbid shear, viscosity, and heat flow, so the stress-energy tensor has no choice but the perfect-fluid form, its four-velocity locked to the comoving observers of the FLRW metric. A perfect fluid is two numbers, and , and to make them dynamical you need one relation between them: the equation of state. For cosmology it is astonishingly simple — linear, , a single dimensionless constant per species. That one number does two enormous jobs. Fed through the conservation law , it dictates how a fluid's density dilutes as space stretches, . Fed through the acceleration equation, it decides whether the fluid's gravity halts the expansion or drives it faster. Matter (), radiation (), and vacuum () fall out as three values, and because they dilute at different rates the cosmos automatically sorts itself into a radiation era, a matter era, and the dark-energy era we live in now. This article is where thermodynamics, conservation laws, and the dynamics of spacetime collapse into one number.
- The contents of the universe are modeled on the largest scales as non-interacting perfect fluids, each fixed by an energy density and an isotropic pressure tied together by an equation of state .
- Local energy conservation in an FLRW spacetime gives the cosmological continuity equation , which for constant integrates to the scaling law .
- The three canonical values are (pressureless matter, ), (radiation, ), and (a cosmological constant, const).
- Pressure gravitates: the source of the acceleration equation is , so requires — only sufficiently negative pressure produces cosmic repulsion.
- Because each species dilutes at its own rate, the energy budget is dominated successively by radiation, then matter, then dark energy — the origin of the cosmic eras, with matter–radiation equality near .
- Key idea: one dimensionless number in controls everything — it fixes how a fluid dilutes via , and whether that fluid decelerates () or accelerates () the cosmic expansion.
One dimensionless number in controls everything: it fixes how a fluid's density dilutes with expansion via , and whether that fluid decelerates () or accelerates () the cosmic expansion.
Where this lives today
The equation of state is not a settled number but a central measurement of twenty-first-century cosmology. The dark-energy surveys — the Dark Energy Survey, ESA's Euclid (launched 2023), and the Vera Rubin Observatory's LSST — exist to answer one question: is exactly , a true cosmological constant, or slightly different, and does it drift with time? The tools are geometric: Type Ia supernovae trace , baryon acoustic oscillations imprint a standard ruler in the galaxy distribution, and weak lensing weighs the growth of structure — each folding into an observable through . Current constraints hover around , consistent with a bare cosmological constant, though 2024 DESI results hinted at a mild preference for an evolving — which, if it survives, would rule out the constant and demand a dynamical field. The abstract barotropic parameter of this article is, quite literally, the quantity billion-dollar observatories are built to pin down.
The physical picture
Hold two pictures side by side. In the first, a comoving box of space is stretched uniformly in all directions and you watch whatever is inside. Cold matter is a fixed count of slow particles: the box grows, the number stays the same, so density drops purely as the volume, . Radiation is a gas of photons: the same volume dilution applies, but every photon is also redshifted, its energy bled away as — one extra power, giving . Vacuum energy is the strange one: its density per unit volume never changes, so stretching empty space just makes more of the same energy, . Three ingredients, three fates, one expansion. The second picture is the master relation itself, on a single axis. The number is the pressure a fluid carries per unit of its energy density, and where a fluid sits on that axis fixes both its dilution law and its gravitational sign. This is the counter-intuitive heart of relativistic cosmology: pressure gravitates. Positive pressure — radiation pushing outward — adds to the attractive source and slows the expansion. Only tension, pressure below the threshold , gravitates repulsively and drives acceleration.
Because the three fluids dilute at different rates, their relative importance marches monotonically with the scale factor. Run the clock backward and radiation, falling as , wins; run it forward and vacuum energy, refusing to dilute, wins in the end. The crossover points are the boundaries of the cosmic eras, set entirely by today's densities and the exponents . The second figure is what a cosmologist actually plots: the energy density of each component against the scale factor, on log-log axes where the power laws are straight lines and the era boundaries are where those lines cross.
The core equations
Everything begins with the shape of the stress-energy tensor. Homogeneity and isotropy leave one option — no momentum flux, no shear, no anisotropic stress — so the source of gravity is built from only the fluid four-velocity and the metric, the most general stress-energy compatible with the Cosmological Principle.
where: — rest-frame mass-energy density (so is the energy density); — isotropic pressure in the fluid rest frame; — fluid four-velocity, normalized ; — inverse FLRW metric. Reading: in the comoving rest frame this collapses to and — energy density on the time-time slot, isotropic pressure on the spatial diagonal, nothing off-diagonal. To close the system you need one thermodynamic relation between and . For the barotropic fluids of cosmology it is linear, and the single slope is its entire content.
where: — dimensionless equation-of-state parameter, , constant (or slowly varying) per species. Reading: is a pure ratio of pressure to energy density; standard cosmology lives at . Demanding local energy-momentum conservation — automatic once Einstein's equation holds — and taking the time component in FLRW gives the cosmological continuity equation, the fluid's equation of motion in an expanding space.
where: — FLRW scale factor; — Hubble parameter; — time derivative along comoving worldlines. Reading: density changes for two reasons — dilution () and the work done by pressure (). It is nothing but the first law of thermodynamics for an adiabatically expanding comoving volume . Inserting the equation of state and integrating (Derivation A) turns the differential law into the algebraic scaling law every cosmology calculation begins from.
where: — present density of the component; — present scale factor (usually set to 1). Reading: one exponent, , does all the work — , , — exactly the exponent of each term of the Friedmann equation. The dynamical payoff is the acceleration equation, the time-time projection of Einstein's equation. Its source is not the energy density alone but — the reason pressure gravitates.
where: — second time derivative of the scale factor; — Newton's constant. Reading: positive pressure () deepens the deceleration; flips sign only when the pressure is negative enough to make . That sign flip is the most important inequality in cosmology; it defines dark energy.
where: — the expansion is speeding up. Reading: a fluid accelerates the universe only if ; a cosmological constant at clears the bar comfortably, curvature at sits exactly on it, and all ordinary matter and radiation fail it.
The goal of this derivation is to turn the cosmological continuity equation — a first-order differential equation relating a density to the expansion rate — into the closed-form power law that underlies every term of the Friedmann equation. The only physical input beyond energy conservation is that is constant for the species in question; everything else is a clean separation of variables and one integration, with the constant fixed by matching to today's density.
Step 1. Start from the continuity equation , the component of in FLRW. Why this is the right starting point: it is the exact statement of local energy conservation, the arising from the spatial trace of the connection
Step 2. Insert the equation of state so the bracket becomes , giving . Why this simplifies things: it replaces two unknown functions and by a single one, because the equation of state ties them rigidly together.
Step 3. Divide by to separate variables, , and recognize both sides as time derivatives of logarithms. Why the constancy of matters here: only if does not vary can the right side be integrated in closed form — a time-varying leaves an integral that does not collapse to a power law.
Step 4. Integrate to and exponentiate, then match the constant to the present epoch by demanding at . Why the boundary condition is chosen this way: densities are measured today, so anchoring the power law at makes the observable normalization that surveys report.
Step 5. The result is . Setting returns respectively. Why this is the whole story: substituting these three exponents into the Friedmann equation reproduces the entire radiation-to-matter-to-vacuum chronology with no further physics. *Verified: reduces to MTW §27 and Carroll Eq. (8.36); , , constant.*
Go deeper · Derivation B · 1 minThe acceleration equation and the threshold for cosmic repulsion
The goal here is to derive the acceleration equation directly from the first Friedmann equation and the continuity equation, and from it read off the exact equation of state at which the universe stops decelerating and begins to accelerate. This is the calculation that converts the abstract slogan "pressure gravitates" into the sharp, testable threshold separating ordinary gravitating matter from dark energy, using nothing but differentiation of a relation we already have.
Step 1. Take the first Friedmann equation and differentiate once with respect to cosmic time. Why start from the Friedmann constraint: it already encodes Einstein's equation for the FLRW metric, so its time derivative must contain the dynamical content of the acceleration.
Step 2. The differentiation yields . Why keep the curvature term: it looks like it should matter, but it cancels in the next step against the piece from the Friedmann relation.
Step 3. Eliminate using the continuity equation , and substitute the Friedmann expression back for . Why this is the crux: it injects the equation of state — the factor — into what was a purely kinematic identity, so the pressure enters the dynamics precisely here.
Step 4. After cancellation the curvature term and the term disappear, leaving . Why the curvature drops out: acceleration is a local dynamical quantity sourced by the fluid, independent of the global spatial geometry, which only sets the expansion rate, not its rate of change.
Step 5. The sign of is the sign of , so demands , i.e. ; at this gives the de Sitter result . Why and not : the "" is the three spatial dimensions over which pressure acts as a source, so it takes pressure equal to of the energy density just to make the fluid gravitationally weightless. *Verified: matches Carroll Eq. (8.23) and Hartle Ch. 18; gives exponential de Sitter expansion.*
Go deeper · Derivation C · 1 minWhy radiation carries one extra power of the scale factor
This derivation explains why radiation dilutes as while matter dilutes as — a single extra power of the scale factor whose origin is the cosmological redshift of each individual quantum. We reach the same two independent ways: by counting photons in a comoving box and tracking their energies, and by taking the trace of the electromagnetic stress-energy tensor, which must vanish for a massless field. The agreement ties thermodynamics to field theory.
Step 1. In a comoving region the photon number is conserved and the proper volume grows as , so the number density falls as — the same volume dilution matter feels. Why number is conserved: away from interactions, photons are neither created nor destroyed as space expands, so only the geometry dilutes them.
Step 2. Each photon's wavelength stretches with the expansion, , so its energy — this is the cosmological redshift acting on every quantum. Why matter does not share this factor: a massive particle's energy is dominated by its rest mass , which does not redshift, so cold matter loses only the volume factor.
Step 3. Multiply density by mean energy: , and matching to gives . Why this is the physical content of : it is literally the statement that radiation suffers one redshift factor on top of the volume dilution shared with matter.
Step 4. Independently, the electromagnetic stress-energy is trace-free, ; for a perfect fluid the trace is , so and , i.e. exactly. Why the two routes must agree: the trace-free condition is masslessness expressed in field theory, and the redshift argument is masslessness expressed in kinematics — one physics, two languages. *Verified: photon-gas pressure with gives , consistent with Stefan–Boltzmann and .*
Limiting cases
The equation-of-state catalogue is short, and every entry is a value of read straight into the exponent .
| Case | Result | Meaning |
|---|---|---|
| Pressureless matter (dust) | Cold dark matter and baryons; non-relativistic, negligible pressure. Density falls purely from volume dilution. | |
| Radiation / relativistic species | Photons and relativistic neutrinos. The extra over matter is the cosmological redshift of each quantum. | |
| Cosmological constant / vacuum | Dark energy in ΛCDM. Density independent of ; drives exponential de Sitter expansion. | |
| Spatial curvature (effective) | The curvature term in the Friedmann equation behaves like a fluid with — the exact boundary between deceleration and acceleration. | |
| Stiff fluid | Maximal causal (sound speed equals ); the kinetic energy of a free scalar field. Dilutes fastest of all. | |
| Phantom energy | Density increases as space expands; violates the dominant energy condition and ends in a finite-time "Big Rip". |
Worked examples
1 · Matter–radiation equality, in redshift and temperature (fully worked)
Take today's density parameters for matter and for radiation (photons plus three relativistic neutrino species), and the CMB temperature K. At what redshift were matter and radiation equally important, and how hot was the universe then?
Step 1. Write each density with its scaling law relative to today: and , with . Because the two exponents differ by one, their ratio is a single power of : .
Step 2. Equality is where the ratio equals one, so . In redshift, , so .
Step 3. The photon temperature scales as , so K, equivalently . That is the crossover the density plot marks: before the universe was radiation-dominated; after it, matter-dominated. Radiation's one extra power of is what puts equality at a redshift of thousands.
2 · Is the universe accelerating today? The deceleration parameter (fully worked)
Using the flat ΛCDM budget , , with respectively, compute the present deceleration parameter and decide the sign of .
Step 1. Divide the acceleration equation by (flat universe). The prefactors combine to and each becomes , giving .
Step 2. Evaluate term by term: matter contributes ; radiation contributes (negligible); dark energy contributes .
Step 3. Sum and halve: . A negative means : the expansion is accelerating today. The dark-energy term, with its factor , overwhelms the positive matter contribution — a numerical demonstration that tips the universe into acceleration. Set and you get , a decelerating matter universe; the accelerating cosmos exists only because ~70% of the budget sits below the threshold.
Physics of the portrait
The cosmological fluid was assembled by a handful of relativists between the wars — but one figure realized that the most mysterious term in Einstein's equation is itself a fluid, a vacuum with negative pressure.
Origins · 1 minGeorges Lemaître and how this was discovered
Georges Lemaître took holy orders and a doctorate in physics in the same years, and used both to overturn the static cosmos of his elders. In 1927, working from Einstein's equations for a homogeneous isotropic fluid, he derived an expanding-universe solution and tied it to the observed recession of galaxies — two years before Hubble's law, in a paper so obscure it went unnoticed until Eddington championed it. But his deepest contribution to the equation of state came in 1934. Where Einstein had bolted the cosmological constant onto his equations in 1917 as a device to keep the universe static, Lemaître recognized what it physically was: a fluid filling all of space with constant energy density and a pressure equal to the negative of that density, — the value . "Everything happens as though the energy in vacuo would be different from zero," he wrote, the first clear statement that empty space itself gravitates and, because its pressure is negative, gravitates repulsively. This is precisely the dark-energy component supernova surveys confirmed sixty-four years later. The modern picture — every cosmic ingredient a perfect fluid indexed by a single number , the strangest of all the vacuum at — is the direct inheritance of his insight.
Going further
Texts. Misner, Thorne & Wheeler, Gravitation, §27 (Idealized Cosmologies) · Wald, General Relativity, Ch. 5 · Carroll, Spacetime and Geometry, §8.1–8.3 · Hartle, Gravity, Ch. 18 · Schutz, A First Course in General Relativity, Ch. 12 · Dodelson & Schmidt, Modern Cosmology, Ch. 2 · Weinberg, Cosmology, Ch. 1.
Provenance. The equation-of-state values () and scaling laws are verified against MTW §27, Wald Ch. 5, Carroll §8.1–8.3, and Hartle Ch. 18. The continuity equation is the component of in FLRW; the acceleration equation is cross-checked against Carroll Eq. (8.23). A verifier should recompute the integration of the fluid equation (), the curvature cancellation giving , and the photon-gas from the trace-free electromagnetic stress-energy. Numerical anchors are standard Planck-era figures: matter–radiation equality , eV (from , , K); matter–Λ equality ; .
Prerequisites. The Cosmological Principle · The FLRW Metric · The Scale Factor and Hubble Parameter · Comoving and Proper Coordinates. Leads to. The Friedmann Equations · The Radiation-Dominated Era · The Matter-Dominated Era · The Cosmological Constant and Dark Energy · Critical Density and the Density Parameters.
Ask the tutor: Ask me to show how the same that fixes a fluid's dilution law also decides, through , whether it halts the cosmos or drives it apart.
Why does pressure gravitate in general relativity but not in Newtonian gravity?
In Newton's theory the source of gravity is mass density alone; pressure never appears. In general relativity the source is the full stress-energy tensor, and its active gravitational part — the combination that governs how a cloud of matter accelerates inward — is , sometimes called the Tolman or Komar mass density. The factor of three counts the three spatial directions in which pressure acts as a momentum flux, each contributing equally to the curvature that bends worldlines together. Pressure is energy of motion or of fields, and in relativity all energy gravitates. This is why a hot gas gravitates more strongly than cold dust of the same rest-mass energy, and why only tension can reverse the sign and push the expansion faster.
Is the cosmological continuity equation independent of the Friedmann equations?
Not entirely — it is a consequence of them, but a useful one. The two Friedmann equations plus the continuity equation form a set of three, but only two are independent: the contracted Bianchi identity guarantees that energy-momentum conservation (, which gives continuity) follows automatically once Einstein's equation holds. In practice cosmologists use the first Friedmann equation together with continuity as the working pair, deriving the acceleration equation when needed, because continuity most transparently encodes the fluid's thermodynamics. You can regard it either as an independent physical law (local energy conservation) or as a derived identity — both views are correct.
Can the equation-of-state parameter w be less than −1?
Mathematically yes, and it has a name: phantom energy. For the scaling law has a positive exponent, so the energy density grows as the universe expands — the vacuum becomes more potent the emptier space gets. This violates the dominant energy condition and leads to a "Big Rip", a finite-time singularity in which the accelerating expansion tears apart galaxies, then stars, then atoms. Current data sit at within a few percent and cannot exclude a slightly phantom value. Most theorists regard with suspicion because the simplest models producing it have instabilities, but it remains an active possibility the surveys are built to test.
Why is it legitimate to treat galaxies and photons as a smooth fluid at all?
Because cosmology only ever asks about scales far larger than the lumps. Averaged over a box 100 Mpc on a side — big enough to hold thousands of galaxies — the matter distribution is smooth to about one part in a hundred thousand, the level of the CMB anisotropies. On those scales the Cosmological Principle holds, and a homogeneous isotropic distribution has no preferred direction, no bulk flow relative to comoving observers, and no shear, forcing the stress-energy into the perfect-fluid form. The fluid description is not an approximation to apologize for; it is the leading term of a systematic expansion, with the lumpiness treated as small perturbations on top — the subject of structure formation.
What is the difference between ρ and ρc², and why does it matter here?
Throughout this article is a mass density (kg/m³) and the corresponding energy density (J/m³); the equation of state compares pressure to energy density because pressure itself has units of energy density. The distinction is easy to lose because many texts set and write for the energy density directly. Keeping explicit matters most in the acceleration equation, whose source adds an energy density to three times a pressure — both must share units for the sum to make sense.
How do astronomers actually measure w from the sky?
They never measure directly; they measure the expansion history and infer through the scaling law. Type Ia supernovae give luminosity distances versus redshift, hence ; baryon acoustic oscillations provide a fixed comoving ruler (150 Mpc) whose apparent size calibrates the same ; and weak lensing measures how structure grew, which is sensitive to how dark energy suppressed that growth. Each observable folds in , so fitting them jointly pins down and its possible time variation, usually parametrized . The precision now distinguishes from , which is why any hint of makes headlines.