Kepler's Third Law Calculator

Enter either the semi-major axis (in AU) or the orbital period (in years) to solve Kepler's Third Law — the fundamental relationship between a planet's orbital size and its period around the Sun. You can also switch to SI units and provide the central body mass for non-solar systems. Results include the calculated orbital parameter plus a helpful comparison to known Solar System planets.

AU

Average orbital distance from the Sun in Astronomical Units (1 AU = Earth–Sun distance)

years

Time for one complete orbit around the Sun in Earth years

kg

Mass of the central body (star, planet) in kilograms. Default is the Sun's mass.

m

Average orbital distance in meters

s

Orbital period in seconds

Results

Calculated Result

--

Quantity Solved

--

T² (years²)

--

a³ (AU³)

--

T² / a³ Ratio

--

Solar System Orbital Periods vs Semi-Major Axes

Results Table

Frequently Asked Questions

What is Kepler's Third Law?

Kepler's Third Law, published in 1619, states that the square of a planet's orbital period (T²) is proportional to the cube of its semi-major axis (a³). In the Solar System, when T is measured in Earth years and a in astronomical units, this ratio equals exactly 1 for all planets: T² = a³.

What is the equation for Kepler's Third Law?

The simplified form for Solar System bodies is T² = a³, where T is the orbital period in years and a is the semi-major axis in AU. The general form is T² = (4π² / GM) × a³, where G is the gravitational constant (6.674×10⁻¹¹ N·m²/kg²) and M is the mass of the central body. This general form applies to any two-body orbital system.

What does Kepler's Third Law imply about planetary motion?

It implies that planets farther from the Sun take disproportionately longer to complete an orbit — not just longer, but the period grows faster than the distance. Neptune, about 30 AU from the Sun, takes roughly 165 years to orbit, compared to Earth's 1 year at 1 AU. The law reveals a deep mathematical harmony in orbital mechanics.

Does Kepler's Third Law apply to planets alone?

No — Kepler's Third Law applies to any orbiting body, including moons, artificial satellites, comets, asteroids, and even binary star systems. The key is using the correct central mass in the general equation. For Earth's satellites, for example, you would use Earth's mass instead of the Sun's mass.

How can I estimate the mass of the Sun using Kepler's Third Law?

By rearranging the general form, M = (4π² × a³) / (G × T²). If you measure any planet's orbital period T (in seconds) and semi-major axis a (in meters), you can plug those values into this formula along with G = 6.674×10⁻¹¹ to calculate the Sun's mass. Earth's orbit gives approximately 1.989×10³⁰ kg.

How long does it take for Mars to orbit the Sun?

Mars has a semi-major axis of about 1.524 AU. Applying Kepler's Third Law: T = √(1.524³) = √(3.540) ≈ 1.881 years, or roughly 686 Earth days. This matches observed data very closely, demonstrating the precision of Kepler's law.

What is an astronomical unit (AU)?

An astronomical unit (AU) is defined as the average distance between the Earth and the Sun, approximately 149.6 million kilometers (1.496×10¹¹ meters). It is the standard unit for expressing distances within the Solar System and is especially useful for Kepler's Third Law calculations.

Can Kepler's Third Law be used for moons orbiting planets?

Yes. To calculate the orbital parameters of a moon, use the general equation T² = (4π² / GM_planet) × a³, where M_planet is the mass of the planet being orbited. The same principle applies — the farther a moon orbits from its planet, the longer its orbital period.

More Physics Tools