Photonica
Tool · Optical materials

Snell’s Law Calculator

How far does light bend at a surface, how much of it is reflected, and at what angle is it trapped? 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 behaviour 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 n1n_1 and n2n_2, light arriving at angle θ1\theta_1 from the normal is refracted to θ2\theta_2 given by

n1sin⁡θ1=n2sin⁡θ2,θc=arcsin⁡n2n1,θB=arctan⁡n2n1n_1 \sin\theta_1 = n_2 \sin\theta_2, \qquad \theta_c = \arcsin\frac{n_2}{n_1}, \qquad \theta_B = \arctan\frac{n_2}{n_1}

Beyond the critical angle θc\theta_c, which exists only when n1>n2n_1 > n_2, no refracted beam exists and all the light is reflected. At Brewster’s angle θB\theta_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⁡θ2r_s = \frac{n_1\cos\theta_1 - n_2\cos\theta_2}{n_1\cos\theta_1 + n_2\cos\theta_2}, \qquad r_p = \frac{n_2\cos\theta_1 - n_1\cos\theta_2}{n_2\cos\theta_1 + n_1\cos\theta_2}

with R=∣r∣2R = |r|^2 and, for lossless media, T=1−RT = 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)\lambda / \bigl(2\pi\sqrt{n_1^2\sin^2\theta_1 - n_2^2}\bigr), the basis of evanescent coupling and TIRF microscopy. The model takes both media as transparent and isotropic and the surface as flat and uncoated; for coatings see 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.