One relation, three unknowns
Kepler's third law links the size of an orbit to how long it takes. Published in 1619 as “the square of the period is proportional to the cube of the mean distance”, it was an empirical pattern in Tycho Brahe's data with no explanation attached. Newton supplied the explanation sixty-eight years later and, in doing so, added the term that makes the law useful beyond the Solar System: the total mass of the two bodies.
In astronomical units the constant disappears. Measure the period in years, the semi-major axis in astronomical units and the masses in solar masses, and the law reads T² = a³/(M₁ + M₂). Substituting the Earth — one year, one AU, essentially one solar mass — gives 1 = 1/1, which is what fixes the units against each other. No numerical constant is needed and none is hidden.
Because the relation ties three quantities, knowing any two gives the third, and each direction has its own use. Given a distance and a mass you get a period, which is how orbits are planned. Given a period and a mass you get a distance, which is how an exoplanet's separation from its star is inferred from a transit or radial-velocity period. Given a period and a distance you get a mass — and that is the only direct way we have of weighing anything in the universe.
The mass term is why Kepler's original form works for the Solar System and nowhere else. The Sun holds over 99.8% of the system's mass, so M₁ + M₂ is within a thousandth of 1 for every planet and the correction is invisible in Kepler's data. For a binary star of two comparable suns the total is nearer 2, and ignoring it would put the mass out by a factor of two.
The formula, one variable at a time
a is the semi-major axis of the relative orbit — half the long axis of the ellipse one body traces around the other, which equals the mean of the closest and furthest separations. It is not the current distance, and for a binary it is not the separation of either star from the barycentre. Getting this wrong is the most common error in binary mass work.
T is the sidereal period: one complete orbit relative to the fixed stars. For a planet seen from Earth the observed repetition is the synodic period, which is different and generally longer — the synodic period calculator converts between the two. Using a synodic period here gives a wrong answer that looks plausible.
M₁ + M₂ is a sum, and only a sum. Kepler's third law cannot separate the two masses however precisely you measure the orbit, because the relative orbit depends only on the total. To split them you need a second observation: the ratio of each body's distance from the barycentre, since M₁a₁ = M₂a₂. The mass-ratio field here applies that split once you supply the ratio.
In SI units the same law is T = 2π√(a³/[G(M₁ + M₂)]) with G = 6.67430 × 10⁻¹¹ m³ kg⁻¹ s⁻². That form is needed for satellites round the Earth, where the astronomical unit and the solar mass are absurd units — the geostationary orbit calculator works in it directly. Note that G is the least precisely known of the fundamental constants, to about one part in 10⁴, whereas the product GM for the Sun is known to eleven digits. That is why astronomers work in solar masses and avoid G entirely.
One thing the law does not contain is eccentricity. A circular orbit and a wildly elongated one with the same semi-major axis have exactly the same period. Eccentricity changes where the body is within the orbit and how fast it is moving at any moment, not how long the circuit takes — see the eccentricity calculator for that side of the geometry.
Worked example: Jupiter's period, and weighing Sirius
Start with Jupiter, whose semi-major axis is 5.2026 AU and whose mass is 0.0009543 M☉, giving a total system mass of 1.0009543 M☉.
- Cube the axis. 5.2026² = 27.0670, and 27.0670 × 5.2026 = 140.831 AU³.
- Divide by the total mass. 140.831 / 1.0009543 = 140.697 yr².
- Take the square root. √140.697 = 11.861 years. The published sidereal period is 11.862 years, so the agreement is to one part in twelve thousand.
- Mean speed. 2π × 5.2026 × 1.495979 × 10⁸ km = 4.8905 × 10⁹ km of circumference, divided by 11.861 × 3.15576 × 10⁷ s = 3.7434 × 10⁸ s, giving 13.06 km/s, which matches the published mean orbital speed.
Now run the law backwards on a binary star. Sirius A and B orbit with a period of 50.1284 years and an angular semi-major axis of 7.4957 arcseconds; at the system's parallax of 0.37921 arcseconds that is 7.4957 / 0.37921 = 19.767 AU.
- Cube the axis. 19.767³ = 7,723.4 AU³.
- Square the period. 50.1284² = 2,512.85 yr².
- Divide. 7,723.4 / 2,512.85 = 3.074 M☉ for the two stars together, close to the accepted total near 3.06.
- Split them. Astrometry of the barycentre gives a mass ratio of about 2.02, so M₁ = 3.074 × 2.02/3.02 = 2.056 M☉ and M₂ = 3.074/3.02 = 1.018 M☉.
That second calculation is worth pausing on. Nothing about Sirius was measured except two angles and a time, and out of them comes the mass of a star eight and a half light years away. Every stellar mass ever determined traces back to this relation applied to a binary.
Kepler's third law across the Solar System
| Body | a (AU) | T (yr) | a³ | T² | a³/T² |
|---|---|---|---|---|---|
| Mercury | 0.3871 | 0.2408 | 0.05801 | 0.05798 | 1.0004 |
| Venus | 0.7233 | 0.6152 | 0.37840 | 0.37847 | 0.9998 |
| Earth | 1.0000 | 1.0000 | 1.00000 | 1.00000 | 1.0000 |
| Mars | 1.5237 | 1.8808 | 3.53752 | 3.53741 | 1.0000 |
| Jupiter | 5.2026 | 11.8618 | 140.819 | 140.702 | 1.0008 |
| Saturn | 9.5415 | 29.4571 | 868.66 | 867.72 | 1.0011 |
| Uranus | 19.1892 | 84.011 | 7065.95 | 7057.85 | 1.0011 |
| Neptune | 30.0700 | 164.79 | 27189.44 | 27155.74 | 1.0012 |
The last column drifts a little above 1 for the giant planets because the total system mass is 1 plus the planet's mass: Jupiter alone adds 0.000955, and the published axes and periods carry rounding of their own.
How to read the result
The exponents tell you how sensitive the answer is. Period goes as a1.5, so a 1% error in the distance becomes a 1.5% error in the period. Mass goes as a³/T², so a 1% error in the distance becomes a 3% error in the mass — and for a visual binary the distance comes from a parallax that is itself hard-won. Stellar masses derived this way are rarely better than a few per cent, and the limiting factor is almost always the parallax rather than the period.
A mass that comes out near 1 M☉ for a system you know to be a pair of Sun-like stars is a signal you have used the wrong a — most often one component's distance from the barycentre rather than the separation of the two. If your angular measurement is in arcseconds, divide by the parallax in arcseconds to get astronomical units before entering it.
The individual masses are only as good as the ratio you supply. Kepler's third law itself is completely blind to how the total is divided; the split shown here is arithmetic applied to your ratio, not an independent determination. If you have no ratio, leave it at 1 and read only the total, which is the quantity the orbit actually constrains.
Mean orbital speed is the circular value 2πa/T. For a near-circular orbit like Earth's it is accurate to a fraction of a per cent; for a comet on a highly eccentric path it is a poor description of anything, since the real speed varies by orders of magnitude between perihelion and aphelion while the period stays exactly what the law says.
Assumptions and limits
- Two bodies only. The law is exact for an isolated pair. Additional bodies cause perturbations — which is precisely how Neptune was found, from Uranus refusing to keep to its predicted orbit.
- Point masses or spherically symmetric bodies. Extended, oblate or tidally distorted bodies produce small departures.
- Newtonian gravity. Mercury's perihelion advances by 43 arcseconds a century more than Newtonian theory allows; general relativity is needed near a massive body or at high orbital speed.
- Use the sidereal period, never the synodic one. The synodic period is what you observe from a moving Earth, and it is a different number.
- a is the relative semi-major axis. For a binary it is the sum of the two barycentric semi-major axes, not either one.
- Eccentricity does not appear. Two orbits with the same semi-major axis have the same period however differently shaped they are.
- The mass is a total. No orbit-only measurement can separate the two components; that needs astrometry or spectroscopy of the individual motions.
Why astronomers avoid the gravitational constant
The SI form of the law contains G, which is the most poorly measured of the fundamental constants — known to roughly one part in 10⁴, orders of magnitude worse than the elementary charge or Planck's constant. The product GM for the Sun, called the heliocentric gravitational parameter, is by contrast known to about eleven significant figures, because it is what orbits actually determine. Working in solar masses, astronomical units and years absorbs GM☉ into the unit system and removes G from the arithmetic entirely, which is why the astronomical form of the law is not just convenient but genuinely more precise. The International Astronomical Union fixed the astronomical unit at exactly 149,597,870,700 metres in 2012, making it a defined length rather than a measured one.
Related calculations and where the law is used
For orbits around the Earth rather than the Sun the SI form is what you want, and the geostationary orbit altitude calculator is the standard worked case: set the period to one sidereal day and solve for the radius. Changing between two orbits is a different problem again, handled by the Hohmann transfer calculator, whose transfer time is exactly half the period of an ellipse whose semi-major axis is the mean of the two radii — Kepler's third law doing the work.
The shape of the orbit that this law deliberately ignores is covered by the eccentricity, apoapsis and periapsis calculator. If you are converting an observed repetition into a true orbital period, the synodic period calculator is the step that has to come first. And the surface gravity that follows once you know a body's mass and radius comes from the planetary surface gravity calculator.
In exoplanet work this law is used in reverse thousands of times over. A transit or radial-velocity survey measures a period directly and precisely; the star's mass is estimated from its spectrum and luminosity; and a = (T²M)1/3 then gives the separation, which is what decides whether the planet sits in the habitable zone. Every uncertainty in the stellar mass propagates into that separation as one third of its fractional size, which is why the cube root is such a forgiving operation.
Key terms
- Semi-major axis
- Half the longest diameter of the orbital ellipse, equal to the mean of the periapsis and apoapsis distances. It sets the period and the orbital energy.
- Sidereal period
- One complete orbit measured against the fixed stars, as distinct from the synodic period measured against the Earth's own motion.
- Barycentre
- The centre of mass of the two bodies, about which both actually orbit. The ratio of their distances from it is the inverse ratio of their masses.
- Astronomical unit
- Defined since 2012 as exactly 149,597,870,700 metres, close to the mean Earth–Sun distance.
- Solar mass
- The mass of the Sun, about 1.989 × 10³⁰ kg. Used as the unit of mass so that the gravitational constant drops out of the law.
