A speed of light calculator tells you how long light takes to cover a distance, or how far it goes in a given time. In a vacuum light moves at 299,792,458 metres per second. Choose a material such as water or glass and the calculator slows the light down by the refractive index of the medium.
How to use the speed of light calculator
- Choose what to find: a time or a distance.
- Pick the medium, or enter its refractive index.
- Enter the distance or the time.
- Press Calculate.
The speed of light
In a vacuum the speed of light is exactly 299,792,458 metres per second [1], which is about 1,079,252,849 kilometres per hour or 670,616,629 miles per hour by our own conversion. The two formulas are distance = speed of light × time and speed of light = distance ÷ time. The calculator uses the first to find a distance and the second, rearranged, to find a time.
A worked example
A worked example is 100 seconds of light travel: 299,792,458 × 100 = 29,979,245,800 metres. In metric mode, choose distance mode, enter 100 seconds and the result is 29,979,245.8 kilometres, which is about 18.6 million miles. For the other direction, 1,000 kilometres of vacuum takes 3.3356 milliseconds, from 1,000,000 metres divided by c.
Light in a material
In a material, light travels more slowly than in a vacuum. Wikipedia defines the refractive index as the ratio of the speed of light in vacuum, c, to the speed of light in the medium, v, so n = c ÷ v [2]. The speed in the medium is therefore v = c ÷ n. The indices come from Wikipedia's table of selected refractive indices.
Refractive indices used
Wikipedia's table gives, at a wavelength of 589 nanometres, air at 0 °C and 1 atmosphere 1.000293, water at 20 °C 1.333, ice 1.31, window glass 1.52 and diamond 2.417 [2]. The calculator lists these five, and you can enter another index of 1 or more. A glass or water value therefore reduces the speed to about 66 or 75 per cent of c.
Water and diamond
In water with n = 1.333, light moves at about 224,900,000 metres per second, so 1,000 kilometres takes 4.446 milliseconds, as against 3.336 in a vacuum. In diamond with n = 2.417, the speed is about 124,000 kilometres per second, which is just over 41 per cent of c. These are our own calculations from c ÷ n.
Miles and kilometres
In US mode the distance is in miles and in metric mode in kilometres. One mile is 1,609.344 metres by definition, which gives about 186,282 miles per second in a vacuum. The calculator shows the speed in the medium in metres per second, kilometres per second and miles per hour, so you can check it against known values.
Reading the time
When the time is long, the answer is also given in minutes, hours, days or years. For years, we use a year of 365.25 days, a convention of our own, so that a light-year is about 9.46 trillion kilometres, a figure that you can check by entering one year of seconds in distance mode. Short times appear in seconds with enough digits to show milliseconds.
Why n must be at least 1
A refractive index below 1 would mean light moving faster than c, which is not the case for the ordinary materials in the table, so the calculator rejects values below 1 for the custom medium. In some special cases the phase velocity can exceed c, but this tool is about the speed at which light carries a signal through ordinary matter and does not model those effects.
Limits
The index depends on the wavelength, the temperature and the pressure. The values in the table are for yellow light, and blue light is slowed slightly more than red in glass and water. For a precise design, take the index for your wavelength from the maker's datasheet and enter it as a custom medium. The vacuum value is exact, since the metre is defined from c [1].
Everyday and astronomical scales
Light covers a metre in about 3.3 nanoseconds and a kilometre in about 3.3 microseconds. Across a continent of 5,000 kilometres it needs about 17 milliseconds in a vacuum, and more in glass fibre, where the index is about that of glass. These figures are our own calculations from c. Try them in the calculator in metric mode to feel how the delay grows with distance and with the refractive index of the medium.
Light seconds and light years
A light second is the distance that light covers in one second, which is 299,792.458 kilometres. Enter 1 second in distance mode to see it. Longer spans are quoted in light minutes, light hours and light years. The tool does not store any such table, but it lets you test any distance, and the time field converts a large result into minutes, hours, days or years for you.
Using the result
Copy the result line to paste it into notes or a report. The line states the distance or the time, and a second line gives the speed of light in the medium, so the context travels with the number. If you change the medium, the speed changes by the refractive index and the time changes by the same factor.
Common mistakes
- Using kilometres in miles mode. Check the units option.
- Forgetting the medium. Light is slower in glass and water.
- Entering the time in minutes. The time box is in seconds.
- Using an index below 1. It would be faster than c.
What next
Use this often? Add Speed of Lig to your Home screen.
Frequently asked questions
What is a speed of light calculator?
A tool that finds the time or distance of light travel from c, with an option for a medium's refractive index.
How fast is the speed of light in a vacuum?
299,792,458 metres per second, about 186,282 miles per second.
How do I find the speed of light in water?
Divide c by the refractive index of water, 1.333, which gives about 224,900 kilometres per second.
How far does light travel in 100 seconds?
29,979,245,800 metres, which is about 29.98 million kilometres, in a vacuum.
Can light travel faster than c in a material?
No. In ordinary materials it is slower, by the refractive index.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.