Snells Law Calculator

Calculate how light bends when passing between different materials.

Enter the incident angle and refractive indices of two materials. Calculate the angle of refraction when light passes from one medium to another using Snell's law.

Updated June 2026 · How this works

Worth knowing
How It Works
The formula, explained simply

Snell's law describes exactly how light changes direction when crossing from one transparent material to another. This snells law calculator applies the fundamental equation n₁ sin(θ₁) = n₂ sin(θ₂), where n represents refractive indices and θ represents angles measured from the perpendicular to the surface.

When you enter an incident angle and two refractive indices, the calculator determines whether refraction is possible or if total internal reflection occurs. Light always bends toward the normal (perpendicular) when entering a denser medium with higher refractive index, and away from normal when entering a less dense medium. The amount of bending depends on the difference between refractive indices.

The calculator also identifies total internal reflection situations. When light travels from a denser to less dense medium beyond the critical angle, it cannot pass through and reflects completely back. This principle enables fiber optic cables to guide light over long distances and creates the sparkling effect in cut diamonds.

Understanding snell's law refraction is essential for designing optical instruments, explaining natural phenomena like mirages, and predicting how light behaves in different materials from air and water to specialized optical glasses.

When To Use This
Right tool, right situation

Use this snells law calculator when designing optical systems like camera lenses, microscopes, or telescopes where precise light path prediction is essential. Engineers rely on snell's law calculations for fiber optic cable design, ensuring light signals stay trapped within the core through total internal reflection.

The calculator proves valuable for understanding everyday optical phenomena. Explain why objects appear at different depths underwater, why stars twinkle due to atmospheric refraction, or how eyeglasses correct vision by precisely controlling light angles entering your eye.

Apply snells law calculations in gemstone cutting, where angles determine brilliance and fire. Diamond cutters use these principles to maximize internal reflection and create the sparkle effect. Similarly, prism designers use refraction angle calculations to separate white light into component colors for spectroscopy applications.

Common Mistakes
Why results sometimes look wrong

The most common error when applying snells law is measuring angles from the surface instead of from the normal (perpendicular line). Always measure both incident and refracted angles from the imaginary perpendicular line at the boundary point. Surface angles will give completely incorrect results.

Another frequent mistake involves confusing which medium has which refractive index. Light behavior depends critically on whether you're going from less dense to more dense material or vice versa. Air to glass behaves differently than glass to air with the same numerical angle values.

Many people forget that total internal reflection only occurs when traveling from higher to lower refractive index materials. You cannot get total internal reflection going from air into water, only from water back to air. The snells law calculator prevents this error by checking the mathematical validity of solutions before displaying results.

The Math
Worked examples and deeper derivation

The mathematical foundation of this snells law calculator rests on the relationship between wave speed and direction change. When light enters a new medium, its frequency stays constant but wavelength and speed change according to the refractive index n = c/v, where c is light speed in vacuum and v is speed in the material.

The sine relationship in n₁ sin(θ₁) = n₂ sin(θ₂) emerges from Fermat's principle that light follows the path requiring minimum travel time. This creates the precise angular relationship that determines refraction angles. The calculator converts degrees to radians internally since trigonometric functions require radian input for accurate computation.

Critical angle calculation uses θc = arcsin(n₂/n₁) when light moves from higher to lower refractive index. Beyond this angle, the sine function would require a value greater than 1, which is mathematically impossible, resulting in total internal reflection instead of refraction.

Light entering water
Air (n=1.0) to water (n=1.33) at 45° incident angle
The light ray refracts to 32.1°, bending toward the normal as it enters the denser water.
Underwater to air
Water (n=1.33) to air (n=1.0) at 30° incident angle
The refracted angle is 41.8°, bending away from normal as light exits to less dense air.
Glass prism
Air (n=1.0) to crown glass (n=1.52) at 60° incident angle
Light refracts to 35.3°, demonstrating how prisms bend light by changing its path through denser material.

Common questions

How do I calculate the angle of refraction using Snells law
Use the formula n₁ sin(θ₁) = n₂ sin(θ₂). Multiply the first refractive index by the sine of the incident angle, then divide by the second refractive index. Take the arcsine of this result to get the refraction angle. This snells law calculator handles the trigonometry automatically.
What happens when light cannot refract through a material
Total internal reflection occurs when light tries to pass from a denser to less dense medium at too steep an angle. The critical angle depends on both materials' refractive indices. Beyond this angle, all light reflects back instead of refracting through the boundary.
Why does light bend differently in water versus glass
Each material has a unique refractive index that determines how much light slows down inside it. Water has n=1.33 while typical glass has n=1.5. Higher refractive index materials bend light more dramatically, which is why glasses lenses can focus light effectively using snells law principles.

Need something this doesn't cover?

Suggest a tool — we'll build it →