Speed of Light Calculator

Find the speed of light in vacuum or a transparent medium (v = c/n) and calculate how long light takes to cross any distance (t = d/v).

Quick Facts

Speed in vacuum
c = 299,792,458 m/s
Exact by definition since the 1983 redefinition of the meter.
Speed in a medium
v = c / n
n is the refractive index; light slows down as n increases.
Wave relation
c = f × λ
Frequency times wavelength equals the speed of light.
Light-year
1 ly ≈ 9.461 × 10¹⁵ m
Distance light travels in vacuum in one Julian year (365.25 days).

Your Results

Calculated
Speed of Light in Medium
-
v = c ÷ n, in meters per second
Speed (km/h and mph)
-
Same speed converted to km/h and mph
Light Travel Time
-
t = distance ÷ speed, for your entered distance
Percent of Vacuum Speed
-
100 × (1/n) — how much slower than c

Ready

Enter a distance, unit, and medium, then press Calculate.

Formula and Method for the Speed of Light Calculator

The speed of light in a vacuum, denoted c, is one of the most precisely known constants in physics: c = 299,792,458 meters per second, exactly, by definition. Since 1983 the meter itself has been defined as the distance light travels in vacuum during 1/299,792,458 of a second, so c carries zero measurement uncertainty. Inside a transparent medium — air, water, glass, or diamond — light travels slower, at v = c / n, where n is the medium's refractive index. This calculator uses that relationship, along with the entered distance, to find the light speed in your chosen medium and the time light needs to cross that distance.

How the calculation works

Enter a distance and choose its unit (meters, kilometers, miles, astronomical units, or light-years); the calculator converts it to meters using exact conversion factors (1 AU = 149,597,870,700 m; 1 light-year = 9,460,730,472,580,800 m). It then looks up the refractive index n for the medium you selected and computes the local speed v = c / n. Dividing the distance in meters by v gives the travel time, t = d / v, which is auto-formatted into nanoseconds, seconds, minutes, hours, days, or years depending on scale. The calculator also reports v converted to km/h and mph, and the percentage of the vacuum speed the light is actually achieving, 100 × (1/n).

Common mistakes

  • Using the vacuum value inside a medium: plugging c = 299,792,458 m/s directly into a travel-time calculation for light moving through glass or water overstates the true speed and understates the travel time — always divide by n first.
  • Confusing light-years with years: a light-year measures distance (how far light travels in one year), not a duration. "4.2 light-years away" is a distance, not a wait time.
  • Treating refractive index as fixed: n varies slightly with wavelength (dispersion) and temperature; the values used here are typical textbook figures for visible light, not universal constants.

Real-world applications

  • Astronomy uses light-travel-time distances routinely — the Sun is about 8 light-minutes from Earth, and Proxima Centauri is about 4.2 light-years away.
  • Fiber-optic and telecom engineers estimate network latency from the speed of light in glass fiber (roughly c/1.5 ≈ 200,000 km/s), which sets a hard floor on round-trip signal delay.
  • Optical and lens design relies on refractive-index differences between materials to control how light bends and focuses.
  • Satellite navigation (GPS) and radar systems depend on precise light/radio propagation-delay calculations to convert signal timing into distance.

Frequently Asked Questions

What is the exact speed of light in a vacuum?
c = 299,792,458 meters per second, exactly, by definition. Since 1983 the meter has been defined as the distance light travels in vacuum in 1/299,792,458 of a second, so this value carries no measurement uncertainty.
Does light travel slower in water, glass, or diamond?
Yes. Inside a transparent medium, light travels at v = c/n, where n is the medium's refractive index. Water (n ≈ 1.33) slows light to about 225,000 km/s, glass (n ≈ 1.52) to about 197,000 km/s, and diamond (n ≈ 2.42) to about 124,000 km/s.
How long does light take to travel from the Sun to Earth?
About 8 minutes 19 seconds (499 seconds), covering the average Sun-Earth distance of 1 astronomical unit (about 149.6 million km) in vacuum.
What is a light-year, and is it a unit of time?
A light-year is a unit of distance — about 9.461 trillion kilometers — equal to how far light travels in vacuum in one Julian year (365.25 days). It is not a unit of time, despite the name.