Logo

MonoCalc

/

Kepler's Third Law Calculator

Physics
Two-body orbits — scientific notation welcome
Every numeric field accepts values such as 1.989e30 or 4.217e8. The period depends only on the semi-major axis and the masses, never on the eccentricity, and results assume two point masses with no perturbations, oblateness or drag.

Worked examples

Central body and orbit

Supply the other two quantities and this one is derived.
The shorthand is exact only for a one-solar-mass primary.
Currently: Sun
Apsides derive both the semi-major axis and the eccentricity.
The mass being orbited — the Sun is 1.989e30 kg.
Only used to reject orbits that pass inside the body.
Half the long axis of the ellipse — Mars orbits at 1.524 AU.
0 is a circle; anything below 1 is a closed orbit.
Leave blank for the one-body form; fill it in for binaries.
Applies to the mean and apsis speeds.
Between 0 and 10.

Orbit around Sun

Newtoniane = 0.0934
Orbital period (T)
687.0865 days

1.88 years · 1.88114 years · 1.52400 AU

Kepler constant (T²/a³)
0.9997

yr²/AU³ · a one-solar-mass primary gives 0.9997

Mean orbital velocity
24.0777 km/s

0.5316 orbits per Earth year

Semi-major axis (a)

1.524 AU

Orbital period (T)

687.0865 days

Central mass (M)

1.989 × 10^30 kg

Gravitational parameter (µ)

1.328 × 10^20 m³/s²

The constant and the derived properties

Kepler constant (astronomical)

0.9997 yr²/AU³

Kepler constant (SI, 4π²/GM)

2.974 × 10^-19 s²/m³

Mean motion (n = 2π/T)

1.058 × 10^-7 rad/s

Specific orbital energy (−µ/2a)

-291.1388 MJ/kg

Orbits per Earth year

0.5316

Deviation from T² = a³

-0.0129%

Astronomical shorthand cross-check

T = a^1.5 (years)

1.8814

a = T^(2/3) (AU)

1.5239

a³/T² (solar masses)

1.0003

With years and astronomical units the constants vanish for a one-solar-mass primary, which is why the shorthand works at all. The exact Newtonian figures above are the ones to quote for any other central body.

Ellipse geometry and apsis speeds

Eccentricity (e)

0.0934

Perihelion (a(1 − e))

1.382 AU

Aphelion (a(1 + e))

1.666 AU

Perihelion velocity

26.5001 km/s

Aphelion velocity

21.9727 km/s

Mean velocity (2πa/T adjusted)

24.0777 km/s

Changing the eccentricity moves both apsides and both apsis speeds, but leaves the period untouched — that is the whole content of the third law.

µ = G·M

µ = 6.6743e-11 × 1.9890e+30

µ = 1.3275e+20 m³/s²

T = 2π√(a³ / GM)

T = 2π√((2.2799e+11)³ / 1.3275e+20)

T = 5.9364e+7 s = 687.087 days = 1.88114 years

k = T² / a³

k = (1.88114 yr)² / (1.52400 AU)³

k = 0.999741 yr²/AU³ = 2.9739e-19 s²/m³

Cross-check (shorthand): T = a^1.5

T = 1.52400^1.5

T = 1.88138 years — 0.013% above the exact result

G = 6.674 × 10^-11 m³/(kg·s²) · 1 AU = 1.496 × 10^11 m · 1 Julian year = 3.156 × 10^7 s

Does T²/a³ really stay constant?

Eight planets plus Ceres, Vesta and Pluto — the constant is 1 yr²/AU³

Every row is computed independently from its own published semi-major axis and sidereal period, so the small spread you see is real physics — chiefly the orbiting masses entering through M + m — rather than a rounding artefact. Up to 12 bodies can be tabulated at once.

Bodya (AU)T (years)T²/a³Deviation
Mercury0.38710.24080.0580.0581.000040.030%
Venus0.72330.61520.37850.37851.000010.027%
Earth11111.000030.029%
Mars1.52361.88083.53653.53761.000310.057%
Vesta2.3613.629713.160913.17481.001050.131%
Ceres2.76744.604121.194621.19731.000130.039%
Jupiter5.204411.862140.9668140.70660.99815-0.159%
Saturn9.582629.4571879.9219867.7230.98614-1.361%
Uranus19.201284.0127,079.22537,058.0210.997-0.274%
Neptune30.0476164.788527,128.778727,155.25421.000980.124%
Pluto39.4817247.939861,544.311661,474.12820.99886-0.088%

Ratio mode — two bodies around the same primary

T₁²/T₂² = a₁³/a₂³ needs neither G nor the central mass, which is the form Kepler published in 1619. Use any consistent pair of units — the answer comes back in the same period unit you typed in.

Any distance unit, as long as both axes match.
Any time unit — the result uses the same one.
The orbit whose period you want.
Body 2 period (T₂)
1.8814

Axis ratio a₂/a₁

1.524

Period ratio T₂/T₁

1.8814

T₁²/a₁³ and T₂²/a₂³

1 and 1

Selected bodies at a glance

Bodya (AU)T (years)T (days)
Mercury0.38710.2408587.97
Venus0.723340.6152224.7
Earth11.00002365.26
Mars1.523551.88085686.98
Vesta2.3613.629711,325.75
Ceres2.767424.604051,681.63
Jupiter5.2044211.8624,332.6
Saturn9.5825629.457110,759.21
Uranus19.201284.01230,685.38
Neptune30.0476164.78960,189.18
Pluto39.4817247.9490,560.09

About This Tool

Kepler's Third Law Calculator – Period, Axis and Mass

The Kepler's Third Law Calculator connects the three quantities that govern every closed orbit: the orbital period T, the semi-major axis a and the mass of the central body M. Give it any two and it returns the third, along with the harmonic constant T²/a³, the mean orbital velocity, the mean motion and a full derivation. Choose a preset star, planet or moon, or type in your own system.

The Harmonic Law and Where It Comes From

Kepler announced in 1619, from Tycho Brahe's decades of naked-eye observations, that the square of a planet's period is proportional to the cube of its mean distance. He had the pattern but not the reason. Newton supplied it: equate gravity with the centripetal acceleration a curved path demands and the proportionality falls out with its constant attached.

T² = 4π²a³ / (GM)        the harmonic law
T  = 2π√(a³ / GM)        period from the orbit size
a  = (GM·T² / 4π²)^(1/3) orbit size from the period
M  = 4π²a³ / (G·T²)      the mass the orbit implies

G  gravitational constant, 6.6743 × 10⁻¹¹ m³/(kg·s²)
a  semi-major axis, half the long axis of the ellipse (m)
T  time for one complete revolution (s)

Two facts follow immediately. The period contains no eccentricity term, so a near-circular orbit and a long thin cometary ellipse with the same a take exactly the same time to close. And the mass of the orbiting body cancels, which is why a pebble and a moon at the same distance keep the same schedule.

The Astronomical Shorthand T² = a³

Measure periods in years and distances in astronomical units and the constant 4π²/GM comes out at almost exactly 1 for our Sun, collapsing the law to T² = a³. Jupiter sits at 5.203 AU, so its year is 5.203^1.5 ≈ 11.87 Earth years — no constants required. That convenience is a coincidence of units and a one-solar-mass primary: around Jupiter or a red dwarf the constant scales as 1/M, so the calculator shows the exact Newtonian figure beside the shorthand and flags the mismatch when the primary is not the Sun.

Weighing Planets and Stars

Rearranged as M = 4π²a³/(GT²), the law becomes the astronomer's scale. Io circles Jupiter at 421,700 km every 1.769 days, which returns 1.898 × 10²⁷ kg— Jupiter's accepted mass. The Moon's 384,400 km, 27.32-day orbit gives Earth's mass to about a percent. The same arithmetic, applied to stars whirling around Sagittarius A*, is how the mass of the Milky Way's central black hole was measured. Exoplanet work runs the calculation the other way: a transit light curve yields a period, and the period yields the semi-major axis that decides whether the planet sits in the habitable zone.

Binaries and the Two-Body Correction

The exact statement uses the combined mass, T² = 4π²a³/(G(M + m)). For planets around the Sun the second mass changes the period by a few thousandths of a percent, well below observational noise. For binary stars it dominates: Sirius A and B, separated by 23.5 AU with a 50.1-year period, imply a³/T² ≈ 5.2 solar masses for the pair. Supply an orbiting mass and the calculator prints the one-body answer, the corrected answer and the percentage gap between them.

Checking That the Constant Really Is Constant

The verification table computes , and T²/a³ for every body in a chosen system from its own published data. Across the Solar System, from Mercury at 0.387 AU to Neptune at 30.07 AU — a range of nearly two orders of magnitude — the ratio stays within a fraction of a percent of 1. On log-log axes the same data plots as a straight line of slope exactly 3/2. The small residual spread is real physics: planetary masses entering through M + m, mutual perturbations and, for Mercury, the relativistic precession that Newtonian gravity cannot account for.

Limits of the Model

Results assume two point masses with no third-body perturbations, no oblateness and no drag, so treat them as good to three or four significant figures. Unbound trajectories with e ≥ 1 have no period at all and are rejected, and very tight or very massive systems carry a General Relativity caveat.

Frequently Asked Questions

Is the Kepler's Third Law Calculator free?

Yes, Kepler's Third Law Calculator is totally free :)

Can I use the Kepler's Third Law Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Kepler's Third Law Calculator?

Yes, any data related to Kepler's Third Law Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How does the Kepler's Third Law Calculator work?

It applies the harmonic law T² = 4π²a³/(GM), which links an orbital period to the semi-major axis of the orbit and the mass of the body being orbited. Supply any two of the three quantities and the calculator returns the third, together with the T²/a³ constant, the mean orbital velocity, the mean motion and a step-by-step derivation. The astronomical shorthand T² = a³, with the period in years and the axis in AU, is shown alongside as a cross-check.

Why does the orbital period ignore the eccentricity?

The law contains the semi-major axis and nothing else about the shape of the ellipse. Two orbits with the same value of a complete a revolution in exactly the same time even if one is a near-perfect circle and the other is a long thin cigar, because the extra distance travelled near apoapsis is paid for by moving more slowly there. Eccentricity changes the speeds at perihelion and aphelion, which the calculator reports separately, but never the period.

Why is the constant 1 for the Solar System but not elsewhere?

The constant is 4π²/GM, so it depends only on the mass of the primary. Measuring periods in years and distances in astronomical units happens to make it 1 for a one-solar-mass Sun, which is why astronomers write T² = a³. Around Jupiter, a red dwarf or a neutron star the constant scales as 1/M, so a 0.09 solar mass star like TRAPPIST-1 gives a constant about eleven times larger.

How can this calculator weigh a planet or a star?

Rearranging the law gives M = 4π²a³/(GT²), so the period and distance of anything in orbit reveal the mass of whatever it circles. Entering Io's 421,700 km orbit and 1.769-day period returns 1.898 × 10²⁷ kg for Jupiter, and the Moon's 384,400 km, 27.32-day orbit returns Earth's mass to within about a percent. This is the standard method astronomers use for bodies they will never visit.

When does the mass of the orbiting body matter?

The exact relation uses the combined mass, T² = 4π²a³/(G(M + m)). For a planet around the Sun the correction is a few thousandths of a percent and is safely ignored, but for binary stars, Pluto and Charon, or comparable-mass pairs it can reach tens of percent. Enter an orbiting mass and the calculator reports the one-body result, the corrected result and the percentage difference between them.

How accurate are the results for real orbits?

The model treats two point masses with no other influences, so it reproduces published periods and distances to three or four significant figures. Real systems drift from it because of perturbations by other planets, the oblateness of the primary and, for tight or very massive systems, General Relativity, which adds perihelion precession that Newtonian gravity does not predict. The residual spread visible in the verification table is precisely this effect.