physics • optics

Snell's Law

Interactive simulation of light refraction, critical angles, and total internal reflection.

⚡ TOTAL INTERNAL REFLECTION
Medium 1 (Top)
Medium 2 (Bottom)
Ray Control
Visualization
Mode
Statistics
Incident
30°
Refracted
22°
Critical
49°
Reflectance
4%

How It Works

Snell's Law describes how light bends when passing between two transparent media with different refractive indices. The simulation shows the incident ray, refracted ray, and reflected ray in real-time.

n₁ · sin(θ₁) = n₂ · sin(θ₂)

Total Internal Reflection (TIR): When light travels from a denser to a less dense medium (n₁ > n₂) at an angle greater than the critical angle, all light reflects back. No refracted ray is transmitted.

θc = arcsin(n₂/n₁) [when n₁ > n₂]

Drag the ray endpoint on the canvas to adjust the incident angle, or use the slider. Change the refractive indices to see how different materials bend light. The reflectance percentage shows how much light is reflected vs. transmitted.