Red-giant branch hydrogen fusion continues in stars of roughly solar mass until the helium core increases in mass sufficiently that it becomes degenerate. The core then shrinks, heats up, and develops a strong temperature gradient. The hydrogen shell, fusing via the temperature-sensitive CNO cycle, greatly increases its rate of energy production and the stars is considered to be at the foot of the red-giant branch. For a star the same mass as the sun, this takes approximately 2 billion years from the time that hydrogen was exhausted in the core. Subgiants more than about reach the Schönberg–Chandrasekhar limit relatively quickly before the
Planetary nebula exceeding about 30,000 K, there are enough emitted ultraviolet photons to ionize the ejected atmosphere, causing the gas to shine as a planetary nebula. After a star passes through the asymptotic giant branch (AGB) phase, the short planetary nebula phase of stellar evolution begins as gases blow away from the central star at speeds of a few kilometers per second. The central star is the remnant of its AGB progenitor, an electron-degenerate carbon-oxygen core that has lost most of its hydrogen envelope due to mass loss on the AGB. As the gases expand, the central star undergoes a two-stage evolution,