The Sun appears to have been active for 4.6 billion years and has enough fuel to go on for another five billion years or so. At the end of its life, the Sun will start to fuse helium into heavier elements and begin to swell up, ultimately growing so large that it will swallow the Earth. After a billion years as a red giant, it will suddenly collapse into a white dwarf -- the final end product of a star like ours. It may take a trillion years to cool off completely.