Convert AU to years of orbital period with Kepler’s third law, or find the semi-major axis from a period, with km, miles and light-years shown.

Uses Kepler’s third law with one solar mass unless you set another system mass.

Half the longest diameter of the orbit; not the current distance between the bodies.

System mass (default: one solar mass)
Blank means 1 solar mass. Include both bodies; star mass alone is a useful approximation when the other body is much lighter.

Calculator Functions

FunctionWhat it doesWhat it requires
Orbital period from AUFinds the years one orbit takes for a body whose orbit has a given size in AURequires the orbital semi-major axis in AU
Semi-major axis from yearsFinds the size of the orbit in AU for a body with a given orbital periodRequires the orbital period in Julian years

Both functions take an optional total system mass in solar masses, and a blank means one solar mass, which suits anything orbiting the Sun. Every result lists the period in days and the semi-major axis in kilometers, miles and light-years.

AU to Years Formulas

P = √(a³ ÷ M) [1]
POrbital period in Julian years of 365.25 days
aSemi-major axis of the orbit (AU)
MTotal mass of the two bodies (solar masses)

An astronomical unit is a distance and a year is a time, so the two convert only through an orbit. Kepler’s third law says the square of the orbital period is proportional to the cube of the semi-major axis [1], and the full form of the law divides by the sum of the two masses [2]. Measured against Earth, which orbits one solar mass at 1 AU in one year, the constants cancel and the formula above is left.

Orbital period from AU

An orbit of 5.204 AU around the Sun, about the size of Jupiter’s, takes √(5.204³) = 11.8715 years, or 4,336.07 days. A heavier system orbits faster: 1 AU around a total of two solar masses takes 0.7071 years.

Semi-major axis (AU)Period at one solar mass (years)
0.50.3536
11
1.5241.8814
35.1962
5.20411.8715
1031.6228
1452.3832
30164.3168

Semi-major axis from years

a = ∛(P² × M)

A body that takes 10 years to orbit the Sun has a semi-major axis of ∛(10²) = 4.6416 AU.

For the distance outputs, one AU is 149,597,870.7 km [3] and one mile is 1.609344 km [4]. A light-year is about 63,241 AU [4], so 1 AU is roughly 0.0000158 light-years.

Limits of This Estimate

  • The answer is an orbital period. It is not the time needed to travel a distance of that many AU.
  • The formula treats two bodies alone in space. It leaves out the pull of other bodies and relativistic effects.
  • The semi-major axis is half the longest diameter of the orbit. It equals the distance between the bodies only for a circular orbit.
  • The mass is the total of both bodies. The star’s mass alone is a close approximation when the orbiting body is much lighter.

Sources

  1. NASA Science, Orbits and Kepler’s Laws: Kepler’s third law, period squared in proportion to semi-major axis cubed
  2. NASA Goddard, Imagine the Universe, Deriving Kepler’s Formula for Binary Stars: the form of the third law that includes the sum of the two masses
  3. NIST Special Publication 330, The International System of Units (SI), Section 4, Table 8: the astronomical unit in meters
  4. NIST Special Publication 811, Guide for the Use of the SI, Appendix B.8: the mile in kilometers and the light-year in meters
AU To Years Calculator screenshot