Red giant brightness so common on both types of stars. Red giants are evolved from main-sequence stars with masses in the range from about to around . When a star initially forms from a collapsing molecular cloud in the interstellar medium, it contains primarily hydrogen and helium, with trace amounts of "metals" (in stellar structure, this simply refers to "any" element that is not hydrogen or helium i.e. atomic number greater than 2). These elements are all uniformly mixed throughout the star. The star reaches the main sequence when the core reaches a temperature high enough to begin fusing hydrogen (a few
Red-giant branch core becomes degenerate. The core still supports its own weight thermodynamically with the help of energy from the hydrogen shell, but is no longer in thermal equilibrium. It shrinks and heats causing the hydrogen shell to become thinner and the stellar envelope to inflate. This combination decreases luminosity as the star cools towards the foot of the RGB. Before the core becomes degenerate, the outer hydrogen envelope becomes opaque which causes the star to stop cooling, increases the rate of fusion in the shell, and the star has entered the RGB. In these stars, the subgiant phase occurs within a