The determination of masses in binary systems generally uses Kepler's 3rd Law,
where P is the orbital period, m1 and m2 are the respective masses, and R = d1 + d2, and the "seesaw equation" for the center of mass:
From the first of these
equations, if the period P and the average separation R are known,
we can solve for the total mass M = m1 + m2 of the
binary system. Then, if we know enough about the orbits to determine the
distances d1 and d2 separately, the second equation can be
used to determine the individual masses m1 and m2.