A helium flash can occur when helium fusion begins in the core of a low-mass star. Although this is a rapid release of energy within the core, it does not normally eject the star's outer layers directly. Later in the star's life, helium fusion can also occur in shells surrounding the core. These reactions sometimes take place in sudden bursts, causing changes in the star's size and brightness.
Red giants can also experience periods of instability during which their outer layers expand and contract. Together with the stellar wind, these changes can result in further loss of material.
Eventually, the star loses so much of its outer material that its hot central core becomes exposed. The expelled gas continues to expand into space, while radiation from the hot central core illuminates the surrounding material. This produces a beautiful glowing cloud called a planetary nebula. The name dates back to early astronomers, who sometimes mistook these roughly rounded objects for planets when viewed through telescopes.
The expanding gas gradually disperses into the surrounding interstellar medium, typically over several thousand to a few tens of thousands of years.
The bright core left behind is called a white dwarf star. Its surface temperature can initially reach around 100,000 Kelvin, and its mass is typically between 0.5 and 1.4 times the mass of the Sun. The white dwarf gradually cools, becoming less luminous over time. This process continues for billions of years, until the star becomes too faint to be easily observed.