Red-giant branch through several distinct stages which are reflected in the outward appearance. The evolutionary stages vary depending primarily on the mass of the star, but also on its metallicity. After a main-sequence star has exhausted its core hydrogen, it begins to fuse hydrogen in a thick shell around a core consisting largely of helium. The mass of the helium core is below the Schönberg–Chandrasekhar limit and is in thermal equilibrium, and the star is a subgiant. Any additional energy production from the shell fusion is consumed in inflating the envelope and the star cools but does not increase in luminosity. Shell
Gas giant Hot Jupiters are class IV or V. A cold hydrogen-rich gas giant more massive than Jupiter but less than about () will only be slightly larger in volume than Jupiter. For masses above , gravity will cause the planet to shrink (see degenerate matter). Kelvin–Helmholtz heating can cause a gas giant to radiate more energy than it receives from its host star. Although the words "gas" and "giant" are often combined, hydrogen planets need not be as large as the familiar gas giants from the Solar System. However, smaller gas planets and planets closer to their star will lose atmospheric