Snell's Law Calculator

Precisely compute refraction angle, critical angle, and refractive index ratio using Snell's Law. Visualize light rays bending at the interface between two media.

e.g., Air = 1.0003, Water = 1.333
Higher n means optically denser
Measured from normal (0° = normal incidence)
? Air → Water (n1=1, n2=1.33, θ1=45°)
? Water → Air (n1=1.33, n2=1, θ1=30°)
? Glass → Air (n1=1.5, n2=1, θ1=40°)
? Diamond → Air (n1=2.42, n2=1, θ1=24°)
⚠️ Critical Angle Demo (Water→Air)
Local computation: All calculations run in your browser. No data is sent to any server.

Snell's Law Solver – Find Missing Refractive Index

If you know incident angle, refraction angle, and one refractive index, compute the other index directly.

Result n₂ =
Formula: n₂ = n₁ * sinθ₁ / sinθ₂. Valid when sinθ₂ ≠ 0.

Understanding Snell's Law: The Principle of Refraction

Snell's Law (also known as Descartes' law) describes how light bends when crossing the boundary between two isotropic media. Formulated by Willebrord Snellius in 1621, it is fundamental to geometrical optics: n₁ sinθ₁ = n₂ sinθ₂, where θ₁ and θ₂ are angles measured from the normal, and n₁, n₂ are refractive indices.

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

The product of refractive index and sine of angle remains constant across the interface.

Key Phenomena & Applications

  • Total Internal Reflection (TIR): When n₁ > n₂ and θ₁ exceeds critical angle θ_c = arcsin(n₂/n₁), light is completely reflected. Used in fiber optics, endoscopes, and prisms.
  • Lens Design: Snell's Law governs ray bending in lenses, enabling cameras, microscopes, and eyeglasses.
  • Mirages & Atmospheric Refraction: Temperature gradients cause variable refractive indices, bending light and creating illusions.
  • Rainbow Formation: Dispersion and refraction in water droplets separate white light into colors.

Derivation from Fermat's Principle

Snell's Law can be derived from Fermat's principle of least time: light takes the path that minimizes travel time between two points. Mathematically, δ∫ n ds = 0 leads to the condition n₁ sinθ₁ = n₂ sinθ₂. This variational approach connects optics to Hamiltonian mechanics and underlies modern electromagnetic theory.

Important Assumptions & Limitations

This calculator implements classical geometric optics and makes the following standard assumptions:

  • Isotropic, homogeneous media – Refractive index is constant throughout each medium
  • Non-magnetic materials – Magnetic permeability μ ≈ μ₀ (true for most optical materials)
  • Smooth planar interface – Surface roughness is negligible compared to wavelength
  • Monochromatic light – Calculations assume single wavelength; dispersion effects are not considered
  • Lossless media – Absorption and scattering are neglected

For anisotropic crystals, metamaterials, or strongly dispersive media, more advanced models (tensor formulation, Sellmeier equations) are required. This tool is accurate for standard optical materials (glass, water, air) under typical conditions.

How to Use This Calculator

  1. Enter refractive indices n₁ (incident side) and n₂ (transmitting side).
  2. Provide incident angle θ₁ (0° to 90°). The calculator computes refraction angle θ₂ using Snell's Law.
  3. If n₁ > n₂, the tool automatically displays critical angle and warns if θ₁ exceeds it (TIR).
  4. The ray diagram updates in real time showing incident and refracted rays.
  5. Use the secondary solver to determine unknown refractive index from angles.

Real‑World Case Study: Fiber Optic Communication

Optical Fiber Total Internal Reflection

A typical silica glass fiber has core refractive index n_core = 1.48 and cladding n_clad = 1.46. The critical angle at core-cladding interface is θ_c = arcsin(1.46/1.48) ≈ 80.6°. For light to be guided, the incidence angle at the interface must exceed this critical angle. Using Snell's law at the air-core entrance, engineers determine the acceptance cone. Our calculator instantly shows TIR conditions – try n₁=1.48, n₂=1.46, θ₁=85° to see total reflection (θ₂ undefined). This principle enables high‑speed internet across oceans.

Common Misconceptions & Clarifications

  • Higher refractive index always bends light toward normal: True when light goes from lower n to higher n; opposite when from higher n to lower n.
  • Critical angle exists for any interface: Only when n₁ > n₂. Otherwise, no TIR possible.
  • Snell's law fails for anisotropic media: Yes, but for isotropic media (standard glasses, water, air) it is exact.
  • Refractive index is constant for all wavelengths: In reality, dispersion causes n to vary with wavelength (chromatic aberration). This calculator uses single-wavelength values.

Refractive Index Reference Table

Material Refractive Index (at 589 nm) Optical Density Common Applications
Vacuum 1.00000 Lowest Reference standard
Air (STP) 1.000293 Very low Atmospheric optics, interferometry
Water (20°C) 1.333 Low Underwater optics, lenses
Crown Glass 1.52 Medium Windows, microscope slides
Flint Glass 1.62 High Camera lenses, prisms
Diamond 2.42 Very high Gemology, high-reflectance coatings

Algorithm validation: Calculations have been cross-verified against industry-standard software (Zemax OpticStudio, Code V) .

Educational accuracy: All physics explanations and derivations follow standard optics textbooks including Hecht's "Optics" (5th ed.) and Born & Wolf's "Principles of Optics". The implementation uses double-precision floating-point arithmetic for 15+ significant digit accuracy. Last content review: 2026-04

Frequently Asked Questions

Normal incidence: the ray passes straight without bending; θ₂ = 0° regardless of refractive indices.

When n₁ > n₂ and sinθ₁ > n₂/n₁, total internal reflection occurs. No refracted ray exists; the calculator alerts and disables refraction angle.

Yes, Snell's law also applies to sound refraction with appropriate acoustic impedances; the formula is analogous.

Double-precision arithmetic yields 15+ significant digits. Angles are accurate to 0.001° for typical inputs.

Possible reasons: 1) Wavelength dependence – the calculator uses fixed n values (typically 589 nm), but actual n varies with wavelength (dispersion). 2) Temperature effects – refractive indices change with temperature. 3) Measurement uncertainties in angles. 4) Surface quality and interface imperfections. This tool is optimized for theoretical calculations; for high-precision applications, consult material-specific dispersion formulas and measured data.
References: Wolfram ScienceWorld; Hecht, E. "Optics" (5th ed., Pearson, 2017); Born, M. & Wolf, E. "Principles of Optics" (7th ed., Cambridge, 1999); NIST Physical Measurement Laboratory; Wikipedia: Snell's Law.