# Kepler’s Third Law Calculator

URL: https://speedycalculator.com/calculators/physics/kepler-third-law/
Last updated: 2026-11-08

> The Kepler's third law calculator finds a planet's orbital period from its semi-major axis (or vice versa) around a star of a given mass, including the planet's own mass if desired.

## Inputs

- Find
- Star mass M (M☉, M⊕, kg)
- Planet mass m (optional) (M⊕, M_J, kg)
- Semi-major axis a (au, km, m)
- Orbital period T (years, days, h, s)

## Results

- Orbital period T
- Semi-major axis a

## Formula

```
T² = 4π²·a³ / (G·(M + m))  →  T(years)² = a(au)³ / (M + m)(solar masses)
```

## Explanation

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

FieldWhat to enterFindChoose one: Orbital period T, Semi-major axis aStar mass MUnits: M☉, M⊕, kgPlanet mass m (optional)Units: M⊕, M_J, kgSemi-major axis aUnits: au, km, mOrbital period TUnits: 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.52.66070.752.172411.88141.251.68281.51.536121.3303

## 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.

## FAQ

**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.


## Sources

- [OpenStax: Astronomy 2e](https://openstax.org/details/books/astronomy-2e)
- [NASA: Planetary fact sheet](https://nssdc.gsfc.nasa.gov/planetary/factsheet/)
