Find the refraction angle, incident angle or refractive index with Snell's law, plus the critical angle, total internal reflection and how much light reflects.
A straw in a glass of water looks broken at the surface because light changes speed, and so direction, as it crosses from one material into another. Snell’s law gives the new direction from the two refractive indices, and it also predicts when light cannot get out at all.
Choose what to solve for: the refracted angle, the incident angle, or either refractive index. Pick each material from the list (air, water, glass, diamond and more) or type your own index. The answer comes with a ray diagram, the critical angle, how much of the light reflects at the surface, and the speed of light on each side.
The page opens on light passing from air (n = 1.000293) into water (n = 1.333) at 45° from the normal:
Load Sample then turns the ray round, water into air at 30° (41.78°, with a critical angle of 48.63°), sends it from crown glass into air at 45° (total internal reflection, since 45° is past the 41.15° critical angle), works out an unknown index from 45° bending to 28° (1.5066), and finds the outside angle, 38.72°, for a ray at 15° inside a diamond. Reverse direction swaps the two media and their angles in one click, and switching what you solve for keeps the answer on screen in its box.
n₁ sin θ₁ = n₂ sin θ₂, with both angles measured from the normal, the line at right angles to the surface. Going into a slower medium (higher n), the ray bends towards the normal; going into a faster one, it bends away. In that second case there is a critical angle, sin θc = n₂ ÷ n₁, beyond which no refracted ray exists and all the light reflects: the principle behind optical fibre and a diamond’s sparkle (24.4° for diamond in air). The reflected share comes from the Fresnel equations, averaged over both polarisations; even straight on, air to glass reflects about 4.3%.
The preset indices are reference values near 589 nm, the yellow sodium line; a material’s index rises slightly for blue light and falls for red, which is why a prism splits white light, and it shifts a little with temperature. Indices are accepted from 1 (vacuum) to 5 and angles from 0 to just under 90°; outside that you get a message such as “n₁ must be from 1 (vacuum) to 5; diamond is 2.417.” Asking for an incident angle that no ray can produce, such as 60° inside water from air, is answered with the largest angle that is possible.
Solve for
Medium 1: where the light comes from
Medium 2: where it goes
Angles are measured from the normal (the dashed line at 90° to the surface), not from the surface itself.
Refracted angle θ₂
32.05°
The ray bends towards the normal, into the slower medium.
Critical angle
None (n₁ ≤ n₂)
Reflected at surface
2.78%
Light speed in 1
2.9970 × 10⁸ m/s
Light speed in 2
2.2490 × 10⁸ m/s
n₁ sin θ₁ = n₂ sin θ₂. Reflection is the Fresnel average for unpolarised light; preset indices are reference values near 589 nm and change slightly with colour and temperature.