Fundamental Equations
Stellar structure equations are the coupled differential equations that describe how pressure, mass, luminosity, and temperature vary with radius inside a star. Solving them simultaneously gives you a complete model of a star's interior, from core to surface. These four equations, combined with an equation of state and opacity data, form a boundary value problem whose solutions predict stellar luminosities, lifetimes, and evolutionary tracks.
Hydrostatic Equilibrium and Mass Conservation
Hydrostatic equilibrium describes the balance between the inward pull of gravity and the outward push of the pressure gradient at every point inside a star. If this balance breaks, the star either collapses or expands on a dynamical (free-fall) timescale.
where is pressure, is radial distance from the center, is the gravitational constant, is the mass enclosed within radius , and is the local density. The negative sign tells you pressure decreases outward, which makes sense: the deepest layers bear the weight of everything above them.
Mass conservation (the continuity equation) relates the enclosed mass to the local density:
This says that as you move outward by , the additional mass enclosed is just the density times the volume of a thin spherical shell. Together with hydrostatic equilibrium, it lets you reconstruct the full mass and pressure profiles once you know .
Energy Conservation and Equation of State
Energy conservation (the luminosity equation) tracks how luminosity builds up through the star:
Here is the luminosity at radius and is the energy generation rate per unit mass. In the core, is dominated by nuclear reactions (pp-chain, CNO cycle). Outside the nuclear burning region, and stays roughly constant. During contraction phases, gravitational energy release (the Kelvin-Helmholtz mechanism) also contributes to .
The equation of state (EOS) closes the system by relating thermodynamic variables. For an ideal, non-degenerate gas:
where is Boltzmann's constant, is temperature, is the mean molecular weight, and is the hydrogen atom mass. This is adequate for most main-sequence stellar interiors, but the EOS must be modified in several regimes:
- Radiation pressure becomes significant in massive stars (), adding a term
- Electron degeneracy pressure dominates in white dwarfs and the cores of evolved low-mass stars, where the Pauli exclusion principle supports the star independent of temperature
- Partial ionization zones near the surface alter and the adiabatic exponent, affecting convective stability
Stellar Structure
Pressure and Temperature Gradients
The pressure gradient is set directly by hydrostatic equilibrium. Steeper gradients correspond to regions of stronger gravitational compression, typically deep in the core where is large.
The temperature gradient depends on how energy is transported. In radiative zones, photons carry the energy outward, and the gradient is:
where is the opacity, is the radiation density constant (), and is the speed of light. Notice that high opacity or high luminosity steepens the radiative gradient, which can trigger convection.
In convective zones, the actual temperature gradient is nearly equal to the adiabatic gradient:
For a fully ionized ideal gas, . Convection is so efficient at transporting energy that the temperature profile barely departs from adiabatic, except in superadiabatic surface layers.

Density Profile and Stellar Layers
Density decreases from center to surface due to gravitational stratification. To give you a sense of scale for a solar-type main-sequence star:
- Core: kg/m (about 150 g/cm for the Sun)
- Outer envelope: can drop below kg/m near the photosphere
A star's interior divides into layers defined by the dominant energy transport mechanism and nuclear processes:
- Core: site of nuclear burning; highest , , and
- Radiative zone: energy carried by photon diffusion; stable against convection
- Convective zone: energy carried by bulk fluid motions; present where the Schwarzschild criterion is satisfied
- Photosphere: the optically thin surface from which photons escape
The boundaries between these layers are not arbitrary. They shift based on opacity, composition gradients (e.g., hydrogen exhaustion in the core), and the local temperature gradient. In a star, the outer convective zone extends inward from the surface, while in a star, a convective core sits beneath an extended radiative envelope. This reversal is driven by the strong temperature sensitivity of the CNO cycle (), which concentrates energy generation and steepens the core temperature gradient.
Energy Transport and Opacity
Radiative and Convective Energy Transport
Radiative transport moves energy outward through repeated photon absorption and re-emission. Because the mean free path of a photon in a stellar interior is very short (on the order of centimeters in the solar core), this process is really photon diffusion. The radiative diffusion approximation gives the luminosity as:
This is just a rearrangement of the radiative temperature gradient equation above. Radiative transport dominates wherever the material is hot and highly ionized, keeping opacity relatively low.
Convective transport takes over when the radiative temperature gradient becomes steeper than the adiabatic gradient. The Schwarzschild criterion for convective instability is:
where is the temperature gradient that would be required if all energy were carried radiatively. When this exceeds , a displaced parcel of gas is buoyant and keeps rising, so convection sets in.
Convection dominates in:
- Outer envelopes of cool stars (), where partial ionization of H and He raises and steepens
- Cores of massive stars (), where the CNO cycle's extreme temperature sensitivity produces a steep luminosity gradient
Conduction is generally negligible in normal stellar interiors but becomes the dominant transport mechanism in degenerate matter (white dwarf interiors), where electrons have long mean free paths.
Opacity Sources and Rosseland Mean Opacity
Opacity () quantifies how effectively stellar material absorbs or scatters radiation. It's one of the most important inputs to stellar models because it controls both the radiative temperature gradient and the onset of convection.
The main opacity sources in stellar interiors:
- Bound-free absorption (photoionization): a photon ionizes an atom. Dominant at intermediate temperatures (– K) where partially ionized species are abundant.
- Free-free absorption (inverse bremsstrahlung): a free electron absorbs a photon while passing near an ion. Scales roughly as (Kramers' opacity law).
- Electron scattering (Thomson scattering): photons scatter off free electrons. Nearly independent of frequency and temperature; dominates in hot, fully ionized interiors of massive stars. cm/g, where is the hydrogen mass fraction.
- Bound-bound absorption (line opacity): significant near the surface and in partial ionization zones, but less important in deep interiors.
Since opacity varies strongly with photon frequency, stellar structure calculations use the Rosseland mean opacity, a weighted harmonic mean:
Here is the monochromatic opacity and is the Planck function. The weighting by means the Rosseland mean is most sensitive to frequencies near the peak of the radiation field's temperature derivative, which is where most of the energy flux occurs. Because it's a harmonic mean, the Rosseland opacity is biased toward frequency windows of low opacity, reflecting the fact that radiation preferentially leaks through the most transparent channels.
In practice, opacity tables (such as the OPAL tables from Livermore) are pre-computed as functions of , , and composition, then interpolated during numerical stellar model calculations.