Kepler's Third Law Calculator

Calculate orbital period, semi-major axis, and orbital velocity for a two-body orbit.

Kepler orbit calculation
Solve for period from distance or distance from period using the masses of the central and orbiting bodies.

About Kepler's third law

Kepler's third law connects the time required to complete an orbit with the orbit's size. Johannes Kepler originally expressed the relationship by observing that the square of a planet's orbital period is proportional to the cube of its semi-major axis. The semi-major axis is half the longest diameter of an elliptical orbit. For a circular orbit it is simply the constant distance between the centers of the two bodies. Newtonian gravity supplies the constant of proportionality and makes the law useful beyond planets orbiting the Sun. The general two-body equation is T squared = 4 pi squared a cubed divided by G times the total mass. Here T is period, a is semi-major axis, G is the gravitational constant, and total mass is the sum of both bodies. Including both masses matters for binary stars and other systems whose components are comparable. For a planet around a star, the planet's mass is usually small enough that omitting it changes the result only slightly. This calculator accepts the primary mass in solar masses, the orbiting-body mass in Earth masses, distance in astronomical units, and time in days. It converts those convenient astronomy units to SI units before evaluating the equation. In period mode it calculates T from a. In semi-major-axis mode it rearranges the same equation and takes the cube root. The displayed orbital velocity is the circular speed at the calculated distance, found from the square root of gravitational parameter divided by radius. The circular-speed result is a helpful reference, but speed varies around an elliptical orbit. An object moves fastest near periapsis and slowest near apoapsis, so a detailed trajectory requires the vis-viva equation and the object's current radius. The calculation also assumes an isolated two-body system with constant masses. Atmospheric drag, thrust, nonspherical gravity, resonances, and perturbations from additional bodies are not modeled. Within those limits, Kepler's law provides an accurate first calculation for planetary systems, artificial satellites, moons, and binary objects.

Kepler's third law examples

Compare familiar Solar System orbits using consistent astronomical units.

InputsCalculated outputOrbit
1 AU, 1 solar massAbout 365.26 daysEarth-like orbit around the Sun.
1.5237 AU, 1 solar massAbout 687 daysMars-like orbit around the Sun.
5.2028 AU, 1 solar massAbout 4,333 daysJupiter-like orbit around the Sun.

How to use the orbital calculator

  1. Choose whether to solve for orbital period or semi-major axis.
  2. Enter the known semi-major axis in AU or period in days.
  3. Enter the primary mass in solar masses and optionally the smaller body's mass in Earth masses.
  4. Select Calculate orbit and review the period, axis, and circular orbital velocity.

Kepler's third law FAQ

What does Kepler's third law say?

It says orbital period squared is proportional to semi-major axis cubed for bodies orbiting the same mass. Newton's form includes the masses and gravitational constant explicitly.

What is a semi-major axis?

The semi-major axis is half the longest diameter of an ellipse. It represents the characteristic size used in period calculations, not necessarily the object's current distance.

Why are both masses included?

Both bodies orbit their common center of mass, so the exact gravitational parameter uses their combined mass. The smaller mass can usually be ignored for a low-mass planet or satellite.

Does the velocity apply to an elliptical orbit?

The displayed velocity is the circular speed at the semi-major-axis distance. Actual speed in an elliptical orbit changes continuously and requires position information.

Can this calculator model a satellite around Earth?

Yes, after converting Earth's mass to solar masses and the orbital radius to AU. A dedicated satellite calculator may be more convenient because it commonly accepts kilograms and kilometers directly.