Toolvito

Works on this device

Kepler Third Law Calculator

Use Kepler's third law to find the time of one orbit from the size of the orbit and the masses, the size of an orbit from its period, or the mass of a star or planet from the orbit of a body around it. Type values in astronomical units, kilometres, years, days, solar masses, Earth masses or kilograms.

Enter your values

Solve Kepler's third law for the period, the semi-major axis or the central mass, in SI units, astronomical units, years and solar masses.

Your values

Half the longest width of the orbit. For a circular orbit, its radius from the centre of the central body.

Such as the Sun for a planet, or a planet for a moon. Choose the unit below.

Leave 0 for a body much lighter than the central one, such as a satellite. The law uses the sum M + m.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose Period, semi-major axis or mass, or Compare two orbits around the same body.
  2. Choose what you want to find, then type the other values. Choose the unit of each value from the menu under it, or pick an example.
  3. Leave the mass of the orbiting body at 0 when it is much lighter than the central body, such as a satellite.
  4. Choose Calculate. The steps show the numbers in SI units.

The law

  • Kepler's third law (in the form Newton gave it): P² = 4π² × a³ ÷ (G × (M + m)). P is the period of one orbit, a the semi-major axis (half the longest width of the ellipse), and M + m the sum of the two masses.
  • In years, astronomical units and solar masses: P² ≈ a³ ÷ (M + m). For a planet around the Sun, P² ≈ a³.
  • Turned round: a = (G (M + m) P² ÷ 4π²)^(1/3), and G (M + m) = 4π² a³ ÷ P², which is how astronomers weigh planets and stars by the orbits of their moons and companions.
  • GM: a mass in solar, Earth or Jupiter masses uses the nominal GM of that body of the IAU (2015 Resolution B3): 1.3271244 × 10^20, 3.986004 × 10^14 and 1.2668653 × 10^17 m³/s². A mass in kilograms is multiplied by G = 6.67430 × 10^-11 m³/(kg·s²).
  • Two orbits around the same body: P₂ ÷ P₁ = (a₂ ÷ a₁)^(3/2). No masses are needed.
  • Units: 1 au = 149,597,870,700 m; a year here is a Julian year of 365.25 days; 1 parsec = 648,000 ÷ π au.

Worked example

An orbit of 1 au around 1 solar mass: P = 2π × √((1.49598 × 10^11 m)³ ÷ 1.3271244 × 10^20) = 31,558,196 s, which is 365.257 days or 1.00002 years.

Jupiter, at 5.2038 au with its own mass of 1 M♃, takes 11.8654 years. The ratio form gives nearly the same: a planet at 5.2 au takes 5.2^1.5 = 11.8578 years.

Io circles Jupiter at 421,700 km every 1.769138 days. Turned round, the law gives a mass for Jupiter of 317.894 Earth masses.

Limits you should know

  • The law is for two bodies alone. The pull of other bodies changes real orbits a little: the Moon, for one, is pulled by the Sun too, and its real period is about 0.1% longer than the law gives.
  • This is Newton's gravity, which is very good in the solar system. Near very dense bodies general relativity adds small changes.
  • For a satellite in a circular orbit from its height above a planet, use the Orbital Period Calculator. For the speed in an orbit, use the Orbital Velocity Calculator.

Related tools