Red giant 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. Instead, at the end of the asymptotic-giant-branch phase the star will eject its outer layers, forming a planetary nebula with the core of the star exposed, ultimately becoming a white dwarf. The ejection of the outer mass
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,