Index of Refraction Calculator

Enter the speed of light through a material to find its refractive index (n = c/v), along with the wavelength inside the medium, the critical angle for total internal reflection, and Brewster's polarizing angle.

Quick Facts

Refractive index formula
n = c / v
c = 299,792,458 m/s (speed of light in vacuum, exact); v = speed of light in the medium.
Typical values (n)
Air ≈1.0003, Water ≈1.33, Crown glass ≈1.52, Diamond ≈2.42
Measured near the sodium D-line (589 nm) unless otherwise specified.
Snell's Law
n₁ sin θ₁ = n₂ sin θ₂
Governs how much a light ray bends when it crosses the interface between two media.

Your Results

Calculated
Index of Refraction (n)
-
n = c / v (dimensionless)
Wavelength in Medium
-
λ = λ₀ / n
Critical Angle (to air)
-
θc = arcsin(1/n); total internal reflection beyond this angle
Brewster's Angle (from air)
-
θB = arctan(n); reflected light is fully polarized

Ready

Enter the speed of light in the medium and a vacuum wavelength, then press Calculate.

Formula and Method for the Index of Refraction Calculator

The index of refraction (refractive index), n, describes how much slower light travels through a material than it does through a vacuum: n = c / v, where c is the speed of light in vacuum (299,792,458 m/s, exact by definition) and v is the speed of light in the medium. Because ordinary transparent materials always slow light down, n is always 1 or greater — a perfect vacuum has n = 1, and denser optical materials have progressively higher values. This calculator also derives the wavelength of light inside the medium, the critical angle for total internal reflection, and Brewster's polarizing angle from that same value of n.

How the calculation works

Enter the speed light travels through your material and choose its unit (m/s, km/s, or as a fraction of c). The calculator divides c by that speed to get n = c / v. Using the vacuum wavelength you supply, it then finds the wavelength inside the medium with λ = λ₀ / n — the frequency of light does not change when it enters a new medium, only its speed and wavelength do.

Critical angle and Brewster's angle

From n, the calculator also reports two angles that matter in optics. The critical angle, θc = arcsin(1/n), is the angle of incidence inside the medium (measured from the normal) beyond which light cannot escape into the lower-index side and instead undergoes total internal reflection; it only exists when n is greater than 1. Brewster's angle, θB = arctan(n), is the angle at which light traveling from air into the medium reflects with complete linear polarization parallel to the surface — it always exists for n greater than 0.

Real-world applications

  • Lens and camera design uses n to compute how strongly a glass element bends (refracts) light, which sets its focal length and correction for chromatic aberration.
  • Fiber-optic cables rely on total internal reflection — the core's higher n keeps light bouncing down the fiber past the critical angle instead of leaking into the cladding.
  • Gemology uses a refractometer to measure n and help identify or grade gemstones, since each mineral has a characteristic refractive index.
  • Polarizing filters and anti-glare coatings are tuned around Brewster's angle to cut reflected glare off water, glass, and road surfaces.

Frequently Asked Questions

What is the index of refraction?
The index of refraction (refractive index), n, is the ratio of the speed of light in a vacuum to its speed in a material: n = c / v, where c = 299,792,458 m/s. A higher n means light slows down more and bends more sharply when it enters the material.
How do you find the refractive index of water or glass?
Divide the speed of light in vacuum by the measured speed of light in the material: n = c / v. Water (v ≈ 2.25×10^8 m/s) has n ≈ 1.33, and common crown glass (v ≈ 1.97×10^8 m/s) has n ≈ 1.52, both measured near the 589 nm sodium D-line.
What is the critical angle and how does it relate to n?
The critical angle is the angle of incidence, measured inside the denser medium, beyond which light cannot exit into a less dense medium and instead undergoes total internal reflection. It is found with θc = arcsin(1/n), and it only exists when n is greater than 1.
What is Brewster's angle?
Brewster's angle is the angle of incidence at which light hitting a surface reflects with complete polarization parallel to the surface. For light traveling from air into a medium of index n, it is given by θB = arctan(n).