Red-giant branch hydrogen fusion continues in stars of roughly solar mass until the helium core increases in mass sufficiently that it becomes degenerate. The core then shrinks, heats up, and develops a strong temperature gradient. The hydrogen shell, fusing via the temperature-sensitive CNO cycle, greatly increases its rate of energy production and the stars is considered to be at the foot of the red-giant branch. For a star the same mass as the sun, this takes approximately 2 billion years from the time that hydrogen was exhausted in the core. Subgiants more than about reach the Schönberg–Chandrasekhar limit relatively quickly before the
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