Orbital Separation Calculator – Semi-Major Axis from Period (Kepler III)
Use this free Orbital Separation Calculator to run Kepler's third law in reverse: from an orbital period and the total mass of the system, find the semi-major axis — the average distance between the two bodies.
Formula
Kepler's third law, T² = 4π²a³/(GM), rearranged for the separation: a = (GMT² / 4π²)1/3, with G = 6.674 × 10⁻¹¹ N·m²/kg². Strictly, M is the total mass of both bodies, though when one is far heavier the other's contribution is negligible.
How to use
- Pick a mass preset or type a custom total mass in kilograms (scientific notation works).
- Enter the orbital period and choose its unit — seconds, days or years.
- Click "Calculate Separation" to get the semi-major axis in metres, kilometres and AU.
Worked example
Earth orbiting the Sun: T = 1 year, M = 1.989 × 10³⁰ kg.
a = (6.674 × 10⁻¹¹ × 1.989 × 10³⁰ × (3.15576 × 10⁷)² / 4π²)1/3 ≈ 1.496 × 10¹¹ m
That is 149,608,543 km ≈ 1.00 AU — recovering the definition of the astronomical unit from nothing but the length of the year.
FAQ
How do astronomers find exoplanet distances this way?
A transit or radial-velocity survey measures the planet's period very precisely. With the star's mass estimated from its spectrum, Kepler's law immediately gives the orbit size — and with it, whether the planet sits in the habitable zone.
Does the orbiting body's mass matter?
Only through the total mass M. For a planet around a star it changes the answer by far less than 1%, but for two similar stars in a binary both masses count fully.
What separation gives a period of exactly one day around Earth?
About 50,000 km from Earth's centre — well inside the Moon's orbit, which is why no natural satellite can have a one-day period at the Moon's distance.