Binary Star Calculator – Total Mass from Period & Separation
Use this free Binary Star Calculator to "weigh" a pair of orbiting stars. From their orbital period and separation, Kepler's third law gives the combined mass of the system — the main way astronomers measure the mass of stars.
Formula
Kepler's third law for a binary system: Mtotal = 4π²a³ / (GT²), with G = 6.674 × 10⁻¹¹ N·m²/kg², the separation a in metres and the period T in seconds. Handy shortcut: if a is in AU and T is in years, the total mass comes out directly in solar masses: M = a³/T².
How to use
- Enter the separation between the two stars and choose its unit (AU is typical for star systems).
- Enter the orbital period and choose its unit.
- Click "Calculate Total Mass" to get the combined mass in kilograms and in solar masses (1 solar mass = 1.989 × 10³⁰ kg).
Worked example
Imagine two stars separated by a = 1 AU with a period of T = 1 year — the Earth–Sun arrangement.
M = 4π²a³/(GT²) = 4π² × (1.496 × 10¹¹)³ / (6.674 × 10⁻¹¹ × (3.156 × 10⁷)²) ≈ 1.989 × 10³⁰ kg = 1.00 solar mass.
This is exactly how the Sun's mass was first measured — from Earth's orbit.
FAQ
Can this give each star's individual mass?
Not from the period and separation alone — that gives the total. If you also measure how much each star wobbles around the centre of mass, the total can be split between them.
Why do astronomers trust this method?
It rests only on gravity and timing, which can be measured very precisely. It is the most direct way to weigh stars, and it anchors almost all other stellar mass estimates.
Does it work for exoplanets?
Yes — for a planet the combined mass is essentially the star's mass, since the planet adds so little. The same law gives stellar masses from exoplanet orbits.