Star Lifespan: How Temperature Affects Stellar Longevity
Hot stars live shorter than cool stars because they burn their nuclear fuel much faster. The higher the temperature of a star, the more energy it emits and the faster it uses up its hydrogen fuel.
For example, a star with a surface temperature of 30,000 degrees Celsius will live for about 10 million years, while a star with a surface temperature of 5,000 degrees Celsius will live for about 100 billion years.