# Stellar structure
**Stellar structure** is the description of the interior of a [[Star|star]] as a set of layers in equilibrium, and of the equations that fix the run of [[Pressure|pressure]], [[Density|density]], [[Temperature|temperature]] and energy flow from the centre to the surface. A star is a self-gravitating ball of [[Plasma_(physics)|plasma]] that holds itself up against its own [[Gravity|gravity]] by being hot, stays hot by releasing [[Nuclear_fusion|nuclear]] energy in its core, and loses that energy from its surface as light. The structure is the steady state in which those three processes balance, and it is almost entirely determined by two numbers: the star's mass and its composition.[^kippenhahn]
In the microsim below the reader builds such a star. Two controls set the mass M, from 0.1 to 50 solar masses, and the radius R, and the sim integrates [[Hydrostatic_equilibrium|hydrostatic equilibrium]], `dP/dr = -G*m(r)*rho/r^2`, on the n = 1 polytrope, whose density profile has the closed form `theta = sin(xi)/xi`. Readouts give the central pressure from `P_c ≈ (3/(8*pi))*G*M^2/R^4` and the central temperature from `T_c ~ G*M*m_p/(k_B*R)`, which for the Sun's mass and radius comes out at about 1.3 × 10¹⁴ Pa and 2 × 10⁷ K (derived) — hot enough for hydrogen fusion, which is the point of the calculation.[^derived] An energy bar shows the [[Virial_theorem|virial]] relation `2*K + U = 0`, and a mass–luminosity readout marked ILLUSTRATIVE uses the empirical `L ∝ M^3.5` to give a [[Main_sequence|main-sequence]] lifetime proportional to M/L.
On the [[Physics]] flagship this article serves Part IV — Branches and fields, section *Astrophysics* (row P68). No Portal Book on the cluster's shelves treats stellar interiors quantitatively, so the equations and numbers below are referred to the standard texts of the field, with the printed pages still to pin; where a figure has been computed for Wikitube from those equations it is marked *derived*.
## Heat transport
Energy released in the core has to reach the surface, and how it travels decides the star's whole structure, because the mechanism sets the temperature gradient and the temperature gradient sets the pressure that holds the star up. Three mechanisms are available — radiation, convection and conduction — and in any given layer the one that can carry the required flux with the smallest gradient is the one that operates.[^kippenhahn] The flux itself is not free to choose: it is whatever the energy generated inside that radius demands, so transport is a constraint imposed from the inside out, and the star adjusts its gradient until the constraint is met. This is why a change in opacity, which affects no equation but the transport one, propagates through the whole model and alters the radius and the surface temperature.
#### Radiation
In most of a star's interior the energy moves as [[Photon|photons]] that are absorbed and re-emitted over and over. The mean free path is short compared with the star, so the transport is a diffusion rather than a flight, and the flux is set by the gradient of the [[Black-body_radiation|radiation]] energy density against the opacity of the material. The radiative gradient is `dT/dr = -3*kappa*rho*L(r)/(16*pi*a*c*T^3*r^2)`, in which κ is the opacity per unit mass, a the radiation constant and L(r) the energy crossing the sphere of radius r.[^kippenhahn][^eddington1926] Two features of that expression govern stellar structure. The gradient is proportional to the opacity, so a layer that absorbs strongly needs a steep gradient to push the same flux; and it falls as T⁻³, so the very hot interior transports radiation efficiently. Eddington's treatment of radiative equilibrium was what first made the interior of a star calculable, and it remains the default assumption for the deep layers of a [[Sun|solar-type]] star.[^eddington1926]
#### Convection
When the gradient the radiation requires becomes steeper than the star's own adiabatic gradient, the layer becomes unstable and overturns: a blob displaced upward finds itself hotter and less dense than its surroundings and keeps rising. That comparison is the Schwarzschild criterion, and it makes [[Convection|convection]] a switch rather than a competitor — where the criterion is met, convection takes over almost entirely, because moving matter carries [[Heat_transfer|heat]] far more efficiently than diffusing photons, and the actual gradient settles very close to the adiabatic value.[^kippenhahn] Convection therefore appears wherever opacity is high or energy generation is strongly concentrated: in the outer envelope of the Sun, where partially ionised hydrogen is opaque, and in the cores of massive stars, where the energy-generating reactions are so temperature-sensitive that the flux is produced in a very small volume. Which parts of a star convect is the single largest structural difference between stars of different mass, and it also determines whether fusion products are mixed to the surface, since a convective region is chemically homogenised and a radiative one is not.
#### Conduction
Ordinary electron [[Thermal_conduction|conduction]] is negligible in a normal stellar gas, because the electrons' mean free path is far shorter than the photons'. It becomes dominant in degenerate matter, where the [[Pauli_exclusion_principle|exclusion principle]] forces [[Electron|electrons]] into high-momentum states: almost every state they could scatter into is already occupied, so the scattering is suppressed and the mean free path grows enormously. The interior of a white dwarf is therefore nearly isothermal, and the star's entire temperature drop is concentrated in its thin non-degenerate envelope.[^hansen2004] The same effect appears in the degenerate cores of evolved stars before they ignite their next fuel, and it is one reason such cores can be treated as a single point in a structure calculation.
## Equations of stellar structure
The structure of a spherically symmetric star in equilibrium is fixed by four coupled differential equations in the radius r, together with three constitutive relations. Mass continuity, `dm/dr = 4*pi*r^2*rho`, defines the mass interior to r. Hydrostatic equilibrium, `dP/dr = -G*m(r)*rho/r^2`, states that the pressure gradient supports the weight of each shell. Energy conservation, `dL/dr = 4*pi*r^2*rho*epsilon`, accumulates the energy generated per unit mass, ε. Energy transport supplies the temperature gradient, in the radiative or convective form given above. The constitutive relations — the equation of state P(ρ, T, composition), the opacity κ and the generation rate ε — close the system, and boundary conditions at the centre (m = 0, L = 0) and at the surface complete it.[^kippenhahn][^clayton1968] The practical statement of the result is that the structure of a star in equilibrium is determined by its mass and composition alone, which is why stars of the same mass and age lie on a line rather than scattering across a plane.[^prialnik]
#### Hydrostatic equilibrium and the central pressure
The sim's primary equation is the second of the four. Integrating it crudely, by replacing the run of density with the mean value and the run of m(r) with M, gives a central pressure of order `P_c ≈ (3/(8*pi))*G*M^2/R^4`, which for solar values is 1.3 × 10¹⁴ Pa (derived).[^derived] The interest of that estimate is not its accuracy — a realistic solar model is two orders of magnitude higher at the centre, because a real star is far more centrally condensed than a uniform sphere — but its scaling. Pressure rises as the square of the mass and falls as the fourth power of the radius, so a star that contracts heats and pressurises itself violently, and a star twice as massive at the same radius needs four times the central pressure to stand up.[^prialnik]
Converting that pressure into a temperature is what makes the estimate physical. If the interior is an [[Ideal_gas_law|ideal gas]] of protons and electrons, P ≈ ρ·k_B·T/m_p, and combining this with the pressure estimate gives `T_c ~ G*M*m_p/(k_B*R)` — about 2 × 10⁷ K for the Sun (derived), against the roughly 1.5 × 10⁷ K of detailed models.[^derived][^openstax-constants][^prialnik] That is the number the rest of [[Astrophysics|astrophysics]] needs: it is high enough for the [[Proton–proton_chain|proton–proton chain]] to run, and it is what fixes where on the [[Maxwell–Boltzmann_distribution|Maxwell–Boltzmann]] tail the fusing protons are drawn from. Fusion of hydrogen into [[Helium|helium]] releases energy because the helium nucleus is more tightly bound, and the reaction must be driven at these temperatures because the protons have to approach against their electrostatic repulsion.[^murphy-fusion]
#### The n = 1 polytrope
To make the sim interactive rather than a solver, it uses a polytrope: a model in which pressure is a power of density, P = K·ρ^(1 + 1/n). Substituting that into hydrostatic equilibrium gives the Lane–Emden equation, and for the index n = 1 it has the closed solution `theta = sin(xi)/xi`, with the surface at the first zero, ξ₁ = π.[^chandra1939] The solution is exactly the profile the sim draws, and it carries two instructive consequences. The central density exceeds the mean by π²/3 ≈ 3.29 (derived), so even this simple model is already three times more centrally condensed than a uniform ball.[^derived] And for n = 1 alone the radius depends only on the constant K and not on the mass, which is the first hint of the far stronger mass–radius couplings that appear in degenerate stars.[^chandra1939]
The [[Virial_theorem|virial theorem]], `2*K + U = 0`, is the global statement behind all of this: for a self-gravitating ball of ideal gas the total kinetic energy is half the magnitude of the gravitational potential energy, so the total energy E = K + U = −K is negative and the star is bound. Its consequence is the one that makes stars strange as thermodynamic objects. Radiating energy away makes a star contract, and contraction increases K, so a star that loses energy gets hotter. The sim's energy bar shows the two terms and their sum changing as the reader moves M and R.[^prialnik]
## Rapid evolution
A star has three natural timescales, and almost all of stellar physics is the statement that they are widely separated.[^prialnik] The dynamical time is how long the star would take to collapse if its pressure support were removed, `t_dyn ~ sqrt(R^3/(G*M))`, which is about 27 minutes for the Sun (derived). The thermal, or Kelvin–Helmholtz, time is how long the star could shine on its gravitational energy alone, `t_KH ~ G*M^2/(R*L)`, about 3 × 10⁷ years for the Sun (derived). The nuclear time is how long its fuel lasts, `t_nuc ~ 0.007*f*M*c^2/L`, which for a hydrogen-to-helium conversion efficiency of 0.007 and a core fraction f of about a tenth gives roughly 10¹⁰ years for the Sun (derived).[^derived][^openstax-astro][^murphy-fusion]
Because t_dyn ≪ t_KH ≪ t_nuc, a star may be treated as in exact hydrostatic equilibrium and in exact thermal balance while its composition changes slowly underneath, and that is precisely the assumption the four structure equations encode. Evolution is then a sequence of equilibrium models, each computed for the composition the previous one left behind.[^kippenhahn]
#### When equilibrium fails
The assumption breaks whenever a star is forced to change on a timescale shorter than the one its structure can follow, and those episodes are the dramatic ones. When a core exhausts its fuel, energy generation stops and the core contracts on its thermal timescale while the envelope expands, which is how a [[Main_sequence|main-sequence]] star becomes a giant. When degenerate matter ignites, the pressure does not respond to the temperature rise, so the burning runs away until degeneracy is lifted — a flash rather than a steady burn.[^hansen2004] And when an iron core can release no further energy by fusion, nothing holds it up and it collapses on the dynamical timescale of seconds, the event seen as a [[Supernova|core-collapse supernova]], leaving a compact remnant or a [[Black_hole|black hole]] and dispersing the elements built during the star's life.[^clayton1968]
The nuclear timescale also explains the shape of the [[Main_sequence|main sequence]]. Empirically, luminosity climbs far faster than mass, roughly as `L ∝ M^3.5` — a display fit rather than a law, and marked ILLUSTRATIVE in the sim — so the lifetime, which goes as M/L, falls as M^−2.5. A star of ten solar masses therefore lives about 1/300 as long as the Sun (derived), which is why the massive stars that produce most of the heavy elements are also the rarest ones in any old population.[^derived][^prialnik]
## See also
- [[Star]]
- [[Hydrostatic_equilibrium]]
- [[Virial_theorem]]
- [[Main_sequence]]
- [[Sun]]
- [[Astrophysics]]
- [[Stellar_nucleosynthesis]]
- [[Nuclear_fusion]]
## References
[^kippenhahn]: Kippenhahn, Rudolf; Weigert, Alfred; Weiss, Achim (2012). *Stellar Structure and Evolution*, 2nd ed. Berlin: Springer (the four structure equations, the radiative gradient, the Schwarzschild criterion for convection, and the statement that structure follows from mass and composition; page to pin).
[^eddington1926]: Eddington, Arthur Stanley (1926). *The Internal Constitution of the Stars*. Cambridge: Cambridge University Press (radiative equilibrium as the transport mechanism of stellar interiors; page to pin).
[^chandra1939]: Chandrasekhar, Subrahmanyan (1939). *An Introduction to the Study of Stellar Structure*. Chicago: University of Chicago Press (the Lane–Emden equation, the closed n = 1 solution θ = sin ξ/ξ with first zero at ξ₁ = π, and the polytropic mass–radius relations; page to pin).
[^prialnik]: Prialnik, Dina (2009). *An Introduction to the Theory of Stellar Structure and Evolution*, 2nd ed. Cambridge: Cambridge University Press (the central-pressure and central-temperature estimates, the virial theorem applied to a self-gravitating gas, the dynamical, thermal and nuclear timescales, and the mass–luminosity relation; page to pin).
[^clayton1968]: Clayton, Donald D. (1968). *Principles of Stellar Evolution and Nucleosynthesis*. New York: McGraw-Hill (energy generation rates as the constitutive relation ε, and the fate of an iron core; page to pin).
[^hansen2004]: Hansen, Carl J.; Kawaler, Steven D.; Trimble, Virginia (2004). *Stellar Interiors: Physical Principles, Structure, and Evolution*, 2nd ed. New York: Springer (electron conduction in degenerate matter, the near-isothermal white-dwarf interior, and degenerate ignition flashes; page to pin).
[^murphy-fusion]: Murphy, Thomas W. (2021). *Energy and Human Ambitions on a Finite Planet*. Ch. "Alternative Energy," pp. 183–322, with the fusion energetics at pp. 285–294 (the energy released when light nuclei fuse, and the electrostatic barrier that must be overcome). Portal Book 097. https://open.umn.edu/opentextbooks/textbooks/energy-and-human-ambitions-on-a-finite-planet
[^openstax-constants]: Sanny, Jeff; Ling, Samuel J.; et al. (2016). *University Physics Volume 3*. OpenStax. Appendix C, "Fundamental Constants," pp. 549–550 (the proton mass and the Boltzmann and gravitational constants used in the derived estimates; printed page to pin). Portal Book 079. https://open.umn.edu/opentextbooks/textbooks/university-physics-volume-3
[^openstax-astro]: Sanny and Ling, *University Physics Volume 3* (2016), Appendix D, "Astronomical Data," pp. 551–552 (the solar mass, radius and luminosity used, to two significant figures, in the derived estimates; printed page to pin). Portal Book 079.
[^derived]: Values marked *derived* were computed for Wikitube from the equations cited above and the round solar values M ≈ 1.99 × 10³⁰ kg, R ≈ 6.96 × 10⁸ m and L ≈ 3.85 × 10²⁶ W, with G = 6.674 × 10⁻¹¹ m³ kg⁻¹ s⁻², k_B = 1.381 × 10⁻²³ J/K, m_p = 1.673 × 10⁻²⁷ kg and c = 2.998 × 10⁸ m/s. They are: P_c ≈ (3/8π)·G·M²/R⁴ = 1.3 × 10¹⁴ Pa; T_c ≈ G·M·m_p/(k_B·R) = 2.3 × 10⁷ K; t_dyn = √(R³/(G·M)) = 1.6 × 10³ s ≈ 27 min; t_KH = G·M²/(R·L) = 9.9 × 10¹⁴ s ≈ 3.1 × 10⁷ yr; t_nuc = 0.007 × 0.1 × M·c²/L = 3.3 × 10¹⁷ s ≈ 1.0 × 10¹⁰ yr. For the n = 1 polytrope, θ′(π) = −1/π, so the central-to-mean density ratio is −ξ₁/(3·θ′(ξ₁)) = π²/3 = 3.29. From L ∝ M^3.5 the lifetime ∝ M^−2.5, so a ten-solar-mass star lives 10^−2.5 ≈ 1/316 as long as the Sun. The mass–luminosity exponent itself is an empirical display fit, not a law, and is marked ILLUSTRATIVE where it is used.
## Sources
- Kippenhahn, Weigert and Weiss, *Stellar Structure and Evolution*, 2nd ed. (Springer, 2012) — the standard graduate account of the four equations and of transport.
- Chandrasekhar, *An Introduction to the Study of Stellar Structure* (University of Chicago Press, 1939) — polytropes and the Lane–Emden equation.
- Eddington, *The Internal Constitution of the Stars* (Cambridge University Press, 1926) — radiative equilibrium.
- Prialnik, *An Introduction to the Theory of Stellar Structure and Evolution*, 2nd ed. (Cambridge University Press, 2009) — timescales and scaling estimates.
- Clayton, *Principles of Stellar Evolution and Nucleosynthesis* (McGraw-Hill, 1968); Hansen, Kawaler and Trimble, *Stellar Interiors*, 2nd ed. (Springer, 2004).
- Murphy, *Energy and Human Ambitions on a Finite Planet* (2021), Portal Book 097, for the energetics of fusion; Sanny and Ling, *University Physics Volume 3* (OpenStax, 2016), Portal Book 079, for the constants and astronomical data.
## External links
- [Energy and Human Ambitions on a Finite Planet](https://open.umn.edu/opentextbooks/textbooks/energy-and-human-ambitions-on-a-finite-planet), the Open Textbook Library record for Portal Book 097
- [University Physics Volume 3](https://open.umn.edu/opentextbooks/textbooks/university-physics-volume-3), the Open Textbook Library record for Portal Book 079
- The Wikipedia pair's external links list open lecture notes and stellar-model codes; no openly licensed stellar-structure text is yet on the cluster's shelves
<!-- MATTERSIM:BEGIN g24 — Matter & Energy Cluster microsim (framework build, specs/sims/Stellar_structure.json); do not hand-edit inside -->
**Microsim — three.js (Wikitube framework), pending deploy:** *Stellar structure* will play here once `https://wikitube-3d-microsims.netlify.app/matter/Stellar_structure.html` is live.
<!-- pending: <div class="wt-sim" data-src="https://wikitube-3d-microsims.netlify.app/matter/Stellar_structure.html" data-title="Stellar structure"></div> -->
<!-- MATTERSIM:END -->
## Wikipedia : Wikitube
**Strict pair:** [Wikipedia](https://en.wikipedia.org/wiki/Stellar_structure) : [Wikitube](https://en.wikitube.io/wiki/Stellar_structure) · pinned revision [1310601263](https://en.wikipedia.org/w/index.php?oldid=1310601263) · 2026-09-11
## Previous hub tags
Hubs: `Life_Physics`. Portals: [[PORTAL_Physics]].
---
*Matter & Energy Cluster child articles, wave 1 · 2026-09-11 · drafted · Physics row P68 · sim pending (matter/Stellar_structure).*