Johannes Kepler found in 1619 that the square of a planet’s period is proportional to the cube of its distance from the Sun. Newton later showed why, and added the dependence on mass, which lets astronomers weigh stars and black holes from orbits.
How to use the Kepler’s Third Law Calculator
- Find
- Star mass M
- Planet mass m (optional)
- Semi-major axis a
- Orbital period T
Results update as you type, every field has its own unit menu, and everything is calculated in your browser.
How it works
Choose what to find, enter the star’s mass in solar masses and either the period or the semi-major axis.
Inputs explained
| Field | What to enter |
|---|---|
| Find | Choose one: Orbital period T, Semi-major axis a |
| Star mass M | Units: M☉, M⊕, kg |
| Planet mass m (optional) | Units: M⊕, M_J, kg |
| Semi-major axis a | Units: au, km, m |
| Orbital period T | Units: years, days, h, s |
What each result means
- Orbital period T = 2×pi×sqrt([Semi-major axis a]^3÷(6.6743e-11×([Star mass M] + [Planet mass m (optional)])))
- Semi-major axis a = (6.6743e-11×([Star mass M] + [Planet mass m (optional)])×[Orbital period T]^2÷(4×pi^2))^(1÷3)
Example values
How the main result changes when Star mass M changes and everything else stays at the example values above:
| Star mass M (M☉) | Orbital period T (years) |
|---|---|
| 0.5 | 2.6607 |
| 0.75 | 2.1724 |
| 1 | 1.8814 |
| 1.25 | 1.6828 |
| 1.5 | 1.5361 |
| 2 | 1.3303 |
Formula
T² = 4π²·a³ / (G·(M + m)) → T(years)² = a(au)³ / (M + m)(solar masses)
Worked example
Inputs: Find: Orbital period T; Star mass M: 1 M☉; Planet mass m (optional): 0 M⊕; Semi-major axis a: 1.524 au.
Results: Orbital period T = 1.881391 years.
Key terms
- Semi-major axis
- Half the major axis of an ellipse.
Frequently asked questions
What is the semi-major axis?
Half the longest diameter of the elliptical orbit, which is the average distance.
How long is a year on Mars?
About 1.88 Earth years (a = 1.524 au).
Does the law apply to moons?
Yes. Use the planet's mass as M.
How are black hole masses measured?
From the orbits of nearby stars using this law.