Speed of Light Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter a distance and the refractive index of the medium (1 for vacuum) to get how long light takes to cross it.
Result
Travel timeseconds
Speed of light in the medium (km/s)
- Travel time (minutes)
- Travel time (nanoseconds)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Distance: enter 0 or more.
- Distance unit: choose kilometers (km), miles (mi) or meters (m).
- Refractive index n (1 = vacuum): enter 1 or more.
- Read the result: Travel time; the panel also shows Speed of light in the medium (km/s), Travel time (minutes) and Travel time (nanoseconds).
How this calculator works
t = d ÷ v with v = c ÷ n. The speed of light in vacuum is exactly c = 299,792,458 m/s (NIST CODATA 2022 values, read on physics.nist.gov/cuu on 2026-10-27); a medium of refractive index n slows light to c ÷ n. 1 mi = 1,609.344 m.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Distance | ||
| Distance unit | ||
| Refractive index n (1 = vacuum) | ||
| Travel time | seconds |
Worked example
| Distance | 384,400 |
|---|---|
| Distance unit | kilometers (km) |
| Refractive index n (1 = vacuum) | 1 |
| Speed of light in the medium (km/s) | 299,792.458 |
|---|---|
| Travel time (minutes) | 0.0214 |
| Travel time (nanoseconds) | 1,282,220,381.9417 |
Travel time 1.2822 seconds
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How long does light take to cross 384,400 km?
About 1.2822 s in vacuum.
How far does light go in one nanosecond?
About 29.98 cm (299,792,458 m/s × 10⁻⁹ s).