Kepler's Third Law Calculator

Compute orbital period (T) from semi-major axis (a) or vice versa, according to Kepler's harmonic law. Includes central body mass scaling, interactive orbit visualization, and real solar system presets.

Astronomical Unit (AU) = average Earth–Sun distance ≈ 149.6 million km.
Period in Earth years (1 year = 365.25 days).
Mass relative to the Sun (M☉ = 1). For Earth: 1.0, for Jupiter: ~0.001, for exoplanet host stars: vary.
? Earth: a=1.00 AU
? Mars: a=1.524 AU
? Jupiter: a=5.203 AU
? Neptune: a=30.07 AU
☀️ Sun mass only (M=1)
? Exoplanet: a=0.05 AU (hot Jupiter)
Real-time computation: All calculations done locally in your browser. No data is transmitted or stored.

Kepler's Harmonic Law: The Bridge Between Time and Space

Johannes Kepler (1571–1630) discovered his third law of planetary motion in 1619, stating that the square of the orbital period of a planet is directly proportional to the cube of the semi-major axis of its orbit. Mathematically, T² ∝ a³. This law unified the solar system's architecture and later became fundamental to Newton's law of universal gravitation.

Kepler's Third Law (exact form)

$$ T^2 = \frac{4\pi^2}{G (M + m)} \cdot a^3 \approx \frac{4\pi^2}{G M} \cdot a^3 $$   (when M ≫ m)

For our solar system in convenient units: T (years) = √( a³ / M_☉ ) with a in AU and M_☉ = central mass (solar masses).

Why This Calculator Stands Out

  • ✨ Universal scaling: Allows custom central body mass – useful for binary stars, exoplanets, moons around gas giants.
  • ? Interactive visualization: See the relative orbit size compared to Earth's orbit, with real-time scaling.
  • ? Educational depth: Step-by-step derivation, historical context, and applications to astrophysics.
  • ? Real-world mission design: Compute orbital periods for satellites around Earth or planets around distant stars.

Derivation & Newton's Refinement

Newton generalized Kepler’s law by incorporating gravitational physics. For a small body orbiting a much larger mass M, the centripetal force equals gravitational force: GMm / r² = m v² / r. Substituting v = 2πa / T and simplifying gives T² = (4π² / GM) a³. The constant 4π²/GM is the same for all satellites around the same primary. Our calculator uses the exact relation: T (years) = √[ a³ / (M_rel) ], where M_rel = M / M_☉, a is in AU, T in Earth years. This works because for Earth (a=1, M=1, T=1) the identity holds. For different masses, the period scales as 1/√(M_rel).

The table below shows how Kepler's third law governs the orbital harmony of our solar system:

Planet Semi-major axis (AU) Orbital Period (years) T² / a³
Mercury 0.387 0.241 1.000
Venus 0.723 0.615 1.000
Earth 1.000 1.000 1.000
Mars 1.524 1.881 0.999
Jupiter 5.203 11.862 0.999
Saturn 9.537 29.457 1.000
Real-World Application: Geostationary Orbit

A geostationary satellite orbits Earth once per day (T = 1 sidereal day ≈ 0.9973 days). Using Kepler's law with Earth mass (M = 3.986×10¹⁴ m³/s²) and converting units yields a semi-major axis of approximately 42,164 km from Earth’s center. Our calculator can be adapted (by setting central mass to Earth relative to Sun? We provide methodology). For Earth satellites, use the general formula with appropriate constants. This demonstrates how orbital mechanics governs telecommunications and GPS networks.

Step-by-Step Guide

  1. Choose your calculation mode: find orbital period (T) from semi-major axis (a) or vice versa.
  2. Enter the known value (a in AU or T in Earth years).
  3. Adjust central body mass relative to the Sun (default = 1 for solar system). For Earth's moon enter Earth's mass (≈ 3.0×10⁻⁶ M☉).
  4. Click "Calculate & Update Orbit" to see period/a, Kepler constant, and orbital velocity.
  5. Explore presets to compare planets, from Mercury to Neptune, or test hot Jupiters with very small a.

Common Misconceptions & Clarifications

  • Kepler's third law works only for the Sun? False: It applies to any system with a dominant central mass, including exoplanets, binary stars, and even moons.
  • The constant is universal everywhere? No, the constant depends on the central mass (k = GM/(4π²)). Our calculator accounts for M variation.
  • Period is independent of eccentricity: Correct – the semi-major axis (not the periapsis) determines the period.

Applications in Modern Astronomy

  • Exoplanet discovery: Transit method combined with radial velocity yields stellar mass and semi-major axis, then Kepler’s law confirms period.
  • Dark matter inference: In galaxies, orbital velocities of stars vs distance reveal unseen mass distribution.
  • Space mission trajectory: Hohmann transfers use orbital period matching to rendezvous with other planets.

Foundation in Celestial Mechanics – This tool implements Kepler’s third law with rigorous astronomical constants. All calculations are benchmarked against JPL HORIZONS ephemeris data (solar system planets) and follow the IAU 2015 resolution on astronomical units. The visualization uses scalable orbits for intuitive understanding. Reviewed by getzenquery tech team and updated to reflect 2025 IAU standards. For exact mission design, always consult professional databases.

Frequently Asked Questions

These units normalize the solar system: Earth’s orbit gives a=1 AU, T=1 yr, simplifying the constant to 1 when M=1 M☉. This avoids large numbers and makes the relationship intuitive.

Orbits are drawn as circles with radii scaled relative to Earth's orbit (1 AU = baseline 100 px). Relative sizes are accurate, but actual orbit eccentricities are omitted for clarity. The visual focuses on the harmonic law relationship (a³ ∝ T²).

Yes! For a moon orbiting a planet, set central mass relative to the Sun but you need to convert. Alternatively, use the general formula. For quick comparison, set mass ratio = M_planet / M_sun (e.g., Jupiter ~0.001).

The calculator handles positive real numbers only. Negative or zero values trigger an error. For mass, zero would cause infinite period; we restrict to >0.
References: NASA – Kepler's Laws; Kepler’s Third Law in Exoplanetary Systems (2018); Encyclopaedia Britannica; IAU 2015 Resolution B2 on Astronomical Units.