Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

Travel time—seconds

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.

Speed of Light Calculator

Distance: enter 0 or more. Prefilled example: 384,400.

Distance unit

Distance unit: choose kilometers (km), miles (mi) or meters (m). Prefilled example: kilometers (km).

Refractive index n (1 = vacuum): enter 1 or more. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Distance: enter 0 or more.
  2. Distance unit: choose kilometers (km), miles (mi) or meters (m).
  3. Refractive index n (1 = vacuum): enter 1 or more.
  4. 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

  1. S=d×du×n299,792,458
Symbols used in the formula
SymbolMeaningUnit
dDistance
duDistance unit
nRefractive index n (1 = vacuum)
STravel timeseconds

Worked example

Distance384,400
Distance unitkilometers (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
  1. S=384,400×1,000×1299,792,458=1.28222

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).

Related calculators