These are formulae for determining the masses of stars in binary star systems. ~, P is period in years, a is semimajor axis in AU. where: a" is the angular semi-major axis in arcsec, and π is the parallax in arcsec. Note that for visual binary stars, the parallax, π, enters as the third power.