What is a Kepler's Third Law Calculator?
The Kepler's Third Law Calculator is a free online tool that finds the orbital period from the size of an orbit, or the size of an orbit from its period, using Kepler's third law. Physics and astronomy students working through gravitation, orbits and Kepler's laws use it when how long a planet, moon or satellite takes to go around, from how far out it orbits. Instead of rearranging T² = 4π²a³ ÷ GM and handling the huge numbers, where the cube and the square root are easy to lose, you type the central body, whether to solve for the period or the axis, and the known value and the calculator returns the orbital period in days and in years, and the semi-major axis in million kilometres straight away.
The working idea is simple. the calculator applies Kepler's third law directly: the square of the period is proportional to the cube of the semi-major axis The constant of proportionality is 4π² ÷ GM, which depends only on the central body. Around the Sun the law takes its simplest form: with a in astronomical units and T in years, T² = a³ exactly for the Earth, and very nearly for the other planets. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.
That matters because Kepler's third law is the clockwork of the solar system: it links how far out a planet orbits to how long its year is, and it is how astronomers weigh stars and find exoplanets The law assumes a single central mass and a small orbiting mass. When the two masses are comparable, the full form uses the sum of the masses, and the periods here are for the idealised case. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.
How a Kepler's Third Law Calculator works
At its core, the calculator applies the square of the orbital period is proportional to the cube of the semi-major axis, with the constant set by the central mass. T² = (4π² ÷ GM)·a³, where T is the period, a is the semi-major axis, and M is the mass of the central body. Doubling the axis multiplies the period by 2√2, about 2.83 — not by 2, and not by 8. The formula box at the top of this page shows the same rule in symbols: T² = (4π² ÷ GM)·a³.
The calculator takes the central mass from its table — Sun 1.989 × 10³⁰ kg, Earth 5.972 × 10²⁴ kg, Jupiter 1.898 × 10²⁷ kg — converts the axis from million kilometres to metres, and evaluates the law in either direction. The known value must be positive: a zero or negative axis or period has no meaning. The axis is in million kilometres and the period in days, so check the units before you enter a number.
The masses are standard values and the arithmetic is exact for the idealised two-body law, so the answers are accurate to the decimals shown A speed converter can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.
The the semi-major axis explained
The semi-major axis is the input people get wrong most often, because it must be the average distance from the centre of the orbit, in million kilometres — not the closest distance, not the farthest, and not the diameter. For the Earth it is 149.6 million km, one astronomical unit. Using the perihelion distance of 147.1 million km instead gives a period a few days short, and using the diameter doubles the axis and multiplies the period by 2.83.
Use the average distance, the semi-major axis, in million kilometres. For the planets the standard values are Mercury 57.9, Venus 108.2, Earth 149.6, Mars 227.9, Jupiter 778.5, Saturn 1432, Uranus 2867 and Neptune 4515 million km. Check the answer against the Earth: a = 149.6 million km around the Sun should give about 365.2 days, close to the true 365.25-day year. If it is far off, the units are wrong.
For the defaults, the Earth at 149.6 million km gives 365.22 days, within 0.01% of the true 365.25-day year — the small gap comes from the rounded constants, so the calculator is consistent. A distance calculator is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.
A worked example
Take the default numbers on this page: the Earth orbiting the Sun, with a semi-major axis of 149.6 million kilometres, solving for the period.
Kepler's law gives T = 365.2187 days, which is 0.9999 years, and the axis is 149.6 million km, as entered.
365.22 days is within a fraction of a percent of the true year of 365.25 days — the small gap comes from the rounded constants in the table: the Earth's semi-major axis is really 149.598 million km and the Sun's mass 1.9885 × 10³⁰ kg, while the calculator uses 149.6 and 1.989. The law still reproduces the year from the distance alone, which is a remarkable check on Newton's gravitation. Try Jupiter at 778.5 million km: the period should be about 4336 days, or 11.87 years, which is the familiar length of Jupiter's year.
Where the Kepler's Third Law Calculator is used
In astronomy, Kepler's third law weighs stars: the period and the size of a binary star's orbit give the total mass of the pair, which is one of the few ways stellar masses are measured.
In exoplanet hunting, the period of a planet's transit gives its distance from its star through the same law, and the distance decides whether the planet sits in the habitable zone. A time converter often sits next to it in the same workflow, because the two answers answer different halves of the same question.
In mission planning, it sets the timing of transfers: a spacecraft going to Mars follows an orbit whose period is fixed by its size, and the launch window opens when the planets line up with that orbit.
It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.
Kepler's Third Law Calculator vs Speed Converter
A speed converter changes the unit of a speed — m/s to km/h, for example — without changing the motion. This calculator finds a period from an orbit's size, or a size from a period, using Kepler's third law — a relationship between time and distance that comes from gravitation.
Use the speed converter when you have a speed and need it in another unit. Use this calculator when you have an orbit's size or its period and need the other one. The force converter covers the other side of the same problem, so the two tools complement each other rather than compete.
The two meet in practice: the orbital speed follows from the period and the circumference, so Kepler's law and the speed are linked — a planet further out moves slower and takes longer, both because of the same law.
Common mistakes with the Kepler's Third Law Calculator
The first mistake is using the diameter instead of the semi-major axis. The law needs a, the average radius of the orbit, and using the diameter multiplies the period by 2.83.
The second mistake is thinking the period is proportional to the distance. It is not: T² goes with a³, so doubling the distance multiplies the period by 2.83, not by 2 — and the period grows faster than the distance.
The third mistake is forgetting the central mass. The same orbit around Jupiter has a very different period from the same orbit around the Sun, because the constant 4π² ÷ GM depends on M — a heavier centre means a faster orbit.
A last mistake is trusting the first answer without a rough check. Before you accept a result, estimate it by hand to one significant figure: if the calculator says 400 and your rough estimate says 40, something is off — usually a misplaced decimal point or a wrong unit. The calculator does the arithmetic; the judgement about whether the answer makes sense still belongs to you.
How to use this Kepler's Third Law Calculator
Open the page and enter the central body, whether to solve for the period or the axis, and the known value. Pick the central body, choose whether to solve for the period or the axis, and enter the known value. The period appears in days and years, and the axis in million kilometres.
Read the period in days as the length of the year at that distance, and the years value as the same period in Earth years. Check the answer against a known case: the Earth at 149.6 million km gives 365.22 days, close to the true 365.25-day year, and Jupiter at 778.5 gives about 11.87 years.
Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a speed converter will confirm the arithmetic.