Audited 29 Jul 2026·Last updated 28 Oct 2026·6 citations·Tier 1·0 uses

Light Year Calculator

Convert a distance between light-years, parsecs, astronomical units, km, miles, metres and light-minutes, using exact IAU definitions of each unit.

Light Year Calculator

A positive magnitude. Distances are unsigned here — enter 4.2465, not −4.2465. Zero and negative values are rejected.
Unit of the distance you entered
Light-years (ly)
1
The distance in light-years, each the 9,460,730,472,580,800 m that light covers in one Julian year.
Parsecs (pc)
0.3066
Astronomical units (au)
63,241.0771
Kilometres (km)
9,460,730,472,580.8
Miles (mi)
5,878,625,373,183.607
Metres (m)
9.461 × 10¹⁵
Light-minutes
525,960
What scale is this?
Between one light-year and one parsec (1 pc = 3.2615637772 ly).

Background.

A light-year is 9,460,730,472,580.8 kilometres, about 5.88 trillion miles, and unlike most numbers in astronomy that figure is not a measurement. It is the distance light covers in a vacuum in one Julian year, and both ingredients are fixed by definition. The speed of light has been exactly 299,792,458 metres per second since the metre was redefined in terms of it in 1983, and a Julian year is exactly 365.25 days of 86,400 seconds. Multiply the two and you get a whole number of metres: 9,460,730,472,580,800.

The other units offered here are just as exact. The astronomical unit, the ruler for the Solar System, was fixed by the International Astronomical Union in 2012 at 149,597,870,700 m. The parsec, the unit professional astronomers use for stars and galaxies, was defined in 2015 as 648,000/π astronomical units, about 3.2616 light-years. The international mile has been 1,609.344 m since 1959. Converting between them is therefore pure arithmetic, done in one step: your distance becomes metres, and the metres are divided by the length of each unit.

What changes from unit to unit is the question it answers best. Light-minutes and light-years turn distance into delay: sunlight is 8.3167 minutes old when it reaches Earth, and the light now arriving from Proxima Centauri, the nearest star beyond the Sun, left about 4.25 years ago. Parsecs fall straight out of the way stellar distances are measured, by parallax, which is why catalogues and research papers use them. Astronomical units keep Solar-System numbers small enough to compare at a glance.

Because every factor is exact, the only uncertainty in an answer is the uncertainty in the number you type. A distance known to four figures remains a four-figure distance, however many digits appear on the screen.

What is light year calculator?

A light-year (ly) is a unit of length: the distance light travels through a vacuum in one Julian year of 31,557,600 seconds. With c = 299,792,458 m/s that comes to 9,460,730,472,580,800 m exactly, which the IAU publishes as 9,460,730,472,580.8 km. Despite the name it is not a unit of time, and a speed of one light-year per year would simply be the speed of light.

The parsec (pc) comes from geometry. As Earth orbits the Sun, a nearby star appears to shift against much more distant ones, and half of that yearly swing is the star's parallax angle. A star with a parallax of one arcsecond, 1/3,600 of a degree, is one parsec away, which is the distance at which one astronomical unit spans exactly that angle. A radian contains 648,000/π arcseconds, so 1 pc = 648,000/π au = 3.0857 × 10¹⁶ m, or 3.2616 ly. Larger distances are given in kiloparsecs and megaparsecs; a megaparsec is about 3.26 million light-years, and the expansion rate of the universe, the Hubble constant, is quoted in kilometres per second per megaparsec.

The astronomical unit (au) is 149,597,870,700 m, a conventional value close to the average Earth–Sun distance but no longer defined by it. The light-minute, 17,987,547,480 m, and the light-second, 299,792,458 m, are convenient inside the Solar System and for radio delays to spacecraft. None of these is an SI unit. The astronomical unit appears in the SI Brochure's list of non-SI units accepted for use with the SI; the light-year and the parsec do not, although both are standard in astronomy.

How to use this calculator.

  1. Type the distance as a positive number in Distance. Zero and negative values are not accepted, and the largest entry is 10¹² of whichever unit you choose.
  2. Choose its unit under 'Unit of the distance you entered': light-years, parsecs, astronomical units, kilometres, international miles, metres, light-minutes or light-seconds. Star catalogues normally give parsecs; news reports normally give light-years.
  3. Read the light-year figure first and every other unit beneath it. Large values switch to scientific notation, so a metres line reading 4.017 × 10¹⁶ means about 40 quadrillion metres.
  4. For distances inside the Solar System, rely on the kilometre, au and light-minute lines: the light-year and parsec values are then tiny fractions and keep only their leading digits.
  5. Check the scale line, which places the distance between fixed unit boundaries: one light-second, one light-minute, 1 au, 1,000 au, one light-year, one parsec, a kiloparsec and a megaparsec.

The formula.

d(ly) = d(m) ⁄ (c × 31 557 600) · 1 pc = (648 000 ⁄ π) au

Every conversion passes through metres. The distance d you enter must be greater than zero; it is multiplied by the number of metres in its unit and then divided by the number of metres in each output unit: d(target) = d × m(from) ÷ m(target). Nothing is converted from one astronomical unit to another and then onward, so no error can build up along a chain.

The metre values are definitions. 1 ly = c × 31,557,600 s = 299,792,458 × 31,557,600 = 9,460,730,472,580,800 m. 1 au = 149,597,870,700 m, from IAU 2012 Resolution B2. 1 pc = (648,000/π) × 149,597,870,700 m = 3.0857 × 10¹⁶ m, from IAU 2015 Resolution B2; π is the only irrational number involved and is carried to far more digits than any result shows. A light-minute is 60c = 17,987,547,480 m, and a mile is 1,609.344 m.

The 648,000/π in the parsec comes from small-angle geometry. A radian is 180/π degrees and each degree is 3,600 arcseconds, so a radian holds 180 × 3,600/π = 648,000/π, about 206,264.8 arcseconds. At a distance where a baseline of 1 au spans one arcsecond, the distance is the baseline divided by that angle in radians, which is 206,264.8 au.

Two ratios make useful checks. A light-year divided by a light-minute is exactly 525,960, the number of minutes in 365.25 days, so a figure built on a different year length fails it. A parsec divided by a light-year is 3.2616, not a round number, because one unit is defined by an angle and the other by a time.

Results are given to ten decimal places. That is ample from kilometres to megaparsecs but trims very small fractions: one light-second comes out as 3.17 × 10⁻⁸ ly, against 3.169 × 10⁻⁸ in full, and a millimetre shows as 0 ly. For distances that small, the kilometre and au lines hold the precision.

A worked example.

Example

Proxima Centauri is the usual answer to 'how far is the nearest star?', and 4.2465 light-years is the figure to enter. In metres that is 4.2465 × 9,460,730,472,580,800 = 4.0175 × 10¹⁶ m. Dividing by the parsec's 3.0857 × 10¹⁶ m gives 1.3020 pc, and dividing by the astronomical unit gives 268,553.2338 au, so Proxima is about 268,553 times as far away as the Sun. In everyday units that is 40,174,991,951,814.37 km, or 24,963,582,647,224.19 miles: roughly 40 trillion kilometres, or 25 trillion miles. The light-minute line reads 2,233,489.14. Dividing by the 525,960 minutes in a Julian year brings it back to 4.2465 years, the time a radio message would need to get there. The scale line places Proxima between 1 parsec and 1 kiloparsec, the band of nearby stars. The 4.2465 is itself rounded. Gaia's Early Data Release 3 measured Proxima's parallax as 768.0665 ± 0.0499 milliarcseconds, and 1 ÷ 0.7680665 = 1.3020 pc, or 4.2465 ly to four decimals; carried further, the parallax distance is 4.24646 ly. Rounding to 4.2465 moves the star outward by about 2.5 au, which is well inside the roughly 17 au that the parallax uncertainty itself allows.

distance Value4.247
from Unitly

Frequently asked questions.

How many miles and kilometres are in one light-year?
One light-year is 9,460,730,472,580.8 km exactly and about 5,878,625,373,183.6 international miles, a little under 5.88 trillion miles. Both figures follow from definitions, the speed of light, the Julian year and the 1,609.344 m mile, so they are not subject to revision the way measured astronomical quantities are.
If a light-year measures distance, why does its name contain a year?
Because the year is how the length is defined: the distance light travels in that time. The name is useful as well, since it doubles as a travel time. Light from a star 100 light-years away left it 100 years ago, so you see the star as it was then, and light from Proxima Centauri is about 4.25 years old on arrival.
Which year length is used: Julian, tropical or calendar?
The IAU defines the light-year with the Julian year of exactly 365.25 days. A tropical year of 365.24219 days would give 9,460,528,177,426,821 m, about 2.023 × 10¹¹ m shorter, and the Gregorian calendar's average of 365.2425 days would give 9,460,536,207,068,016 m. The three agree to four significant figures, so a mismatch in the fifth digit usually points to the year used.
Why do astronomers work in parsecs rather than light-years?
The parsec comes straight from the measurement. Distance in parsecs is the reciprocal of parallax in arcseconds, so a star with a parallax of 0.1 arcsecond is 10 pc away, with no conversion constant involved. Professional catalogues, and the kiloparsecs and megaparsecs used for galaxies, build on that. Light-years mostly appear in writing for the public.
How does a parallax measurement become a distance here?
Divide 1 by the parallax in arcseconds to get parsecs, then enter that with the unit set to parsecs. Proxima Centauri's 768.0665 milliarcseconds is 0.7680665 arcseconds, so its distance is 1 ÷ 0.7680665 = 1.3020 pc, which converts to 4.2465 ly. The method is reliable for stars near enough to have a parallax that is large compared with its measurement uncertainty.
How many astronomical units fit in a light-year, and in a parsec?
A light-year is 63,241.0771 au and a parsec is 206,264.8062 au. Both follow from exact definitions: the light-year and the astronomical unit are each a fixed number of metres, and the parsec is 648,000/π au. The parsec figure is also the number of arcseconds in a radian, which is no coincidence given how the parsec is defined.
Why was the astronomical unit fixed at exactly 149,597,870,700 metres?
Before 2012 the au was defined through the Gaussian gravitational constant, which made its length in metres a measured quantity that shifted slightly as planetary data improved. IAU 2012 Resolution B2 fixed it at 149,597,870,700 m exactly, turning it into a conventional unit. It remains close to the average Earth–Sun distance, but the two are no longer the same thing by definition.
How long does light take to reach us from the Sun and the Moon?
Enter 1 au and the light-minute line reads 8.3167, which is about 499 seconds. The Moon, at an average of about 384,400 km, is 1.2822 light-seconds away, so a radio exchange with a lunar lander has a round-trip delay of about 2.56 seconds. Mars, by contrast, sits roughly 3 to 22 light-minutes away depending on where the two planets are in their orbits.
Why does a short distance show a light-year value of 0, or so few digits?
Results are given to ten decimal places. One light-second is only 3.169 × 10⁻⁸ ly, so the light-year line keeps three significant figures of it, and anything below about 5 × 10⁻¹¹ ly, roughly 470 km, rounds to 0. The conversion itself is still exact; read short distances from the kilometre, metre or au lines instead.
How long would a spacecraft take to reach Proxima Centauri?
Far longer than light's 4.2465 years. Voyager 1 is leaving the Solar System at roughly 17 km/s; at that speed the 40,174,991,951,814.37 km to Proxima would take about 74,900 years. Divide the kilometre figure by any speed in km/s, then by 31,557,600 seconds per year, to get the travel time in years.

References& sources.

  1. [1]International Astronomical Union, "Measuring the Universe: the IAU and astronomical units" (IAU public archive, retrieved 2026-07-29). States that the astronomical unit is "a conventional unit of length equal to 149 597 870 700 m exactly" per IAU 2012 Resolution B2; that the light-year "is equal to the distance traveled by light in one Julian year in a vacuum", equal to 9,460,730,472,580.8 km or 63,241 au; and that the parsec is "the distance at which one Astronomical Unit subtends an angle of one arcsecond", about 30.857×10¹² km or about 206,000 au. Independent, free to access.
  2. [2]Mamajek, E. E., et al. (2015), "IAU 2015 Resolution B2 on Recommended Zero Points for the Absolute and Apparent Bolometric Magnitude Scales", arXiv:1510.06262 (retrieved 2026-07-29). Resolution text states the parsec is "exactly (648 000/π) au", giving 3.085 677 581 × 10¹⁶ m. Peer-reviewed preprint of an adopted IAU resolution; open access.
  3. [3]NIST/CODATA 2022, "Speed of light in vacuum": c = 299 792 458 m s⁻¹, exact (no standard uncertainty). Retrieved 2026-07-29. Independent standards body; open access.
  4. [4]NIST Special Publication 330 (US edition of the BIPM SI Brochure, 9th ed.), Section 4, Table 8 — non-SI units accepted for use with the SI. Lists "1 au = 149 597 870 700 m" citing the 2012 IAU resolution, and notes that the light-year and parsec are not included in Table 8. Retrieved 2026-07-29. Independent standards body; open access.
  5. [5]European Space Agency, Science & Technology education resource, "Stellar Distances" (retrieved 2026-07-29). States the parsec is "the distance at which an object has a parallax of one arcsecond", that d(parsec) = 1/p(arcsecond), and that "1 parsec = 3.26 light years". Independent of the IAU documents above; open access.
  6. [6]SIMBAD astronomical database (CDS, Strasbourg), object "Proxima Centauri": parallax 768.0665 ± 0.0499 mas, reference 2020yCat.1350....0G (Gaia Early Data Release 3). Retrieved 2026-07-29. Source of the worked example's distance. Independent data centre; open access.

How this page was produced

Published by
Quanta Calculator
Primary sources
6 cited below
Method
d(ly) = d(m) ⁄ (c × 31 557 600) · 1 pc = (648 000 ⁄ π) au
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon