Kepler's Third Law Calculator
Find orbital period, semi-major axis, or central mass, and see how accurately the law predicts every planet's orbit.
Calculator verified • Last updated: August 2026
—
Solar System Accuracy Check
| Planet | Axis (AU) | Predicted (yr) | Actual (yr) |
|---|
Each row plugs a real planet's semi-major axis into the same formula used above (with the Sun as the central mass) and compares the predicted period to its actual measured orbital period — they match almost perfectly, which is exactly why Kepler's law was taken seriously centuries before anyone understood gravity itself.
Kepler's Third Law Explained
Kepler's third law relates how long a body takes to orbit another to how far apart they are, in a precise mathematical way discovered decades before Newton explained why it works.
T: orbital period, in seconds (s), or years for the solar-system shortcut below.
a: semi-major axis, the average orbital distance, in meters (m), or astronomical units (AU) for the shortcut below.
M: mass of the central body being orbited, in kilograms (kg).
G: the gravitational constant, about 6.674 × 10⁻¹¹ N·m²/kg².
For objects orbiting the Sun specifically, this simplifies to the well-known T² = a³ when T is measured in years and a in astronomical units (AU).
Worked Example: Earth's Orbit
Using the calculator's defaults — Earth's semi-major axis of 1 AU and the Sun's mass ( kg) — the formula correctly predicts a period of almost exactly 1 year, which is of course how the year is defined in the first place. Try switching the axis to Jupiter's 5.2 AU instead: the predicted period jumps to about 11.86 years, matching Jupiter's real orbital period almost exactly, even though the relationship is far from a simple straight-line scaling.
Why the Exponents Are 2 and 3
The specific powers in Kepler's law — period squared, distance cubed — aren't arbitrary; they fall directly out of combining Newton's law of gravitation with the physics of circular (or elliptical) motion. A planet farther out needs a weaker centripetal force to stay in orbit (since gravity itself is weaker there), and it also has a longer path to travel, and these two effects compound multiplicatively rather than adding up linearly — which is exactly what produces the 3/2 power relationship between period and distance.
A Brief History of Kepler's Third Law
Johannes Kepler published this law in 1619, the last of his three laws of planetary motion, derived purely from painstaking analysis of Tycho Brahe's naked-eye observational data — decades before telescopes existed to check it and 70 years before Newton explained why it held true. Newton's 1687 Principia showed that Kepler's empirically-discovered pattern was a direct mathematical consequence of universal gravitation, transforming an observed regularity into a proven physical law.
Common Kepler's Third Law Mistakes
Using the simplified form for anything other than objects orbiting the Sun is a common error — that shortcut only works because it bakes in the Sun's specific mass; for moons around planets or exoplanets around other stars, the full formula with the correct central mass is required. Confusing semi-major axis with actual physical distance at every point in an elliptical orbit is another frequent mix-up, since orbits aren't circles and distance constantly varies. Forgetting that mass differences between the two orbiting bodies barely matter (only the central, much larger mass matters in the standard approximation) is a third common oversight.
Orbital Mechanics Terms You Should Know
Semi-Major Axis (a) — half the longest diameter of an elliptical orbit, equal to the average orbital distance.
Astronomical Unit (AU) — the average Earth-Sun distance, about 149.6 million km, used as a convenient solar-system distance unit.
Orbital Period (T) — the time for one complete orbit.
Central Mass — the dominant mass being orbited, treated as fixed at the focus of the ellipse in this approximation.
This calculator assumes the orbiting body's mass is negligible compared to the central mass, which holds well for planets, moons, and satellites but not for comparable-mass binary systems.
Frequently Asked Questions
Why does a planet farther from the Sun take disproportionately longer to orbit?
Because period scales with the 1.5 power of distance, not linearly — doubling the semi-major axis doesn't double the period, it multiplies it by about 2.83. This happens because a farther planet has to travel a longer path AND moves more slowly (weaker gravity provides less centripetal pull), so both effects compound. Neptune orbits 30 times farther from the Sun than Earth but takes nearly 165 times longer to complete one orbit.
Does Kepler's third law only work for our solar system?
No — the general form (T² = 4π²a³/GM) works for any two bodies in a gravitational orbit, including moons around planets, binary stars, and exoplanets around other stars, as long as you use the correct central mass M. The simplified version (T² ∝ a³ with T in years and a in AU) only works specifically for objects orbiting the Sun, since it bakes in the Sun's mass as a constant.
How do astronomers use this to find the mass of distant objects?
By rearranging the same equation to solve for mass instead of period — if astronomers can measure a moon's orbital period and its distance from a planet (or a star's wobble period and distance from an exoplanet), they can calculate the central mass directly. This is one of the primary ways masses of planets, black holes, and even galaxies are measured, since mass itself can't be weighed directly at a distance.