what determines the main sequence
Main sequence fitting also determines distances using the HR Diagram but is always applied to clusters of stars. These stars are gravitationally bound, all located at the same distance, and formed at the same time from the same cloud of gas and dust. It is assumed that the members of a cluster will be found at the same locations as stars in general on the HR diagram. Thus, 90% of the cluster stars are on the main sequence.