Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

Orbital period—days

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.

Kepler's Third Law Calculator

Semi-major axis: enter 0 or more. Prefilled example: 1.

Distance unit

Distance unit: choose Astronomical units (au) or Kilometers (km). Prefilled example: Astronomical units (au).

Mass of the central body: enter 0 or more. Prefilled example: 1.

Mass unit

Mass unit: choose Solar masses or Kilograms (kg). Prefilled example: Solar masses.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Semi-major axis: enter 0 or more.
  2. Distance unit: choose Astronomical units (au) or Kilometers (km).
  3. Mass of the central body: enter 0 or more.
  4. Mass unit: choose Solar masses or Kilograms (kg).
  5. 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

  1. Ts=2×π×(a×au)3m×μ
  2. Td=Ts86,400
Symbols used in the formula
SymbolMeaningUnit
aSemi-major axis
auDistance unit
mMass of the central body
μMass unit
TsOrbital period (s)
TdOrbital perioddays

Worked example

Semi-major axis1
Distance unitAstronomical units (au)
Mass of the central body1
Mass unitSolar masses
Orbital period (s)31,558,196.0155
Orbital period (Julian years)1
  1. Ts=2×3.14159×(1×149,597,870,700)31×(1.32712×1020)=31,558,196.02
  2. Td=31,558,196.0286,400=365.257

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.

Related calculators