, from its
birth on the
left side of the frame to its
evolution into a red giant on the
right after billions of years Red giants are evolved from
main-sequence stars with masses in the range from about to around . When the star has mostly exhausted the hydrogen fuel in its core, the core's rate of nuclear reactions declines, and thus so do the
radiation and
thermal pressure the core generates, which are what support the star against
gravitational contraction. The star further contracts, increasing the pressures and thus temperatures inside the star (as described by the
ideal gas law). Eventually a "shell" layer around the core reaches temperatures sufficient to fuse hydrogen and thus generate its own radiation and thermal pressure, which "re-inflates" the star's outer layers and causes them to expand. The hydrogen-burning shell results in a situation that has been described as the
mirror principle: when the core within the shell contracts, the layers of the star outside the shell must expand. The detailed physical processes that cause this are complex. Still, the behavior is necessary to satisfy simultaneous conservation of
gravitational and
thermal energy in a star with the shell structure. The core contracts and heats up due to the lack of fusion, and so the outer layers of the star expand greatly, absorbing most of the extra energy from shell fusion. This process of cooling and expanding is the
subgiant stage. When the envelope of the star cools sufficiently it becomes
convective, the star stops expanding, its
luminosity starts to increase, and the star is ascending the
red-giant branch of the
Hertzsprung–Russell (H–R) diagram. is an old star, already shedding its outer layers into space The evolutionary path the star takes as it moves along the red-giant branch depends on the mass of the star. For the Sun and stars of less than about the core will become dense enough that
electron degeneracy pressure will prevent it from collapsing further. Once the core is
degenerate, it will continue to heat until it reaches a temperature of roughly , hot enough to begin fusing helium to carbon via the
triple-alpha process. Once the degenerate core reaches this temperature, the entire core will begin helium fusion nearly simultaneously in a so-called
helium flash. In more-massive stars, the collapsing core will reach these temperatures before it is dense enough to be degenerate, so helium fusion will begin much more smoothly, and produce no helium flash. An analogous process occurs when the core helium is exhausted, and the star collapses once again, causing helium in a shell to begin fusing. At the same time, hydrogen may begin fusion in a shell just outside the burning helium shell. This puts the star onto the
asymptotic giant branch, a second red-giant phase. The helium fusion results in the build-up of a carbon–oxygen core. A star below about will never start fusion in its degenerate carbon–oxygen core. and may continue to fuse hydrogen into helium for up to a
trillion years until only a small fraction of the entire star is hydrogen. Luminosity and temperature steadily increase during this time, just as for more-massive main-sequence stars, but the length of time involved means that the temperature eventually increases by about 50% and the luminosity by around 10 times. Eventually the level of helium increases to the point where the star ceases to be fully convective and the remaining hydrogen locked in the core is consumed in only a few billion more years. Depending on mass, the temperature and luminosity continue to increase for a time during hydrogen shell burning, the star can become hotter than the Sun and tens of times more luminous than when it formed although still not as luminous as the Sun. After some billions more years, they start to become less luminous and cooler even though hydrogen shell burning continues. These become cool helium white dwarfs. Very-high-mass stars develop into
supergiants that follow an
evolutionary track that takes them back and forth horizontally over the H–R diagram, at the right end constituting
red supergiants. These usually end their life as a
type II supernova. The most massive stars can become
Wolf–Rayet stars without becoming giants or supergiants at all. ==Planets==