The speed of light in a vacuum, c = 299,792,458 m/s, is fast but not instant — so every distant thing you see is a snapshot of its past. Use the destination selector below to send light to the Moon, the Sun or Mars and read back the travel time from time = distance / c, then see how n = c/v slows it in a medium.

The Speed of Light

Watch a pulse of light race from Earth to a target. The Moon trip runs at true speed; the far-off Sun and Mars are time-lapsed so you don't wait minutes — but every readout shows the real distance and travel time.

Distance from Earth—
Light travel time—
Elapsed (light-travel)0.00 s

Shown in real time (×1)

t = d / c  ·  c = 299,792,458 m/s

What Is the Speed of Light Simulator?

The speed of light simulator is a free interactive physics lab that runs in your browser — nothing to install and no sign-up. Pick a destination and see the light-travel time from distance/c, why we see the past, and how n = c/v slows light.

How long light takes to reach each destination in the speed of light simulator
DestinationDistance from EarthLight-travel time
Moon384,400 km1.28 s
Sun149.6 million km8 min 19 s
Mars225 million km12 min 31 s

The Speed of Light

Every distant thing you look at is a snapshot of its past. The porch light next door reaches your eyes almost instantly, but the Sun you glance at is already eight minutes old, and a star 100 light-years away shows you the year 1926, not tonight. That delay exists because light, fast as it is, still takes real time to cross space. In a vacuum it travels at c = 2.998 × 10^8 m/s, roughly 300,000 km/s — the same measured value for every observer and the ultimate cosmic speed limit that nothing carrying mass can reach.

This simulation lets you pick a target with the “Choose a destination” selector — the Moon, the Sun, or Mars — and read back the light-travel time, found from time = distance / c. Light needs about 1.3 s to reach the Moon and 8 minutes 19 s to arrive from the Sun. Watch the trap here: a light-year measures distance, how far light goes in one year, and never a stretch of time.

The panel also shows the value of c and the relation n = c/v. Inside a medium, light slows to v = c/n, where the refractive index n is at least 1. It stays quickest in a vacuum and drags in glass or water, and that slowdown is exactly what bends a ray when it refracts. Test the numbers with the refractive index calculator, then try more interactive physics demonstrations.

Where the ideal speed of light picture breaks down

The formula t = d/c is exact. The trouble is d. This panel stores one fixed distance per destination — 384,400 km to the Moon, 225.0 million km to Mars — and both are conveniences. The Moon's orbit is an ellipse, so its true distance runs from roughly 363,000 to 405,000 km and the 1.28 s reading swings by about a tenth of a second either way. Mars is far worse, because the two planets orbit at different rates: the gap between them ranges from about 55 million km at closest approach to about 400 million km when Mars is on the far side of the Sun. The panel's 12 min 31 s is one value out of a range running from roughly 3 minutes to over 22.

The constant is idealised too. c = 299,792,458 m/s is exact by definition, but only in a vacuum, and the space a signal actually crosses is not one. Air alone, with a refractive index near 1.0003, slows light by about 90 km/s. Interplanetary space is a thin ionised plasma that delays a radio signal by an amount depending on its frequency, and when the path grazes the Sun's corona near conjunction the delay and the noise get bad enough that controllers stop commanding spacecraft for weeks at a time.

The relation n = c/v hides something as well. No photon ever travels slower than c. Light crossing glass is absorbed and re-radiated by the atoms it passes, and those re-radiated waves interfere with the original so that the crest of the combined wave advances more slowly. The v = c/n you compute is a property of the medium's collective response, not a slower photon. Nor is n one number per material: it changes with wavelength, which is exactly why a prism splits white light into colours.

Finally the pulse is drawn travelling in a straight line, and gravity does not permit that: mass both bends light and delays it, so a signal grazing the Sun arrives measurably later than d/c predicts.

Where this is actually used

Lunar laser ranging. The Moon setting runs in real time for a reason: the trip is short enough to time directly. Apollo crews left corner-cube retroreflectors on the surface, and observatories still fire laser pulses at them; the echo returns after twice the panel's 1.28 s, about 2.56 s. Timing that return to a fraction of a nanosecond turns, through d = c·t/2, into a distance good to a few millimetres. That is how we know the Moon is receding from us by about 3.8 cm a year.

Driving a rover on Mars. Press Mars and the readout gives 12 min 31 s each way. A command and its acknowledgement are therefore 25 minutes apart, so nobody drives a rover with a joystick; it executes a route planned hours earlier and checks its own footing. Landing is the sharper case. Entry, descent and touchdown take about seven minutes, less than the one-way light time, so by the time the signal saying "entering atmosphere" reaches Earth the spacecraft has already landed or crashed. The sequence has to fly itself.

Satellite navigation. A GPS receiver owns no ruler; it measures time and multiplies by the constant in this panel's footer. That makes 299,792,458 m/s the exchange rate between the two: one nanosecond of clock error is about 30 centimetres of position error, and 20 nanoseconds is 6 metres. It is why the satellites carry atomic clocks, and why their timekeeping is corrected for relativity.

Frequently asked questions

What is the speed of light?

In a vacuum light travels at c = 2.998 x 10^8 m/s, about 300,000 km/s. It is the same for every observer and is the fastest anything can travel; nothing with mass can reach it.

Why do we see distant objects as they were in the past?

Because light takes time to reach us. The Sun we see is about 8 minutes old, and a star 100 light-years away shows light that left it 100 years ago, so we see it as it was then.

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

Distance. A light-year is how far light travels in one year, roughly 9.5 trillion kilometres. It measures length, not time, despite the word year in its name.

Why are the Sun and Mars trips time-lapsed?

Because at true speed you would watch a blank screen for eight or twelve minutes. Only the Moon run plays in real time; the Sun is compressed 200 times and Mars 300 times, and the note under the readouts says which you are watching. The distances and travel times are never compressed - those stay the real values.

How does light slow down in glass or water?

Its speed drops to v = c/n, where n is the refractive index of the medium and is at least 1. Light is fastest in a vacuum and slower in denser media, and that change of speed is what bends a ray when it refracts.

References & formula source

  • Halliday, Resnick & Walker — Fundamentals of Physics, Chapter 33 (Electromagnetic Waves).
  • Young & Freedman — University Physics with Modern Physics, §32.1 (The speed of electromagnetic waves).
  • R. Nave — HyperPhysics, Georgia State University, "Speed of Light" section.
  • Further reading: Speed of light — Wikipedia