Kepler's Third Law Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Find how long one orbit takes from the size of the orbit and the mass of the body it circles.
Result
Orbital perioddays
Orbital period (s)
- Orbital period (Julian years)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Semi-major axis: enter 0 or more.
- Distance unit: choose Astronomical units (au) or Kilometers (km).
- Mass of the central body: enter 0 or more.
- Mass unit: choose Solar masses or Kilograms (kg).
- Read the result: Orbital period; the panel also shows Orbital period (s) and Orbital period (Julian years).
How this calculator works
Kepler's third law in Newton's form: T² = 4π² × a³ ÷ (G × M), where a is the semi-major axis and M the central mass (the orbiting body's mass is neglected).
1 au = 149,597,870,700 m (IAU 2012 Resolution B1) and the heliocentric gravitational constant G·M☉ = 1.32712440041279419 × 10²⁰ m³/s², both from NASA JPL's astrodynamic parameters (ssd.jpl.nasa.gov/astro_par.html, read October 27, 2026). For a mass in kilograms, G = 6.67430 × 10⁻¹¹ m³/(kg·s²) (CODATA 2022 values from NIST (physics.nist.gov/cuu/Constants/Table/allascii.txt, read October 27, 2026)).
A Julian year is 365.25 days of 86,400 s.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Semi-major axis | ||
| Distance unit | ||
| Mass of the central body | ||
| Mass unit | ||
| Orbital period (s) | ||
| Orbital period | days |
Worked example
| Semi-major axis | 1 |
|---|---|
| Distance unit | Astronomical units (au) |
| Mass of the central body | 1 |
| Mass unit | Solar masses |
| Orbital period (s) | 31,558,196.0155 |
|---|---|
| Orbital period (Julian years) | 1 |
Orbital period 365.2569 days
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How long is an orbit at 1 au around a star like the Sun?
About 365.26 days, one year.
Does the planet's mass matter?
Only slightly: the exact law uses the sum of the two masses, and a planet's mass is tiny next to its star's.