Giant star degenerate helium fusion begins explosively, but most of the energy goes into lifting the degeneracy and the core becomes convective. The energy generated by helium fusion reduces the pressure in the surrounding hydrogen-burning shell, which reduces its energy-generation rate. The overall luminosity of the star decreases, its outer envelope contracts again, and the star moves from the red-giant branch to the horizontal branch. When the core helium is exhausted, a star with up to about has a carbon–oxygen core that becomes degenerate and starts helium burning in a shell. As with the earlier collapse of the helium core, this starts
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