# Light travel time calculator > How long does light take to get there? Light time from Earth to the Moon, the Sun, the planets, nearby stars or any distance, and what a car at 100 km/h would need. How long light takes to travel from Earth to the Moon, the Sun, a planet, a nearby star or any distance you enter, with the round trip and a comparison. - Page: https://how.box/light-travel/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/light-travel/?to={to}&near={near}&d={d}&u={u} - `to` (moon, sun, mercury, venus, mars, jupiter, saturn, uranus, neptune, proxima-centauri, alpha-centauri-a, barnards-star, sirius-a, tau-ceti, vega, polaris, betelgeuse or custom): moon, sun, a planet, a star id or custom. Example: `moon`. - `near` (closest or farthest): For a planet: closest or farthest. Example: `closest`. - `d` (number 0 to 1e12): Custom distance in the unit. Example: `1`. - `u` (km, au or ly): km, au or ly. Example: `ly`. Example answer: https://how.box/light-travel/?to=moon&near=closest&d=1&u=ly A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `light_travel_calculate`: How long light takes to travel from Earth to the Moon, the Sun, a planet, a nearby star or any distance (t = d / c). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"light_travel_calculate","arguments":{"target":"moon","approach":"closest","distance":1,"distance_unit":"ly"}}}` - GET: https://how.box/mcp/run/light_travel_calculate?target=moon&approach=closest&distance=1&distance_unit=ly ## How it works Light is the fastest thing there is, and still space is so large that it takes time to cross it. The light from the Moon is 1.3 seconds old when it reaches you, sunlight 8 minutes and 19 seconds, and the light of the nearest star other than the Sun more than four years. So when you look at the sky you see the past. The time is t = d / c, where d is the distance and c = 299 792 458 m/s is the speed of light in a vacuum. The Moon, 384 400 km away on average, gives 384 400 / 299 792 = 1.28 s; the Sun, 149.6 million km (1 au), gives 499 s. A light-year is the distance light covers in a year, 9.46 trillion km, so a star 4.25 light-years away is 4.25 years of light time. For a planet the distance varies from its closest to its farthest approach, so the tool gives both ends. The distances are averages or extremes from NASA's planetary fact sheet and from star catalogues, rounded; light is assumed to travel in a straight line through empty space. Messaging delays on a real spacecraft link also include equipment time. Sources: BIPM SI brochure, NASA Planetary Fact Sheet, SIMBAD and RECONS. ## FAQ **Why does Mars have two answers?** Earth and Mars orbit at different speeds, so their distance varies from about 55 million km to about 400 million km. The light time ranges from 3 to 22 minutes. **What is a light-year?** The distance light travels in one Julian year, about 9.46 trillion km. It measures distance, not time, but equals a light time of one year. **Is the Sun I see the Sun of now?** You see it as it was 8 minutes and 19 seconds ago. If the Sun vanished, we would notice nothing for that long. **How long would it take to drive to the Moon?** At 100 km/h without stopping, 3844 hours, about 160 days. The tool shows this for any distance. **Does light really travel at a constant speed?** In a vacuum, yes: 299 792 458 m/s for every observer. In air, water or glass it is a little to a lot slower, but space is nearly empty. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)