The Sun is estimated to have approximately 5 billion years left until it exhausts its hydrogen fuel and begins to evolve into a red giant. However, it will continue to shine as a white dwarf for billions of years after that. So, in total, the Sun has a remaining lifespan of several billion years.