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
Blue giant both cooler and more luminous. Intermediate-mass stars will continue to expand and cool until they become red giants. Massive stars also continue to expand as hydrogen shell burning progresses, but they do so at approximately constant luminosity and move horizontally across the HR diagram. In this way they can quickly pass through blue giant, bright blue giant, blue supergiant, and yellow supergiant classes, until they become red supergiants. The luminosity class for such stars is determined from spectral lines that are sensitive to the surface gravity of the star, with more expanded and luminous stars being given I (supergiant) classifications