Angle of Refraction Calculator
How much does light bend when passing between materials?
Calculate the angle at which light bends when passing from one material to another. Enter the incident angle and refractive indices to find the refraction angle 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
Imagine light as a marching band crossing from pavement onto grass at an angle. The front row hits the grass first and slows down, while the back row continues at full speed on pavement. This speed difference causes the entire formation to pivot toward the slower medium. Light behaves identically when crossing material boundaries.
Snell's law quantifies this pivoting: n1 × sin(θ1) = n2 × sin(θ2). The sine relationship means small incident angles produce proportionally smaller changes, while angles near 90 degrees create dramatic effects. This nonlinear response explains why looking through thick glass at steep angles creates more distortion than straight-on viewing.
The refractive index ratio n1/n2 determines bending direction. Light entering a denser medium (higher n) bends toward the normal line perpendicular to the surface. Light exiting to a less dense medium bends away from the normal. When the ratio exceeds the sine limit, total internal reflection occurs instead of transmission.
When To Use This
Right tool, right situation
Use refraction calculations when designing any optical system: camera lenses, eyeglasses, microscopes, telescopes, or fiber optic cables. The results determine focal lengths, magnification ratios, and light-gathering efficiency.
Apply Snell's law for underwater photography to predict how subjects will appear distorted at different viewing angles. Spearfishing and underwater welding also require refraction compensation to accurately judge distances and positions.
This calculator assumes perfectly flat, clean interfaces between uniform materials. Do not use for rough surfaces, gradient materials, or boundaries with significant thickness. Atmospheric refraction, oil films, and microscopic surface textures require more complex models than simple Snell's law.
Common Mistakes
Why results sometimes look wrong
The most common error is measuring angles from the surface instead of from the normal perpendicular to the surface. Snell's law requires normal-referenced angles, so a ray hitting a surface at 30° from horizontal has a 60° incident angle. This mistake leads to completely wrong refraction calculations.
Many people assume refraction always bends light toward the surface, but the direction depends on relative material densities. Light exiting water into air bends away from the normal, making underwater objects appear closer to the surface than they actually are.
Ignoring total internal reflection leads to impossible results when calculating transmission through materials. If your calculation yields sin θ > 1, the light reflects entirely rather than refracting. This is not a mathematical error but a physical reality that optical designers must account for.
The Math
Worked examples and deeper derivation
Snell's law emerges from the wave nature of light and the principle that light takes the path requiring minimum travel time. The mathematical form n1 sin θ1 = n2 sin θ2 applies universally to any interface between uniform materials.
The critical angle θc = arcsin(n2/n1) exists only when light travels from a denser to less dense medium (n1 > n2). Beyond this angle, the required sin θ2 would exceed 1, which is mathematically impossible. The energy reflects instead of transmitting.
Dispersion occurs because refractive index varies with wavelength according to the Cauchy equation: n(λ) = A + B/λ². Blue light (shorter wavelength) typically experiences higher refractive indices than red light, causing chromatic separation in prisms and lenses.
Expert Unlock
The thing most explanations skip
Professional optical designers know that Snell's law breaks down at grazing incidence angles near 90°, where surface roughness becomes comparable to wavelength dimensions. Fresnel reflection coefficients determine how much light reflects versus transmits, varying dramatically with polarization and incident angle even when transmission is mathematically possible.
What affects how much light bends?
Need something this doesn't cover?
Suggest a tool — we'll build it →