Skip to content
LoveToCalc

Theorem — what does that mean?

Kepler's third law for two bodies

Two bodies orbit their common centre of mass, not the centre of the heavier one, and the period depends on both masses.

In Swedish: Keplers tredje lag för två kroppar

Kepler's third law for two bodies

The relation

T²=4π²a³G(M+m)

The orbital period of two bodies circling each other, with both masses counted. Dropping the smaller mass gives the familiar one-body form.

An elliptical orbit with the larger body M at one focus and the smaller body m on the orbit. The line from the middle of the ellipse to the end of its long axis is the semi-major axis a, and T is the time for one lap of the whole ellipse.
Solve for
Solved for T

T=2πa³G(M+m)

T≈2,354,222.7162s

T is approximately 2 times (π times the square root of (384,000,000 cubed divided by (6.674 times 10 to the power of minus 11 times (5.97 times 10 to the power of 24 plus 7.3 times 10 to the power of 22)))), is approximately 2 times (π times the square root of (5.662 times 10 to the power of 25 divided by (6.674 times 10 to the power of minus 11 times 6.043 times 10 to the power of 24))), is approximately 2 times (π times the square root of (5.662 times 10 to the power of 25 divided by 4.033 times 10 to the power of 14)), is approximately 2 times (π times the square root of (1.404 times 10 to the power of 11)), is approximately 2 times (π times 374,686.1824), is approximately 2 times 1,177,111.3581, is approximately 2,354,222.7162 s

Working7 steps

The formula

T² = 4π² · a³ / (G · (M + m))

T is the orbital period in seconds, a the semi-major axis of the orbit in metres — on a circle, the distance between the two bodies — G the gravitational constant, 6.6743 · 10⁻¹¹ N·m²/kg², and M and m the two masses in kilograms. Solved for the period: T = 2π · √(a³ / (G · (M + m))).

Holds when only the two bodies’ mutual gravity acts and both can be treated as points or spheres; a is the distance between them, measured centre to centre.

The Earth and the Moon. From NASA’s planetary fact sheet, M = 5.97 · 10²⁴ kg, m = 7.3 · 10²² kg and a = 0.384 · 10⁹ m: T = 2π · √((0.384 · 10⁹)³ / (6.6743 · 10⁻¹¹ · (5.97 · 10²⁴ + 7.3 · 10²²))) ≈ 2.354 · 10⁶ s ≈ 27.25 days.

Where it comes from

Both bodies circle their common centre of mass, the heavier one on a small circle and the lighter on a large one. Gravity G·M·m/a² supplies the centripetal force for each. Writing that for both bodies and adding the two equations removes the centre of mass, and what remains is G · (M + m) = 4π² · a³ / T². With m dropped, it is the one-body Kepler’s third law.

When the smaller mass matters

Leaving out m makes the period a little too long. For the Moon:

Period
With M + m 27.25 days
With M alone 27.41 days
Measured sidereal month (fact sheet) 27.3 days

The Moon is 1.2% of the Earth’s mass, and the period changes by half that, about 0.6%. For the planets the effect is far smaller:

Pair m / M Change in T
Earth and Moon 1.2% about 0.6%
Sun and Jupiter 0.1% about 0.05%
Sun and Earth 0.0003% negligible

Jupiter’s period comes out as 4,334.0 days with both masses and 4,336.1 days with the Sun’s alone, against the fact sheet’s 4,331 — within the rounding of the distance used. For a double star, where the two masses are similar, the sum is what a measurement returns: T and a give M + m, which is how the masses of stars are weighed.

Common mistakes

Frequently asked questions

Why does adding the smaller mass shorten the period? Both bodies pull on each other, and the lighter one is held by the total G·(M + m) in the relative orbit. A stronger pull at the same distance means a faster orbit and a shorter period.

Does it work for elliptical orbits? Yes, with a the semi-major axis of the relative orbit: half the sum of the closest and the furthest distance between the two bodies.

How are binary star masses found with it? Measure the period and the separation, and the formula gives M + m. How far each star sits from the centre of mass then splits that sum into the two masses.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
G4π²a³(M+m)T²4π²·384,000,000³(5.97 × 10²⁴+7.3 × 10²²)·2,354,222.72²6.674 × 10⁻¹¹ N·m²/kg²
M4π²a³GT²−m4π²·384,000,000³6.674 × 10⁻¹¹·2,354,222.72²−7.3 × 10²²5.97 × 10²⁴ kg
m4π²a³GT²−M4π²·384,000,000³6.674 × 10⁻¹¹·2,354,222.72²−5.97 × 10²⁴7.3 × 10²² kg
a3G(M+m)(T2π)²36.674 × 10⁻¹¹(5.97 × 10²⁴+7.3 × 10²²)(2,354,222.722π)²384,000,000 m
T2πa³G(M+m)2π384,000,000³6.674 × 10⁻¹¹(5.97 × 10²⁴+7.3 × 10²²)2,354,222.72 s

Last reviewed October 7, 2026 ·How pages are reviewed

MechanicsAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.