How to Calculate Orbital Period Using Kepler's Laws

If Kepler's Third Law Explained covers the theory behind orbital periods, this article is the practical follow-up: a step-by-step walkthrough you can use to calculate an orbital period by hand, for any object orbiting the Sun, before double-checking your work against our Orbital Period calculator.

Realistic depiction of the planet Mercury against a black space background.
Photo by Zelch Csaba on Pexels

What You Need Before You Start

You only need one input: the object's average distance from the Sun, known as its semi-major axis. Everything else in the calculation is a fixed constant. If you're working in astronomical units (AU) and want the answer in years, you can use the simplified shortcut; if you want the full physical formula in SI units, you'll also need the Sun's standard gravitational parameter, GM = 1.32712440018×10²⁰ m³/s² (JPL Solar System Dynamics).

Method 1: The Quick AU-and-Years Shortcut

If your distance is already in AU, Kepler's third law simplifies to T² = a³, which means T = √(a³), with T coming out directly in years. This only works for objects orbiting the Sun, specifically because of how the Sun's GM interacts with those particular units.

Worked Example with the Shortcut: An Object at 4 AU

Say you want the orbital period of a hypothetical object at 4 AU from the Sun — roughly between Mars and Jupiter, in the asteroid belt region (see What Are the Asteroid Belt and the Kuiper Belt?).

Method 2: The Full Physical Formula (Any Unit System)

When you need the answer in seconds or days, or you're working with distances already in kilometers or meters, use the full formula: T = 2π × √(a³ / GM), with a converted to meters first.

Worked Example with the Full Formula: Earth, as a Sanity Check

It's always worth testing a new formula against a known answer before trusting it on new data. Earth, at exactly 1 AU, should return almost exactly 365.25 days.

Full-formula calculation for Earth
StepValue
a in meters1.495978707×10¹¹ m
a³≈ 3.34793×10³³ m³
a³ / GM≈ 2.52317×10¹³
√(a³/GM)≈ 5.02311×10⁶ s
× 2π≈ 3.15581×10⁷ s
÷ 86,400≈ 365.3 days

Practice Problem: Checking the Shortcut Against Saturn

A second worked example helps confirm you've got the method down, especially with a number that doesn't come out as a clean round figure. Saturn orbits the Sun at an average distance of about 9.5826 AU — plug that into the same shortcut used above for the 4 AU example.

Checking Your Work

Two sanity checks catch most mistakes. First, Earth at 1 AU must always return 1 year (or 365.25 days) — if it doesn't, there's an arithmetic or unit error somewhere in your steps. Second, the result should scale the way you'd expect: a larger distance should always produce a longer period, and the increase should be more than proportional (an object twice as far out takes more than twice as long to orbit, because both distance and orbital speed change together). If a result breaks either of these checks, re-verify your unit conversions before trusting the number.

It also helps to keep a couple of known reference periods on hand while you practice — Mars at roughly 1.88 years, Jupiter at roughly 11.86 years, and Saturn at roughly 29.46 years are all well-documented enough to spot-check a new calculation against, the same way you'd check a unit conversion against a value you already trust before relying on it for something new.

Common mistakes

FAQ

Can I calculate orbital period without knowing the central body's mass?

For objects orbiting the Sun specifically, yes — the AU-and-years shortcut avoids needing GM at all. For orbits around any other body (a planet, a star), you do need that body's GM or mass.

Does this method work for highly elliptical orbits, like comets?

Yes, as long as you use the semi-major axis (the average of the closest and farthest points from the Sun), not just the closest approach distance — the formula is defined in terms of that average distance, regardless of how elongated the orbit is.

How accurate is this compared to real observed orbital periods?

Very accurate for an isolated two-body system (one planet, the Sun). Real planetary orbits are very slightly perturbed by the gravity of other planets, which this simplified method doesn't account for, but the difference is usually a small fraction of a percent.

Why did the Saturn example come out slightly different from the published value?

Mostly because the input distance (9.5826 AU) is itself already a rounded figure — Saturn's orbit is also slightly elliptical and perturbed by other planets, so real-world figures always carry a small margin that a clean two-body formula can't fully capture.

Sources

Related