Time, Date, Navigation & Astronomy Stellar Distance, Light & Brightness IAU 2012 Resolution B2 and IAU 2015 Resolution B2 unit definitions

Light Travel Time and Light Year Calculator

Give this calculator a distance and it returns how long light takes to cover it; give it a time and it returns the distance light covers in that time. Either way it reports the same separation simultaneously in kilometres, miles, astronomical units, light years and parsecs, so you can move between the units astronomers actually publish without hunting for conversion factors. It runs on c = 299,792,458 m/s, which is exact by definition, and on the IAU definitions of the astronomical unit and the parsec.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
What do you know?Choose which quantity you are entering; the other one is the answer.A distance → find the light travel time
DistanceThe separation between the two points; the default is the mean Earth–Moon distance of 384,400 km.384400 km
Light travel timeHow long the signal is in flight; years are Julian years of exactly 365.25 days.1 years

It returns

  • Light travel time — One-way flight time in vacuum. Double it for a round-trip radio exchange.
  • Light travel time in years
  • Distance
  • Distance in miles
  • Distance in astronomical units
  • Distance in light years
  • Distance in parsecs

The formula

t=dc,d=ct
1 ly=c(365.25×86400)=9.4607304726×1015 m
1 pc=648000π AU=3.0856775815×1016 m

In plain text: t = d / c and d = c · t

  • tOne-way light travel time in vacuum (s)
  • dDistance between the two points (m)
  • cSpeed of light in vacuum, exactly 299,792,458 by SI definition (m/s)

The metre is defined so that c is exact, which makes every conversion on this page a definition rather than a measurement.

Updated Category Stellar Distance, Light & Brightness Verified against published test cases Reading time 10 min

Why astronomers measure distance in time

Light travel time is the only distance unit in astronomy that is also a statement about what you are seeing. When you look at something 500 light years away you are not seeing it as it is; you are seeing the light that left it 500 years ago. That is why the unit survives despite being awkward: it carries the observational caveat inside the number.

The conversion itself is the simplest relation in physics, d = ct. What makes it worth a calculator is that the units astronomers publish in are not the units most people think in, and the factors between them are not memorable. A light year is 9.4607×1012 km. A parsec is 3.2616 light years. An astronomical unit is 499.005 light seconds. Professional papers use parsecs almost exclusively, popular writing uses light years almost exclusively, and spacecraft navigation uses astronomical units and light time, so moving between three communities means moving between three units.

Since 1983 the metre has been defined as the distance light travels in 1/299,792,458 of a second. The speed of light is therefore not a measured quantity with an uncertainty; it is a fixed number, and every conversion on this page is exact to the precision of your input. The astronomical unit was similarly fixed by the IAU in 2012 at exactly 149,597,870,700 m, and the parsec by definition is 648,000/π AU.

The four distance units and where each comes from

The light second is c itself expressed as a distance: 299,792.458 km. It is the natural unit inside the solar system because it tells you directly how long a command takes to reach a spacecraft. The Moon is 1.282 light seconds away, which is why the Apollo air-to-ground tapes have an audible pause of about two and a half seconds on every exchange — the round trip is twice the one-way time.

The astronomical unit is the Earth–Sun distance, now fixed by definition rather than measured: 149,597,870,700 m, or 499.004784 light seconds. Before 2012 it was defined dynamically through the Gaussian gravitational constant, which made it depend on the mass of the Sun and drift as the Sun loses mass to radiation. Fixing it in metres removed that.

The light year is c multiplied by a Julian year of exactly 365.25 days — 31,557,600 seconds — giving 9,460,730,472,580,800 m exactly. Using a Gregorian year of 365.2425 days, or a tropical year, gives a slightly different number; the Julian year is the IAU convention and the one used here. The difference is about 0.002%, which matters only if you are chasing the last digit.

The parsec is defined geometrically, not by light: it is the distance at which one astronomical unit subtends one arcsecond. That makes it 648,000/π AU = 3.0857×1016 m = 3.261564 light years. Astronomers prefer it because it drops straight out of a parallax measurement — distance in parsecs is one divided by the parallax angle in arcseconds, which is exactly what the stellar parallax distance calculator does.

Worked example: how far away is Proxima Centauri in miles?

Proxima Centauri is usually quoted at 4.2465 light years. Convert that to every unit on the page by hand.

  1. Light years to seconds. One light year of travel takes one Julian year, 31,557,600 s. So t = 4.2465 × 31,557,600 = 1.34009×108 s.
  2. Seconds to metres. d = ct = 299,792,458 × 1.34009×108 = 4.0175×1016 m, which is 4.0175×1013 km.
  3. Metres to miles. Divide by 1609.344 m per international mile: 4.0175×1016 ÷ 1609.344 = 2.4963×1013 miles, about 25 trillion miles.
  4. Metres to astronomical units. 4.0175×1016 ÷ 1.495978707×1011 = 268,553 AU. Equivalently, 4.2465 × 63,241.077 = 268,553 AU.
  5. Metres to parsecs. 4.0175×1016 ÷ 3.0856776×1016 = 1.3020 pc. Check it the other way: 4.2465 ÷ 3.261564 = 1.3020. The two routes agree.

The last line is the useful sanity check on any conversion of this kind: compute it once through metres and once through the direct unit ratio, and confirm the answers match before you publish the number.

Light travel time from the Sun to each planet

Distances are mean orbital radii from the NASA planetary fact sheets; times are that distance divided by c.
BodyMean orbital radius (106 km)Light time from the Sun
Mercury57.93.219 min
Venus108.26.015 min
Earth149.68.317 min
Mars228.012.675 min
Jupiter778.543.28 min
Saturn1432.01.327 h
Uranus2867.02.657 h
Neptune4515.04.183 h

These are Sun-to-planet times, not Earth-to-planet times. The distance from Earth to Mars varies between about 0.5 and 2.5 AU over a synodic period, so the Earth–Mars signal delay swings between roughly 4 and 21 minutes.

How to read the result

Round trip is twice the number shown. Every output on this page is one-way. Mission controllers care about round-trip light time because it sets the minimum interval between sending a command and seeing whether it worked. At Mars opposition that is about eight minutes; at conjunction it is over forty.

Light time is a lower bound on any latency. Real signals travel slower than c through fibre — typically around two thirds of it because of the refractive index of glass — and add switching delay on top. For terrestrial network planning, use the light-time figure as the floor no engineering can beat.

Light years are not a good unit past a few hundred million. On cosmological scales the universe expands while the light is in flight, so the distance the photon travelled, the distance to the object now, and the distance implied by its brightness are three different numbers. The calculator warns you above 108 light years for that reason. Redshift-based distances need the redshift and recession velocity calculator instead.

For faint objects, brightness is the practical distance measure. Parallax runs out beyond a few thousand parsecs even for Gaia. Beyond that, astronomers work from apparent and absolute magnitude, which is what the distance modulus calculator handles, and convert to parsecs at the end.

Conversion mistakes worth avoiding

  • Using a calendar year instead of a Julian year. The IAU light year uses 365.25 days exactly. A 365-day year gives 9.4540×1015 m, which is 0.07% short — enough to disagree in the fourth digit of any published figure.
  • Mixing up light years and parsecs by a factor of 3.26. Popular sources quote light years, journals quote parsecs, and the two get copied into the same table more often than they should.
  • Treating a planet's orbital radius as its distance from Earth. Only the Sun sits at a fixed distance from a planet. Earth-to-planet distances vary by a factor of five for Mars and by about 25% for Jupiter over a synodic period.
  • Forgetting the return leg. A two-way ranging measurement or a command-and-acknowledge cycle takes twice the light time shown here.
  • Assuming light travel time equals age of the light for distant galaxies. It does, but the corresponding distance is not the object's present separation from us, which is larger because space expanded during the trip.
  • Using the statute mile. All mile figures here use the international mile of exactly 1609.344 m, the same one used for statute miles in the United States since 1959.

Key terms

Light second
The distance light covers in one second in vacuum: 299,792.458 km exactly.
Astronomical unit (AU)
Exactly 149,597,870,700 m by IAU 2012 Resolution B2, approximately the mean Earth–Sun distance, equal to 499.004784 light seconds.
Light year (ly)
The distance light travels in one Julian year of 365.25 days: 9,460,730,472,580,800 m exactly. A unit of distance, never of time.
Parsec (pc)
The distance at which one astronomical unit subtends one arcsecond: 648,000/π AU = 3.261564 light years.
Round-trip light time
Twice the one-way figure — the minimum delay between sending a signal and receiving its reply.

Related tools and where light time shows up

Light travel time appears in more places than astronomy. GPS receivers solve for position by measuring the light travel time from four or more satellites, where an error of one nanosecond is an error of 30 cm on the ground — and the satellite clocks must be corrected for relativity to keep that error from accumulating. Radar and lidar are the same measurement at short range: light covers 1 metre in 3.3356 nanoseconds, so a 1 cm ranging resolution demands 67 picosecond timing on the round trip.

On the sky, distance and apparent size are linked. An object of known physical size at a known distance subtends a predictable angle, which is what the angular size calculator computes and what sets whether a telescope can resolve it at all. For objects inside the solar system, orbital periods and semi-major axes are tied together by Kepler's third law, so a light-time measurement to a planet doubles as a check on the orbit. And at the extreme end of gravity, the same speed of light that sets these travel times also sets the size of an event horizon — see the Schwarzschild radius calculator, where c2 in the denominator is the reason horizons are kilometres rather than light years across.

One historical note: light travel time was first measured, not assumed. Ole Rømer noticed in 1676 that eclipses of Jupiter's moon Io ran late when Jupiter was far from Earth and early when it was near, and correctly attributed the difference to the time light needed to cross the Earth's orbit. The size of that effect is exactly what this calculator returns for 2 AU: about 16.6 minutes.

Frequently asked questions

How far is one light year in miles and kilometres?

One light year is 9,460,730,472,580.8 km, or 5.8786×1012 miles — about 5.88 trillion miles. It comes from multiplying the exact speed of light, 299,792,458 m/s, by the 31,557,600 seconds in a Julian year of 365.25 days. Because both factors are exact by definition, so is the result.

How long does light from the Sun take to reach Earth?

499.004784 seconds, or 8 minutes 19 seconds, at exactly one astronomical unit. Earth's orbit is slightly elliptical, so the actual figure varies from about 490 s at perihelion in early January to about 507 s at aphelion in early July. The IAU quotes 499.004784 s as the light time for unit distance.

Is a light year a measure of time or distance?

Distance. It is how far light travels in a year, not how long anything takes. The confusion is common enough that science fiction has made a running joke of it. If you want the time, this calculator gives you both at once: a distance of one light year is displayed alongside a light travel time of one year.

Why do astronomers prefer parsecs to light years?

Because a parsec falls directly out of a parallax measurement. Distance in parsecs is simply the reciprocal of the parallax angle in arcseconds, so no conversion factor enters the observation at all. The light year is a communication unit; the parsec is a working one. One parsec is 3.261564 light years.

How long is the radio delay to Mars?

Between about 4 and 21 minutes one way, depending on where the two planets are in their orbits. Earth–Mars separation ranges from roughly 0.5 AU at a close opposition to about 2.5 AU at conjunction, and each astronomical unit is 8.317 light minutes. Double the figure for a command-and-acknowledge round trip, which is why Mars rovers are given routines rather than joystick inputs.

Does light travel slower through fibre optic cable?

Yes, by roughly a third. The speed in a medium is c divided by its refractive index, and silica fibre has an index near 1.47 at telecom wavelengths, giving about 204,000 km/s. This calculator reports vacuum light time, so treat its answer as the absolute floor for any terrestrial link and add both the medium slowdown and switching delay on top.

What year length does the light year use?

The Julian year of exactly 365.25 days, which is the IAU convention. That makes one light year 9,460,730,472,580,800 m exactly. Using a Gregorian year of 365.2425 days would give a value 0.007% smaller, and a tropical year smaller still. Published light-year figures nearly always assume the Julian year, so mixing conventions introduces a discrepancy in the fourth significant figure.

Can I enter a distance in light seconds or light minutes directly?

Yes. The distance field's unit selector includes light seconds and light minutes alongside kilometres, miles, astronomical units, light years and parsecs, so you can enter 1.282 light seconds for the Moon and read the result in kilometres. Entering a value with the light-second unit is the same as entering that value in seconds in the time mode.

References