To Many Calculator logoTo Many Calculator

Kepler's Third Law Calculator

Kaushik RabadiyaCreated by Kaushik RabadiyaLast updated: September 24, 2026

Kepler third law instantly calculates results using gravitational constant g, major semiaxis planet, planet mass. Use the calculator above for instant answers in your browser.

Kepler's Third Law Calculator allows astronomy enthusiasts, students, and researchers to quickly compute the relationship between an orbiting body's distance and its orbital period. By leveraging universal gravitation and stellar mass, this tool solves for unknown orbital variables instantly, eliminating manual mathematical friction.

The Mathematics of Orbital Motion

Johannes Kepler originally formulated that the square of a planet's orbital period (T) is directly proportional to the cube of the semimajor axis of its orbit (a). In modern Newtonian mechanics, this relationship is expressed as a^3 / T^2 = G * (M + m) / (4 * pi^2), where G is the gravitational constant, M is the mass of the central star, and m is the mass of the orbiting planet. When the orbiting body is much smaller than the host star, the planet's mass (m) becomes negligible, simplifying the calculation to purely reflect the central star's mass and the orbital radius.

Worked Calculation Example

Let us calculate the orbital period of an exoplanet orbiting a star with a mass equal to the Sun (M = 1.989 x 10^30 kg) at a semimajor axis of 4 astronomical units (approx. 5.98 x 10^11 meters). First, cube the semimajor axis distance: (5.98 x 10^11)^3 = 2.138 x 10^35 m^3. Next, divide by the gravitational constant modified term and multiply by 4 * pi^2 factoring in the stellar mass. Solving for the period squared yields approximately 7.15 x 10^15 seconds squared. Taking the square root gives an orbital period of roughly 8.46 x 10^7 seconds, which translates to about 2.68 Earth years.

Best Practices for Orbital Calculations

Ensure that all input values use consistent SI units (meters, kilograms, and seconds) unless the calculator automatically handles unit conversions like astronomical units or solar masses. Keep in mind that Kepler's original harmonic law assumes a perfectly circular orbit; for highly elliptical orbits, always use the true semimajor axis rather than the periapsis or apoapsis distance alone.

FAQs

What is Kepler's third law of planetary motion?

Kepler's third law states that the square of a planet's orbital period is directly proportional to the cube of the length of the semimajor axis of its orbit. This means planets that are farther away from their host star take significantly longer to complete one full revolution than planets located closer in.

Does Kepler's third law apply to planets alone?

No, the law applies universally to any system where a smaller body orbits a significantly larger central mass under the influence of gravity. This includes moons orbiting gas giant planets, artificial satellites orbiting Earth, and exoplanets orbiting distant stars.

How can I estimate the mass of the Sun using this law?

By knowing Earth's exact orbital period (one year or approximately 3.156 x 10^7 seconds) and its average distance from the Sun (one astronomical unit or approximately 1.496 x 10^11 meters), you can rearrange Kepler's third law formula to solve directly for the mass of the Sun.

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

Mars has a semimajor axis of roughly 1.524 astronomical units. Applying Kepler's third law, its orbital period squared equals 1.524 cubed, which is about 3.54. Taking the square root reveals an orbital period of approximately 1.88 Earth years, or about 687 Earth days.

Formula verified against NIST Reference Data — all calculations use deterministic, standards-based formulas.

Related calculators