🔬
🔬 Science & engineering

Snell’s Law Calculator (refraction angle & critical angle)

Results update as you type.

Your numbers

Understanding the Snell's law calculator — concept and principle

This calculator applies Snell's law to find the angle of refraction when light passes from one medium into another, whether total internal reflection occurs, the critical angle, how much the ray bends and the speed of light in each medium. It includes common media such as air, water, glass and diamond. It is used in optics courses and for lenses, prisms and fibres.

Snell's law refractionLight entering water bends30°22.04°air 1.000293water 1.33322.04°−7.96°no TIR
Light slows in water, so it bends toward the normal: 30° in air becomes 22.04° below the surface.

How it is calculated

n₁ sin θ₁ = n₂ sin θ₂

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

Critical angle (n₁ > n₂): θ_c = arcsin(n₂ ÷ n₁)

Speed of light in a medium = c ÷ n

The principle

Light travels more slowly in denser optical media. When a wavefront crosses a boundary at an angle, the part that enters first slows down first, so the wavefront pivots and the ray changes direction. Going into a medium with a higher index, the ray bends towards the normal; going into a lower index, it bends away. Beyond the critical angle, no refracted ray can exist and all the light reflects, which is how optical fibres trap light.

Worked example

Default inputs: from air (1.000293) into water (1.333), incidence 30°.

  1. sin θ₂ = 1.000293 × sin 30° ÷ 1.333 = 0.3752.
  2. θ₂ = arcsin 0.3752 = 22.04°.
  3. Change of direction = 30 − 22.04 = 7.96°; the ray bends towards the normal.
  4. Light going into a denser medium cannot be totally reflected: no, critical angle —.
  5. Speeds: 299,705 km/s in air and 224,901 km/s in water.
How Angle of refraction (°) changes with Angle of incidence (° from the normal)How Angle of refraction changes with Ang…010203040507.51522.53037.54560Example: 22.04Angle of incidence (° from the normal)
Each point is the calculator re-run with only “Angle of incidence (° from the normal)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Angle of incidence (° from the normal)Angle of refraction (°)
7.55.62
1511.2
22.516.69
3022.04
37.527.18
4532.05
6040.53

How to read the result

The bigger the index difference, the more the ray bends. Reverse the media (water into air) to see total internal reflection above about 48.6°. Indices vary slightly with wavelength, which is what makes prisms split colours.

Common mistakes

Keep in mind: Values are for visible light near 589 nm; other wavelengths and materials differ slightly.

Frequently asked questions

Why does a straw look bent in water?

Light from the straw bends at the water surface, so your eye sees it in a shifted position.

What is total internal reflection?

Complete reflection when light tries to leave a denser medium above the critical angle.

What is the critical angle from water to air?

About 48.6°.

Why does diamond sparkle?

Its high index gives a small critical angle, so light reflects many times inside.

Sources: OpenStax, University Physics Volume 3 (2016), sections 1.1 and 1.4

Checked 9 Nov 2026. OpenStax, University Physics Volume 3 (2016): §1.1 Table 1.1 “Index of Refraction in Various Media”, §1.4 “Total Internal Reflection” (Snell’s law n₁ sin θ₁ = n₂ sin θ₂; θc = sin⁻¹(n₂/n₁) for n₁ > n₂).

🔬 All science & engineering tools →🌍 Calculators by country →