Home · Science · Optics · Snell's Law Calculator

Snell's Law Calculator

Find the refraction angle when light crosses into a medium of different refractive index, plus the critical angle for total internal reflection.

Your figures

Example result — edit the figures to make it yours

48.59 degrees

Angle of refraction

Computed from the inputs on this page with the formula below — change any figure and every result updates.

Critical angle41.81 degrees

What this calculator does

Find the refraction angle when light crosses into a medium of different refractive index, plus the critical angle for total internal reflection. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

n₁ · sinθ₁ = n₂ · sinθ₂

Angles are measured from the surface normal and entered in degrees.

The critical angle output asin(n₂/n₁) applies when light travels from the denser medium (n₁) toward the rarer one (n₂ < n₁); beyond it, all light reflects internally.

Worked example

With the example inputs this page opens with (refractive index of medium 1 1.5, refractive index of medium 2 1, angle of incidence (degrees) 30), the result is 48.59 degrees — angle of refraction. Computed from the inputs on this page with the formula below — change any figure and every result updates.

Quick reference

Quick reference — varying refractive index of medium 1
Refractive index of medium 1Angle of refraction
1.236.87 degrees
1.548.59 degrees
1.87569.64 degrees

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why does a straw look bent in a glass of water?

Light from the straw refracts at the water surface (n ≈ 1.33 to air n ≈ 1.0), so the eye traces the rays back to a shallower apparent position.

What is the critical angle for water to air?

asin(1/1.33) ≈ 48.8° — beyond that angle, underwater light reflects off the surface like a mirror.

How does the Snell's Law Calculator work?

Find the refraction angle when light crosses into a medium of different refractive index, plus the critical angle for total internal reflection. Indices · Incidence angle → Refraction angle. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Snell's Law Calculator need?

Indices · Incidence angle → Refraction angle. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.