Solar system · Stellar evolution
The sun leaves the main sequence
Having exhausted the hydrogen in the core, the Sun will begin to turn into a red giant.
What this means
The approximate limit of 5.4 billion years describes a phase transition in stellar evolution, not a second-to-second prediction.
PRIMARY SOURCE
Distant future of the Sun and Earth revisitedMonthly Notices of the Royal Astronomical Society ↗