Snell's Law Calculator

Enter two refractive indices and one angle to instantly compute the missing angle using Snell's Law.

Use the Snell's Law Calculator

Input Parameters

Common Refractive Indices

Medium n
Vacuum1.000
Air1.000293
Water (20 °C)1.333
Mineral oil1.474
Crown glass1.500
Flint glass1.620
Dense flint glass1.900
Diamond2.417

Result

Fill in the fields and click Calculate to see results.

Ray Diagram

Copied!

Summary

Snell's Law describes how light bends when it passes from one transparent medium into another. The relationship n1·sin(θ1) = n2·sin(θ2) links the refractive indices of both media to the angles the light ray makes with the normal at the interface. This calculator lets you solve for the unknown angle of incidence or angle of refraction given both media refractive indices and one angle.

How it works

  1. Select or type the refractive index for the first medium (n1).
  2. Select or type the refractive index for the second medium (n2).
  3. Enter the angle of incidence (θ1) or angle of refraction (θ2) in degrees.
  4. Click Calculate to apply n1·sin(θ1) = n2·sin(θ2) and see the missing value.
  5. Use the diagram to visualize the refracted ray at the interface.
  6. Swap the media direction with the Swap button to reverse the calculation.

Use cases

  • Solve optics homework and exam problems involving light refraction.
  • Design lenses and prisms for cameras, telescopes, and microscopes.
  • Calculate the critical angle for total internal reflection in fiber optics.
  • Verify laboratory measurements of refractive index.
  • Teach and visualize Snell's Law interactively in a classroom setting.
  • Check ray-tracing calculations during optical system design.

Frequently Asked Questions

Last updated: 2026-09-30 · Reviewed by Nham Vu