User Rating 0.0 ★★★★★
Total Usage 0 times
Range: 0° to 90°
Range: 1.0000 to 5.0000
Range: 1.0000 to 5.0000
Incident Reflected Refracted Normal
Is this tool helpful?

Your feedback helps us improve.

★ ★ ★ ★ ★

About

Incorrect refraction calculations in optical engineering lead to misaligned lenses, failed fiber-optic couplings, and flawed gemstone cuts. This calculator applies Snell's Law - n1 ⋅ sin(θ1) = n2 ⋅ sin(θ2) - to compute the refracted ray angle at a planar interface between two homogeneous isotropic media. It detects total internal reflection when the incidence angle exceeds the critical angle θc. The tool assumes monochromatic light and ignores dispersion effects. For polychromatic sources, each wavelength requires a separate refractive index.

Beyond the refracted angle, the calculator reports the critical angle (when applicable) and Brewster's angle θB = arctan(n2 á n1), at which reflected light is fully polarized. An interactive ray diagram renders the geometry in real time. Pro tip: refractive indices are wavelength-dependent. Values listed here correspond to the sodium D-line at 589.3 nm. Using indices measured at other wavelengths introduces systematic error.

snells law refraction calculator angle of refraction optics refractive index total internal reflection critical angle brewster angle physics calculator

Formulas

The refracted angle is derived from Snell's Law of refraction, which governs the change in direction of a wavefront at the boundary between two media with different refractive indices.

n1 ⋅ sin(θ1) = n2 ⋅ sin(θ2)

Solving for θ2:

θ2 = arcsin(n1n2 ⋅ sin(θ1))

The critical angle θc exists only when light travels from a denser to a rarer medium (n1 > n2):

θc = arcsin(n2n1)

When θ1 ≥ θc, total internal reflection occurs and no refracted ray exists. Brewster's angle, at which reflected light is completely polarized:

θB = arctan(n2n1)

Where: n1 = refractive index of incident medium, n2 = refractive index of refracting medium, θ1 = angle of incidence (measured from the normal), θ2 = angle of refraction (measured from the normal).

Reference Data

MediumRefractive Index (n)WavelengthState
Vacuum1.0000589.3 nm(vacuum)
Air (STP)1.0003589.3 nm(g)
Water1.3330589.3 nm(l)
Ice1.3090589.3 nm(s)
Ethanol1.3610589.3 nm(l)
Glycerine1.4730589.3 nm(l)
Olive Oil1.4670589.3 nm(l)
Crown Glass1.5200589.3 nm(s)
Flint Glass1.6200589.3 nm(s)
Borosilicate Glass1.5170589.3 nm(s)
Fused Silica (Quartz)1.4585589.3 nm(s)
Polycarbonate1.5860589.3 nm(s)
Acrylic (PMMA)1.4920589.3 nm(s)
Diamond2.4170589.3 nm(s)
Cubic Zirconia2.1500589.3 nm(s)
Sapphire1.7700589.3 nm(s)
Ruby1.7600589.3 nm(s)
Silicon3.42001200 nm(s)
Germanium4.00002000 nm(s)
Salt (NaCl)1.5440589.3 nm(s)
Sugar Solution (50%)1.4200589.3 nm(l)
Carbon Disulfide1.6280589.3 nm(l)
Benzene1.5010589.3 nm(l)
Optical Fiber Core1.46801550 nm(s)
Optical Fiber Cladding1.45001550 nm(s)

Frequently Asked Questions

When n1 ⋅ sin(θ1) ÷ n2 exceeds 1, the arcsin function has no real solution. This means the incidence angle has exceeded the critical angle and total internal reflection (TIR) occurs. No refracted ray enters the second medium. The calculator detects this condition and reports TIR instead of producing an invalid result.
Refractive indices are wavelength-dependent (chromatic dispersion). The presets in this tool use values measured at the sodium D-line (589.3 nm). For blue light (~450 nm), indices are typically 0.5 - 2% higher, and for red light (~700 nm) they are lower. If you are designing systems for specific wavelengths (e.g., telecom at 1550 nm), enter the refractive index measured at that wavelength manually.
The critical angle formula is θc = arcsin(n2 ÷ n1). For this ratio to produce a valid angle (i.e., arcsin argument ≤ 1), n2 must be less than n1. When light moves from a rarer to a denser medium, the refracted ray bends toward the normal and TIR is physically impossible.
Brewster's angle θB is the incidence angle at which reflected light is 100% polarized in the plane parallel to the surface. It is used in designing anti-glare coatings, laser cavity windows (Brewster windows), and polarizing optics. At Brewster's angle, the reflected and refracted rays are perpendicular: θB + θ2 = 90°.
No. This calculator assumes isotropic media with a single refractive index. Birefringent (anisotropic) materials like calcite, quartz crystals, and liquid crystals have two refractive indices (ordinary and extraordinary). Each polarization component refracts at a different angle. For birefringent calculations, you would need to run the calculator twice with the respective ordinary and extraordinary indices.
Refractive indices decrease with rising temperature for most materials due to thermal expansion reducing density. For water, n drops by approximately 0.0001 per 1°C increase. For optical glasses, the thermo-optic coefficient (dn/dT) is typically 1 - 10 × 10−6 per °C. The preset values assume standard conditions (~20°C, 1 atm).