Active experiment

Snell’s Law Calculator

Calculate snell’s law with validated inputs, formula substitution, and worked steps.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the snell’s law calculation mean?

Refraction occurs because light changes speed when it crosses into a medium with a different refractive index, bending toward the normal when slowing and away when speeding up. Snell’s law relates the angles in the two media through their indices.

When to use it

Use it for lenses, prisms, fibre optics, and any apparent-depth or bending problem.

Formula

Use the relationship shown in the interactive formula panel.

In plain text: Use the relationship shown in the interactive formula panel.

Variables and units

SymbolMeaning
n₁, n₂refractive indices of the two media
θ₁angle of incidence from the normal
θ₂angle of refraction
θccritical angle where applicable

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.

Worked example

Light entering glass of index 1.50 from air at 40° refracts to sin θ₂ = sin 40°/1.50 ≈ 0.4285, so θ₂ ≈ 25.4°.

Common mistakes

  • Measure angles from the normal, not the surface.
  • Going to a lower index can produce total internal reflection instead of refraction.
  • The index is wavelength-dependent, which causes dispersion.

Interpret the result

When entering a denser medium the ray should bend toward the normal, so a result bending away signals swapped indices.