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.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
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.

Designing a Camera Lens
Light entering crown glass at 25° from air
The 16.8° refraction angle determines how the lens bends light to focus on the sensor. Smaller angles mean less dramatic focusing power.
Swimming Pool Depth Illusion
Looking at pool bottom at 60° from vertical
Water-to-air refraction at 40.6° makes the pool appear 25% shallower than it actually is — why diving feels deeper than expected.
Fiber Optic Design
Light in glass core hitting the cladding interface
Total internal reflection above 41.8° critical angle keeps light trapped inside the fiber, enabling long-distance communication.
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?

Why does light bend when entering glass?
Light slows down in denser materials like glass, causing the wavefront to pivot at the boundary. The greater the difference in material density, the more dramatic the bending. This is why diamond sparkles more than glass — it has a much higher refractive index.
What is total internal reflection?
When light tries to exit a dense material at too steep an angle, it cannot escape and reflects back instead. This happens in fiber optics to trap light and in diamonds to create brilliance. The critical angle depends on both material indices.
Does wavelength affect refraction angle?
Yes, different colors bend by slightly different amounts because refractive index varies with wavelength. Blue light typically bends more than red light in glass. This dispersion effect is how prisms separate white light into rainbows.

Need something this doesn't cover?

Suggest a tool — we'll build it →