How does a star's lifespan scale compared to its initial mass?

Answer

More massive stars burn fuel faster and live shorter lives.

The relationship between mass and lifetime is inverse; stars with significantly more mass burn through their nuclear fuel reserves much faster than smaller counterparts. A red dwarf can last trillions of years, while a star only a few times the Sun's mass might last only a few hundred million years.

How does a star's lifespan scale compared to its initial mass?
temperaturepropertystarmassphysical