What critical factor determines the lifespan of a star on the main sequence?

Answer

How quickly it converts hydrogen fuel via nuclear fusion

The critical factor determining a star's lifespan is how rapidly it converts its hydrogen fuel reserves into energy through nuclear fusion, which is a direct trade-off with its temperature.

What critical factor determines the lifespan of a star on the main sequence?
astronomylifespanstarsblue stars