Kepler's Third Law Explained: How Orbital Period Relates to Distance

Every calculator on this site that touches orbits — including our own Orbital Period calculator — ultimately rests on a single 400-year-old insight: the farther an object orbits the Sun, the longer, disproportionately longer, its year lasts. That relationship is Kepler's third law of planetary motion, and once you see the formula behind it, a lot of solar system trivia (why Jupiter's year is almost 12 Earth years, why distant dwarf planets take centuries to orbit) stops looking mysterious and starts looking like arithmetic.

This article walks through what the law says, why it works, and how to use it yourself, with two worked examples you can check against real planets.

Silhouette of a telescope with a stunning Milky Way background in the night sky.
Photo by Lucas Pezeta on Pexels

Who Was Johannes Kepler, and What Did He Find?

Johannes Kepler was a German astronomer who, in the early 1600s, used decades of precise naked-eye observations of Mars (originally collected by Tycho Brahe) to figure out that planets don't move in perfect circles — they move in ellipses, with the Sun at one focus. That became his first law. His second law described how a planet sweeps out equal areas in equal times, moving faster when closer to the Sun. His third law, published in 1619, is the one this article focuses on: it connects a planet's orbital period to its distance from the Sun with a precise mathematical ratio.

What makes the third law remarkable is that Kepler found it purely from data, decades before Isaac Newton explained *why* it had to be true using the law of universal gravitation. See Understanding Newton's Law of Universal Gravitation for that half of the story.

The Third Law in Its Original Form

Kepler's original statement, in modern notation, is: T² ∝ a³ — the square of a planet's orbital period (T) is proportional to the cube of its average distance from the Sun (a, the semi-major axis of its orbit). If you measure T in years and a in astronomical units (AU — see How Astronomical Units Make the Solar System Easier to Measure), the proportionality constant is exactly 1 for objects orbiting the Sun, so the formula simplifies beautifully to T² = a³.

That simplified version is why Earth, by definition, checks out instantly: Earth orbits at 1 AU, so T² = 1³ = 1, and T = 1 year. It's a useful sanity check before you try the formula on any other planet.

The Full Physical Formula

The AU-and-years shortcut only works for things orbiting the Sun. The general version of Kepler's third law, derived from Newton's gravitation (and the one our Orbital Period calculator actually uses), is:

T = 2π × √(a³ / GM)

Here T is the orbital period in seconds, a is the semi-major axis in meters, and GM is the standard gravitational parameter of the body being orbited — for the Sun, GM = 1.32712440018×10²⁰ m³/s² (JPL Solar System Dynamics). This version works for any orbit around any sufficiently massive body, not just the Sun, which is why the same formula also predicts how fast a satellite orbits Earth or how long a moon takes to circle a planet.

Worked Example: Confirming Earth's Orbital Period

Let's plug Earth's own orbit into the full formula as a check. Earth's semi-major axis is 1 AU = 149,597,870.7 km = 1.495978707×10¹¹ meters.

Step-by-step calculation for Earth's orbital period
StepCalculationResult
Cube the distancea³ = (1.495978707×10¹¹ m)³≈ 3.34793×10³³ m³
Divide by GM3.34793×10³³ / 1.32712440018×10²⁰≈ 2.52317×10¹³
Take the square root√(2.52317×10¹³)≈ 5.02311×10⁶ s
Multiply by 2π5.02311×10⁶ × 2π≈ 3.15581×10⁷ s
Convert to days3.15581×10⁷ / 86,400≈ 365.3 days

Worked Example: Mars's Orbital Period

Now the same steps for Mars, whose average distance from the Sun is about 1.524 AU, or roughly 227,939,200 km (2.279392×10¹¹ m).

Why the Law Holds for Any Orbiting Body

Kepler could only observe planets orbiting the Sun, so his original law was stated for that one case. Newton later showed, using calculus and the inverse-square law of gravity (see Newton's Law of Universal Gravitation), that the same T² ∝ a³ relationship falls directly out of the physics for *any* two bodies orbiting their shared center of mass — a moon around a planet, a satellite around Earth, even two stars orbiting each other. The only thing that changes is which GM you plug in: swap the Sun's GM for a planet's, and the formula correctly predicts how long that planet's moons take to orbit it.

This is also why the law is central to exoplanet science: measuring how long a newly discovered planet takes to orbit its star, combined with estimates of the star's mass, lets astronomers calculate how far out that planet orbits — without ever seeing it directly.

Common mistakes

FAQ

Does Kepler's third law work for moons orbiting planets?

Yes, with the general formula T = 2π√(a³/GM) — you just substitute the planet's GM instead of the Sun's, since the law describes orbital mechanics around any sufficiently massive central body.

Why does the simplified version only use AU and years?

Because the Sun's GM, expressed in those units, works out to almost exactly 1, which cancels out of the equation and leaves the clean T² = a³ relationship. In any other unit system you need the full formula with the actual GM value.

Can I use this formula to calculate a planet's distance if I know its orbital period?

Yes — rearranged, a = (GM × T² / 4π²)^(1/3). Our Orbital Period calculator focuses on solving for period from distance, but the same formula works in reverse.

Sources

Related