Want a Custom tool for Yourself?

Need a Custom Tool? We build custom tools that can save hours per employee per day.

Light Year Calculator

Convert time and light speed into distance in light years, or reverse it to find travel time. Helpful for astronomy scale comparisons.

Light Year Calculator




Result will appear here...


Last updated: May 10, 2026

Created by: Eon Tools Dev Team

Reviewed by: Bibek Lal Karna



What the light year calculator does

A light-year is the distance light travels in a year, the standard yardstick for cosmic distances. This calculator computes a distance from the speed of light and a span of time, letting you turn any amount of time into the distance light covers, expressed in light-years or many other units.

Below is what a light-year is, why it measures distance rather than time, the equation behind it, and a worked example.

How to use it

  1. Confirm or adjust the speed of light, which is set to its standard value and cannot exceed it.
  2. Enter a span of time, from seconds to billions of years.
  3. Press Calculate for the distance light travels, in light-years and other units, or Reset to clear it.

What a light-year is

A light-year is the distance that light, travelling at its constant enormous speed, covers in one year. Since light moves about 300,000 kilometres every second, in a full year it travels roughly 9.5 trillion kilometres, an almost unimaginable distance. That single span is what one light-year represents. It is the natural ruler for astronomy, because the distances between stars and galaxies are so vast that ordinary units like kilometres become unwieldy strings of digits.

Using light-years tames those numbers and, better still, makes them meaningful. Saying a star is four light-years away tells you both how far it is and how long its light took to reach you. The unit ties distance directly to the travel time of light, which is why astronomers reach for it constantly. This calculator builds a distance from the speed of light and a chosen time, showing how far light ranges over spans from seconds to the age of the universe.

A unit of distance, not time

The single most common misunderstanding about the light-year is to think it measures time, misled by the word year in its name. It does not. A light-year is a unit of distance, exactly like a kilometre or a mile, just enormously larger. The year in the name refers to how the distance is defined, the span light crosses in a year of travel, not to any duration. Saying something is a light-year away is like saying it is a certain number of kilometres away, not a number of years away.

This distinction matters for understanding astronomy correctly. When a galaxy is said to be a million light-years distant, that is a statement about how far away it is, a measure of space. It does happen to follow that the galaxy's light took a million years to reach us, which is why looking far into space is also looking far back in time, but the light-year itself is firmly a measure of distance. The calculator reinforces this by taking a time and a speed and returning a distance, the quantity a light-year actually is.

The equation it uses

The distance is simply the speed of light multiplied by the time:

distance = speed of light × time

This is the basic relationship between speed, time, and distance, applied with the speed fixed at the speed of light. Multiply the speed of light by one year and you get one light-year; multiply it by a thousand years and you get a thousand light-years. The calculator performs this multiplication and then expresses the result in whichever distance unit you choose, from kilometres to light-years to megaparsecs, so you can read cosmic distances at any scale.

The scale of the universe

Light-years lay bare the staggering scale of the cosmos. The nearest star beyond the Sun is about four light-years away, meaning its light takes four years to reach us, and it is among our closest neighbours. Our entire Milky Way galaxy spans about 100,000 light-years, so light takes a thousand centuries just to cross it. The nearest large galaxy, Andromeda, lies about 2.5 million light-years off, and the most distant objects we can see are billions of light-years away.

These distances also turn telescopes into time machines. Because the light from a faraway object set out long ago, we see the object as it was when that light departed, not as it is now. Andromeda appears to us as it was 2.5 million years ago; the most distant galaxies, as they were in the early universe. The light-year, by tying distance to light's travel time, makes this profound idea concrete, and the calculator lets you explore these spans, from the few light-years to nearby stars out to the billions that reach the edge of the observable universe.

Units and precision

The calculator fixes the speed of light at its standard value, refusing anything faster, and takes a time in units from seconds to billions of years, even the age of the universe. It returns the distance across a wide range of units, from millimetres to light-years, parsecs, and megaparsecs, which suits everything from everyday to intergalactic scales. The calculation is an exact multiplication, and results carry several significant figures.

A worked example

Take one year as the span of time, with light travelling at its usual speed of about 299,792,458 metres per second.

The distance is speed of light × time ≈ 9.46 trillion kilometres, which is one light-year by definition, about 9.46 × 10¹² kilometres. Over four years, light covers about four light-years, the distance to the nearest star beyond the Sun, and over 100,000 years it crosses the full width of our galaxy. Each is the speed of light multiplied by the chosen time.

Questions people ask

What is a light-year?

The distance light travels in one year, about 9.46 trillion kilometres. It is the standard unit for measuring the vast distances between stars and galaxies.

Is a light-year a measure of time or distance?

Distance. Despite the word year in its name, a light-year measures how far light travels in a year, not a duration. It is a unit of distance like a kilometre, only far larger.

How is a light-year calculated?

Multiply the speed of light by one year, distance = speed × time. Light's speed of about 300,000 kilometres per second over a year gives roughly 9.46 trillion kilometres.

Why does a distant object show us the past?

Because its light took time to reach us, so we see it as it was when the light left. An object a million light-years away appears as it was a million years ago.

References

A quick note on where this comes from. The light-year as a unit of distance and the speed of light are standard astronomy, described by NASA and following the definitions of the International Astronomical Union. The Wikipedia article on the light-year gives a clear overview. The speed of light follows the US National Institute of Standards and Technology.

  1. NASA, What Is a Light-Year? https://science.nasa.gov/exoplanets/light-years/
  2. Wikipedia, Light-year. https://en.wikipedia.org/wiki/Light-year
  3. National Institute of Standards and Technology (NIST), Fundamental Physical Constants, Speed of light in vacuum. https://physics.nist.gov/cgi-bin/cuu/Value?c


Bibek Lal Karna

Bibek Lal Karna is a PhD student and graduate teaching assistant at the University of Mississippi, with deep interests in theoretical and gravitational physics. He is also the founder of NRCC and is strongly engaged in scientific teaching and communication. At Eon Tools, he reviews physics tools.