Drop a straw into a glass of water and it appears to snap at the surface. The straw is perfectly straight, of course — what bends is the path of the light traveling from the straw to your eye. As that light crosses from water into air, it changes direction, and your brain, which assumes light travels in straight lines, places the lower half of the straw where it never was.
That bending has a precise rule behind it. Snell's law tells you exactly how much a ray turns when it passes from one transparent medium into another, and it is the foundation of nearly every optical instrument ever built. This article explains what the law says, how to apply it, and the mistakes that trip people up.
Why this calculation matters
Refraction is not a curiosity confined to drinking glasses. Every camera lens, every pair of spectacles, every microscope objective, and every prism works by bending light in a controlled way at curved or angled surfaces. Designing those surfaces means predicting the ray angle at each interface, and that prediction starts with Snell's law.
The law also explains total internal reflection, the effect that traps light inside an optical fiber and lets it carry data across oceans. When light tries to leave a dense medium for a lighter one at a steep enough angle, it cannot refract at all and is reflected entirely back inside. Knowing the angle at which that happens — the critical angle — is essential for fiber design, for prism binoculars, and even for understanding why a swimming pool's surface can look like a mirror from underwater.
Get the refraction angle wrong and an image lands out of focus, a beam misses its target, or a fiber leaks light at every bend. Snell's law is the gatekeeper for all of it.
The core formula
Snell's law relates the angles a ray makes with the normal — the line perpendicular to the surface — on each side of the boundary:
n1 * sin(theta1) = n2 * sin(theta2)
Here n1 and n2 are the refractive indices of the first and second media, theta1 is the angle of incidence, and theta2 is the angle of refraction. Both angles are measured from the normal, not from the surface itself.
The refractive index n is the ratio of the speed of light in vacuum to its speed in the medium. It is always at least 1: air is about 1.00, water about 1.33, common glass about 1.50, and diamond about 2.42. The higher the index, the slower light moves in that material, and the more strongly the material bends a ray.
The behaviour follows one clean pattern. When light enters a denser medium — moving to a higher index — it bends toward the normal. When it leaves for a lighter medium, it bends away from the normal. To find the refracted angle directly, rearrange:
sin(theta2) = (n1 / n2) * sin(theta1)
There is a limit to this. When light goes from dense to light (n1 greater than n2), increasing theta1 eventually drives the right-hand side to 1. Beyond that incidence angle there is no valid theta2, and the ray is entirely reflected. That threshold is the critical angle:
theta_c = arcsin(n2 / n1)
A worked example
Consider a ray of light passing from air into a glass block. The air has refractive index n1 = 1.00 and the glass has n2 = 1.50. The ray strikes the surface at an angle of incidence theta1 = 40 degrees from the normal. What is the refraction angle?
Step 1 — write Snell's law.
n1 * sin(theta1) = n2 * sin(theta2)
Step 2 — solve for sin(theta2).
sin(theta2) = (n1 * sin(theta1)) / n2
sin(theta2) = (1.00 * sin 40 degrees) / 1.50
sin(theta2) = 0.643 / 1.50
sin(theta2) = 0.4285
Step 3 — take the inverse sine.
theta2 = arcsin(0.4285) = 25.4 degrees
The ray enters the glass at 25.4 degrees from the normal, noticeably steeper than the 40-degree approach. Because glass is the denser medium, the ray has bent toward the normal — exactly the pattern the law predicts. If the ray then exits the far side of the block back into air, it bends the same amount the other way and emerges parallel to its original direction, merely shifted sideways.
Common mistakes
Measuring angles from the surface. Snell's law uses angles from the normal, the perpendicular to the interface. A ray skimming almost along the surface has an incidence angle close to 90 degrees, not close to zero. Mixing up the reference line inverts the whole calculation.
Forgetting which way the ray should bend. A quick sanity check saves trouble: into a denser medium, bend toward the normal; into a lighter one, bend away. If your answer goes the wrong way, you have probably swapped n1 and n2.
Expecting a refracted ray when there isn't one. Going from a dense medium to a lighter one past the critical angle, there is no solution — the math returns a sine greater than 1. That is not an error; it is total internal reflection telling you the ray cannot escape.
Treating the refractive index as a single fixed number. Index depends on wavelength, which is precisely why a prism splits white light into colors. For careful work, use the index at the wavelength you actually care about.
Ignoring the reflected ray. Some light reflects at every interface, even when refraction occurs. Snell's law gives the refracted direction, but it does not tell you how the energy splits between the transmitted and reflected beams.
Try the interactive NovaSolver calculator
Working one refraction angle by hand is straightforward, but seeing how the bend changes as you sweep the incidence angle or swap materials builds far better intuition. The Snell's Law Simulator — Refraction & Total Internal Reflection on NovaSolver lets you set the two refractive indices and the incident angle, then draws the ray diagram in real time and reports the refraction angle, the critical angle, the n2/n1 ratio, and whether the ray refracts or undergoes total internal reflection — with a refracted-angle versus incident-angle curve plotted alongside.
Related calculators
- Refraction through a Prism — applies Snell's law twice to follow a ray through both faces of a prism and find the deviation angle.
- Lens Optics — for image position and magnification once you move from a flat interface to a curved one.
- Diffraction Grating Simulator — for the wave side of optics, where light is spread by interference rather than refraction.
You can browse the rest in the optics tools hub.
Closing note
Snell's law is one of the most rewarding equations in physics: a single ratio of sines that quietly governs cameras, eyes, telescopes, and the global fiber network. The essentials are easy to hold in your head — measure from the normal, bend toward the normal entering a denser medium, watch for total internal reflection on the way out. Master those and refraction stops being a trick of perception and becomes a tool you can design with.
Top comments (0)