SciencePhysics

Snell's Law Calculator,
refraction.

Find the angle light bends through at a surface, or the index of an unknown material.

How it's worked out

Light changes speed when it crosses into another transparent material, and that change bends it. Snell's law ties the two angles to the two refractive indices. The refractive index nn of a material is how many times slower light goes in it than in a vacuum.

n1sin⁡θ1\displaystyle n_1 \sin\theta_1=n2sin⁡θ2\displaystyle {}= n_2 \sin\theta_2

Both angles are measured from the normal, the line at right angles to the surface. Medium 1 is where the light comes from. Rearranging for any one of the four quantities takes one step, and the angle answers then need an inverse sine.

sin⁡θ2\displaystyle \sin\theta_2=n1sin⁡θ1n2\displaystyle {}= \frac{n_1 \sin\theta_1}{n_2}
v\displaystyle v=cn\displaystyle {}= \frac{c}{n}

With \(c\) fixed at 299,792,458 m/s, light in crown glass goes at 1.98 × 10⁸ m/s. Going from a high index to a lower one, the right side can come out above 1, and no angle has a sine that big. The largest angle that still gets through is the critical angle.

θc\displaystyle \theta_c=sin−1⁡n2n1\displaystyle {}= \sin^{-1}\frac{n_2}{n_1}

The share of light reflected comes from the Fresnel equations. They treat two polarizations apart, s and p, and the main reflected figure is their average, as for ordinary unpolarized light. Brewster's angle is where the p part drops to zero.

tan⁡θb\displaystyle \tan\theta_b=n2n1\displaystyle {}= \frac{n_2}{n_1}

Worked examples

Priya traces a beam into a crown glass block

A laser in air hits a crown glass block at 30° from the normal. Inside the glass the beam runs at 19.25°, so it has bent 10.7° toward the normal, as it must on entering a higher index.

At the surface 4.37% of the light reflects. Split by polarization, that is 6.06% for s and 2.67% for p, which is why polarized sunglasses cut glare. At exactly 0° nothing bends, and 4.21% still reflects.

Open this example in the tool

A diver looks up at the surface

Going from water into air at 60°, no light gets out, since the critical angle is 48.63°. The surface acts as a perfect mirror from below.

Run the rays the other way and the whole sky above squeezes into a cone 97.3° wide, directly overhead. Outside that cone, the diver sees a reflection of the water below.

Open this example in the tool

Sam measures an unknown block of plastic

Sam shines a beam in at 40° and measures 25° inside the block. Solving for the second index gives 1.521. A rough angle reading limits the result: both angles were measured to the nearest degree, so the third figure is already in doubt.

The OpenStax table lists crown glass at 1.52, so this reading is close to it. Measure at a few angles, and the steeper ones are the more reliable.

Open this example in the tool

Reading your result

Bending direction. A bigger second index bends the ray toward the normal; a smaller one bends it away. If you get the opposite, the two media are swapped. The speed ratio, n1n_1 over n2n_2, tells the same story: under 1 means light slows down.

Critical angle. There is only a critical angle when the light is leaving the higher index. For diamond it is about 24.4°, and 24.4° with the 2.417 value used here. Such a small angle is why light that enters a cut stone tends to bounce around inside it.

Reflected share. Near the normal the share is small and barely changes, and it climbs fast toward 100% at grazing angles. For air into crown glass, the p part falls to zero at Brewster's angle, 56.6°.

Color. The materials list uses values near 589 nm, yellow light. Crown glass runs from 1.512 for red to 1.530 for violet. At 45° that moves the refraction angle from 27.89° to 27.54°, which is the split a prism shows.

Common mistakes

Measuring from the surface. A ray 30° above the surface is 60° from the normal. Entering 30° by mistake gives 19.25° rather than 34.83° for air into crown glass.

Swapping the media. Medium 1 is always the side the light starts on. The law gives the same numbers either way for a ray that gets through, but only the right order finds total internal reflection.

Leaving a calculator in radians. Sine of 30 in radians is negative, and the sum falls apart. Here each angle box has its own unit, so check it matches what you typed.

Thinking the critical angle reflects everything. All of the light reflects only past that angle. Just below it, most does, and a faint ray still leaves along the surface.

Questions people ask

The light slows down in glass, by the factor given by the index. When a wave front hits the surface at a slant, one side of it slows first while the other keeps going, so the whole front pivots. A ray coming in straight along the normal slows just the same but has nothing to pivot.

Sources