Intermediate

Speed of Light Calculator

The speed of light in vacuum is exactly 299,792,458 m/s (~300,000 km/s). In any transparent medium it slows to c/n, where n is the refractive index. Enter n and a distance to find the speed and the travel time of light between any two points.
Vacuum = 1.000, air ≈ 1.0003, water ≈ 1.333, glass ≈ 1.5, diamond ≈ 2.417
e.g. Earth–Moon ≈ 384,400 km; Earth–Sun ≈ 1 AU

Distance unit

Speed in medium
299,792,458m/s

c / n — light slows in any medium with refractive index n > 1

Speed (km/s)
299,792.458 km/s
Speed (km/h)
1,079,252,849 km/h
Fraction of c
100 %
Travel time (ms)
1,282.2204 ms
Travel time (s)
1.2822 s
Travel time (min)
0.0214 min
Travel time (h)
0.000356 h
Electromagnetic wave — speed = c / n in a medium with refractive index n
Step by step
  1. 1

    Speed of light in vacuum (c)

    299,792,458
    Exact SI definition since 1983
  2. 2

    Speed in medium (c ÷ n)

    299,792,458 ÷ 1 = 299,792,458
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Speed of light in vacuum c = 299,792,458 m/s (exact). In a medium with refractive index n, light travels at v = c/n. Travel time t = d/v. Water (n ≈ 1.333): ~75 % of c. Diamond (n ≈ 2.417): ~41 % of c. Earth–Moon light travel time: ~1.28 s.

Formula
v = c / n • c = 299,792,458 m/s (exact) • t = d / v
How this is calculated

Light in vacuum travels at exactly c = 299,792,458 m/s — a value fixed by the 1983 SI definition of the metre, making it a defined constant rather than a measured one. In a transparent medium, photons interact with atoms and re-emit at each one; the net result is a reduced phase velocity v = c/n, where n ≥ 1 is the refractive index of the medium. In air n ≈ 1.0003 (negligibly slower than vacuum); in water n ≈ 1.333 (25 % slower); in crown glass n ≈ 1.52; in diamond n ≈ 2.417 (light travels at about 41 % of c). The refractive index is also wavelength-dependent (dispersion): violet light bends more than red through a prism, which is why white light splits into a spectrum.

The travel-time formula t = d/v lets you calculate how long light takes to traverse any distance. Earth to Moon (384,400 km) takes about 1.28 s in vacuum; Earth to Sun (1 AU ≈ 149.6 million km) about 499 s (8 min 19 s); a round-trip signal to Mars at closest approach (~56 million km) takes about 6.3 min; light from our nearest stellar neighbour, Proxima Centauri (4.24 ly), takes 4.24 years.

Note: the speed here is the phase velocity. The group velocity — at which a light pulse and its energy actually propagate — equals the phase velocity in non-dispersive media but can differ significantly near absorption resonances. No causal signal or massive particle can exceed c in vacuum, but phase velocity in certain anomalously dispersive media can appear to exceed c without violating special relativity.

Frequently asked questions

The speed of light in vacuum (c) is a fundamental defined constant — 299,792,458 m/s exactly by SI definition. Light slows in any transparent medium (v = c/n), but this is not a violation of relativity: it is the macroscopic phase velocity that slows, and no causal information or energy exceeds c.

Vacuum: 1.000 exactly. Air: ≈ 1.0003. Ice: ≈ 1.31. Water: ≈ 1.333. Crown glass: ≈ 1.52. Flint glass: ≈ 1.70. Diamond: ≈ 2.417. Silicon (infrared): ≈ 3.45. Values vary with wavelength (dispersion) and temperature.

The mean Earth–Sun distance is 149.6 million km (1 AU). At c, light covers this in 499 s — about 8 minutes 19 seconds. We therefore see the Sun as it was ~8 min ago; if the Sun vanished, we would not know for over 8 minutes.

Also known as

light speed in medium refractive index
c divided by n optics
electromagnetic wave speed
light travel time distance
speed of light water glass diamond
photon speed medium calculator

APA

TG we-Calculate Editorial Team. (2026). Speed of Light Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/speed-of-light-calculator

Chicago

TG we-Calculate Editorial Team. "Speed of Light Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/speed-of-light-calculator.

IEEE

TG we-Calculate Editorial Team, "Speed of Light Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/speed-of-light-calculator

BibTeX

@misc{wecalculate_speed_of_light_calculator, title = {Speed of Light Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/speed-of-light-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?