Red-giant branch branch (SB), and red-giant branch (RGB), for stars with different initial masses, all at solar metallicity (Z = 0.02). Also shown are the helium core mass, surface effective temperature, radius, and luminosity at the start and end of the RGB for each star. The end of the red-giant branch is defined to be when core helium ignition takes place. Intermediate-mass stars only lose a small fraction of their mass as main-sequence and subgiant stars, but lose a significant amount of mass as red giants. The mass lost by a star similar to the Sun affects the temperature and luminosity of
Giant star convection in the outer layers, triggers a second dredge-up, and causes a dramatic increase in size and luminosity. This is the asymptotic giant branch (AGB) analogous to the red-giant branch but more luminous, with a hydrogen-burning shell contributing most of the energy. Stars only remain on the AGB for around a million years, becoming increasingly unstable until they exhaust their fuel, go through a planetary nebula phase, and then become a carbon–oxygen white dwarf. Main-sequence stars with masses above about are already very luminous and they move horizontally across the HR diagram when they leave the main sequence, briefly becoming