Snell's Law Calculator
Calculate how a light ray refracts at a boundary between two media from an incident angle and two user-supplied refractive indices.
How It Works
Formula
Variables, symbols and units
- Refractive index of medium 1(dimensionless)
- Refractive index of medium 2(dimensionless)
- Incident angle from the normal(°)
- Refracted angle from the normal(°)
- Critical angle for total internal reflection(°)
Calculation method explained
Enter the incident angle from the normal in degrees, then enter the dimensionless refractive indices n1 and n2 for the two media. The calculator stays focused on one boundary: it solves the transmitted angle when a real refracted ray exists and switches to a total-internal-reflection result when it does not.
The calculator applies Snell’s law . All angles are measured from the normal. When , it also computes the critical angle . If , there is no real transmitted ray, so the result becomes total internal reflection instead of a fake angle. Refractive indices here are user-supplied dimensionless inputs, not built-in material references, and real values can vary with wavelength, temperature, and material conditions.