Kepler's Third Law Calculator

Kepler's third law links the size of an orbit to how long it takes: the square of the period is proportional to the cube of the semi-major axis. Newton showed the constant depends on the masses involved. Use this calculator for planets and moons, or to weigh a star or black hole from the orbit of something around it.

Inputs

Advanced options (1)

Results

Result
T = 1.881 years (687 days)
Orbital period
1.881
Semi-major axis
1.524
Central mass
1
Mean orbital speed (circular approximation)
24.13

    RefPHY-GRV-004
    MethodT² = 4π²a³/(G(M + m))
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Kepler's third law (Newton's form)T² = 4π²a³/(G(M + m))G(M + m) = 1.327e20 m³/s²
    2. PeriodT = 2π√(a³/G(M + m))a = 1.524 au, T = 1.881 y, M = 1.988e30 kg

    Weighing the Sun and other stars

    In Newton’s form T² = 4π²a³/(G(M + m)), so measuring an orbit’s size and period gives the total mass of the system. That is how the masses of the Sun, of planets with moons, of binary stars and of the black hole at the centre of the Milky Way are found. For planets around the Sun, a in astronomical units and T in years give T² ≈ a³.

    Assumptions and limits

    • Two-body Keplerian orbit; perturbations from other bodies ignored.
    • Mean orbital speed uses the circumference of a circle of radius a.
    • Planet semi-major axes from the NASA planetary fact sheets.

    References

    • Curtis, H. D., Orbital Mechanics for Engineering Students, 4th ed., Butterworth-Heinemann, 2020, chapter on orbits in two dimensions.
    • NASA NSSDCA Planetary Fact Sheets (semi-major axes and sidereal periods).

    Questions

    What is the orbital period of Mars?
    1.881 years (687.0 days) for a semi-major axis of 1.5237 au.
    What mass does a 1 au, 1-year orbit imply?
    About 1.000 solar masses: choose Mass of the central body with a = 1 au and T = 1 Julian year.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.