How to use it
- Choose whether you know the orbit size or the period.
- Enter the semi-major axis in AU and the period in years.
- It applies to bodies orbiting the Sun.
What this calculates
Kepler's third law says the square of the orbital period is proportional to the cube of the semi-major axis. In years and AU the constant is 1, giving the simple T² = a³. Farther out, the orbit is longer and the body moves slower, so the period grows fast. Earth is 1 year at 1 AU. The law fits bodies far lighter than the Sun very well. The table lets you compare with NASA's published planetary periods; small differences come from the rounded mean distances and the orbits not being perfect circles.
The formulas
- T² = a³ (T: orbital period in years, a: semi-major axis in AU, around the Sun)
- T = a^(3/2), a = T^(2/3)
- Days = T × 365.25, distance (km) = a × 149,597,870.7
Reference table
| Planet | Mean distance (million km) | Semi-major axis (AU) | Period from T² = a³ (years) | NASA orbital period (years) |
|---|---|---|---|---|
| Mercury | 57.9 | 0.387 | 0.2408 | 0.2409 |
| Venus | 108.2 | 0.7233 | 0.6151 | 0.6152 |
| Earth | 149.6 | 1 | 1 | 0.9999 |
| Mars | 228 | 1.524 | 1.882 | 1.881 |
| Jupiter | 778.5 | 5.204 | 11.87 | 11.86 |
| Saturn | 1432 | 9.572 | 29.62 | 29.42 |
| Uranus | 2867 | 19.16 | 83.9 | 83.75 |
| Neptune | 4515 | 30.18 | 165.8 | 163.7 |
Worked examples
- Jupiter's orbit of about 5.2 AU → period about 11.86 years (4,331 days)
- A body with an 11.86-year period → semi-major axis about 5.2006 AU (about 778 million km)
- Earth at 1 AU → 1 year (365.25 days)
Frequently asked questions
Why are years and AU so simple?
Based on Earth orbiting at 1 AU in 1 year, the constant is 1, giving T² = a³. Other units need a constant.
Does it work for the Moon or satellites?
This is for bodies orbiting the Sun. The Moon and satellites orbit Earth, whose mass is different, so another constant is needed.
What is the semi-major axis?
Half the longest diameter of an elliptical orbit. For a circular orbit it is just the radius (the distance to the Sun).
Why do planets differ slightly from NASA's values in the table?
The distances in the table are rounded means, planets do have mass, and orbits are not perfect circles, so there is a small difference — all within 2% in the table.
Does a shorter period mean it moves faster?
Yes. The closer to the Sun, the faster the orbital speed; Mercury is fastest.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Good to know
- Continue with the Gravitation Calculator for the force and the Light-Year Calculator for distances in light.
- For speed and acceleration in a circle, use the Circular Motion Calculator.
Sources
- NASA Planetary Fact Sheet — mean distance from the Sun and orbital period of each planet
- International Astronomical Union (IAU) 2012 Resolution B2 — definition of the astronomical unit
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.