Works on this device
Snell Law Calculator
When light passes from one material into another, it bends. Snell's law, n₁ sin θ₁ = n₂ sin θ₂, tells by how much. Find the angle of refraction, the angle of incidence or an index, with the working shown.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to find: the angle of refraction, the angle of incidence, or one of the two refractive indices. For a stack of materials, choose A ray through several layers.
- Enter the other three values. Angles are measured from the normal, the line at right angles to the surface. You can pick an example pair of media from the list.
- Choose Calculate. When the light cannot leave the first medium, the result says so: that is total internal reflection.
The formula
Snell's law: n₁ × sin θ₁ = n₂ × sin θ₂.
- Angle of refraction: θ₂ = arcsin(n₁ × sin θ₁ ÷ n₂). If n₁ × sin θ₁ ÷ n₂ is more than 1, there is no refracted ray: total internal reflection.
- Angle of incidence: θ₁ = arcsin(n₂ × sin θ₂ ÷ n₁).
- An index: n₂ = n₁ × sin θ₁ ÷ sin θ₂, or n₁ = n₂ × sin θ₂ ÷ sin θ₁.
- Critical angle (from the higher index n₁ into the lower n₂): θc = arcsin(n₂ ÷ n₁).
- Layers: in flat parallel layers n × sin θ stays the same, so each angle is arcsin(n₁ × sin θ₁ ÷ n). A layer of thickness t moves the ray sideways by t × tan θ.
Worked examples
Air into glass. Light meets glass (n = 1.5) from air at 45°: sin θ₂ = 1 × 0.70711 ÷ 1.5 = 0.47140, so θ₂ = 28.126°. It bends towards the normal.
Water into air. Light leaves water (n = 1.333) at 30°: sin θ₂ = 1.333 × 0.5 = 0.6665, so θ₂ = 41.798°. It bends away from the normal.
Total internal reflection. Light inside glass (n = 1.5) meets the surface at 60°: 1.5 × sin 60° = 1.299, more than 1. No light leaves; the critical angle is arcsin(1 ÷ 1.5) = 41.810°.
Several layers. A ray in air at 30° passes 10 mm of glass (n = 1.5) and 20 mm of water (n = 1.333) and comes out into air. It runs at 19.471° in the glass and 22.030° in the water, leaves at 30° again, and is shifted sideways by 4.9296 mm.
Limits you should know
- The example indices are rounded. The index of a material changes with the wavelength and the temperature; type the value for your case.
- The surfaces are flat and the materials do not absorb light. A part of the light is always reflected at a surface, which this calculator does not count.
- For the critical angle in depth see the Critical Angle Calculator. For the index from the speed of light, a prism or real and apparent depth, and for the share of light reflected, see the Refractive Index Calculator. For prisms see the Prism Angle Calculator.