Kepler's Third Law Calculator

Enter a central body's mass and an orbiting body's semi-major axis to find the orbital period and mean orbital speed using Newton's form of Kepler's Third Law, T² = 4π²a³ / G(M+m).

Quick Facts

Newton's form
T² = 4π²a³ / [G(M + m)]
Relates orbital period T to semi-major axis a and the combined mass of the two bodies.
Solar-system shortcut
T² (yr) ≈ a³ (AU)
Valid for any object orbiting the Sun when T is in years, a is in AU, and the orbiting body's mass is negligible.
Gravitational constant
G = 6.6743 × 10⁻¹¹ N·m²/kg²
The same constant Newton used to generalize Kepler's empirical planetary law.

Your Results

Calculated
Orbital Period
-
T = 2π√(a³ / G(M+m))
Orbital Period (years)
-
T ÷ 365.25 days
Orbital Period (seconds)
-
T in SI base units
Mean Orbital Speed
-
v = √(G(M+m) / a)

Ready

Enter a central mass and semi-major axis, then press Calculate.

Formula and Method for Kepler's Third Law

Kepler's Third Law describes how long an orbiting body takes to complete one revolution. Johannes Kepler observed empirically in 1619 that for the planets orbiting the Sun, the square of the orbital period is proportional to the cube of the semi-major axis: T² ∝ a³. Isaac Newton later derived this from the law of gravitation and generalized it to any two bodies orbiting their common center of mass: T² = 4π²a³ / [G(M + m)], where M and m are the masses of the central and orbiting bodies, a is the orbit's semi-major axis, G is the gravitational constant, and T is the orbital period. This calculator solves that equation for T, then derives the mean orbital speed from the result.

How the calculation works

Newton's form comes from setting the gravitational force between two masses equal to the centripetal force needed to keep a body on a circular path, then extending the result to elliptical orbits using the semi-major axis a in place of the radius. Enter the central body's mass M (and, if it is not negligible, the orbiting body's mass m), pick the units for each, then enter the semi-major axis a and its unit. The calculator converts everything to SI units (kilograms and meters), computes T = 2π√(a³ / [G(M+m)]) in seconds, and converts that period to days and years for easier reading. It also reports the mean orbital speed v = 2πa / T = √(G(M+m) / a), which is exact for a circular orbit and a close approximation of the time-averaged speed for a mildly elliptical one.

Working with units

  • For anything orbiting the Sun, using astronomical units (AU) for distance, years for period, and solar masses (M☉) for mass is convenient because G·M☉ works out to almost exactly 4&pi² in those units, so the formula reduces to T² ≈ a³ when the orbiting body's mass is negligible.
  • 1 AU = 1.495978707 × 10ⁿ¹ m, 1 solar mass (M☉) = 1.98847 × 10³⁰ kg, and 1 Earth mass (M⊕) = 5.9722 × 10²⁴ kg.
  • The gravitational constant is G = 6.6743 × 10⁻¹¹ N·m²/kg² — always convert M, m, and a to kilograms and meters before combining them with G in SI units.

Real-world applications

  • Solar system mechanics: predicting a planet's, comet's, or asteroid's orbital period from its measured distance from the Sun.
  • Exoplanet science: astronomers use the transit or radial-velocity period together with Kepler's Third Law to estimate a planet's orbital distance and the host star's mass.
  • Satellite and mission design: engineers choose a semi-major axis (and therefore an altitude) that gives a satellite the period required for its mission, such as a 24-hour geostationary orbit.
  • Binary star systems: measuring the orbital period and separation of two stars lets astronomers calculate the combined mass of the pair.

Frequently Asked Questions

What is Kepler's Third Law?
Kepler's Third Law states that the square of an orbiting body's period is proportional to the cube of its orbit's semi-major axis. Newton later generalized it to T² = 4π²a³ / [G(M + m)], where M and m are the masses of the central and orbiting bodies, a is the semi-major axis, and G is the gravitational constant.
What units make Kepler's Third Law simplest to use?
For objects orbiting the Sun, using astronomical units (AU) for distance, years for period, and solar masses for mass makes the formula reduce to T² = a³, since G times one solar mass works out to 4π² in those units.
Does Kepler's Third Law apply only to planets?
No. It applies to any two bodies orbiting each other under gravity alone, including moons around planets, binary stars, and artificial satellites — as long as you use the correct central mass (or combined mass) for that system.
How is orbital speed related to the period and semi-major axis?
For a circular orbit, the average orbital speed is v = 2πa / T, which is algebraically identical to v = √(G(M+m)/a). For an eccentric ellipse this gives a close approximation to the true time-averaged speed, which varies between perihelion and aphelion.