Kepler’s third law states that the square of a planet’s orbital period is directly proportional to the cube of its average distance from the sun. Written as an equation: P² = a³, where P is the orbital period and a is the semi-major axis (essentially the average orbital distance). Johannes Kepler published this relationship in 1619 in his book Harmonies of the World, and it remains one of the most useful tools in astronomy today.
What the Equation Actually Means
The core idea is simple: planets that orbit farther from the sun take longer to complete one trip, and the relationship between distance and time follows a precise mathematical pattern. If you know how far a planet is from its star, you can calculate how long its year lasts, and vice versa.
The equation P² = a³ works cleanly when you measure the orbital period in Earth years and the distance in astronomical units (AU), where 1 AU is Earth’s distance from the sun. With those units, the constant in the equation equals exactly 1, which makes the math straightforward. Earth’s numbers demonstrate this perfectly: its period is 1 year and its distance is 1 AU, so 1² = 1³.
The real power shows up with other planets. Mars orbits at 1.524 AU from the sun. Cube that distance and you get about 3.54. Take the square root, and you predict an orbital period of roughly 1.88 years, which matches Mars’s actual year almost exactly. Jupiter orbits at 5.20 AU. Cube that (140.6), take the square root, and you get 11.86 years. Jupiter’s measured orbital period is 11.86 years. The law holds across every planet in the solar system with remarkable precision.
Why It Works: The Role of Mass
Kepler discovered the pattern empirically by studying decades of planetary observations, but he didn’t know why it worked. About 70 years later, Isaac Newton showed that Kepler’s third law is a natural consequence of gravity. Newton’s version of the equation accounts for something Kepler’s original formula ignores: the masses of the objects involved.
Newton’s expanded form is P² = (4π²a³) / G(m₁ + m₂), where G is the gravitational constant and m₁ and m₂ are the masses of the two orbiting bodies. This looks more complicated, but it explains why Kepler’s simpler version works so well in our solar system. The sun is so much more massive than any planet that adding a planet’s mass to the sun’s barely changes the total. Whether it’s tiny Mercury or massive Jupiter, the sum of “sun plus planet” is essentially just the sun’s mass every time. That makes the right side of Newton’s equation nearly constant for all planets, which is exactly what Kepler observed.
The distinction matters when you’re dealing with objects of more comparable mass, like two stars orbiting each other. In those cases, you need Newton’s full equation.
How Astronomers Use It Today
Kepler’s third law is far more than a historical curiosity. It’s the primary tool astronomers use to measure things that can’t be observed directly, like the mass of a distant star or the orbital distance of a planet in another solar system.
For exoplanets, the process works like this: when a planet crosses in front of its star (a transit), the dimming repeats at regular intervals, revealing the orbital period. If astronomers also know the star’s mass (estimated from its brightness and color), they can plug both values into the modified equation and calculate how far the planet orbits from its star. NASA’s Kepler space telescope used exactly this approach to characterize thousands of exoplanets. Kepler-452b, for instance, has an orbital period of about 385 days and orbits a star slightly more massive than our sun. Running those numbers through the law places it at 1.046 AU from its star, remarkably close to Earth’s distance from the sun.
The same logic works for much more exotic systems. In a binary star system, where two stars orbit each other, astronomers can measure the stars’ velocities using the slight shifts in their light (spectroscopy). Combining velocity measurements with the orbital period, Newton’s form of the third law lets them calculate the total mass of the system. This technique even works when one of the objects is invisible, like a black hole. If a visible star appears to orbit empty space, measuring its speed and orbital period reveals the mass of whatever unseen companion is pulling on it.
The Semi-Major Axis, Explained
One term in the equation that trips people up is “semi-major axis.” Planetary orbits aren’t perfect circles. They’re ellipses, slightly stretched in one direction. The longest line you can draw through the center of an ellipse is the major axis. The semi-major axis is half of that, running from the center to the farthest edge. For nearly circular orbits like Earth’s, the semi-major axis is practically the same as the average distance from the sun. For more elongated orbits, it still represents a useful average that captures the orbit’s overall size.
Kepler’s third law connects orbital period to this single measurement of orbital size. It doesn’t matter whether the orbit is nearly circular or highly elongated. Two orbits with the same semi-major axis will have the same period, regardless of their shape. This was one of Kepler’s key insights and a feature that Newton’s gravitational theory later confirmed mathematically.
Where the Simple Version Falls Short
The elegant P² = a³ form has limits. It assumes one object is vastly more massive than the other, which is true for planets around the sun but not for pairs of similar-sized stars. It also assumes only two bodies are involved. In systems with three or more gravitationally interacting objects, the relationship becomes an approximation rather than an exact law.
Within our solar system, the planets do tug on each other slightly, causing small deviations from what Kepler’s law predicts. These perturbations are tiny for most purposes, but they’ve had real scientific consequences. In the 19th century, observed irregularities in Uranus’s orbit led astronomers to predict the existence of Neptune before anyone had seen it through a telescope. That prediction relied on knowing what Kepler’s third law said Uranus should be doing, noticing it wasn’t quite doing that, and working backward to find the unseen mass responsible.
For everyday astronomy, homework problems, and even professional exoplanet research, though, the law remains extraordinarily accurate. Three centuries after Newton explained it and four centuries after Kepler first wrote it down, P² = a³ is still one of the most practical equations in science.

