The Distance Light Traveled calculator computes the distance (D) based on the duration of travel (t) and the Speed of Light .
INSTRUCTIONS: Choose the preferred units and enter the following:
Distance Traveled (D): The calculator returns the distance (D) in astronomical units or light years. However, this can be automatically converted to other distance units via the pulldown menu.
The Math / Science
The formula for the distance that light has traveled is:
D = t•v
where:
Astronomical Unit (au): Within our solar system, a common measure of distance is au, which stands for astronomical units. A single astronomical unit is the mean distance from the Sun's center to the center of the Earth. The following picture is NOT to scale.
Astronomical Unit (au)  Distance from Sun (au) 



Light Travel in Time: Light is a primary observable when studying celestial bodies. For this reason, the distance to these objects are measured in the amount of time it would take light to travel from there to the Earth. We can say that an object is one lightyear away, and that means that the object is at a distance where it took an entire year for light from the object to travel to Earth. Since the speed of light is 299,792,458.0 meters per second, one can compute the distance equal to a light year as follows:
1 light year = 299,792,458.0 (meters / second) x 31,536,000 (seconds / year) = 9,460,528,405,000,000 meters
The same exercise can be used for light traveling shorter periods of times, light seconds, light minutes, light hours and light days. Since even these units are not enough when computing distances across the universe, there is also a light relative distance of kilolight years (1000 light years), or the distance light travels in a thousand years!
Light Second  Light Minute  Light Hour  Light Day  Light Year  KiloLight Year 

299,786 km 186,278 miles 0.002 au 
17,987,163 km 11,176,705 miles 0.12023 au 
1,079,229,797 km 670,602,305 miles 7.214 au 
25,901,515,140 km 16,094,455,343 miles 173.14 au 
9,460,528,405,000 km 5,878,499,814,210 miles 63,240 au 0.306 parsecs 
9,460,528,405,000,000 km 5,878,499,814,210,000 miles 63,240,000 au 306 parsecs 
Angle Shift Seen from Earth: Because the Earth goes around the Sun, our observation of distant objects such as stars results in an angular shift when observed at opposite sides of the elliptical orbit. This shift is used as the basis of a unit knows as a parsec. A parsec was traditionally defined as the distance where one astronomical unit subtends an angle of one arcsecond. A parsec was redefined in 2015 to 648000/π astronomical units. Proxima Centauri, is the nearest star to the Sun and is approximately 1.3 parsecs (4.2 lightyears) from the Sun. A megaparsec is a million parsecs.
Parsec  Megaparsec 


