Kepler Third Law Calculator - Period, Axis, and Mass Solver

Use this Kepler third law calculator to solve for orbital period, semi-major axis, or central body mass in any two-body system, with preset or custom masses.

Kepler Third Law Calculator

Choose which variable to compute from the other two.

Preset mass fills the central body field.

Used for Sun, planets, or any custom central body. Edit directly when Central body is set to Custom.

Set to 0 for a planet around the Sun, or enter the satellite mass. Required for binary systems.

Orbital radius for a circular orbit, or the long-axis half-length of an ellipse.

Time for one full orbit. The calculator converts to years, days, hours, minutes as needed.

Newtonian constant of gravitation, default value from CODATA 2018.

Results

Orbital Period T (s)
0
Period (s) 0s
Period (days) 0d
Period (years) 0yr
Semi-major Axis (AU) 0AU
Central Mass (M_sun) 0M_sun
T^2 / a^3 0s^2/m^3

What Is the Kepler Third Law?

The Kepler third law calculator is a focused tool for T^2 = 4 pi^2 a^3 / (G M). It computes the orbital period around a central body, or works in reverse to recover a missing semi-major axis or central mass. It serves students and anyone checking a textbook.

  • Homework checks: Verify a worked problem that gives a period or semi-major axis for a planet, satellite, or moon.
  • Sun-mass derivation: Recover the Sun's mass from Earth's year and one astronomical unit.
  • Satellite orbit sizing: Estimate the period or radius of a satellite around Earth, Mars, or the Moon.
  • Binary and exoplanet estimates: Use a custom central mass for comparable-mass systems.

Kepler's third law states that the square of a planet's orbital period is proportional to the cube of its semi-major axis. Newton later derived the proportionality constant, and physics problems and astronomy references use that Newton-derived form.

The calculator uses SI units internally so a single equation covers Earth satellites, the Moon, planets, and binary star systems. Displayed units are converted for readability: years and AU for solar system problems, days and hours for satellites.

For a direct T = 2 pi sqrt(a^3 / mu) solver with central body presets and altitude mode, Orbital Period Calculator offers the time-side companion to this law.

How the Calculator Works

The Kepler third law calculator applies Newton's derivation. The two-body form uses G, M, m, and a to compute T. The selected mode controls which of T, a, or M is the unknown. The Kepler third law calculator supports three modes so the same form covers any textbook problem.

T^2 = 4 pi^2 a^3 / (G (M + m))
  • T: Orbital period of the small body, in seconds.
  • a: Semi-major axis, in meters. For circular orbits, this is the orbital radius.
  • G: Newtonian constant, 6.6743 x 10^-11 m^3 / (kg s^2) by CODATA 2018.
  • M: Mass of the central body, in kg.
  • m: Mass of the orbiting body, in kg. Use 0 for planet-Sun systems.

The period mode computes T from a, M, m, and G. The axis mode solves a^3 = G (M + m) T^2 / (4 pi^2). The mass mode solves M = 4 pi^2 a^3 / (G T^2) - m. All three paths return the same T^2 / a^3 constant.

Preset masses come from NASA JPL's parameters for the Sun, Earth, Moon, Mars, and Jupiter. The custom option leaves the central mass editable for exoplanet host stars or binary systems.

Earth's year at one astronomical unit

a = 1 AU, M_sun = 1.98892 x 10^30 kg, m = 5.9722 x 10^24 kg, G = 6.6743 x 10^-11 m^3/(kg s^2).

T = 2 pi sqrt( a^3 / (G x (M_sun + M_earth)) ) = 2 pi sqrt( (1.495978707 x 10^11)^3 / (1.3271244 x 10^20) ).

T = 3.1554 x 10^7 s = 365.25 days = 1.000 year.

Earth's year at one AU falls out to one year, the textbook Kepler-to-Newton check.

Recovering the Sun's mass from Earth's orbit

T = 3.1558 x 10^7 s, a = 1.495978707 x 10^11 m, G = 6.6743 x 10^-11.

M = 4 pi^2 a^3 / (G T^2) - m. With m = 0, M = 4 pi^2 a^3 / (G T^2).

M = 1.9884 x 10^30 kg, the published Sun mass.

Solving for the central body mass from one planet's period and axis first estimated the Sun's mass.

According to NASA Science, the square of a planet's orbital period is proportional to the cube of the semi-major axis, the empirical form Newton derived from the law of gravitation.

The derivation of T^2 = 4 pi^2 a^3 / (G M) starts with Newton's second law, and Forces Newtons Laws Calculator works the force side of the same family of equations.

Key Concepts Behind the Kepler Third Law

Four ideas sit underneath every calculation. They explain why the same equation fits a 90-minute Earth orbit and a 12-year Jupiter orbit.

Empirical vs. Newtonian form

Kepler observed T^2 proportional to a^3 from planetary data. Newton supplied the constant 4 pi^2 / (G M) by combining his law of gravitation with circular motion.

Semi-major axis

Half the longest axis of an orbit. For a circular orbit, it equals the orbital radius. For an ellipse, it sets the period even though the orbiting body's distance varies.

Reduced mass correction

When the orbiting body's mass is not negligible, the period uses M + m, not just M. Planets around the Sun and moons around their planets use the M-only form, but binaries need the correction.

T^2 / a^3 constant

For a given central body, T^2 / a^3 is the same for every orbit. The calculator displays it so two orbits can be checked against each other.

All four concepts appear in the worked examples. Earth's year produces a T^2 / a^3 around 2.974 x 10^-19 s^2/m^3, and Mars's year at 1.523679 AU matches.

The semi-major axis is the only distance the formula needs. Eccentricity changes speed and distance during the orbit, not the total time.

Sidereal periods from Kepler's law and synodic periods from two-body alignment are different views of the same orbit timing, and Synodic Period Calculator handles the alignment side.

How to Use the Calculator

Pick the variable the problem gives you, then fill in the rest. The tool handles unit conversion and updates the panel as you type.

  1. 1 Select the mode: Choose Period when you know a, M, m, and G. Pick Semi-major axis when you know T, M, m, and G. Pick Central body mass when you know T and a.
  2. 2 Pick a central body preset: Sun for solar system planets, Earth for satellites, Moon for lunar orbiters, Mars for missions, Jupiter for its major moons, or Custom.
  3. 6 Read the result and the T^2 / a^3 check: The primary result reflects the selected mode. The T^2 / a^3 constant confirms that two orbits share the same central body.
  4. 4 Enter the period (for axis or mass mode): When solving for a or M, enter the known period in seconds. The display also shows days, hours, and years.
  5. 5 Add the orbiting mass when relevant: Set m to 0 for planet-Sun problems. Enter the satellite's mass for low Earth orbits, or a comparable body mass for binaries.
  6. 6 Read the result and the T^2 / a^3 check: The primary result reflects the selected mode. The T^2 / a^3 constant helps confirm that two orbits share the same central body.

Try a textbook exercise: choose Mode = Period, Central body = Sun, and enter a = 1.495978707 x 10^11 m. The result should be about 3.1554 x 10^7 s, or roughly 365.25 days. Switch to Mars and keep a at 1.524 x 1.495978707 x 10^11 m. The T^2 / a^3 should match Earth, while the period grows to about 687 days.

For a near-surface classroom timing example rather than a celestial orbit, Pendulum Period Calculator compares length and gravity in a small-angle setup.

Benefits of Using This Calculator

The tool is short to use and explicit about inputs and units, which makes it useful for several tasks.

  • Two-way and three-way calculation: Solve for the period, semi-major axis, or central body mass without retyping a formula.
  • Universal two-body coverage: Earth satellites, lunar orbiters, solar system planets, and binary star problems use the same equation.
  • Direct unit handling: Inputs are accepted in meters, kilograms, and seconds, with the result panel showing years, days, AU, and solar masses.
  • Verification constant on screen: The displayed T^2 / a^3 lets you confirm that two orbits are around the same central body.
  • Audit trail of assumptions: Presets are visible, G is editable, and the orbiting mass field makes clear when the reduced mass correction is or is not needed.

The Kepler third law calculator is also useful for sanity checks. If a question gives a period in days and a semi-major axis in millions of km, the result panel surfaces the corresponding SI values, so it is obvious whether the inputs were entered with the right scale.

When a problem gives an unusual unit, the editable mass, period, and semi-major axis fields accept any value once the preset is set to Custom, so the same interface handles an Earth satellite at 400 km altitude or an exoplanet at 5 AU.

For timing problems near massive bodies where the orbit itself is not the variable, Gravitational Time Dilation Calculator covers a different timing concept.

Factors That Affect the Result

Four factors change the period, axis, or mass that the Kepler third law calculator returns. Knowing them helps you decide whether a small disagreement with a published table is meaningful.

Orbiting body mass

For planet-Sun problems, the orbiting mass is small enough to ignore. In a binary system, the M + m sum replaces M, which shortens the period for a given semi-major axis.

Central body choice

The same semi-major axis produces a different period around a different central body. A 6,778 km orbit gives a 92-minute period around Earth but a much longer one around the Moon or Mars.

Orbit shape (eccentricity)

Kepler's third law uses the semi-major axis, not the instantaneous distance. A highly eccentric orbit and a circular orbit at the same a share a period.

Relativistic and perturbing effects

Mercury's precession and other effects require general relativity. The Moon's orbit and many artificial satellites feel non-spherical gravity from their central body. These are not modeled here.

  • The two-body model assumes a point mass or spherical central body and a low-mass orbit. Real orbits around an oblate planet or in a multi-body system can drift.
  • The CODATA value of G has a relative uncertainty of about 2.2 x 10^-5. For very precise work, the uncertainty in G propagates into the result.

Preset masses use NASA JPL's published values, so switching between Sun, Earth, Moon, Mars, and Jupiter compares real bodies rather than placeholders.

Rounding causes small disagreements with mission-grade tools. The calculator returns the period to four decimal places, enough to compare against an astrodynamics reference.

According to NASA JPL Solar System Dynamics, the gravitational parameters for the Sun and planets are tracked to high precision; differences from published tables usually come from the body's reference mass rather than the formula.

According to NIST CODATA, G is 6.6743 x 10^-11 m^3/(kg s^2) in the 2018 adjustment, with a relative uncertainty of 2.2 x 10^-5.

For the conserved quantity that central-force orbits preserve, Angular Momentum Calculator works the L = m v r side of orbital motion.

Kepler third law calculator interface with mode selector, semi-major axis, period, and central body mass inputs and result panel
Kepler third law calculator interface with mode selector, semi-major axis, period, and central body mass inputs and result panel

Frequently Asked Questions

Q: What does Kepler's third law actually say?

A: Kepler's third law states that the square of a planet's orbital period is proportional to the cube of its semi-major axis. Newton later wrote the proportionality constant as 4 pi^2 divided by G M, which is the form this calculator uses.

Q: How do I solve Kepler's third law for the period?

A: Set the calculator to Solve for Period, enter a, M, and m. The result is T = 2 pi sqrt(a^3 / (G (M + m))). For a planet around the Sun, set m = 0.

Q: What units are required for Kepler's third law?

A: Use meters, kilograms, and seconds to keep G in its published SI form. The calculator also shows the result in years, days, and astronomical units.

Q: Does Kepler's third law work for binary stars?

A: Yes, but you must use the full M + m form. The period depends on the sum of the masses, not just the more massive star.

Q: How is Kepler's third law used to find the mass of the Sun?

A: Pick a planet with a known period and semi-major axis, then solve for M. Earth's year at 1 AU gives roughly 1.99 x 10^30 kg, the published Sun mass.

Q: What is the difference between Kepler's third law for planets and satellites?

A: The form is identical, but typical units differ. Planet-Sun problems use AU and years; satellite problems use km and minutes. The orbiting mass is often negligible for both.