The law of refraction describes how light bends when it passes from one material into another, like from air into water or from air into glass. Expressed mathematically as n₁ sin(θ₁) = n₂ sin(θ₂), it links the angles of a light ray on either side of a boundary to the optical properties of each material. This relationship governs everything from why a straw looks bent in a glass of water to how eyeglasses correct your vision.
The Core Equation
The law of refraction, commonly called Snell’s Law, is written as:
n₁ sin(θ₁) = n₂ sin(θ₂)
Here, n₁ and n₂ are the refractive indices of the two materials (a measure of how much each material slows light down), θ₁ is the angle of the incoming light ray measured from a line perpendicular to the surface, and θ₂ is the angle of the refracted ray on the other side. The equation tells you that when light enters a denser material (one with a higher refractive index), the ray bends toward that perpendicular line. When it enters a less dense material, it bends away.
A vacuum has a refractive index of exactly 1.0000. Air is nearly the same at 1.0003. Water sits at 1.333, standard crown glass at 1.52, and diamond at 2.417. The higher the number, the more slowly light travels through the material and the more sharply it bends when entering from air. Materials at the extreme end, like diamond, bend light so dramatically that it’s responsible for the intense sparkle you see in a well-cut stone.
Why Light Bends at All
Refraction is fundamentally a surface effect. When a light wave hits the boundary between two materials at an angle, the part of the wave that crosses first slows down (or speeds up) before the rest of the wave has crossed. This difference in speed across the wavefront causes the entire wave to pivot direction, the same way a car veers to one side if one wheel hits mud before the other. The wave’s frequency stays the same through both materials, but its speed and wavelength change.
There’s a deeper way to think about this. In the 1600s, Pierre de Fermat proposed that light always travels the path that takes the least time. If you’re standing at the edge of a pool and need to reach a point underwater as fast as possible, you wouldn’t swim a straight diagonal line, because you’re slower in water. You’d run a bit farther along the poolside and then take a shorter, steeper path through the water. Light does the same thing. The exact angles that satisfy Snell’s Law turn out to be the angles that minimize total travel time between two points. At a wave level, this works because nearby paths that take nearly the same time stay in phase with each other and reinforce, while paths far from the optimal one cancel out.
Refractive Indices of Common Materials
Knowing the refractive index of everyday materials makes the equation practical. Here are some standard values:
- Air: 1.0003
- Water: 1.333
- Ethyl alcohol: 1.361
- Crown glass: 1.52
- Polycarbonate (used in eyeglasses): 1.59
- Sapphire: 1.77
- Diamond: 2.417
To see the equation in action: light traveling from air (n = 1.0003) into water (n = 1.333) at a 45° angle refracts to about 32°. The ray bends noticeably toward the perpendicular because water’s refractive index is about a third higher than air’s.
Why Colors Bend Differently
A material’s refractive index isn’t actually a single fixed number. It varies slightly depending on the wavelength (color) of the light. Shorter wavelengths, like blue and violet, encounter a slightly higher refractive index than longer wavelengths like red. This means blue light bends more than red light when passing through the same material at the same angle. The variation is small, often around 1% across the visible spectrum, but it’s enough to spread white light into its component colors.
This effect is called dispersion, and it’s what makes a glass prism split a beam of white light into a rainbow. Snell’s Law applied separately to each wavelength, each with its own refractive index, predicts slightly different exit angles for red, orange, yellow, green, blue, and violet light. The same process happens inside raindrops: sunlight enters the drop, refracts, reflects off the back surface, and refracts again on the way out. Because each color exits at a slightly different angle, you see the bands of a rainbow spread across the sky, with red on the outside and blue on the inside.
Total Internal Reflection
Snell’s Law also predicts a striking phenomenon: there are situations where light can’t cross a boundary at all. When light travels from a denser material into a less dense one (glass into air, for example), the refracted ray bends away from the perpendicular. As you increase the angle of the incoming light, the refracted ray bends further and further until it would need to exit at 90° or more, essentially skimming along or failing to leave the surface. The angle where this happens is called the critical angle.
You can calculate it directly from Snell’s Law by setting the refracted angle to 90°, which gives: θ_c = sin⁻¹(n₂ / n₁), where n₁ is the denser material. For glass (n = 1.52) to air (n = 1.0003), the critical angle is about 41°. Any light hitting the surface at a steeper angle than that reflects completely back into the glass, with zero light escaping. This total internal reflection is the principle behind fiber optics: light enters a thin glass or plastic strand and bounces along its length without escaping, carrying data over long distances with minimal loss.
Everyday Effects of Refraction
One of the most familiar consequences of refraction is the way objects underwater appear shallower than they really are. Because light bends away from the perpendicular as it exits water into air, your brain traces the light rays back in straight lines and places the object closer to the surface than it actually is. For water, the apparent depth is about three-quarters of the real depth when you look straight down. A rock sitting 4 feet below the surface looks like it’s only about 3 feet down. Spearfishers learn to aim below where a fish appears for exactly this reason.
The same principle explains why a straw in a glass of water looks broken at the surface, why pools look shallower than they are, and why hot roads seem to shimmer. In that last case, the air just above the pavement is much hotter and less dense than the air above it, creating a gradient of refractive indices that bends light upward. Your brain interprets the bent light as a reflection, producing the illusion of water on the road.
A Brief History of the Discovery
The law of refraction was discovered independently more than once. The earliest known statement of the correct relationship came from the Persian mathematician Ibn Sahl in 984 CE, who worked out the sine-based law using geometric ratios while studying curved lenses. His work was largely unknown in Europe, and the law was rediscovered by the Dutch astronomer Willebrord Snellius in 1621. Snellius never published his finding during his lifetime, but it circulated among colleagues and eventually became attached to his name. The French mathematician René Descartes published the same law independently in 1637, which is why in France the equation is often called Descartes’ Law rather than Snell’s Law.

