Light Year Distance Calculator

Exact definitions, every digit shown.

  • Exact IAU values
  • Parallax to distance
  • Scale ladder
A round black tray on a wooden table holding four glowing white beads spaced along a thin curved wooden rod

The guide

The light-year is an exact number of metres. The distance to a star is not.

The astronomical unit, the light-year and the parsec are now defined quantities with exact conversions, so the only real doubt in a cosmic distance is the measurement.

  • 149 597 870 700 metres one astronomical unit, exact since the IAU vote of 2012
  • 9 460 730 472 580 800 metres in one light-year, exact from the Julian year and c
  • 648 000 divided by pi astronomical units in one parsec, as the IAU restated in 2015
  • 768.5 milliarcseconds parallax of Proxima Centauri in the NASA Exoplanet Archive
Read the full guide Fold the guide 7 min · 19 sources

Astronomy keeps several units of length in daily use, and not because astronomers enjoy conversions. The distances simply refuse to fit one scale. The Moon orbits Earth at a semimajor axis of about 384 400 kilometres, a number a person can still picture. The Sun sits at a mean distance of about 149.6 million kilometres. Neptune circles the Sun about thirty times farther out again. Past that, kilometres stop helping anyone.

Each unit earns its place by keeping the numbers small inside one range. The astronomical unit suits the planets. The light-year and the parsec suit the stars and the galaxy. Millions of light-years, or megaparsecs, suit the galaxies beyond our own: the Andromeda Galaxy, the nearest major galaxy to the Milky Way, is about 2.5 million light-years away.

What has changed recently is quieter than any discovery. All three of the big units are now defined, not measured. That means every conversion between them can be done exactly, to as many digits as anyone wants, and the only real uncertainty left in a cosmic distance is the measurement of the object itself. Most converters, and most remembered figures, still blur that line.

Three units, three definitions

The astronomical unit began as the mean distance between Earth and the Sun, and under the IAU 1976 system of astronomical constants its definition rested on the Gaussian gravitational constant, a quantity from the dynamics of the solar system. In 2012 the General Assembly of the International Astronomical Union voted to cut that link. Resolution B2 recommends that the astronomical unit be a conventional unit of length equal to 149 597 870 700 metres exactly, used with every time scale, that the Gaussian constant be dropped from the system of astronomical constants, and that its symbol be “au”. The BIPM lists the same value in its table of units accepted for use with the SI.

The light-year rests on two other definitions. Since the metre is defined through the speed of light, that speed is exact: 299 792 458 metres per second, one of the defining constants of the SI. The year in a light-year is the Julian year of astronomy, exactly 365.25 days of 86 400 seconds, or 31 557 600 seconds. Multiply the two and one light-year comes out at exactly 9 460 730 472 580 800 metres, a whole number with nothing hidden after it.

The parsec is the odd one. It is defined as exactly 648 000 divided by pi astronomical units, a definition the IAU restated in a footnote to Resolution B2 of 2015 when it fixed the zero points of the bolometric magnitude scale. Because pi is irrational, a parsec expressed in metres never ends. The same footnote gives it as 3.085 677 581 times ten to the sixteenth metres and then simply trails off.

Reference tables round these values for everyday use. The NIST guide to SI conversion factors lists the light-year as 9.460 73 times ten to the fifteenth metres and the parsec as 3.085 678 times ten to the sixteenth, and prints neither in the bold type it keeps for exact factors. The international mile, 1 609.344 metres, gets the bold. Rounding of that kind is fine for engineering. It is not fine when the whole question is how many digits are real.

So a careful converter works with fractions rather than floating point numbers. A light-year in kilometres is exactly 9 460 730 472 580.8, and the calculator on this page prints all of it. A light-year in astronomical units does not terminate, so it is rounded and labelled as repeating: 63 241.077 084 266 and on. Anything that touches the parsec passes through pi and says so.

Parallax, and where the parsec gets its name

As Earth moves around the Sun, a nearby star appears to shift against the far more distant background. Half of that annual wobble, the angle that one astronomical unit of baseline subtends at the star, is its parallax. The parsec is the distance at which that angle is exactly one arcsecond. The British astronomer Herbert Hall Turner coined the name in 1913, short for a distance corresponding to a parallax of one second. A half circle holds 648 000 arcseconds, which is where the number in the definition comes from, and dividing by pi converts it to radians.

The rule that follows is short. Distance in parsecs is one divided by the parallax in arcseconds. Half an arcsecond means two parsecs; a tenth of an arcsecond means ten.

The angles are tiny, which is why the first successful measurements only came between 1832 and 1838, when Thomas Henderson, Friedrich Georg Wilhelm von Struve and Friedrich Bessel measured Alpha Centauri, Vega and 61 Cygni. In 2020 the New Horizons spacecraft, billions of kilometres from Earth, made the first interstellar parallax measurement of Proxima Centauri and Wolf 359 by comparing its view with telescopes at home.

Here is a worked example you can repeat in the tool. The NASA Exoplanet Archive lists the parallax of Proxima Centauri as 768.5 milliarcseconds with an uncertainty of 0.203. That is 0.7685 arcseconds, and one divided by 0.7685 gives 1.301 parsecs, or about 4.244 light-years. Inverting the parallax plus and minus its uncertainty gives a range from about 1.3009 to 1.3016 parsecs. The archive’s own listed distance, 1.30119 parsecs, sits inside that range. The fractional uncertainty here is about 0.00026.

Light time is looking back

The light-year has a second reading that the other units lack. Because it is defined as the distance light covers in one Julian year, a distance in light-years is also a time: the number of years the light now arriving took to make the trip. The calculator shows that time for whatever distance is entered.

Close to home the numbers are short. Light from the Moon takes about 1.28 seconds. Light from the Sun, crossing one astronomical unit, takes 499.004 783 836 seconds, a little over eight minutes and nineteen seconds, and that figure is exact in the same sense as the definitions, since it is one fixed length divided by one fixed speed. Sunlight takes about four hours to reach Neptune. Light from Proxima Centauri takes a little over four years.

Further out, the numbers become history. NASA puts the galactic centre around 25 000 light-years away and the Tarantula Nebula at 170 000. Light now arriving from the Andromeda Galaxy set out about 2.5 million years ago.

There is a limit to this simple picture, and it matters. Over cosmological distances the universe expands while the light is in transit, and there is no longer one obvious meaning of distance. Cosmologists use several measures, among them the comoving distance, the luminosity distance, the angular diameter distance and the light-travel distance, and each is computed from the redshift and a model of expansion. The light time on this page is plain distance divided by the speed of light. That is the right reading for the galaxy and its near neighbours, and it is not a cosmological distance.

What a distance from parallax cannot tell you

The definitions are exact. The sky is not. A parallax is a measurement, and its uncertainty does not pass through the inversion politely. In their guide to the second Gaia data release, Xavier Luri and colleagues explain that taking one over the parallax is unbiased only when the fractional uncertainty is vanishingly small, and becomes significantly biased once that fraction goes beyond about 0.1. A symmetric error in the angle turns into a lopsided error in the distance, with a long tail on the far side.

That is why the parallax panel reports the fractional uncertainty and raises a warning above 0.1, and why its range can run to “no upper bound” when the uncertainty is as large as the parallax itself. Negative parallaxes do occur in real catalogues. They give no distance by inversion, yet the same authors show they still carry information, and they recommend Bayesian methods instead. Those methods need a prior, such as an assumed space density of stars, which a converter cannot supply.

Published distances to bright, famous objects carry the same caveat in plainer words. NASA gives the Pleiades as about 445 light-years and adds that the number is not universally agreed upon. The galactic centre is “around” 25 000 light-years. Converting such a figure to metres with sixteen exact digits does not make it more certain. It only makes the false precision harder to spot.

The tool therefore asks one question before it prints anything: is the number you typed exact, or measured? An exact input, such as one light-year or one parsec, gets every digit that the definitions support, with a note wherever a result repeats or passes through pi. A measured input keeps the significant figures it came with, so 4.24 light-years stays at three figures in every unit, however long the exact conversion factor behind it.

That split is the whole point of the modern definitions. The astronomical unit, the light-year and the parsec no longer move when the solar system is measured better. They are fixed rulers, and the arithmetic between them is exact. What remains uncertain is where the stars and galaxies actually are, and that uncertainty belongs to the measurement, not to the unit.

Sources

Every source consulted for this guide. Links checked October 24, 2026.

  1. Resolution B2 on the re-definition of the astronomical unit of length International Astronomical Union, XXVIII General Assembly (2012)
  2. Resolution B2 on recommended zero points for the absolute and apparent bolometric magnitude scales International Astronomical Union, XXIX General Assembly (2015)
  3. The International System of Units (SI), 9th edition Bureau International des Poids et Mesures
  4. NIST Guide to the SI, Appendix B.8: Factors for Units Listed Alphabetically National Institute of Standards and Technology
  5. Light-year Wikipedia
  6. Parsec Wikipedia
  7. Astronomical unit Wikipedia
  8. Julian year (astronomy) Wikipedia
  9. Stellar parallax Wikipedia
  10. Distance measure Wikipedia
  11. Gaia Data Release 2: using Gaia parallaxes arXiv (X. Luri, A. G. A. Brown, L. M. Sarro, F. Arenou, C. A. L. Bailer-Jones and others)
  12. alf Cen | NASA Exoplanet Archive NASA Exoplanet Archive
  13. Moon Fact Sheet NASA Space Science Data Coordinated Archive
  14. Sun Fact Sheet NASA Space Science Data Coordinated Archive
  15. Neptune Fact Sheet NASA Space Science Data Coordinated Archive
  16. Messier 45 (The Pleiades) NASA Science
  17. NASA's Webb Reveals New Features in Heart of Milky Way NASA Science
  18. Caldwell 103 NASA Science
  19. Messier 31 (The Andromeda Galaxy) NASA Science