Calculate
I know
"x c" means a fraction of the speed of light, for example 0.75.
Wavelength and angle unit
The refractive index is n = 1.332 (c / v = 299,792,458 / 225,000,000 m/s), so light travels 1.332 times slower there than in a vacuum.
1.332
Refractive index n
c / v
225,000,000
Speed in m/s
225,000
Speed in km/s
0.75052
Fraction of c
75.05% of c
Close to water: n = 1.3334 at 589.3 nm (20 °C).
Speed in miles per second139,809 mi/s
Wavelength inside442.28 nm (from 589.3 nm in a vacuum)
Reflected at the surface2.03% of light at normal incidence, vacuum or air to this material
Preset values are for 589.3 nm light (the sodium D line) at the temperature shown. n depends on wavelength, so blue light bends more than red, and on temperature. The wavelength you enter only changes the wavelength inside the material.
Show the math
Formulan = c / v, where c = 299,792,458 m/s (exact) and v is the speed of light in the material. Light slows down by the factor n.
Your numbersn = 299,792,458 / 225,000,000 m/s = 1.33241; v = c / n = 225,000,000 m/s = 0.750519 c
Wavelengthλ = λ0 / n = 589.3 nm / 1.33241 = 442.281 nm (frequency stays the same, the speed drops)
ReflectanceR = ((n − 1) / (n + 1))2 = ((1.33241 − 1) / (1.33241 + 1))2 = 2.031% at normal incidence from a vacuum (about the same from air)
Refractive index of common materials (589.3 nm)
Sodium D line, 589.3 nm. n changes with wavelength and temperature, so other sources can differ in the last digits.
MaterialnSpeed (km/s)Conditions
Vacuum1299,790exact
Air1.000293299,7000 °C, 101.325 kPa
Water1.3334224,83020 °C
Ice1.3097228,900-7 °C
Ethanol1.3616220,18020 °C
Glycerol1.4722203,64025 °C
Fused silica1.4584205,56020 °C
Acrylic (PMMA)1.4905201,14020 °C, resin varies by 0.002
Crown glass (N-BK7)1.5167197,660catalogue value
Flint glass (F2)1.6199185,070catalogue value
Dense flint (N-SF11)1.7845168,000catalogue value
Sapphire (ordinary ray)1.7681169,56020 °C, ordinary ray
Diamond2.4173124,020room temperature

Short answer: The refractive index is n = c / v: the speed of light in a vacuum, 299,792,458 m/s, divided by its speed in the material. Light moving at 225,000,000 m/s gives n = 1.332, about the index of water, where light runs at 75.05% of c. To find how far a ray bends at a surface, use Snell’s law: n1 sin(a1) = n2 sin(a2).

The index has no unit because it is a ratio of two speeds. Most wrong answers come from three places: measuring angles from the surface instead of the normal, using an index quoted for a different wavelength, and treating a total internal reflection result as an error.

1.3334
Water, 20 °C
Light runs at 75% of c.
1.000293
Air, 0 °C
Light runs at 99.97% of c.
1.5167
Crown glass N-BK7
Light runs at 65.93% of c.
2.4173
Diamond
Light runs at 41.37% of c.

This article contains Amazon affiliate links. 33science earns a commission on qualifying purchases. See our affiliate disclosure.

How to use the refractive index calculator

Pick a mode.
Speed mode converts between n and the speed of light in a material. Snell mode solves any one of n1, n2, the incidence angle or the refraction angle. Critical angle mode gives the angle for total internal reflection between two materials.
Choose a preset or type a value.
Presets cover vacuum, air, water, ice, ethanol, glycerol, glass, acrylic, sapphire and diamond for 589.3 nm light. Enter speeds in m/s or km/s.
Set the angles.
Angles are measured from the normal, the line at right angles to the surface, in degrees or radians from 0 to 90.
Read the answer and the diagram.
The answer line gives n, the refraction angle or the critical angle. The ray diagram shades total internal reflection, and the Show the math block prints the formula with your numbers.

The refractive index formula: n = c / v

n equals c divided by v, where c = 299,792,458 m/s is the exact speed of light in a vacuum (NIST) and v is the speed in the material, in m/s. Rearranged, v = c / n. That is the whole speed of light in a medium calculation: n tells you how many times slower light travels in the material than in a vacuum (OpenStax).

Worked example: light travelling at 225,000,000 m/s (225,000 km/s) gives n = 299,792,458 / 225,000,000 = 1.332 (unrounded 1.33241), so the light is running at 75.05% of c. In the other direction, water at 20 °C has n = 1.3334, so v = 299,792,458 / 1.3334, about 224,833,000 m/s.

Refractive index of water, glass, air and other materials

For 589.3 nm light, water is 1.3334 at 20 °C, air is 1.000293 and common glass is about 1.5 (1.5167 for N-BK7 crown glass). Diamond is 2.4173. The columns show what each index means for the speed of light, the wavelength inside the material and the critical angle for light trying to leave into air.

MaterialnSpeed (km/s)% of c589.3 nm light becomes (nm)Critical angle to air
Vacuum1299,792.458100589.3none
Air (0 °C, 1 atm)1.000293299,70599.97589.1none
Water (20 °C)1.3334224,8337544248.61°
Ice (−7 °C)1.3097228,90276.3545049.8°
Ethanol (20 °C)1.3616220,17773.44432.847.28°
Glycerol (25 °C)1.4722203,63667.93400.342.8°
Fused silica1.4584205,56368.57404.143.31°
Acrylic (PMMA)1.4905201,13567.09395.442.15°
Crown glass N-BK71.5167197,66165.93388.541.26°
Flint glass F21.6199185,06861.73363.838.13°
Sapphire (ordinary ray)1.7681169,55656.56333.334.45°
Dense flint N-SF111.7845167,99856.04330.234.09°
Diamond2.4173124,02041.37243.824.44°

Values come from published dispersion fits and the SCHOTT catalogue (Optica, SCHOTT), and agree with the usual textbook table from HyperPhysics. Conditions move the last digits: acrylic varies by about 0.002 between resins, glycerol drops as it absorbs water, and air changes with temperature and pressure.

Absolute and relative refractive index

The absolute index compares a material with a vacuum: n = c / v. The relative index compares two materials: n21 = n2 / n1 = v1 / v2, the index of material 2 as seen from material 1. Snell’s law is a statement about the relative index, because sin(a1) / sin(a2) = n2 / n1. A ray that bends from 45° in air to 30° in a material gives n2 = 1 × sin 45° / sin 30° = 1.414.

Good to know
An index below 1 is possible. In X-rays and in plasmas the phase velocity can exceed c, and no signal travels faster than c. If you enter 350,000,000 m/s in speed mode, the calculator returns n = 0.8565 and flags that the speed is above c. Negative indices are not supported (Wikipedia).

Snell’s law calculator: the refraction angle at a boundary

Snell’s law is n1 sin(a1) = n2 sin(a2), with both angles measured from the normal. A ray entering a higher index bends toward the normal and a ray entering a lower index bends away from it. Leave any one of n1, n2, a1 or a2 empty and the calculator solves for it: a2 = asin(n1 sin a1 / n2), n2 = n1 sin a1 / sin a2, and so on (OpenStax).

Red laser beam bending toward the vertical where it enters the water in a glass tank
A beam bends toward the normal when it enters water, where light is slower.
BoundaryIncidence angleRefraction angle
Air to water30°22.03°
Air to water45°32.04°
Air to N-BK7 glass30°19.25°
Air to diamond30°11.94°
Water to air30°41.8°
N-BK7 glass to air30°49.3°

Worked example: air to glass with n2 = 1.5 at 30°. sin(a2) = 1 × sin 30° / 1.5 = 0.3333, so a2 = 19.47°. A ray that skims the water surface at 90° refracts at 48.61°, so everything above the surface is compressed into a cone that wide as seen from underwater.

Tip
Measure from the normal, not the surface. A ray that makes 30° with the surface is at 60° from the normal, and the wrong choice gives a plausible but wrong answer.

Some light always reflects. At normal incidence the reflected share is R = ((n1 − n2) / (n1 + n2))2: 4% for air to glass at 1.5, 2.04% for air to water and 17.2% for air to diamond (Wikipedia). To check Snell’s law yourself, a laser ray box with acrylic lenses lets you trace a beam through a block and read both angles with a protractor. Never point the beam at a person’s eyes.

Total internal reflection and the critical angle

The critical angle is Snell’s law with a refraction angle of 90°: a_c = asin(n2 / n1), defined only when n1 is larger than n2. Above that incidence angle no refracted ray exists and all the light reflects (OpenStax). From glass at 1.5 into air the critical angle is 41.81°. A ray at 45° gives sin(a2) = 1.061, which is above 1 and has no real solution, so the calculator reports total internal reflection and the critical angle instead of an angle.

Total internal reflection happens when
Light goes from a higher index to a lower index, such as glass to air
The incidence angle is above the critical angle
The boundary is smooth and clean
It does not happen when
Light goes from a lower index to a higher index, such as air to glass, which has no critical angle
The incidence angle is below the critical angle, so part of the light still refracts out
The two indices are equal, which has no boundary effect
FromIntoCritical angle
WaterAir48.61°
N-BK7 glassAir41.26°
DiamondAir24.44°
N-BK7 glassWater61.54°
DiamondWater33.48°
DiamondN-BK7 glass38.86°

Diamond’s critical angle to air, 24.44°, is far narrower than glass at 41.26°. A diamond cut to send light back out through the top traps most of what enters, and its index also reflects 17.2% at the surface, which is why it sparkles more than glass.

Wavelength, color and dispersion

The refractive index depends on wavelength. In clear glass and water, blue light has a higher index than red, so a prism bends blue more and spreads white light into a spectrum. That spread is dispersion (Wikipedia).

Light beam passing through an octagonal glass prism and spreading into separate colors
Each color has its own index in glass, so the prism separates them. Photo by David Clode on Unsplash

Because of dispersion, a table has to name a wavelength. The presets use 589.3 nm, the sodium D line, the mean of a doublet at 589.0 and 589.6 nm that is the long-standing reference for quoting an index (Wikipedia). Glass catalogues quote nd at 587.6 nm, which can change the last digit. The presets stay at 589.3 nm; for another color, type an index measured at that wavelength. The wavelength box gives the wavelength inside the material, λ / n.

Key point
The change in speed is what bends the ray. The frequency stays fixed across a boundary, so the wavelength shrinks by the same factor as the speed: 589.3 nm light has a wavelength of 442 nm in water and is still the same color.

How refractive index is measured

A refractometer measures the critical angle. Light passes through a drop of liquid on a prism, and the angle where light switches from refracting to totally reflecting appears as the edge between a bright and a dark field on a scale (Wikipedia). That edge converts directly to n.

Hands placing a drop of clear liquid on the prism of a handheld refractometer
The edge between the light and dark fields marks the critical angle of the sample.

Sugar raises the index of water, so a sugar solution moves the edge, and handheld units read it on the Brix scale. Temperature moves it too: the index of water falls as it warms. A handheld Brix refractometer with automatic temperature compensation corrects for that between 10 and 30 °C. To compare a measured index with a table value, use the percent error calculator.

Sources

Frequently asked questions

What is the refractive index of water?

Water at 20 C has a refractive index of 1.3334 for 589.3 nm light, usually rounded to 1.333. Light travels at about 75 percent of its vacuum speed in water.

What is the refractive index of glass?

Common glass is about 1.5, but it depends on the type. Crown glass N-BK7 is 1.5167 and dense flint N-SF11 is 1.7845 at 589.3 nm.

What is the refractive index of air?

Air is 1.000293 at 0 C and 1 atmosphere for 589.3 nm light. Using 1 is accurate enough for most homework.

What is the SI unit of refractive index?

Refractive index has no unit. It is a ratio of two speeds, so it is dimensionless.

How do you calculate the speed of light in a medium from the refractive index?

Divide the speed of light in a vacuum, 299,792,458 meters per second, by the refractive index: v = c / n. In water, n = 1.3334 gives about 224,833,000 meters per second.

How do you find the critical angle?

Take the inverse sine of n2 divided by n1, where n1 is the higher index. From glass at 1.5 into air the critical angle is 41.81 degrees.

Can total internal reflection happen going from a less dense to a denser medium?

No. It needs light to travel from a higher index to a lower index, because only then can Snell’s law give a sine above 1 and leave no refracted ray.

What is the difference between absolute and relative refractive index?

Absolute index compares a material with a vacuum: n = c / v. Relative index compares two materials: n2 divided by n1, which equals v1 divided by v2.