 Binaries provide the best method for astronomers to determine the mass of a distant star.The gravitational pull between them causes them to orbit around their common center of mass.From the orbital pattern of a visual binary, or the time variation of the spectrum of a spectroscopic binary, the mass of its stars can be determined, for example with the binary mass function.