Saved

Press the star next to a tool's name to save it.

All my tools

Snell's Law Calculator

Use this Snell's law calculator to find the refracted angle of light between two media, the critical angle for total internal reflection, or an unknown refractive index.

Restored your last values ·

Choose the refracted angle, the critical angle or the index of the second medium. Enter the refractive indices and the angles, measured from the normal, and the calculator shows the working.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want and fill in the boxes, then press Calculate.

See full result

A Snell's law calculator finds the angle at which light bends when it crosses the boundary between two media, such as air and water. Enter the refractive indices and the angle of incidence to get the refracted angle, or find the critical angle for total internal reflection, or the unknown index of a material.

How to use the Snell's law calculator

  1. Choose what you want.
  2. Enter the refractive indices and the angle from the normal.
  3. Press Calculate.

The law

Snell's law says that the ratio of the sines of the angles of incidence and refraction equals the ratio of the refractive indices of the two media, so that n₁ sin θ₁ = n₂ sin θ₂ [1]. Both angles are measured from the normal, the line at right angles to the surface. Light going into a medium with a higher index bends towards the normal, and into a lower one it bends away.

Refractive indices

The page gives typical indices: about 1.000293 for air, 1.333 for water, 1.52 for window glass and 2.417 for diamond [1]. Enter them as n₁ and n₂, or use the values for your own material. For a 30 degree ray going from air into water, the refracted angle is 22.04 degrees, found from sin θ₂ = 1.000293 × sin 30° ÷ 1.333 = 0.3752.

Total internal reflection

When light goes from a medium of higher index to a lower one, such as from water to air, the refracted ray bends away from the normal. Beyond a certain angle of incidence there is no refracted ray at all, and all the light is reflected. This is total internal reflection [1]. The calculator reports it when the sine of the refracted angle would be above 1.

Critical angle

The critical angle is the angle of incidence at which the refracted ray just grazes the surface, and its sine is n₂ ÷ n₁ [1]. For water to air, the critical angle is 48.63 degrees. The page gives the example of light in water that meets the surface at 50 degrees, which is above the critical angle, and so is totally reflected [1]. Try these values in the calculator to see both results.

Finding an unknown index

If you can measure the angles with a known first medium, you can find the index of a material: n₂ = n₁ sin θ₁ ÷ sin θ₂. A ray from air that meets a block at 40 degrees and refracts at 25 degrees gives an index of 1.521, which is about that of glass. This is a standard method for measuring the index of a transparent material in a laboratory, and the numbers are our own example.

Where it is used

The law explains why a straw looks bent in a glass of water, why a swimming pool looks shallower than it is and how lenses focus light. It is used to design lenses, prisms and optical fibres. Optical fibres keep the light inside by total internal reflection, which needs the core to have a higher index than the cladding.

Angles

All the angles in the calculator are measured from the normal. An angle of 0 degrees means that the ray travels along the normal and does not bend. An angle of 90 degrees means that the ray skims the surface. The angle of incidence must be below 90 degrees in the calculator, and the angle of refraction is always less than 90 degrees as well.

Limits

Snell's law is for light that passes between two uniform media with a sharp boundary. The index changes a little with the wavelength, which is why a prism splits white light into colours. For a precise result, use the index for the wavelength that you need. The calculator does not include the amount of light that is reflected at the boundary, only the angles.

Using the calculator

Pick the mode, enter the two indices and the angle, and press the button. The working line shows the sine that was calculated. For the refracted angle, a value above 1 for that sine means total internal reflection, and the tool tells you the critical angle instead. Use it to check homework, to plan an optical set-up or to see how the angle changes as the index changes.

Other critical angles

The critical angle depends on the two indices. From glass with an index of 1.52 into air it is 41.14 degrees, and from diamond with an index of 2.417 into air it is 24.44 degrees. A smaller critical angle means that more of the rays inside the material meet the surface above it, and are trapped. These two results are our own calculations from the indices that the page gives, and you can reproduce them with the critical angle mode.

Tips for accurate results

Check the indices before you start, since a small difference in the index of a glass can change the angle by a degree or more. Use the index at the wavelength of your light, and note that the values for air are very close to 1, so that for rough work you can use 1 exactly. Measure both angles from the normal, and keep the angle of incidence below 90 degrees.

Common mistakes

  • Measuring from the surface. Use the normal.
  • Swapping n₁ and n₂. n₁ is where the light starts.
  • Using the critical angle going into a denser medium. It needs a higher to lower index.
  • Mixing degrees and radians. The angles are in degrees.

What next

Use this often? Add Snell's Law to your Home screen.

Frequently asked questions

What is a Snell's law calculator?

A tool that finds the angle at which light bends when it crosses the boundary between two media.

What is Snell's law?

n₁ sin θ₁ = n₂ sin θ₂, with the angles measured from the normal.

What is the critical angle?

The angle of incidence at which the refracted ray grazes the surface: sin θc = n₂ ÷ n₁.

What happens above the critical angle?

The light is totally reflected and there is no refracted ray.

What is the refractive index of water?

About 1.333.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools