Angle of Refraction Calculator

Compute the angle of refraction, critical angle, and visualize light bending at the interface between two optical media. Based on Willebrord Snellius' law – essential for optics, lens design, and understanding mirages or fiber optics.

Air ≈1.0003, Water=1.33, Glass≈1.52
Diamond=2.42, Crown glass=1.52
Measured from normal (0° = normal incidence)
? Air → Water (n1=1.0, n2=1.33, θ₁=30°)
? Water → Air (n1=1.33, n2=1.0, θ₁=40°)
? Glass → Air (n1=1.52, n2=1.0, θ₁=35°)
? Diamond → Water (n1=2.42, n2=1.33, θ₁=25°)
? Fiber optics (core=1.48, cladding=1.46, θ₁=10°)
Privacy first: All calculations performed locally. No data leaves your browser.

Understanding Snell's Law and Refraction Angle

Snell's Law (also known as Descartes' law) governs how light rays bend when crossing the interface between two media with different refractive indices. The refraction angle θ₂ is given by: n₁ sin θ₁ = n₂ sin θ₂. This calculator solves for θ₂, determines the critical angle for total internal reflection, and provides an interactive ray diagram to visualize the bending.

n₁ · sin(θ₁) = n₂ · sin(θ₂)   ⇒   θ₂ = arcsin( (n₁/n₂) · sinθ₁ )

Derivation & Physical Meaning

When light passes from a medium with refractive index n₁ into a medium with n₂, the change in wave speed causes the ray to change direction. If n₂ > n₁ (e.g., air to water), light bends toward the normal; if n₂ < n₁ (e.g., water to air), light bends away from the normal. The critical angle exists only when n₁ > n₂, beyond which total internal reflection occurs — the principle behind fiber optics.

Real-World Applications & Case Studies

Fiber Optic Communications

In modern fiber optics, light is guided through a glass core (n₁≈1.48) surrounded by a cladding (n₂≈1.46). By ensuring the incident angle exceeds the critical angle (≈80.5° from normal), total internal reflection traps light inside the core, enabling high-speed data transmission across oceans. Our calculator instantly finds the critical angle and checks for TIR conditions.

Optics in Eyeglasses & Lenses

Lens designers use Snell's Law to compute how much incoming light bends at each lens surface. By controlling refraction angles, corrective lenses focus light precisely onto the retina. This tool helps verify basic refraction parameters before advanced ray tracing.

Refractive Index Reference Table

Material Refractive Index (n) Typical use
Vacuum 1.00000 Reference standard
Air (STP) 1.0003 Atmospheric optics
Water (20°C) 1.333 Underwater imaging
Crown Glass 1.52 Lenses, windows
Flint Glass 1.62 Prisms
Diamond 2.42 Brilliance, dispersion
Optical Fiber Core 1.46 - 1.48 Telecom

Step-by-Step Calculation Process

  1. Collect inputs: n₁ (incident refractive index), n₂ (transmitting index), θ₁ (incident angle).
  2. Check for total internal reflection: If n₁ > n₂ and sinθ₁ ≥ n₂/n₁ → TIR occurs; no refraction angle.
  3. Compute refraction angle: θ₂ = arcsin( (n₁/n₂) * sinθ₁ ), result given in degrees.
  4. Critical angle: θ_c = arcsin(n₂ / n₁) when n₁ > n₂, else 'none'.
  5. Ray diagram rendering: Draws incident/refracted rays and normal line based on computed angles.

Total Internal Reflection & Critical Angle Explained

When light travels from a denser medium (higher n) to a rarer medium (lower n), the angle of refraction reaches 90° at the critical angle θc = arcsin(n₂/n₁). For incident angles greater than θc, all light reflects back into the first medium — this is exploited in endoscopes, binoculars, and optical sensors. Our tool marks TIR and displays the reflected ray on the diagram.

Common Misconceptions

  • Refraction always bends toward normal? False: If n₂ < n₁, light bends away from normal.
  • Larger n means faster light speed? No: n = c/v, higher n means slower light.
  • Critical angle exists for any pair? Only if n₁ > n₂.

Historical Context: Snell & Descartes

Willebrord Snellius (1580–1626) discovered the law of refraction experimentally in 1621, but René Descartes first published it in his “Dioptrique” (1637). Today, Snell's law is fundamental to lens design, seismology (wave refraction), and even underwater acoustics. The interactive diagram above visualizes the geometric intuition that helped shape modern optics.

Scientific Rigor & References: Based on classical electrodynamics and verified against authoritative sources (Hecht, E. “Optics”; Wolfram Research). The calculator uses double-precision arithmetic and live canvas rendering. Reviewed by the GetZenQuery Tech team, updated June 2026.

Designed for high school, university, and engineering applications — fully client-side, open for inspection.

Frequently Asked Questions

Degrees, measured from the normal (perpendicular) to the interface. You can also convert to radians, but our calculator works with degrees for ease.

When TIR occurs, we draw a reflected ray (yellow) in the incident medium instead of a refracted ray, and the refraction angle is labeled "TIR".

Yes, Snell's law applies to any wave phenomenon (sound, seismic, water) with appropriate wave speeds. Just input the ratio of wave speeds as "n₁/n₂ = v₂/v₁".

Critical angle is derived from setting θ₂ = 90° → sinθ₂ =1, giving sinθ_c = n₂/n₁. The equation n₁ sinθ_c = n₂ sin(90°) = n₂ yields the same.
References: Wolfram Snell's Law, Encyclopaedia Britannica, Hecht, E. (2017). "Optics".