Physics & Chemistry
Kepler’s Third Law Calculator (Orbital Period)
In 1619 Johannes Kepler published his third law of planetary motion: the square of a planet’s orbital period is proportional to the cube of its average distance from the Sun. Using years for the period and astronomical units, the average Earth–Sun distance, for the distance, the law becomes beautifully simple for the Solar System: the period squared equals the distance cubed. Mars, at about 1.52 astronomical units, takes about 1.88 years to orbit the Sun, and Jupiter, at 5.2 astronomical units, nearly 12 years. Isaac Newton later showed why the law works and extended it to any two bodies: the period equals two pi times the square root of the semi-major axis cubed divided by the gravitational parameter of the central body. For stars other than the Sun, the period also depends on the star’s mass, which is how astronomers use the orbits of exoplanets and binary stars to weigh distant stars. The semi-major axis is half the longest diameter of an elliptical orbit, equal to the average of the closest and farthest distances; for a circular orbit it is simply the radius. This calculator has two modes. For planets, enter the semi-major axis in astronomical units and the star’s mass in solar masses to get the period in years and days, the distance in kilometres and the average orbital speed. For satellites around Earth, enter the average altitude above the surface to get the period in minutes and hours, the number of orbits per day and the orbital speed, using Earth’s gravitational parameter. The planet’s own mass is ignored, which is accurate when it is small compared with the central body.
How to use this calculator
- Choose a planet around a star, or a satellite around Earth.
- For a planet, enter the semi-major axis in AU and the star's mass in solar masses.
- For a satellite, enter its average altitude above Earth's surface.
- Read the orbital period.
- Compare the orbital speed and, for satellites, the number of orbits per day.
Geostationary and other special orbits
A satellite with a period of one sidereal day, about 23 hours 56 minutes, over the equator stays above the same point on the ground. Kepler's law puts this geostationary orbit about 35,786 km above the surface.
Low Earth orbits from about 300 to 2,000 km have periods of roughly 90 to 130 minutes, while GPS satellites, at about 20,200 km, orbit twice a day.
Weighing stars and planets
If you can measure the period and size of an orbit, you can rearrange the law to find the mass of the central body. This is how the masses of the Sun, Jupiter and many binary stars were first determined.
The same method applied to stars orbiting the centre of our galaxy revealed a compact object of about four million solar masses, the black hole Sagittarius A*.
Formula & method
Kepler’s third law: T² = a³ ÷ M (T in years, a in AU, M in solar masses)General form: T = 2π √(a³ ÷ GM)For Earth satellites: a = 6,371 km + altitude, GM = 3.986 × 10¹⁴ m³/s²Geostationary orbit (T = 1 sidereal day) is about 35,786 km above the equatorSolar-system units: T (years) = √(a³ ÷ M), with a in AU and M in solar masses. General: T = 2π √(a³ ÷ GM). Earth satellites: a = 6,371 km + altitude, GM = 3.986 × 10¹⁴ m³/s².
Worked example
The orbit of Mars and of a space station
- Mars: a = 1.524 AU, T = √(1.524³) ≈ 1.881 years (687 days).
- Station at 400 km: a = 6,771 km.
- T = 2π √(6.771 × 10⁶)³ ÷ 3.986 × 10¹⁴ ≈ 5,545 s ≈ 92.4 minutes.
Answer: Mars takes about 1.88 years to orbit the Sun; a satellite at 400 km circles Earth in about 92 minutes.
Frequently asked questions
What is a semi-major axis?
Half the longest diameter of an elliptical orbit, which is the average of the closest and farthest distances; for a circular orbit it is simply the radius.
Does the planet’s own mass matter?
Strictly the law uses the sum of both masses, but for planets around a star the planet’s mass is usually negligible.
What is an astronomical unit?
The average Earth–Sun distance, defined as exactly 149,597,870.7 km.
Why does Jupiter take 12 years to orbit?
Because it is 5.2 times farther from the Sun than Earth, and the period grows with the distance to the power 1.5.
Can I use this for the Moon?
Use the general formula with Earth's gravitational parameter; at 384,400 km it gives about 27.4 days, close to the Moon's sidereal month.
Who discovered the law?
Johannes Kepler, who published it in 1619 in Harmonices Mundi.