The Sun is expected to continue shining for about 5 billion years before becoming a red giant star and eventually ending up as a white dwarf.