How does the main sequence lifespan of a massive star compare to that of a low-mass star like a red dwarf?

Answer

Massive stars must burn fuel rapidly to counteract gravity, lasting only a few million years

Massive stars consume their fuel at an extremely high rate to counteract immense gravitational weight, resulting in main sequence lifespans of only a few million years, compared to trillions of years for low-mass stars.

How does the main sequence lifespan of a massive star compare to that of a low-mass star like a red dwarf?
evolutionprocessstarFusion