StatGardenREF. DESK
Calculators/Physics/Refractive index
Physics

Refractive index calculator

Refractive index of a medium from the speed of light in that medium.

Published 21 August 2026

What this calculator does

The refractive index of a material describes how much it slows light down compared with a vacuum. It is defined as n = c / v, the speed of light in a vacuum divided by the speed of light in that particular medium. Water has a refractive index of about 1.33, meaning light travels about 1.33 times slower through water than through empty space.

This is the more fundamental relationship behind refraction, distinct from Snell’s law, which uses two already-known refractive indices to work out how much a light ray bends crossing between them. This calculator instead finds the refractive index itself, starting from the physical speed of light within the medium.

The formula

Formulan = c / v

Divide the speed of light in a vacuum (a fixed constant, about 299,792,458 metres per second) by the measured or known speed of light in the medium. The result, always 1 or greater for any real medium, is the refractive index.

TermMeaning
nRefractive index, a dimensionless number describing how much a medium slows light.
cThe speed of light in a vacuum, a universal constant.
vThe speed of light travelling through the specific medium in question.

The inputs explained

FieldWhat to enter
Speed of light in the medium (m/s)The speed of light as it travels through the medium, always slower than the vacuum speed of light.

When to use it

Identifying an unknown material

Measuring the speed of light through an unknown transparent material and computing its refractive index is one way optical properties are used to help identify or characterise a substance.

Preparing inputs for Snell’s law

Snell’s law needs the refractive indices of both media as starting inputs; this calculator supplies that number from a measured light speed rather than a lookup table.

A physics course introduction to optics

Working through n = c/v with real numbers builds the intuition needed before moving on to refraction angles and lens behaviour.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

What refractive index corresponds to different light speeds?

A range of light speeds within a medium, and the refractive index each implies.

Speed of light in the medium
Speed in mediumRefractive index
150 Mm/s1.999
180 Mm/s1.666
200 Mm/s1.499
225 Mm/s1.332
250 Mm/s1.199
280 Mm/s1.071
A slower speed of light within the medium always produces a higher refractive index, since n is simply the vacuum speed divided by that slower speed.

Questions

Can the refractive index ever be less than 1?

For ordinary transparent materials such as glass, water and air, no: light always travels slower through the medium than through a vacuum, so n is always 1 or greater. Refractive indices below 1 are only seen in unusual circumstances, such as certain engineered metamaterials or X-ray propagation in some substances, well outside everyday optics.

How is this different from the Snell’s law calculator?

Snell’s law takes two already-known refractive indices and an angle of incidence, and finds the angle of refraction. This calculator instead finds a single refractive index from the physical speed of light in that medium, which is the more basic quantity Snell’s law relies on.

Does refractive index depend on the colour of light?

Slightly, yes. Most materials slow different wavelengths of light by very slightly different amounts, an effect called dispersion, which is why a prism splits white light into colours. This calculator gives a single overall figure rather than modelling that wavelength dependence.

What is the refractive index of air?

Very close to 1 (about 1.0003), which is why air is usually treated as equivalent to a vacuum for most everyday optical calculations, though the small difference does matter in precise scientific work.

To find how far a light ray bends between two known media, use the Snell’s law calculator.