Skip to content
Physics

Index of Refraction Calculator

Enter two media and an angle to solve Snell's law instantly. Choose a solve mode to find the refraction angle, incidence angle, refractive index of either medium, or the critical angle for total internal reflection. Select from 18 material presets or enter a custom refractive index. The phase velocity of light in each medium is shown alongside the step-by-step working.

Your details

Pick which quantity you want the calculator to find.
Pick a preset material or choose Custom and enter n1 below.
Pick a preset material or choose Custom and enter n2 below.
Angle of the incoming ray measured from the normal to the surface (0-90 degrees).
deg
Calculated angleRefraction Occurs
19.2107deg

The solved angle (incidence or refraction)

Refractive index-
Critical angle-
Phase velocity in medium 1299,704,645m/s
Phase velocity in medium 2197,231,880m/s
n1 (medium 1)1.0003
n2 (medium 2)1.52
Total internal reflectionRefraction occurs
19.2107 deg
Shallow<20Moderate20-45Steep45-70Grazing70+
020.5741.1504589
Angle of incidence (deg)

The refracted angle is 19.2107 degrees.

  • Light travels at 2.9970 x 10^8 m/s in medium 1 and 1.9723 x 10^8 m/s in medium 2.
  • Light is moving from a less dense medium to a denser medium, so the refracted ray bends toward the normal.

Next stepFor wavelength-dependent refraction (dispersion), look up the material's Cauchy or Sellmeier coefficients; the values here apply to standard yellow sodium light at 589 nm.

Formula

n1sinθ1=n2sinθ2,n=cv,θc=arcsin ⁣(n2n1)n_1 \sin\theta_1 = n_2 \sin\theta_2, \quad n = \dfrac{c}{v}, \quad \theta_c = \arcsin\!\left(\dfrac{n_2}{n_1}\right)

Worked example

A ray of light travels from air (n1 = 1.000293) and strikes the surface of crown glass (n2 = 1.52) at a 30-degree angle of incidence. sin(30 deg) = 0.5000. sin(theta2) = (1.000293 / 1.52) * 0.5000 = 0.3290. theta2 = arcsin(0.3290) = 19.21 degrees. The ray bends toward the normal because it moves into a denser medium. Since n1 < n2 there is no critical angle in this direction.

What is the index of refraction and Snell's law?

The index of refraction (refractive index), written as n, measures how much slower light travels through a material compared with a vacuum. It is defined as n = c / v, where c is the speed of light in vacuum (about 299,792,458 m/s) and v is the phase velocity in the material. A higher n means the material is optically denser and light slows down more. Air has n = 1.000293 (nearly 1), water has n = 1.333, and diamond has n = 2.417, so light moves about 2.4 times faster in vacuum than in diamond. Snell's law links the refractive indices of two media to the angles a light ray makes with the normal at the boundary: n1 * sin(theta1) = n2 * sin(theta2). When light crosses into a denser medium (n2 > n1) it bends toward the normal; when it crosses into a less dense medium it bends away.

How to use this calculator

Select what you want to solve for using the 'Solve for' dropdown: the angle of refraction (theta2), the angle of incidence (theta1), or either refractive index (n1 or n2). Pick a preset material from the medium dropdowns or choose Custom and type in a refractive index directly. Enter the known angle(s) in degrees. The result updates instantly, including the critical angle for total internal reflection when n1 > n2, the phase velocity of light in both media, and a step-by-step breakdown of the arithmetic. The chart shows how the refraction angle changes across all possible incidence angles for the chosen material pair, with the total internal reflection zone highlighted if it exists.

Critical angle and total internal reflection

When light travels from a denser medium into a less dense medium (n1 > n2), there is a maximum incidence angle called the critical angle, beyond which no refracted ray can exit. At this angle sin(theta2) would equal 1, giving theta_c = arcsin(n2 / n1). For incidence angles larger than theta_c, all light is reflected back into the first medium, a phenomenon called total internal reflection (TIR). This is the operating principle of optical fibers: a glass core (n ~ 1.46) is surrounded by a cladding with a slightly lower refractive index, so any light ray that enters within the acceptance cone undergoes TIR and travels the length of the fiber with minimal loss. Diamonds are also cut to exploit TIR, with facet angles chosen so most light entering the top is totally reflected internally before exiting toward the viewer.

Dispersion: why n depends on wavelength

The refractive index values in this calculator and in the reference table are measured at 589 nm, the standard yellow sodium D-line. In reality, n varies with wavelength, a property called dispersion. Glass has a slightly higher n for violet light than for red light, which is why a prism separates white light into a spectrum. Dispersion is quantified by the Abbe number V = (n_D - 1) / (n_F - n_C), where n_D, n_F and n_C are the refractive indices at 589 nm, 486 nm, and 656 nm. Low Abbe numbers indicate high dispersion (flint glasses, V around 30-40); high Abbe numbers indicate low dispersion (crown glasses, V around 60-70). The Cauchy and Sellmeier equations are empirical models that describe how n varies continuously with wavelength for a given material.

Index of refraction for common materials

MaterialPhase stateRefractive index (n)Speed of light (m/s)
VacuumN/A1299792458
AirGas1.000293299704644
Water IceSolid1.31228848441
Water (20 C)Liquid1.333224870558
AcetoneLiquid1.36220435631
EthanolLiquid1.361220273665
KeroseneLiquid1.39215679466
Corn OilLiquid1.47203940447
GlycerolLiquid1.473203524411
Acrylic (PMMA)Solid1.491201066036
Crown GlassSolid1.52197231880
Plate GlassSolid1.52197231880
Sodium ChlorideSolid1.544194164676
PolycarbonateSolid1.6187370286
Flint GlassSolid1.62185056455
SapphireSolid1.77169372572
Cubic ZirconiaSolid2.17138123483
DiamondSolid2.417124015088
SiliconSolid3.4586896362
GermaniumSolid4.0574022828

Values measured for yellow sodium light at 589 nm (standard D-line). Values vary with wavelength.

Frequently asked questions

What is the index of refraction?

The index of refraction (refractive index) of a material is the ratio of the speed of light in vacuum (c) to the speed of light in that material (v): n = c / v. Because light can only slow down inside a material (not speed up), n is always 1 or greater. Vacuum has n = 1 exactly; air has n = 1.000293, essentially 1 for most purposes; water has n = 1.333; and diamond has n = 2.417. A higher n means the material is optically denser.

What is Snell's law?

Snell's law describes how light bends (refracts) when it crosses the boundary between two materials with different refractive indices. The formula is n1 * sin(theta1) = n2 * sin(theta2), where n1 and n2 are the refractive indices, and theta1 and theta2 are the angles the ray makes with the normal to the surface in each medium. All four values are linked: if you know any three, you can solve for the fourth.

What is the critical angle?

The critical angle is the angle of incidence (measured from the normal) at which the refracted ray just grazes along the boundary (refraction angle = 90 degrees). It only exists when light travels from a denser medium to a less dense medium (n1 > n2), and equals arcsin(n2 / n1). Any incidence angle greater than the critical angle results in total internal reflection: no light passes into the second medium.

What is total internal reflection and where is it used?

Total internal reflection (TIR) occurs when a light ray travelling in a denser medium hits a boundary at an angle greater than the critical angle. All light is reflected back rather than transmitted. TIR is the fundamental principle of optical fiber communications, where glass or plastic fibers guide light over long distances with very low loss. It also produces the sparkle of gemstones, the bright appearance of road reflectors, and the operation of periscope prisms.

Why does light bend when it changes medium?

Light bends because its phase velocity changes at the boundary. Imagine a column of soldiers marching in formation at an angle toward a muddy field where they must slow down. The soldiers entering the mud first slow down while those still on hard ground continue at speed, causing the column to pivot - the direction changes. The same geometry applies to the wavefronts of light: when one side of a wavefront slows (in the denser medium) while the other side is still in the first medium, the wavefront tilts and the beam direction changes. Snell's law is the quantitative expression of this geometry.

Does the refractive index depend on the wavelength of light?

Yes. This property is called dispersion. In most transparent materials, shorter wavelengths (violet, blue) are slowed more than longer wavelengths (red), giving them a higher refractive index. The values in this calculator are for yellow sodium light at 589 nm, the conventional reference wavelength. For applications where wavelength accuracy matters (lens design, fiber optics, spectroscopy), you must look up or measure n at the specific wavelength you are working with, using the Sellmeier or Cauchy dispersion equations for the material.

How is the refractive index measured experimentally?

Several techniques exist depending on precision required. The simplest is Snell's law itself: measure the incidence and refraction angles at an air-glass interface with a protractor and solve for n. Higher-precision methods include minimum-deviation through a prism (measuring the angle where a prism bends a monochromatic beam least), interferometry (counting fringes as a path length changes), and ellipsometry (measuring how polarization state changes on reflection). Critical-angle refractometers such as the Abbe refractometer measure n directly by finding the angle at which light undergoes total internal reflection off the unknown sample.

Sources

Written by Dr. Tomás Okafor, PhD Physicist · Lagos, Nigeria

Physicist specializing in classical mechanics, bringing 17 years of research and applied dynamics expertise to every calculator he reviews.

Search 3,500+ calculators

Loading search…