According to Universe Today, the mass of a star defines its lifespan. The least massive stars had longer lifespan compared to the most massive ones since they will use their fuel in a few million years and end in a supernova explosion. Thus, the biggest stars last only millions of years. The medium-sized stars last billions of years. Lastly, the smallest stars can last trillions of years.