Kepler's Third Law Calculator
Kepler's third law calculator determines the orbital period from the semi-major axis, or vice versa, for any orbit around a known central body. Formulated by Johannes Kepler in 1619 and later derived from Newton's law of gravitation, the harmonic law reveals that all planets (and satellites) follow the same relationship between their orbital size and period. This tool is used in planetary science, mission planning for spacecraft, and determining the masses of distant stars and planets from observed orbital data. Select the central body and enter either the semi-major axis or period to find the other.
Kepler's third law formula
T^2 = (4*pi^2 / (G*M)) * a^3
Solar simplified: T_yr^2 = a_AU^3
a = (G*M*T^2 / (4*pi^2))^(1/3)
M = (4*pi^2*a^3) / (G*T^2)
1 AU = 1.496e11 m; 1 year = 3.156e7 s
Planetary data (NASA)
- Earth: a = 1.000 AU, T = 365.25 days
- Mars: a = 1.524 AU, T = 686.97 days (1.881 years)
- Jupiter: a = 5.203 AU, T = 11.86 years
- Saturn: a = 9.537 AU, T = 29.46 years
Kepler's third law: frequently asked questions
What is Kepler's third law?
Kepler's third law (the harmonic law) states that the square of the orbital period is proportional to the cube of the semi-major axis: T^2 proportional to a^3. In exact form: T^2 = (4*pi^2 / (G*M)) * a^3, where G = 6.674e-11 N*m^2/kg^2 and M is the central body mass. For the Solar System, using Earth's orbit as reference: (T/1 year)^2 = (a/1 AU)^3.
What is the semi-major axis?
The semi-major axis (a) is half the longest diameter of an elliptical orbit. For a circular orbit, a equals the radius. For an ellipse, a = (periapsis + apoapsis) / 2, where periapsis is the closest approach and apoapsis is the farthest point. Earth's semi-major axis is 1.000 AU = 149,597,870.7 km.
How do I find the mass of a central body from orbital data?
Rearrange Kepler's third law: M = (4*pi^2 * a^3) / (G * T^2). By measuring the orbital period T and semi-major axis a of any satellite (natural or artificial), you can calculate the mass of the central body. This technique discovered the masses of planets with moons, the Sun, and distant stars in binary systems.
Can Kepler's third law apply to binary star systems?
Yes, the generalized form uses the total mass: T^2 = (4*pi^2 * a^3) / (G * (M1 + M2)). Here a is the separation between the two stars, and T is the orbital period. This is used to measure stellar masses of binary stars from astrometric or spectroscopic measurements. It is one of the primary ways stellar masses are determined observationally.
What are the planets' orbital periods and semi-major axes?
Mercury: 0.387 AU, 87.97 days. Venus: 0.723 AU, 224.7 days. Earth: 1.000 AU, 365.25 days. Mars: 1.524 AU, 686.97 days. Jupiter: 5.203 AU, 11.86 years. Saturn: 9.537 AU, 29.46 years. Uranus: 19.19 AU, 84.01 years. Neptune: 30.07 AU, 164.8 years. All values from NASA planetary fact sheets.
Official sources
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.