Speed of Light Calculator – Time, Distance & Speed in Media
Calculate travel time, distance, or speed of light in any medium using the refractive index. Covers vacuum, water, glass, and custom materials.
Select what you want to calculate, enter the known values, and optionally set a refractive index for media other than vacuum.
Speed of Light Calculator – Time, Distance & Speed in Media
Calculate travel time, distance, or speed of light in any medium using the refractive index. Covers vacuum, water, glass, and custom materials.
About the Speed of Light Calculator
The speed of light in a vacuum, denoted c, is exactly 299,792,458 metres per second by definition — the metre is defined in terms of c since 1983. This value is a universal constant: it is the maximum speed at which information, energy, or matter can travel through space, and it is the same for all observers regardless of their relative motion, a cornerstone of Einstein's special theory of relativity.
Light does not always travel at c. When it passes through a medium — water, glass, air, or any transparent substance — it interacts with the material's atoms and slows down. The ratio of c to the speed of light in the medium is the refractive index n: v = c / n. In vacuum n = 1 exactly; in water n ≈ 1.33 so light travels at about 225 million m/s; in glass n ≈ 1.5 so light travels at about 200 million m/s; in diamond n ≈ 2.42 so light is slowed to about 124 million m/s.
This calculator supports three calculation modes. In Travel Time mode, you enter a distance (in metres, kilometres, miles, or light-years) and the refractive index, and the calculator returns the time taken for light to cover that distance in the medium. In Travel Distance mode, you enter a time interval and the medium, and the calculator returns how far light travels in that time. In Speed in Medium mode, you enter only the refractive index and instantly see the phase velocity of light in that material.
Astronomical distances are naturally measured in light-travel time because the speed of light provides the conversion. The Sun is about 8 minutes and 20 seconds away by light. The Moon is roughly 1.28 light-seconds from Earth. The nearest star system, Alpha Centauri, is 4.37 light-years away, meaning the light we observe from it left 4.37 years ago. The Andromeda Galaxy is about 2.537 million light-years distant; we see it as it was over two million years in the past.
In telecommunications and computing, the finite speed of light has practical implications. Signals in optical fibres travel at roughly c/1.5 ≈ 200,000 km/s. The one-way latency from London to Sydney (≈ 16,900 km by fibre) has a minimum physical floor of about 85 milliseconds regardless of how fast the electronics are. For undersea cables spanning thousands of kilometres, this light-speed latency dominates network performance.
GPS and other satellite navigation systems must account for the finite speed of light precisely. Signals travel from satellites to receivers at the speed of light, and a timing error of even one nanosecond corresponds to a position error of about 30 centimetres. General relativity (gravitational redshift) and special relativity (time dilation) together shift satellite clocks by about 38 microseconds per day relative to ground clocks — a correction that GPS systems must apply continuously to maintain metre-level accuracy.
Speed of light examples
Real-world scenarios showing travel time, distance, and speed in various media.
| Scenario / Conditions | Result | Notes |
|---|---|---|
| Sun to Earth — 149,600,000 km, n = 1 | ≈ 498.7 s (8 min 19 s) | Average Earth-Sun distance. Light takes just over 8 minutes; this is why solar observations are always 8 minutes in the past. |
| Distance in 1 second — n = 1 | 299,792,458 m (≈ 299,792 km) | One light-second. Light covers about 7.5 times Earth's circumference in a single second. |
| Speed in water — n = 1.33 | ≈ 225,407,863 m/s | Light is about 25% slower in water than in vacuum. This causes refraction and is why objects appear displaced when viewed through water. |
| Moon to Earth — 384,400 km, n = 1 | ≈ 1.282 s | Round-trip delay ≈ 2.56 s. Apollo astronauts experienced this pause in radio communication with Mission Control. |
How to use the speed of light calculator
- Select the calculation type: Travel Time (how long light takes to cover a distance), Travel Distance (how far light travels in a given time), or Speed in Medium (light speed in a specific material).
- For Travel Time, enter the distance and choose a unit (metres, kilometres, miles, or light-years). For Travel Distance, enter the time and choose a unit (seconds through years).
- Enter the refractive index n of the medium. Use n = 1 for vacuum or air. Common values: water ≈ 1.33, window glass ≈ 1.5, diamond ≈ 2.42.
- Click Calculate to see the result. The calculator also shows the speed of light in the chosen medium.
- Use the example buttons to instantly load Sun-to-Earth travel time, the length of a light-second, or light speed in water.
Speed of light FAQ
What is the exact speed of light in vacuum?
The speed of light in vacuum is exactly 299,792,458 metres per second. This is not an approximation — the metre itself is defined as the distance light travels in 1/299,792,458 of a second. The value was fixed by the 17th General Conference on Weights and Measures in 1983, and all modern length measurements ultimately trace back to this constant.
Why does light slow down in transparent materials?
Light interacts with the electric fields of atoms in a material. As the electromagnetic wave passes through, it is absorbed and re-emitted by atoms, introducing a phase delay that manifests as a lower propagation speed. The macroscopic effect is captured by the refractive index n = c / v. No information or energy travels faster than c; the phase velocity can in principle exceed c in some metamaterials, but the signal (group) velocity does not.
What is a light-year and how does this calculator handle it?
A light-year is the distance light travels in one year in vacuum: about 9.461 × 10¹⁵ metres (9.461 petametres). This calculator accepts light-years as a distance unit in Travel Time mode. Enter the distance in light-years and n = 1 to find the travel time; the result will be the number of seconds (which you can mentally convert: 1 light-year / c = 1 year).
Does light really travel at exactly c in air?
Nearly, but not exactly. Dry air at sea level has a refractive index of about 1.0003, so light travels at 99.97% of c — a difference of only 89 km/s. For most practical calculations involving radio propagation, GPS timing, and astronomy through the atmosphere, air is treated as vacuum. Only in high-precision interferometry or when passing through very long paths of air does the refractive index correction become significant.
How is the speed of light related to Einstein's E = mc²?
In Einstein's mass-energy equivalence E = mc², c² acts as a conversion factor between mass (in kg) and energy (in joules). Because c is so large (≈ 3 × 10⁸ m/s), c² ≈ 9 × 10¹⁶ J/kg, meaning a tiny amount of mass corresponds to an enormous amount of energy. This is the principle behind nuclear fission and fusion, where a small fraction of mass is converted to energy. The constant c in this equation is always the vacuum speed of light.
Can anything travel faster than light?
According to special relativity, no object with mass can be accelerated to c, because the energy required approaches infinity as v → c. Massless particles (photons, gravitons) travel at exactly c in vacuum. Phase velocities in certain media or the apparent expansion of the universe can exceed c, but these do not involve the transfer of information or energy faster than c. The universe's expansion rate is governed by general relativity and does not violate special relativity.