Physics

Snell’s Law Calculator

Calculate the refraction angle as light passes between two materials.


Snell’s Law Calculator

Advertisement

Calculates the angle light bends to as it passes from one transparent material into another with a different refractive index.

How it works

The first material’s refractive index and the sine of the incidence angle are combined and divided by the second material’s refractive index, then inverted with arcsine to find the refraction angle.

What this does not include

This does not include finding a material’s refractive index from a measured speed — for that, use this site’s index of refraction calculator instead.

How to use this calculator

  1. Enter both materials’ refractive indices and the incidence angle.

A worked example

Light traveling from air (n=1) into glass (n=1.5) at a 30° angle: refraction angle = 19.4712° — bending toward the normal as it enters the denser medium.

Light traveling from glass (n=1.5) back into air (n=1) at 20°: refraction angle = 30.8659° — bending away from the normal leaving the denser medium.

What the variables mean

Variable Meaning
n1, n2 Refractive indices of the first and second medium
Angle 1 Incident angle, measured from the normal

Edge cases worth knowing

Light bends toward the normal entering a denser medium, and away from it leaving one — the two examples above show both directions of this exact rule.

At a large enough angle going from denser to less dense medium, total internal reflection occurs — no refraction angle exists at all, which is why the third test case (60° from glass into air) has no result. This is the same physics behind fiber optic cables trapping light inside.

Frequently asked questions

Why does light bend when entering a denser material?

Light slows down in a denser (higher refractive index) material, and that change in speed causes the light ray to bend toward the normal (perpendicular) line.

What is total internal reflection?

When light tries to pass into a less dense material at too steep an angle, no refracted ray can satisfy the equation — the light reflects entirely back instead of refracting through.

What’s a real-world example of Snell’s law?

A straw appearing bent where it enters water, or the design of eyeglass lenses and camera optics, all rely on this same refraction principle.

Be the first to rate this

Written by

R. Solano

Physics writer

R. Solano writes the physics calculators, spanning mechanics, electricity, optics and thermodynamics. Each page names the physical model it uses and the conditions under which that model holds — ideal gas, no air resistance, small-angle approximation — because a physics result without its assumptions is a number without a meaning. Formulas are given in symbols first, then in the calculator.

Reviewed by

V. Kowalski

Calculator reviewer — physics and engineering

V. Kowalski reviews the physics and engineering calculators, checking that each page states the physical model it assumes and that the stated model matches the formula actually implemented. Review covers unit consistency throughout a calculation and whether approximations are flagged where the underlying physics is more complicated than the formula suggests.

How we write and review

Related calculators