Solve
Choose the known value, type a number and select the units. Times refer to light or radio in a vacuum.
Loading tool…
Quick guide
Understand the calculation
Convert a distance between astronomical units (au), light-years (ly), parsecs (pc, kpc, Mpc, Gpc), kilometers and light distances, and read how long light takes to cover it. You can also start from the travel time of a light or radio signal, one way or round trip as in a radar echo, to get the distance to the target.
When to use this tool
Use it to read a distance from a text or an exercise in another unit: au to kilometers, parsecs to light-years or megaparsecs to light-years. The au is convenient for planetary scales; the light-year and the parsec, for distances between stars; kpc, Mpc and Gpc, for galaxies and larger scales. It also helps to interpret a communication delay: how long a signal takes to cover a distance, or how far away a target is when its echo takes a given time to return.
How it is calculated
Choose the known value. With “Distance”, type the number, choose its unit and the output unit: the result updates instantly and the one-way light time, d/c, appears below. With “Light travel time”, say whether the time is one way or the total round trip: the distance to the target is c × t in the first case and c × t ÷ 2 in the second. That is why an echo that takes 10 min to return corresponds to half the distance of a signal that takes 10 min to arrive. The definitions are exact: c = 299792458 m/s, 1 au = 149597870700 m, 1 light-year = c × 1 Julian year of 365.25 days and 1 pc = 648000/π au. Because π cancels, 1 kpc = 1000 pc exactly; by contrast, 1 pc ≈ 3.26156 ly. “How it is calculated” shows the operation with your value and “Equivalents”, the same distance in all 12 units. Swap inverts the units and keeps the number: 2 pc → ly becomes 2 ly → pc. You can view 6 or 10 significant figures; more figures change the rounding, not the precision of the data. The sign ≈ means the decimal shown is rounded.
Light time assumes propagation in a vacuum over a fixed distance. The round trip assumes the same path and an immediate response: it includes no receiver delay and no motion of the endpoints. Converting megaparsecs to light-years is a length conversion: the time d/c shown with it is not the time elapsed since a galaxy emitted its light, because it does not include the expansion of the universe. The tool does not compute current distances to planets or probes, which depend on the date and the observer, and it does not handle parallax, magnitudes or redshift. Negative values are not accepted. If a result falls outside the available range, “—” is shown; choose another unit or check the equivalents.
Worked examples
- Astronomical units to kilometers
30 au × 1.495978707e+8 = 4.487936121e+9 km - Parsecs to light-years
1 pc ≈ 3.26156 ly - One-way time to distance
1 s × 299792.458 km/s = 299792.458 km - 10-minute echo (round trip) to distance
10 min × 0.120239 au/min ÷ 2 ≈ 0.601197 au - Multiples of the parsec
1 kpc = 1000 pc; 1 Mpc ≈ 3.26156e+6 ly - Light time for 1 au
one way ≈ 8.31675 min; round trip ≈ 16.6335 min
Frequently asked questions
Is a light-year a unit of time?
No, it is a length: the distance light travels in a vacuum during one Julian year, 9460730472580800 m, about 9.46 trillion kilometers.
Which year does the light-year use?
The Julian year of 365.25 days of 86400 s, that is, 31557600 s. It is the IAU convention; it is neither the tropical year nor a calendar year.
What is a parsec?
It corresponds to the distance at which one astronomical unit subtends an angle of one arcsecond. Since 2015 the IAU defines it exactly as 648000/π au: about 3.26156 light-years or 3.08568e+16 m. The multiples kpc, Mpc and Gpc are one thousand, one million and one billion parsecs.
Can I get the current distance to a planet?
Not with this tool. The distance between Earth and a planet changes continuously with their orbits: it depends on the date and on the observer, and it comes from ephemerides. Here you convert a distance you already know; the examples are numbers for calculation, not current measurements of an object.
Does the light time to a galaxy tell how long ago its light left?
Not necessarily. d/c is the time light would take to cover that distance if it were fixed. On cosmological scales the universe expands while the light travels, and there are several definitions of distance (comoving, luminosity, light-travel time) that require a cosmological model. This tool does not compute them.
What does Swap do, and what changes with 10 figures?
Swap inverts the input and output units and keeps the number you typed: 2 pc → ly becomes 2 ly → pc. Showing 10 figures only changes how the result is rounded: the definitions are exact, but more figures do not improve the precision of the value you entered.