Refraction & Snell's Law Explorer
Adjust the incident angle and choose materials to see how light bends at the boundary between two media. Drag the ray on the diagram to explore refraction and total internal reflection. All calculations run in your browser.
Materials
Ray Diagram
Drag the red point to change the incident angle.
Step-by-Step Solution
Reference Guide
Snell's Law
When light crosses the boundary between two materials, it changes direction. Snell's law describes the relationship between the angles and the refractive indices of the two media.
- and are the refractive indices of the two media
- is the angle of incidence (from the normal)
- is the angle of refraction (from the normal)
Light bends toward the normal when entering a denser medium () and away from the normal when entering a less dense medium ().
Total Internal Reflection
When light travels from a denser medium to a less dense one (), there is a maximum angle of incidence beyond which no light passes through. All light is reflected back. This is total internal reflection (TIR).
- Fiber optics use TIR to carry light signals through glass cables with almost no loss
- Diamonds sparkle because their high refractive index (2.42) gives a very small critical angle, trapping light inside
- Prisms in binoculars use TIR to redirect light without mirrors
Refraction in Everyday Life
Refraction explains many everyday observations.
- Pools look shallower than they are because light bending at the water surface shifts the apparent position of the bottom upward.
- A straw in water looks bent at the surface because the light from the submerged part refracts when it exits the water.
- Mirages on hot roads occur because air near the pavement has a lower refractive index, gradually bending light upward so you see sky reflected on the road.
- Rainbows form when sunlight refracts entering a raindrop, reflects off the back, and refracts again exiting. Different wavelengths bend by different amounts, splitting white light into colors.
Speed of Light in Media
The refractive index of a material tells you how much light slows down compared to its speed in vacuum.
- is the speed of light in vacuum ( m/s)
- is the speed of light in the medium
- Higher means slower light. In water (), light travels at about 75% of its vacuum speed
- In diamond (), light slows to about 41% of its vacuum speed
The change in speed is what causes light to bend. The wavefront enters the new medium at an angle, and one side slows down before the other, pivoting the direction of travel.