Red-giant branch through several distinct stages which are reflected in the outward appearance. The evolutionary stages vary depending primarily on the mass of the star, but also on its metallicity. After a main-sequence star has exhausted its core hydrogen, it begins to fuse hydrogen in a thick shell around a core consisting largely of helium. The mass of the helium core is below the Schönberg–Chandrasekhar limit and is in thermal equilibrium, and the star is a subgiant. Any additional energy production from the shell fusion is consumed in inflating the envelope and the star cools but does not increase in luminosity. Shell
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,