# Kepler's Third Law

An interactive demonstration showing how the semi-major axis of an orbit is related to the orbital period.

Kepler's Third Law tells us that the square of the orbital period of an orbiting body is proportional to the cube of the semi-major axis of its orbit. The relationship can be written to give us the period, $$T$$:

$T = 2 \pi \sqrt{\frac{a^3}{GM} }$

Where $$a$$ is the semi-major axis (which, in the case of circular orbits, is equivalent to the radius of the orbit), $$G$$ is the universal gravitational constant and $$M$$ is the mass of the body being orbited.

If we consider circular orbits only, a derivation of the above equation follows from Newton's Law of Gravitation and centripetal acceleration. For an object locked in a circular orbit, the acceleration due to gravity must equal the centripetal acceleration.

From Newton, we have:

$F = ma = \frac{GMm}{r^2}$ $a = \frac{GM}{r^2}$

The equation for centripetal acceleration is

$a = \frac{v^2}{r}$

Equating the two equations for acceleration gives

$\frac{v^2}{r} = \frac{GM}{r^2}$ $v = \sqrt{\frac{GM}{r}}$

From here, to calculate the orbital period, $$T$$, you need to divide the distance travelled, ie the circumference of the orbit, $$2 \pi r$$, by the speed, $$v$$

$\frac{2 \pi r}{\sqrt{\frac{GM}{r}}}$

Which, via some algebraic manipulation simplifies to:

$T = 2 \pi \sqrt{\frac{r^3}{GM} }$

The demo above shows two planets in circular orbits around a star. Using the sliders, you can see how increasing the radius increases the orbital period (in other words, it makes the planet move slower). Increasing the mass of the star decreases the period, meaning the planets move faster.