EN

Calculate Refractive Index from Speed

Light slows down when it enters a transparent medium (water, glass…). The refractive index compares that slower speed v to the speed of light in vacuum c: n = c / v. Enter either quantity to get the other — handy for finding a material's index from a measured speed, or the other way round.

c = 299,792,458 m/s, an exact value (it has defined the metre since 1983). Since n ≥ 1 for every ordinary transparent medium, light never travels faster through matter than it does through vacuum.

Vacuum (c)Medium (v = c/n)

Inputs

Mode and unit

Switch mode, then run the calculation again to update the fields.

Speed → index

Must stay below c (299,792,458 m/s).

Result

  • Refractive index n 1.3324
Speed in the medium v 225,000,000 m/s (225,000,000 m/s)
Speed of light in vacuum c 299,792,458 m/s
Refractive index n = c/v 1.3324
Closest reference medium Water (n ≈ 1.333, difference 0.0006)

n = c / v

Why light slows down in matter

You can use n = c/v without a story about atoms. Measure a speed, divide. The number you get is the index. The story is only there so the number feels less like a trick.

A useful picture, and not a lecture in electrodynamics: the electrons in the medium are charges that can be nudged. The passing wave shakes them; they radiate a little field of their own, a fraction of a cycle late. From the outside, the combined wave simply travels slower. Nothing is being knocked aside like a snooker ball, and the light is not absorbed and re-emitted as a sequence of stops. The source still sets the frequency. Only the wavelength shortens — which is what the sketch at the top of this page is showing.

n = c / v   ·   v = c / n

Vacuum has nothing to nudge, so n = 1. Water has plenty, so you get about 1.333. Well, that is the whole of “optically denser”: slower crests, nothing to do with kilograms.

c has been an exact constant since 1983

299,792,458 m/s looks like a measurement. It stopped being one in 1983.

That year the metre was redefined as the distance light travels in vacuum in 1/299,792,458 of a second. The second already came from the caesium clock. So c is now exact by definition. A better experiment would not “update” the speed of light; it would mean our old metre bars had been a whisker off. Anyway, this calculator never asks you to pick a value for c. There is only the defined one, and n inherits that exactness as soon as you know v.

Labs still measure the speed of light in air, in glass, in a fibre. That is v, not c. The two are easy to mix up when both are called “the speed of light” in casual speech.

Reference table: common indices and speeds

A handful of media at the sodium D line (~589 nm). Speeds from v = c/n.

Mediumnv (m/s)
Vacuum1.0000299,792,458
Air (dry, 15 °C)≈ 1.0003≈ 299,703,000
Water1.333≈ 224,900,000
Crown glass≈ 1.52≈ 197,200,000
Diamond2.42≈ 123,900,000

In a swimming pool the light is already down to three-quarters of c. In diamond it is hanging on to about 40 %. Air sits so close to 1 that most ray-tracing just pretends it is vacuum. The missing 0.0003 only matters to a surveyor with an EDM or to someone counting interference fringes.

Acrylic (n ≈ 1.49) and sapphire (n ≈ 1.77) sit in the gap between window glass and gemstone. If the calculator returns 1.33, think water. If it returns 1.00, that is not “almost water”.

Snell's law and the critical angle

Once you have n, the next question is usually “where does the ray go?” Snell's law answers that at a flat interface:

n1 sin θ1 = n2 sin θ2

Into a slower medium the ray bends toward the normal. The other way, it bends away, and beyond a critical angle it stops crossing altogether. Those two pages do the angles. This one only supplies the n you feed them. Actually, it is the same number — we are not restating the geometry here.

Dispersion: why a prism splits white light

Newton's prism on a windowsill is not inventing colours. It is sorting them, because n is a mild function of wavelength.

Glass absorbs in the ultraviolet. Blue light sits closer to that edge than red, so its electrons are driven a little harder and n creeps up. Two refractions through a prism, and the blue lands farther from the original direction. A raindrop does the same job with more theatre. So a single catalogue value, usually nd at 589 nm, is a snapshot. Crown glass quoted as 1.520 at yellow may be 1.527 at blue. Fine for this calculator; not fine if you are colour-correcting a camera lens.

Group index vs. phase index

The n in c/v is the phase index. It is the speed of the crests of an endless sine wave. A pulse in a fibre, or a camera flash, is a packet of nearby frequencies, not that sine wave.

The packet travels at the group speed, a shade slower whenever n falls as λ rises (the usual case in the visible). In a window pane you will not notice. Over kilometres of fibre, or with a few-femtosecond pulse, you will: the packet stretches and the colours no longer arrive together. The group index ng = n − λ dn/dλ packs that into one number. This page stays with the phase index — the one a refractometer reports, and the one in the school formula.

Measuring an index in practice

Timing a light pulse across a centimetre of glass is a specialist sport. Angles are cheaper, and usually better.

  1. Put a drop on an Abbe refractometer. You are really watching the critical-angle shadow; the scale is already in n, often to 0.0001. Food labs use the same box for sugar syrup and cooking oil.
  2. Or cut a prism of known apex A, rotate it until the deviation of a ray bottoms out at Dmin, and compute

n = sin((A + Dmin) / 2) / sin(A / 2)

No stopwatch, no value of c. Two angles, and you have n. A student spectrometer will get you three decimal places if the prism faces are clean.

A refractometer reading belongs to one wavelength (sodium yellow, more often than not). Pasting it onto a green laser pointer or a blue LED skips the dispersion. If the calculation feeds a lens design, write λ next to n.

Crown glass vs. flint glass

Window glass is not a single substance, and opticians have known that since the 1700s.

Crown — soda-lime, borosilicate, a lot of spectacle blanks — sits near n ≈ 1.52 and does not disperse much. Flint, loaded with heavy oxides (lead in the old recipes, barium or lanthanum now), runs from about 1.6 to 1.9 and fans the spectrum out. An achromatic doublet is typically a converging crown cemented to a diverging flint: the colour spreads cancel, the powers do not. That is how early telescope makers got rid of the rainbow fringe around a planet.

The 1.52 in the notes is ordinary crown. Lead crystal in a cupboard is flint, and will sit nearer 1.7. Same word “glass”, different n.

Refractive index is not density

It is tempting to treat n as a fancy way of saying “heavy”. Water at 1 g/cm³ (n = 1.333) versus diamond at 3.5 g/cm³ (n = 2.42) looks like a trend. It is not a law.

Ethanol is lighter than water and still has a higher index (about 1.36). Ice is less dense than liquid water and only a little lower in n (about 1.31) — the direction matches, the size of the shift does not. What matters is how easily the electron clouds distort, not how many kilograms sit in a litre. Heavy, floppy atoms tend to raise n. A tight pack of small, stiff ones need not.

Do not convert a density into an index, or the other way round. Two plastics of the same bulk density can differ by several hundredths in n. An aerogel barely above air density still has n close to 1. This calculator only wants c and v.

Related calculators