Generally, the more massive the star, the faster it burns up its fuel supply, and the shorter its life. The most massive stars can burn out and explode in a supernova after only a few million years of fusion. A star with a mass like the Sun, on the other hand, can continue fusing hydrogen for about 10 billion years.
What happens when stars burn out?
Most stars take millions of years to die. When a star like the Sun has burned all of its hydrogen fuel, it expands to become a red giant. ... After puffing off its outer layers, the star collapses to form a very dense white dwarf.
How long do stars take to burn out?
It has been spending its fuel so extravagantly that it cannot be older than about 10 million years. Within a million years, it is expected to go into complete collapse before probably exploding as a supernova.