FREE Snell's Law Calculator & Prism Refraction Simulator Online - Interactive Light Refraction Tool

Snell’s Law & Prism Refraction

Compute refraction angles, critical angle, and prism deviation. Visualize rays with an interactive diagram.

Inputs
Results
θ₂ = °, θc = °
Step-by-Step Calculation
Click "Run" to see calculations...
Notes
Snell n₁·sinθ₁ = n₂·sinθ₂; critical angle θc = arcsin(n₂/n₁) for n₁>n₂.
Prism r₁ + r₂ = A; n·sin r₂ = sin i₂ (air outside). Deviation δ ≈ i₁ + i₂ − A.
Ray Diagram
About Snell’s Law
Definition: Snell’s law states that n₁·sin(θ₁) = n₂·sin(θ₂), where n is the refractive index and θ is the angle from the normal. It describes how waves bend at an interface between media.
Physical meaning: The component of wavevector parallel to the interface is conserved; the speed changes from v=c/n, so the direction must adjust to satisfy boundary conditions.
Critical angle & TIR: For light moving from higher to lower n (n₁>n₂), the transmitted angle increases until sinθ₂=1 at θ_c=arcsin(n₂/n₁). Beyond θ_c, transmission is not possible and the wave undergoes total internal reflection.
Applications: Lenses (imaging), fiber optics (TIR guidance), atmospheric mirages (gradient index), prisms (deviation/dispersion), and AR optics.
Prism deviation: A prism bends light twice. For apex A and internal angles r₁,r₂ with r₁+r₂=A, the emergent angle i₂ in air satisfies sin i₂ = n·sin r₂. The external deviation is δ ≈ i₁ + i₂ − A, minimized near the symmetric condition r₁=r₂=A/2.
Note: This tool assumes monochromatic light (single n). Dispersion (n(λ)) splits colors; a simple model could assign slightly different n for red/green/blue to visualize spread.
Related Physics Tools
After understanding how light bends through different media with Snell's Law, explore how lenses and mirrors focus and magnify light using the thin lens equation (1/f = 1/u + 1/v). Calculate focal length, magnification, image distance with interactive ray diagrams.

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.

About This Tool & Methodology

Applies Snell’s Law (n₁ sinθ₁ = n₂ sinθ₂) with SI units to compute refraction angles and optional prism deviation using standard approximations.

Learning Outcomes

  • Understand refraction at interfaces with different indices.
  • Explore critical angle and total internal reflection.
  • Practice unit consistency and angle conventions.

Authorship

  • Author: Anish Nath — Follow on X
  • Last updated: 2025-11-19

Trust & Privacy

  • Runs locally in your browser.