Skip to main content
EverydayToolsSIMPLE • FREE • FAST
HomeCategories
Search tools...
  1. Home
  2. Astronomy & Space
  3. Orbital Period Calculator
Advertisement
Loading...
Advertisement
Loading...

Kepler's Third Law: T² = 4π²a³ / G(M+m)

The Orbital Period Calculator uses Kepler's Third Law of Planetary Motion — one of the most profound discoveries in the history of astronomy — to compute how long any body takes to complete one full orbit around another. Whether you are a student learning introductory astronomy, an amateur astronomer curious about a newly discovered exoplanet, or an enthusiast who wants to compare planetary orbits side by side, this tool gives you instant, accurate results with full unit flexibility and visual context. Kepler's Third Law, formulated by Johannes Kepler in 1619 and later put on a rigorous gravitational footing by Isaac Newton, states that the square of a body's orbital period is proportional to the cube of its semi-major axis (average orbital distance). In Newton's generalized form, the law is T² = 4π²a³ / [G(M+m)], where T is the orbital period in seconds, a is the semi-major axis in meters, G is the universal gravitational constant (6.6743×10⁻¹¹ m³·kg⁻¹·s⁻²), M is the mass of the central body, and m is the mass of the orbiting body. When m is much smaller than M — as is the case for planets orbiting stars — m is often treated as negligible, simplifying the formula to T² = 4π²a³ / (GM). This calculator supports three solve modes. In Solve for Period mode you enter the semi-major axis and the central body's mass to determine how long one orbit takes. In Solve for Distance mode you enter the orbital period and the central body's mass to find where the orbit must be located. In Solve for Mass mode you enter both the semi-major axis and the orbital period to determine the mass of the central body — a technique astronomers use routinely to weigh distant stars by observing exoplanet transits or radial velocity curves. To make exploration fast, the calculator includes eight solar system planet presets (Mercury through Neptune), each loading the correct semi-major axis and eccentricity values. Four exoplanet presets cover iconic discoveries: 51 Pegasi b (the first exoplanet found around a Sun-like star), TRAPPIST-1b (from the ultra-compact seven-planet system around a cool dwarf star), Proxima Centauri b (the nearest known exoplanet to Earth), and Kepler-452b (the best Earth-analog candidate found by the Kepler space telescope). Beyond the primary result, the calculator provides rich secondary outputs. The orbital period is displayed simultaneously in years, days, hours, and seconds so you never need a separate time converter. The semi-major axis is shown in both AU and kilometers. Mean orbital velocity is computed using v = 2πa/T, and total orbital circumference is calculated as C = 2πa. If you enter an eccentricity value between 0 and 1, the tool also computes the apoapsis (farthest point from the central body) and the periapsis (closest point) using the standard formulas r_apo = a(1+e) and r_peri = a(1−e). For context, a comparison section shows how your result relates to Earth's orbit: whether your object is 10× farther than Earth or 0.05× as distant, you immediately grasp the scale. An interactive orbital diagram uses a logarithmic scale to visualize both Earth's reference orbit and your computed orbit as concentric rings, keeping extreme cases like Mercury (0.387 AU) and Neptune (30.07 AU) visible on the same diagram. A solar system comparison bar chart then shows where your result sits relative to all eight planets, highlighting the nearest match. Advanced users can reveal an additional planet mass input to enable precise two-body calculations using the full Newton-Kepler formula. The gravitational parameter μ = GM (in km³/s²) is also displayed — a quantity used heavily in real-world orbital mechanics software and trajectory planning for space missions. Results can be exported as a CSV file or printed with a single click for use in reports, homework, or research notes. All calculations are performed in SI units internally, with unit conversions handled transparently at input and output. Results auto-update as you type, so you can instantly explore how changing the star mass or orbital distance affects the period without pressing any button.

Understanding Orbital Mechanics

What Is Kepler's Third Law?

Kepler's Third Law, published in 1619, states that for any two objects where one orbits the other under gravity, the square of the orbital period is proportional to the cube of the semi-major axis of the orbit. In Kepler's original form — derived from observations of the solar system — the constant of proportionality equals one when using Earth years and Astronomical Units, giving the elegant T² = a³. Isaac Newton later showed that this is a consequence of his law of universal gravitation, and generalized the relationship to T² = 4π²a³ / [G(M+m)]. This Newton-Kepler form works for any two-body gravitational system, from satellites orbiting Earth to exoplanets orbiting red dwarf stars tens of light-years away, and it is the foundation of modern orbital mechanics.

How Are Orbital Periods Calculated?

The calculation begins by converting all inputs to SI base units: the semi-major axis to meters (1 AU = 1.496×10¹¹ m), masses to kilograms (1 solar mass = 1.989×10³⁰ kg), and times to seconds. The orbital period is then T = 2π × √(a³ / [G(M+m)]). Rearranged to solve for semi-major axis: a = ∛([G(M+m) × T²] / [4π²]). Rearranged to solve for central body mass: M = (4π²a³) / (GT²) − m. Mean orbital velocity follows from v = 2πa / T (the circumference divided by the period), and the gravitational parameter is simply μ = GM. Apoapsis and periapsis are computed from the eccentricity using r_apo = a(1+e) and r_peri = a(1−e).

Why Does Orbital Period Matter?

Knowing an orbital period has profound practical and scientific importance. For spacecraft mission design, orbital period determines the communication window between a satellite and a ground station, the timing of planetary flybys, and the fuel cost of orbital maneuvers. For astronomers, measuring the orbital period of a planet is the first step toward measuring the mass of its host star — a technique that underpins the discovery and characterization of thousands of exoplanets. For students, Kepler's Third Law provides a concrete demonstration that gravity operates the same way throughout the universe. Even for casual astronomy observers, knowing that Jupiter's moons have periods ranging from 1.8 days (Io) to 16.7 days (Callisto) enriches the experience of watching them move night to night.

Limitations and Assumptions

This calculator assumes a simple two-body gravitational system with no perturbations from other objects. In reality, the planets of the solar system slightly perturb each other's orbits, causing small deviations from pure Keplerian motion — but these deviations are typically less than 1% and are negligible for educational or observational purposes. The calculator also assumes the orbiting body follows a Keplerian ellipse, which is an excellent approximation for most planetary and satellite systems. For highly eccentric orbits approaching e = 1 (parabolic trajectories), the formulas technically still apply but the body is no longer gravitationally bound. General relativistic effects — important near massive compact objects like neutron stars and black holes — are not included. Results for exoplanets with very short periods (hot Jupiters with P < 3 days) may slightly differ from published values due to tidal effects.

Key Formulas

Kepler's Third Law (Newton's Form)

T² = (4π² / G(M+m)) × a³

The square of the orbital period is proportional to the cube of the semi-major axis, divided by the gravitational constant times the total system mass. This is the universal form valid for any two-body system.

Simplified Kepler's Third Law

T (years) = a (AU)^1.5

When using Earth years for period and AU for distance around a solar-mass star, the formula simplifies to T = a^(3/2). A planet at 4 AU orbits in 4^1.5 = 8 years.

Mean Orbital Velocity

v = 2πa / T

The average speed of an orbiting body equals the orbital circumference divided by the period. Earth orbits at about 29.8 km/s.

Apoapsis and Periapsis

r_apo = a(1+e), r_peri = a(1−e)

For an elliptical orbit with eccentricity e, the farthest and closest distances from the central body are determined by the semi-major axis and eccentricity.

Reference Tables

Solar System Planets — Orbital Data

Orbital parameters for all eight planets, showing how Kepler's Third Law applies across the solar system.

PlanetSemi-Major Axis (AU)Period (years)EccentricityOrbital Velocity (km/s)
Mercury0.3870.2410.205647.4
Venus0.7230.6150.006835.0
Earth1.0001.0000.016729.8
Mars1.5241.8810.093424.1
Jupiter5.20311.860.048913.1
Saturn9.53729.460.05659.7
Uranus19.1984.010.04576.8
Neptune30.07164.80.01135.4

Notable Exoplanet Orbits

Selected exoplanets demonstrating the wide range of orbital configurations discovered beyond our solar system.

ExoplanetStar Mass (M☉)Semi-Major Axis (AU)PeriodEccentricity
51 Pegasi b1.110.0524.23 days0.013
TRAPPIST-1b0.0890.0111.51 days0.006
Proxima Centauri b0.120.04911.19 days0.02
Kepler-452b1.041.046384.8 days0.035
HD 209458 b1.150.0473.52 days0.014
GJ 876 b0.330.20861.1 days0.032

Worked Examples

Orbital Period of a Planet at 5 AU

A planet orbits a Sun-like star (1 M☉) at a semi-major axis of 5 AU. Find its orbital period.

1

Use the simplified Kepler's Law: T = a^(3/2) when a is in AU and M = 1 M☉

2

T = 5^(3/2) = 5 × √5 = 5 × 2.236 = 11.18 years

3

Compare: Jupiter orbits at 5.203 AU with a period of 11.86 years — close match

4

Mean orbital velocity: v = 2π × (5 × 1.496 × 10⁸ km) / (11.18 × 365.25 × 86400 s) ≈ 13.3 km/s

The planet completes one orbit in approximately 11.18 years, very similar to Jupiter, with a mean orbital velocity of about 13.3 km/s.

Verify Earth's Orbital Period from a = 1 AU

Earth orbits the Sun at a = 1 AU. Verify that the period is 1 year using Kepler's Third Law.

1

T = a^(3/2) = 1^(3/2) = 1 year (by definition of AU and solar mass units)

2

Using SI: T = 2π × √(a³ / GM☉)

3

a = 1.496 × 10¹¹ m, G = 6.674 × 10⁻¹¹ m³/(kg·s²), M☉ = 1.989 × 10³⁰ kg

4

T = 2π × √((1.496 × 10¹¹)³ / (6.674 × 10⁻¹¹ × 1.989 × 10³⁰))

5

T = 2π × √(3.348 × 10³³ / 1.327 × 10²⁰) = 2π × √(2.524 × 10¹³) = 2π × 5.024 × 10⁶ ≈ 3.156 × 10⁷ s

6

Convert: 3.156 × 10⁷ s / (365.25 × 86400) = 1.000 year

Earth's orbital period is confirmed as 365.25 days (1 sidereal year), validating the formula.

Determine Star Mass from an Exoplanet Transit

An exoplanet has a measured orbital period of 4.23 days and a semi-major axis of 0.052 AU (like 51 Pegasi b). What is the host star's mass?

1

Rearrange Kepler's Law: M = 4π²a³ / (GT²)

2

Convert: a = 0.052 × 1.496 × 10¹¹ = 7.779 × 10⁹ m

3

Convert: T = 4.23 × 86400 = 365,472 s

4

M = 4π² × (7.779 × 10⁹)³ / (6.674 × 10⁻¹¹ × (365,472)²)

5

M = 4 × 9.8696 × 4.706 × 10²⁹ / (6.674 × 10⁻¹¹ × 1.336 × 10¹¹)

6

M ≈ 2.09 × 10³⁰ kg ≈ 1.05 M☉

The host star has a mass of approximately 1.05 solar masses, consistent with the known mass of 51 Pegasi (1.11 M☉).

How to Use the Orbital Period Calculator

1

Choose a Calculation Mode

Click one of the three mode buttons at the top: 'Solve for Period' (enter distance and mass to find how long one orbit takes), 'Solve for Distance' (enter period and mass to find orbital radius), or 'Solve for Mass' (enter distance and period to determine the central body's mass — useful for measuring star masses from exoplanet data).

2

Load a Preset or Enter Values

Click any planet button (Mercury through Neptune) to auto-fill the solar system values, or click an exoplanet preset (51 Peg b, TRAPPIST-1b, Proxima Cen b, or Kepler-452b) to load a famous exoplanet scenario. For a custom object, type the semi-major axis and choose your preferred unit (AU, km, meters, miles, or light-years). Set the central body mass in solar masses, Earth masses, or kilograms.

3

Review All Outputs

Results appear instantly and update as you type. The hero section shows the primary answer, followed by the period in all time units (years, days, hours, seconds), distance in AU and km, mean orbital velocity in km/s, and orbital circumference. Enter an eccentricity value between 0 and 1 to also see the apoapsis and periapsis distances. The solar system bar chart shows where your orbit falls relative to all eight planets.

4

Export or Print

Click 'Export CSV' to download a spreadsheet of all computed values for use in reports, presentations, or data analysis. Click 'Print Results' to generate a clean print layout. For two-body precision, click 'Advanced options' to add the orbiting body mass and see the full Newton-Kepler calculation with the gravitational parameter μ = GM.

Frequently Asked Questions

What is the difference between Kepler's original formula and Newton's generalized version?

Kepler's original Third Law, T² = a³, works only when the time is measured in Earth years and the distance in Astronomical Units, and it implicitly assumes the central body is the Sun. It cannot handle any other star or any unit system. Newton's generalized version, T² = 4π²a³ / [G(M+m)], is universal: it works for any central body of any mass, in any unit system, and even accounts for the mass of the orbiting body when it is non-negligible (such as in a binary star system). This calculator uses Newton's version so it correctly handles exoplanets around low-mass stars like TRAPPIST-1 and binary systems.

Why is the planet's own mass usually ignored?

In Kepler's Third Law, the formula contains (M+m) — the sum of both bodies' masses. For a planet orbiting a star, the star's mass dominates overwhelmingly. The Sun is about 1,048 times more massive than Jupiter, and more than 330,000 times more massive than Earth. Ignoring the planet's mass introduces an error of less than 0.1% for Jupiter and less than 0.0003% for Earth. This negligible difference is why most educational tools and even many research papers use M+m ≈ M. Our advanced mode lets you include planet mass for full precision.

How do astronomers use orbital periods to measure star masses?

By rearranging Kepler's Third Law to M = (4π²a³) / (GT²) − m, astronomers can compute a star's mass if they know the orbital period and semi-major axis of a planet orbiting it. For exoplanets detected by the transit method, the period is measured directly from the timing of brightness dips. The semi-major axis can be inferred from the period and an estimate of the star's temperature and luminosity. This technique has produced mass measurements for thousands of stars and is one of the primary tools of exoplanet science. Use the 'Solve for Mass' mode to explore this yourself.

What does orbital eccentricity affect?

Eccentricity (e) describes how elongated an orbit is. A circle has e = 0; a highly stretched ellipse approaches e = 1. For Kepler's Third Law, the period depends only on the semi-major axis — not on eccentricity — so two orbits with the same semi-major axis but different eccentricities have identical periods. However, eccentricity does determine the range of distances: apoapsis (farthest point) = a(1+e) and periapsis (closest point) = a(1−e). Earth's eccentricity of 0.0167 means its distance from the Sun varies by about ±1.7% over the year. Mercury's high eccentricity of 0.2056 causes a 38% variation in its Sun distance.

What is the gravitational parameter μ and why is it useful?

The standard gravitational parameter μ = GM combines the gravitational constant G with the central body mass M into a single number. It is far more precisely known for bodies in our solar system than either G or M individually, because it can be measured directly from spacecraft trajectory data. For the Sun, μ☉ = 1.327×10¹¹ km³/s². For Earth, μ⊕ = 3.986×10⁵ km³/s². Using μ directly avoids introducing error from the less-precisely-known value of G. This quantity appears in all real spacecraft trajectory software and is the natural unit of orbital mechanics.

Why does the orbital visualization use a logarithmic scale?

The solar system spans an enormous range of distances — from Mercury at 0.387 AU to Neptune at 30.07 AU, a factor of about 78. If the diagram used a linear scale, Mercury's orbit ring would be invisible while Neptune's would dominate the screen. A logarithmic scale compresses large ranges so that orbits separated by a factor of 10 appear as equal visual steps, making all planets simultaneously visible in the same diagram. This is the same reason orbital period bar charts in astronomy textbooks often use a log scale. The visualization is approximate and intended for relative comparison, not precise measurement.

Related Tools

Hohmann Transfer Calculator

Calculate the delta-v, transfer time, and orbit geometry for Hohmann transfer orbits between two circular orbits.

Delta-V Calculator

Compute the delta-v budget for spacecraft maneuvers using the Tsiolkovsky rocket equation.

Habitable Zone Calculator

Determine the habitable zone boundaries around any star based on luminosity and effective temperature.

Schwarzschild Radius Calculator

Calculate the event horizon radius of a black hole from its mass using the Schwarzschild solution.

Parallax Distance Calculator

Convert stellar parallax angles to distances in parsecs, light-years, AU, and km.

EverydayToolsSIMPLE • FREE • FAST

Free online tools for non-IT professionals. Calculators, converters, generators, and more.

Popular Categories

  • Health Calculators
  • Finance Calculators
  • Conversion Tools
  • Math Calculators

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 EverydayTools.io. All rights reserved.