Asymptotic giant branch forming helium (known as hydrogen burning), and a very large envelope of material of composition similar to main-sequence stars. When a star exhausts the supply of hydrogen by nuclear fusion processes in its core, the core contracts and its temperature increases, causing the outer layers of the star to expand and cool. The star becomes a red giant, following a track towards the upper-right hand corner of the HR diagram. Eventually, once the temperature in the core has reached approximately , helium burning (fusion of helium nuclei) begins. The onset of helium burning in the core halts the star's cooling
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