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.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
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.
Common questions
Need something this doesn't cover?
Suggest a tool — we'll build it →