The guide
Kepler's third law ties orbit size to period, and the central body's GM does the rest
Why the square of a period tracks the cube of an axis, how to solve for whichever of the three quantities is missing, and where the simple law stops being enough.
- 8 years period of an orbit 4 au wide, in solar units
- 2.8284271 period multiplier when the orbit's axis doubles
- 365.2569 days for a 1 au orbit with the Sun's GM, in SI units
- 0.9999985 two-body factor on the period for the Sun and Earth
- 42,164 km radius of a geostationary orbit from the Earth's centre
Read the full guide Fold the guide
Ask how long a planet takes to go round the Sun and you get a number of days. Ask how far away it is and you get a distance. Johannes Kepler’s third law says the two answers are not independent: fix one, and the other follows. That is why a single formula can turn a stopwatch into a ruler, or a ruler into a stopwatch. The formula is easy to misuse. People feed it a diameter where it wants a radius, kilometres where it wants metres, or the Sun’s constant for a satellite that circles the Earth. A calculator earns its place by refusing those mistakes and showing every step.
What the law says, and why gravity forces it
Kepler published the law in 1619 in a book called Harmonice Mundi. In modern words it says that the ratio of the square of an object’s orbital period to the cube of the semi-major axis of its orbit is the same for every object circling the same central body. The semi-major axis is half the long diameter of the ellipse. For a circle it is simply the radius.
Kepler found it by pattern, not by cause. In 1621 he noticed that the four brightest moons of Jupiter obey it too, which showed that the rule belongs to the central body and not to the Sun alone. His original form used a mean distance, and it works only for orbits that are close to circular. The semi-major axis version is the one that holds for any ellipse.
The cause arrived with Newton’s law of gravitation, published in 1687. Take a small body on a circular orbit of radius r. Gravity must supply the centripetal force, so m r times the square of the angular speed equals G m M over r squared. Write the angular speed as two pi over the period T, cancel the small mass m, and you reach T squared equals 4 pi squared r cubed over GM.
Nothing in that line refers to the small body’s mass, which is why a grain of dust and a space station share one curve at the same height. Only the central body enters, through the product G times M. For ellipses the same algebra gives the same law with r replaced by the semi-major axis a.
Solved for each unknown, the law reads T = 2 pi sqrt(a cubed over GM), a = (GM T squared over 4 pi squared) to the power one third, and GM = 4 pi squared a cubed over T squared. Three forms, one relation: give any two of the three quantities and the third is fixed.
Two orbits, one centre: the numbers
Astronomers like the law in solar units, where distances are in astronomical units, periods in years and masses in solar masses. Then the constants vanish and the law is T squared equals a cubed. An orbit 4 au wide has T squared equal to 64, so the period is 8 years. An orbit 100 au wide takes 1000 years.
Doubling the orbit is the quickest way to feel the exponent. The cube of 2 is 8, and the square root of 8 is 2.8284271247, the three halves power of 2. So a body that moves twice as far out takes about 2.83 times as long to lap, not twice and not eight times. Forgetting the square root is the classic slip that returns 8.
In SI units you need a real value of GM. The Sun’s is 1.32712440042e20 cubic metres per second squared, and the astronomical unit is exactly 149,597,870,700 metres. Put an orbit of 1 au into the formula and the period comes out at 31,558,196.0 seconds, or 365.2569 days. That is about 0.007 days longer than the 365.25 day year used in solar units.
The gap is not an error. Solar units are a convention that treats one au, one 365.25 day year and one solar mass as a matched set; the SI line uses measured constants. The speed on that orbit follows from the same pair: the circular speed is the square root of GM over a, which is 29.7847 kilometres per second at 1 au.
You can reproduce all of this by choosing SI units, asking for the period, entering 1 au and keeping the Sun’s value. Then enter 2 au instead of 1 and confirm that the answer is 2.8284271247 times longer. If you instead type the diameter, 2 au, for a circle of radius 1 au, the answer is 1033.1 days and the mistake is plain.
Why the Sun’s GM is better known than its mass
The product GM is a more precise number than either factor. Newton’s constant G is hard to measure, and its recommended value carries a relative standard uncertainty of 2.2e-5. The Sun’s mass in kilograms inherits that uncertainty, because nobody can weigh the Sun except through its pull.
The pull itself is easy to watch. Planets and spacecraft move under the product GM and nothing else, so tracking their positions fixes GM directly. The standard value for the Sun is stated with a relative uncertainty below one part in ten billion, more than a hundred thousand times tighter than G. The Sun Fact Sheet from NASA lists its mass to five digits but its GM to six.
This explains how the astronomical unit once worked. Before 2012 it was tied to the Gaussian gravitational constant and so to the Sun’s GM. In 2012 the International Astronomical Union made it a plain length of exactly 149,597,870,700 metres, deleted the Gaussian constant, and asked that the solar mass parameter be measured in SI units. The same resolution notes that this quantity may vary with time.
A GM value also belongs to a time scale. The IAU’s current best estimates list the Sun’s value as 1.32712442099e20 for one scale and 1.32712440041e20 for another, with the same stated uncertainty. The Earth’s is 3.986004418e14 on one scale and 3.986004356e14 on another. The calculator uses the values from the Wikipedia article on the standard gravitational parameter and says which they are.
Two bodies, and a satellite that hangs in the sky
The law as stated treats the small body as massless. Strictly, both bodies circle their shared centre of mass, and GM is replaced by G times the sum of the two masses. The Sun and the Earth have a mass ratio of 0.0000030035, taken here from the ratio of their two GM values. The period shrinks by the factor 0.9999984983, which is 0.9999985 to seven digits. On a 1 au orbit that factor removes about 47 seconds from a period of 31,558,196 seconds. It is negligible for a planet but matters for a binary star, where the masses are comparable. Switch the two-body correction on and the calculator adds the orbiting body’s GM to the central one.
A geostationary satellite shows the law at its most practical. It sits over the equator, moves in the direction the Earth turns, and takes exactly one sidereal day to go round, so it appears fixed in the sky. The Earth’s GM is 3.986004418e14 cubic metres per second squared, and a sidereal day is about 86164.0905 seconds, or 23 hours 56 minutes 4.0905 seconds.
Insert those into the solved form for a and the orbit radius is 42,164 km from the Earth’s centre. Subtract the Earth’s equatorial radius, 6378.1366 km in the IAU numerical standards, and the altitude is about 35,786 km. The speed is 3.0747 kilometres per second.
The sidereal day is shorter than the 86,400 second solar day by about four minutes, because the Earth must turn slightly more than once to bring the Sun back to the same place. The Paris Observatory list of constants gives the conventional value as 86164.0905308 seconds, from a ratio of 1.002737909350795 between the two days. The US Naval Observatory sidereal time formula advances at a matching rate.
Using 24 hours by mistake gives an orbit radius of 42,241 km, which is 77 km too high. A satellite put there would drift slowly against the ground instead of hanging still. Using the sidereal day, the Paris value or the stellar day changes the radius by less than 3 metres, which the page’s display cannot show.
What the law cannot tell you
Kepler’s third law connects a period, a size and a central GM. It does not say where a body is along its orbit, how an eccentric orbit speeds up near the centre, or what happens when a third body pulls on the pair. Those are the jobs of an orbit simulator, not of a calculator.
For a real geostationary satellite, the pull of the Moon and Sun and the Earth’s flattening tilt the orbit by about 0.85 degrees a year at first, so operators correct it regularly. None of that appears in the formula, and the calculator does not pretend to include it. It also claims no real planet’s period or distance, and it does not handle relativity.
The arithmetic itself is the one part worth being fussy about. The calculator keeps 45 significant digits using whole-number arithmetic, so a round trip from period to axis to GM and back agrees to 38 digits or better. The 100-row table of periods against axes runs in a web worker, a background thread that lets the page stay responsive while it works.
That table makes the exponent visible. From 1 au to 100 au the axis grows a hundredfold while the period grows a thousandfold, which is the three halves power at work. Every other pair of values in the table obeys the same rule for the same central body.
Sources
Every source consulted for this guide. Links checked November 10, 2026.
- Kepler's laws of planetary motion Wikipedia
- Standard gravitational parameter Wikipedia
- Astronomical unit Wikipedia
- Orbital period Wikipedia
- Geostationary orbit Wikipedia
- Sidereal time Wikipedia
- Orbits and Kepler's Laws NASA Science
- Sun Fact Sheet NASA Space Science Data Coordinated Archive
- Earth Fact Sheet NASA Space Science Data Coordinated Archive
- CODATA Value: Newtonian constant of gravitation National Institute of Standards and Technology
- IAU Working Group Numerical Standards for Fundamental Astronomy International Astronomical Union
- Resolution B2 on the re-definition of the astronomical unit of length (XXVIII General Assembly, Beijing, 2012) International Astronomical Union (Internet Archive copy)
- USEFUL CONSTANTS Earth Orientation Center, Paris Observatory (hpiers.obspm.fr)
- Computing Approximate Sidereal Time US Naval Observatory
- Web Workers API MDN Web Docs (Mozilla)