Technically when all its fuel runs out so that it cant burn anything any more, thus it is unable to give off light. Normally that is when the hydrogen and helium run out. Small stars just sort of burn out but big stars go supernova 😀
Quite simply, it’s size! Strangely, bigger stars last a lot less time than small stars! This is because the pressure of the huge mass accelerates reactions in the star’s core, so it uses up fuel faster. You’ll be pleased to know our sun is quite small – it’s stil got about 5 billion years worth of fuel left!
Small stars expand once the hydrogen is used up, then they start using helium, once they have used that fuel, they shed off their outer layers and become a white dwarf star. Big stars (above about eight times the mass of our sun) can burn heavier elements. Once they do though, the collapse in on themselves because they are so massive, and cause a supernova, that leaves a very dense neutron star, of if its very massive, it produces a black hole.
Comments