Convert kilometers to light-years

Content last reviewed:

A light-year is 9,460,730,472,580.8 km, so typing that many kilometers into the field gives exactly 1 ly. The converter divides any distance by that number and keeps ten significant digits, even when a dozen zeros come before the first one. You can type the distance in digits, in scientific notation or with a word, such as 25 billion.

km

The field also accepts scientific notation, for example 6.5e-7 or 6.5 × 10⁻⁷.

ly
to

Why are star distances given in light-years?

Kilometers work well on Earth, but star distances in kilometers run into trillions and quadrillions, and strings of digits that long are hard to read. The light-year turns them into numbers you can remember.

A light-year is the distance light travels in a vacuum in one Julian year of 365.25 days[1]. The name also tells you how long a star's light has been on its way. A star 100 light-years away looks the way it looked 100 years ago.

Smaller units are built the same way: the light-second, light-minute, light-hour and light-day. They tell you straight away how long a signal from Earth takes: a command sent to a spacecraft one light-day away arrives 24 hours later[2]. To go from light-years back to kilometers, use the light years to km converter.

Observatory domes on a mountain ridge under a starry sky with the band of the Milky Way, town lights below on the right
Observatory domes on a mountain top with the band of the Milky Way above them and town lights in the valley. The stars in that band are hundreds and thousands of light-years away, so their distances in kilometers would run to well over a dozen digits. Photo: Josh Williams, Unsplash.

How many light-years are in a kilometer?

One kilometer is 0.0000000000001057000834 of a light-year, or 1.057000834 × 10⁻¹³ ly. The minus sign in the exponent tells you to move the decimal point to the left: twelve zeros stand after the point before the digit 1.

The converter shows results like this with ten significant digits, counted from the first digit that is not zero. That way a million kilometers does not collapse to zero but gives 0.0000001057000834 ly. Under the result field the same value appears in the Scientific notation line, rounded to six digits.

How to convert kilometers to light-years: formula and example

Divide the distance in kilometers by the length of a light-year: light-years = kilometers ÷ 9,460,730,472,580.8. To go the other way, multiply: kilometers = light-years × 9,460,730,472,580.8. The constant comes from the speed of light, exactly 299,792,458 m/s[3], multiplied by the seconds in a Julian year.

On November 18, 2026, NASA's Voyager 1 is due to be 25,902,068,356 km, or 16,094,799,096 miles, from Earth, the distance light covers in 24 hours[2]. Dividing gives 0.002737850786 ly. The most distant object people have built has not covered even three thousandths of a light-year.

You can paste a figure from a news story the way it was written. The field reads 25.9 billion as 25,900,000,000 km and 9.46 trillion as 9,460,000,000,000 km.

How many light-years are in a given number of kilometers?

The table gives the converter's results from one kilometer up to interstellar distances. Each result is the number of kilometers divided by 9,460,730,472,580.8, written in full and in scientific notation.
KilometersLight-yearsScientific notation
1 km0.0000000000001057000834 ly1.057000834 × 10⁻¹³ ly
100 km0.00000000001057000834 ly1.057000834 × 10⁻¹¹ ly
1,000 km0.0000000001057000834 ly1.057000834 × 10⁻¹⁰ ly
10,000 km0.000000001057000834 ly1.057000834 × 10⁻⁹ ly
100,000 km0.00000001057000834 ly1.057000834 × 10⁻⁸ ly
1,000,000 km0.0000001057000834 ly1.057000834 × 10⁻⁷ ly
10,000,000 km0.000001057000834 ly1.057000834 × 10⁻⁶ ly
150,000,000 km0.00001585501251 ly1.585501251 × 10⁻⁵ ly
1,000,000,000 km0.0001057000834 ly1.057000834 × 10⁻⁴ ly
10,000,000,000 km0.001057000834 ly1.057000834 × 10⁻³ ly
25,000,000,000 km0.002642502085 ly2.642502085 × 10⁻³ ly
100,000,000,000 km0.01057000834 ly1.057000834 × 10⁻² ly
1,000,000,000,000 km0.1057000834 ly1.057000834 × 10⁻¹ ly
9,460,730,472,580.8 km1 ly1 × 10⁰ ly
10,000,000,000,000 km1.057000834 ly1.057000834 × 10⁰ ly
40,000,000,000,000 km4.228003336 ly4.228003336 × 10⁰ ly
100,000,000,000,000 km10.57000834 ly1.057000834 × 10¹ ly
1,000,000,000,000,000 km105.7000834 ly1.057000834 × 10² ly
1,000,000,000,000,000,000 km105,700.0834 ly1.057000834 × 10⁵ ly
100,000,000,000,000,000,000 km10,570,008.34 ly1.057000834 × 10⁷ ly
Read 1.057000834 × 10⁻¹³ ly as 1.057000834 divided by ten trillion.

How many kilometers and light-years are in a light-second, light-minute and light-day?

Light units are the distance light travels in a vacuum in a given time, so the kilometers follow directly from the speed of light, and the converter worked out the light-years from them. The smallest ones are enough for distances inside the Solar System.
UnitKilometersLight-yearsScientific notation
Light-second299,792.458 km0.00000003168808781 ly3.168808781 × 10⁻⁸ ly
Light-minute17,987,547.48 km0.000001901285269 ly1.901285269 × 10⁻⁶ ly
Light-hour1,079,252,848.8 km0.0001140771161 ly1.140771161 × 10⁻⁴ ly
Light-day25,902,068,371.2 km0.002737850787 ly2.737850787 × 10⁻³ ly
Light-year9,460,730,472,580.8 km1 ly1 × 10⁰ ly
Light reflected from the Moon takes 1.2 to 1.3 seconds to reach the Earth's surface[4], so the Moon is a little over one light-second away.

Which number formats does this converter handle?

Paste the distance the way you have it: with commas between the thousands, with a word like million or billion, in scientific notation or together with the km symbol. The field accepts every one of these formats and converts it by itself, so there is nothing to tidy up before you paste. The table shows what the converter does with each one, and it worked out the results itself.
What you typeWhat the converter showsHow we read it
384,4000.00000004063111206 lyA comma followed by three digits is a thousands separator, so the field converts three hundred eighty-four thousand four hundred kilometers. A note under the field shows the other possible reading, 384.4.
384 4000.00000004063111206 lyA space between the thousands, as printed in many European documents, is skipped over as well.
0.50.0000000000000528500417 lyThe decimal point is read exactly as English writes it, so this is half a kilometer.
150 million0.00001585501251 lyThe word million multiplies the number by a million, so the field converts one hundred fifty million kilometers.
25 billion0.002642502085 lyThe word billion multiplies the number by a thousand million, the way news reports give the distance of space probes.
9.46 trillion0.999922789 lyA trillion is a million million, so the result comes out very close to one light-year.
4e134.228003336 lyScientific notation from a calculator or spreadsheet is read as it stands: 4e13 is 40 trillion kilometers.
4 × 10¹³4.228003336 lyStandard form from a textbook, with a multiplication sign and a superscript exponent, works the same as 4e13.
1/20.0000000000000528500417 lyWe work out a slash fraction ourselves, so half a kilometer needs no conversion to 0.5 first.
2½0.0000000000002642502085 lyThe ½ character copied from a document is added to the number in front of it.
150,000,000 km0.00001585501251 lyA unit symbol pasted along with the number is left out and only the number is converted.

How to convert kilometers to light-years in Excel

A column of distances in kilometers takes one formula, and the Scientific format shortens results with long runs of zeros.

  1. The CONVERT function in reverse

    Excel knows the light-year as "ly" and kilometers as "km"[5]. For a distance in cell A1, type =CONVERT(A1,"km","ly") or divide by the constant with =A1/9460730472580.8.
  2. Scientific format for small results

    To give every result in the column the same exponent form, select the cells and apply the Scientific format from the Number group on the Home tab[6]. One kilometer then shows as 1.06E-13, where E-13 means divided by 10¹³.

Convert Kilometers to other units

Sources

  1. Measuring the Universe: The IAU and astronomical units — International Astronomical Union
  2. Voyager 1: What Is a Light-Day? — NASA
  3. The International System of Units (SI Brochure) — BIPM
  4. Light-year — Wikipedia
  5. CONVERT function — Microsoft
  6. Display numbers in scientific (exponential) notation — Microsoft
  7. Resolution B2 on the re-definition of the astronomical unit of length — International Astronomical Union

Every figure in the tables was computed from the unit definitions and checked arithmetically before publication. Historical values and the names of local units come from the sources listed above.

Content last reviewed: · written and checked by the Arteon team

Common questions about converting kilometers to light-years

How many light-years away is the Sun?

About 0.0000158 of a light-year. The astronomical unit, roughly the average distance between the Earth and the Sun, is exactly 149,597,870.7 km[7], which divides out to 0.00001581250741 ly. Light takes about 499 seconds, or 8.32 minutes, to cover it[4]. The km to au converter handles distances inside the Solar System.

How many kilometers away is the nearest star?

Proxima Centauri, the nearest known star after the Sun, is about 4.24 light-years away[4]. That is roughly 40.1 trillion kilometers, and the converter going the other way gives the exact figure for any number of light-years.

Is a light-year longer in a leap year?

No. The light-year is worked out from the Julian year, which always has 365.25 days[1]. That extra quarter of a day stands for one leap day every four years, so the length of a light-year does not depend on the calendar.

Arteon free tool screenshot: Convert kilometers to light-years

Have a question or suggestion?

If a distance you need is missing from the tables or you spot a mistake in a result, write to us.