How does the initial mass affect a star's duration on the Main Sequence?
The duration is inversely proportional: higher mass means a much shorter, faster burning life
The duration a star spends on the Main Sequence is critically dependent on its initial mass due to the associated gravitational pressures in the core. A star with greater mass experiences vastly higher gravitational pressure, which forces its core temperature and density to be much higher than a less massive star. This elevated temperature causes the star to burn its core hydrogen fuel at a tremendously accelerated, or furious, rate. For example, a star like our Sun, a relatively low-mass star, lasts approximately 10 billion years in this phase, whereas a massive star, perhaps 20 times the Sun's mass, might exhaust its core hydrogen in only a few million years, illustrating the profound inverse relationship.

#Videos
What Factors Determine A Star's Final Lifecycle? - Physics Frontier