Tool · Optical materials

Snell’s Law Calculator

Light crossing a surface bends by Snell’s law, n₁ sin θ₁ = n₂ sin θ₂, and from the denser side it is totally reflected beyond the critical angle. From the two refractive indices and the angle of incidence the calculator gives the refracted angle, the critical and Brewster angles, and the reflected and transmitted power. Background: Snell’s law, critical angle, Brewster angle, total internal reflection, and Fresnel equations.

Interface
Light travels from the first medium into the second. Refractive indices depend on wavelength; the refractive index calculator gives them for common glasses and crystals.
Presets
Index values are typical: water and diamond near 589 nm, the fiber core and cladding of a standard single-mode fiber and silicon near 1550 nm.
Readouts
Rays at the interface
Reflectance against angle of incidence
s-polarizedp-polarizedunpolarized
Learn with it

Three short experiments. Each one sets the inputs, says where to look, and asks for a prediction before it shows the result.

Checked against

These checks run in your browser on every load. Angles and reflectances are compared with values worked out by hand, energy conservation is checked with the transmission coefficients, and the behavior at the critical and grazing angles is checked for continuity.

CheckExpectedComputedTolerance

The expected values follow Snell’s law and the Fresnel equations as given in Hecht, Optics, and Born and Wolf, Principles of Optics, evaluated by hand for the stated cases. The tolerance is the largest difference from Expected that still passes, relative to Expected or to 1, whichever is larger.

The model

At a flat interface between transparent media of refractive indices n1 and n2, light arriving at angle θ1 from the normal is refracted to θ2 given by

n1sin⁡θ1=n2sin⁡θ2,θc=arcsin⁡n2n1,θB=arctan⁡n2n1

Beyond the critical angle θc, which exists only when n1>n2, no refracted beam exists and all the light is reflected. At Brewster’s angle θB the p-polarized reflection vanishes. The reflected power follows the Fresnel equations,

rs=n1cos⁡θ1−n2cos⁡θ2n1cos⁡θ1+n2cos⁡θ2,rp=n2cos⁡θ1−n1cos⁡θ2n2cos⁡θ1+n1cos⁡θ2

with R=∣r∣2 and, for lossless media, T=1−R; unpolarized light has the average of the two. Under total internal reflection the field in the second medium decays over a depth λ/(2πn12sin⁡2θ1−n22), the basis of evanescent coupling. The intensity decays twice as fast, so the penetration depth quoted in TIRF microscopy, which refers to intensity, is half this value. The model takes both media as transparent and isotropic and the surface as flat and uncoated; for the phase on reflection and absorbing surfaces see the Fresnel equations calculator, and for coatings the thin-film reflectance calculator.

Worked example

Light passing from air into glass of index 1.5 at 30° is refracted to 19.471°, and 4.152 % of unpolarized light is reflected. In the other direction, from glass into air, the critical angle is 41.81°; at 45° all the light is reflected, and at 633 nm the evanescent field decays to 1/e within 285 nm of the surface. Brewster’s angle for air to glass is 56.31°.

References: E. Hecht, Optics, 5th ed. (Pearson, 2017), ch. 4. M. Born and E. Wolf, Principles of Optics, 7th ed. (Cambridge University Press, 1999), ch. 1.