when does a star leave the main sequence
Main sequence In general, the more massive a star is, the shorter its lifespan on the main sequence. After the hydrogen fuel at the core has been consumed, the star evolves away from the main sequence on the HR diagram. The behavior of a star now depends on its mass, with stars below 0.23 M☉ becoming white dwarfs directly, whereas stars with up to ten solar masses pass through a red giant stage.[3] More massive stars can explode as a supernova,[4] or collapse directly into a black hole.
Stellar classification Most stars are currently classified under the Morganâ€“Keenan (MK) system using the letters O, B, A, F, G, K, and M, a sequence from the hottest (O type) to the coolest (M type). Each letter class is then subdivided using a numeric digit with 0 being hottest and 9 being coolest (e.g. A8, A9, F0, F1 form a sequence from hotter to cooler). The sequence has been expanded with classes for other stars and star-like objects that do not fit in the classical system, such as class D for white dwarfs and class C for carbon stars.