Pick any planet in the solar system and you can predict the length of its year before you know anything about its mass, its composition, or the gravitational constant. All you need is how far it sits from the Sun. Mercury, hugging the Sun at about 0.39 astronomical units, races through a year in 88 days. Neptune, thirty times farther out, takes 165 of our years to complete a single lap. That enormous spread is not random — it follows a clean, exact mathematical rule.
That rule is Kepler's third law, and this article walks through what it says, why it works, how to apply it with a worked example, and the small mistakes that trip people up when they first reach for it.
Why this calculation matters
Kepler published his third law in 1619, decades before Newton explained why it held. Yet it remains one of the most practical relationships in all of astronomy, because it converts a hard measurement into an easy one. Distances to other worlds are difficult to pin down directly, but timing an orbit is straightforward — you just watch and wait. The third law lets you trade one for the other.
The same logic scales far beyond the solar system. Astronomers use Kepler's third law to weigh stars by watching their companions orbit, to estimate the masses of exoplanets, and to confirm the presence of unseen bodies from the motion of visible ones. Mission planners lean on it to place satellites: a geostationary satellite sits at a very specific altitude precisely because that is the orbit whose period equals one day. Whenever a period and an orbital size need to be linked, this law is the tool that does it.
The core formula
Kepler's third law states that the square of a body's orbital period is proportional to the cube of the semi-major axis of its orbit:
T^2 is proportional to a^3
The semi-major axis a is the average of the closest and farthest points of an elliptical orbit — for a circle it is simply the radius. The period T is the time for one full orbit. The law says nothing about the shape of the ellipse: a highly elongated orbit and a near-circular one with the same semi-major axis share the same period.
The proportionality becomes an equation once you fix the units. In the general Newtonian form:
T^2 = (4 * pi^2 / (G * M)) * a^3
Here G is the gravitational constant and M is the mass of the central body. But there is a much friendlier version. If you measure time in years and distance in astronomical units, and the orbit is around the Sun, the messy constant collapses to exactly one:
T^2 = a^3
This works because Earth, by definition, sits at a = 1 AU with a period of T = 1 year, and 1 squared equals 1 cubed. Choosing those units pins the constant to unity. To get a period directly, just rearrange:
T = a^(3/2) = a^1.5
Distance in, period out — no physical constants required.
A worked example
Suppose a hypothetical planet orbits the Sun with a semi-major axis of a = 4 AU, placing it roughly in the asteroid belt region between Mars and Jupiter. How long is its year?
Step 1 — choose the convenient form. The orbit is around the Sun, and we want the answer in years, so we can use T^2 = a^3 directly and skip G and M entirely.
Step 2 — substitute the distance.
T^2 = a^3 = 4^3 = 64
Step 3 — solve for the period.
T = sqrt(64) = 8 years
Equivalently, working it as a single power:
T = a^1.5 = 4^1.5 = 8 years
So a planet four times farther from the Sun than Earth takes eight years to complete one orbit — not four, and not sixteen. The period grows faster than distance but slower than distance squared, which is exactly what the 3/2 exponent encodes. That non-linear scaling is the heart of the law: doubling the orbital radius multiplies the year length by about 2.83, not by 2.
Common mistakes
Forgetting that the units carry the constant. The clean form T^2 = a^3 is true only when T is in years, a is in astronomical units, and the orbit is around the Sun. Plug in kilometres or seconds and the answer is meaningless. For any other central body, or other units, you must use the full Newtonian form with G and M.
Confusing semi-major axis with perihelion distance. For an eccentric orbit, a is the average of the closest and farthest distances, not the closest approach. A comet that dives in near the Sun still has a large semi-major axis if it swings far out, and its long period reflects that average, not its brief close pass.
Swapping the exponents. It is T squared and a cubed — period on the smaller power, distance on the larger. Reversing them gives a period that grows too slowly with distance. A quick sanity check: the exponent on T must be smaller than the exponent on a, because outer planets always take disproportionately longer.
Assuming the orbiting body's mass matters. Kepler's third law in this form treats the orbiting body as light compared to the central one. For a planet around the Sun that is an excellent approximation. For two bodies of comparable mass — a binary star, say — the full law uses the combined mass, and ignoring that introduces real error.
Try the interactive NovaSolver calculator
Working one orbit by hand is quick, but seeing the law hold across many orbits at once builds real intuition. The Kepler Laws Orbital Simulator on NovaSolver lets you set the semi-major axis and eccentricity — or pick a preset such as Mercury, Earth, Mars, or Halley's Comet — and it returns the orbital period in years along with the perihelion speed, aphelion speed, and areal velocity, so you can watch all three of Kepler's laws play out together on one orbit.
Related calculators
- Kepler orbit calculator — trace the full elliptical path and see how position evolves in time under Kepler's equation.
- Orbital mechanics calculator — go beyond period and distance into velocities, energies, and orbit transfers.
- Escape velocity calculator — find the speed needed to leave a body's gravity entirely rather than orbit it.
You can browse the full set in the space tools hub.
Closing note
Kepler's third law is a rare thing: a relationship simple enough to write in four characters yet powerful enough to weigh distant stars. The takeaways are easy to hold onto — period squared tracks distance cubed, the convenient form needs years and astronomical units, and the period grows with the 3/2 power of orbital size. Once those are second nature, you can glance at any orbit and estimate its year, or glance at any year and estimate its orbit. Run a few numbers yourself, check them against the planets you already know, and let the rest of orbital mechanics build outward from there.
Top comments (0)