in 2022. The Sun is gradually becoming hotter in its core, hotter at the surface, larger in radius, and more luminous during its time on the main sequence: since the beginning of its main sequence life, it has expanded in radius by 15% and the surface has increased in temperature from to , resulting in a 48% increase in luminosity from 0.677 solar luminosities to its present-day 1.0 solar luminosity. This occurs because the helium atoms in the core have a higher mean molecular weight than the hydrogen atoms that were fused, resulting in less thermal pressure. The core is therefore shrinking, allowing the outer layers of the Sun to move closer to the center, releasing gravitational potential energy. According to the virial theorem, half this released gravitational energy goes into heating, which leads to a gradual increase in the rate at which fusion occurs and thus an increase in the luminosity. This process speeds up as the core gradually becomes denser. At present, it is increasing in brightness by about 1% every 100 million years. It will take at least 1 billion years from now to deplete liquid water from the Earth from such increase. After that, the Earth will cease to be able to support complex, multicellular life and the last remaining multicellular organisms on the planet will suffer a final, complete mass extinction. After core hydrogen exhaustion The Sun does not have enough mass to explode as a supernova. Instead, when it runs out of hydrogen in the core in approximately 5 billion years, core hydrogen fusion will stop, and there will be nothing to prevent the core from contracting. The release of gravitational potential energy will cause the luminosity of the Sun to increase, ending the main sequence phase and leading the Sun to expand over the next billion years: first into a subgiant, and then into a red giant. The heating due to gravitational contraction will also lead to hydrogen fusion in a shell just outside the core, where unfused hydrogen remains, contributing to the increased luminosity, which will eventually reach more than 1,000 times its present luminosity. When the Sun enters its red-giant branch (RGB) phase, it will engulf Mercury and (likely) Venus, reaching about . The Sun will spend around a billion years in the RGB and lose around a third of its mass. After the red-giant branch, the Sun has approximately 120