Snell's Law Calculator
- Snell's law: n₁ sin θ₁ = n₂ sin θ₂, so sin θ₂ = 1 × sin(45°) ÷ 1.33 = 0.5317, and θ₂ = 32.12°.
- The ray bends toward the normal entering the denser medium, deviating by 12.88° from its original path.
- Entering a denser medium there is no critical angle — refraction happens at every incident angle.
Our snell's law calculator applies the formula n1 sin(theta1) = n2 sin(theta2), where both angles are measured from the normal to the surface. Enter the refractive index of the first medium, the incident angle, and the refractive index of the second medium, and the tool returns the refracted angle. If the result is physically impossible, the calculator identifies total internal reflection. For example, light traveling from air (n 1.00) into water (n 1.33) at 45 degrees refracts to 32.12 degrees, bending toward the normal by a deviation of 12.88 degrees. Air into glass (1.50) at 30 degrees gives sin(theta2) = 0.3333 and a refracted angle of 19.47 degrees. Going from water (1.33) into air (1.00) at 60 degrees gives sin(theta2) = 1.1518, which is impossible, so total internal reflection occurs; the critical angle is 48.75 degrees.
Snell's law is the accepted standard for calculating refraction because it directly relates the refractive indices of two media to the angles of incidence and refraction, and it correctly predicts when light cannot pass through. The critical angle exists only when going from a denser to a rarer medium, calculated as theta_c = asin(n2/n1). Reference indices include vacuum and air at about 1.00, water at 1.33, crown glass at about 1.52, and diamond at 2.42. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result.
Worked examples
Air into water
Primary result: 32.12° — the ray bends toward the normal entering the denser medium. (1 · 45 ° · 1.33)
| Refracted angle | 32.12° |
| Deviation from original path | 12.88° |
| Critical angle | — |
Beyond the critical angle
Primary result: Total internal reflection — at 60° from water the critical angle of 48.75° is already passed. (1.33 · 60 ° · 1)
| Outcome | Total internal reflection |
| Critical angle | 48.75° |
Air into glass
Primary result: 19.47° — sin θ₂ comes out at exactly 0.3333. (1 · 30 ° · 1.5)
| Refracted angle | 19.47° |
| Deviation from original path | 10.53° |
| Critical angle | — |
Snell's law
Snell's law describes how light bends when it passes from one transparent medium into another with a different refractive index. The formula is n1 sin(theta1) = n2 sin(theta2), where n1 and n2 are the refractive indices of the first and second media, and theta1 and theta2 are the angles of incidence and refraction. Both angles are measured from the normal — an imaginary line perpendicular to the surface at the point where the light enters. This relationship is what every snell's law calculator uses to predict the path of a light ray across a boundary.
A verified example shows light traveling from air (n 1.00) into water (n 1.33) at an incidence angle of 45 degrees. Plugging the values into the formula gives sin(theta2) = (1.00 × sin 45°) / 1.33, which yields a refracted angle of 32.12 degrees. The ray bends toward the normal because it is entering a denser medium, producing a deviation of 12.88 degrees from its original direction. This is why a straight stick partly submerged in water appears to kink at the surface — the light from the underwater portion reaches your eye from a different angle than the light from the part in air.
The same law also explains total internal reflection, which occurs when light attempts to move from a denser medium to a rarer one at too steep an angle. Going from water (1.33) into air (1.00) at 60 degrees, the formula gives sin(theta2) = 1.1518, which is impossible because the sine of an angle can never exceed 1. When this happens, no light is transmitted; it all reflects back into the water. The critical angle — the steepest incidence angle that still allows refraction — exists only when going from a denser to a rarer medium and is calculated as theta_c = asin(n2/n1). For water into air, that critical angle is 48.75 degrees.
Different materials bend light by different amounts depending on their refractive indices. Common reference values include vacuum and air at about 1.00, water at 1.33, crown glass at about 1.52, and diamond at 2.42. Another verified case demonstrates air into glass (n 1.50) at 30 degrees: the formula gives sin(theta2) = 0.3333, producing a refracted angle of 19.47 degrees. The higher the second medium's refractive index relative to the first, the more the light bends toward the normal, and the smaller the refracted angle becomes.
Worked examples
The following three verified cases show how a Snell's law calculator handles common refraction scenarios, including the transition from a denser to a rarer medium where total internal reflection can occur. Each example applies the equation n1 sin(theta1) = n2 sin(theta2), with angles measured from the normal to the surface.
In the first case, light travels from air (n = 1.00) into water (n = 1.33) at an incident angle of 45 degrees. The calculator solves for theta2 and returns 32.12 degrees. Because the light slows down when entering the denser medium, the ray bends toward the normal, producing a deviation of 12.88 degrees from the original path. This result confirms the expected behavior: when n2 is greater than n1, the refracted angle is always smaller than the incident angle.
The second case reverses the direction, sending light from water (n = 1.33) into air (n = 1.00) at an incident angle of 60 degrees. Here the calculator computes sin(theta2) = 1.1518, which is impossible since sine values cannot exceed 1. This signals total internal reflection — the light reflects entirely back into the water instead of refracting. The critical angle for this interface is 48.75 degrees, meaning any incident angle larger than 48.75 degrees will produce total internal reflection. The critical angle exists only when going from a denser to a rarer medium and is found using theta_c = asin(n2/n1).
The third case examines light passing from air into glass (n = 1.50) at 30 degrees. The calculator gives sin(theta2) = 0.3333, corresponding to a refracted angle of 19.47 degrees. As with the water example, the ray bends toward the normal because it enters a denser medium. For quick reference, common refractive indices include vacuum and air at about 1.00, water at 1.33, crown glass at about 1.52, and diamond at 2.42.
| Case | Medium 1 (n1) | Medium 2 (n2) | Incident angle (theta1) | Refracted angle (theta2) | Result |
|---|---|---|---|---|---|
| Air to water | 1.00 | 1.33 | 45 degrees | 32.12 degrees | Bends toward the normal; deviation of 12.88 degrees |
| Water to air | 1.33 | 1.00 | 60 degrees | sin(theta2) = 1.1518 (impossible) | Total internal reflection; critical angle is 48.75 degrees |
| Air to glass | 1.00 | 1.50 | 30 degrees | 19.47 degrees | sin(theta2) = 0.3333; bends toward the normal |
Bending toward and away from the normal
When light crosses from one material into another, its speed changes, and that change forces the ray to alter direction. Snell's law, written as n1 sin(theta1) = n2 sin(theta2), governs this behavior, with every angle measured from the normal — an imaginary line perpendicular to the surface at the point of contact. Whether the ray bends toward or away from that line depends on which medium is denser. A denser medium has a higher refractive index, meaning light travels through it more slowly.
Traveling from a rarer medium into a denser one, the ray slows down and bends toward the normal. The verified example of air (n 1.00) into water (n 1.33) at 45 degrees illustrates this clearly: the refracted angle drops to 32.12 degrees. Our Snell's law calculator reports the deviation figure as well, which in this case is 12.88 degrees — the difference between the incident and refracted angles. The same effect appears with air into glass (1.50) at 30 degrees, where sin(theta2) equals 0.3333 and the refracted angle comes out to 19.47 degrees.
Moving from a denser medium into a rarer one reverses the situation. The ray speeds up and bends away from the normal, producing a larger refracted angle than the incident angle. However, there is a limit to how far the ray can bend outward. When light travels from water (1.33) into air (1.00) at 60 degrees, the math gives sin(theta2) = 1.1518, which is impossible since the sine function never exceeds 1. At that point the interface no longer transmits light; total internal reflection occurs instead.
The boundary between transmission and reflection is the critical angle, and it exists only when going from a denser to a rarer medium. The formula is theta_c = asin(n2/n1). For water into air, that critical angle is 48.75 degrees. Any incoming angle above this value means the light reflects entirely back into the denser material rather than refracting through. Reference indices for common materials help put this in perspective: vacuum and air sit at about 1.00, water at 1.33, crown glass at about 1.52, and diamond at 2.42.
Total internal reflection and the critical angle
Total internal reflection happens when light traveling through a denser medium hits the boundary with a rarer medium at a steep enough angle that none of it can pass through. Instead, all of the light bounces back into the denser medium, as if the boundary were a mirror. This effect only occurs when going from a higher refractive index to a lower one — for example, from water into air, but not from air into water. The Snell's law calculator makes this easy to explore: when the math returns an impossible result, you know total internal reflection has occurred.
Consider light traveling from water (n = 1.33) into air (n = 1.00) at an incident angle of 60 degrees. Plugging these values into Snell's law, n1 sin(theta1) = n2 sin(theta2), gives sin(theta2) = 1.1518. That result is impossible — the sine of an angle can never exceed 1. When you see this happen, it signals that no refraction is possible. The light cannot exit the water and is entirely reflected back inside. The boundary angle at which this transition happens is called the critical angle, and for water into air it is 48.75 degrees. At any incident angle below 48.75 degrees, light refracts into the air. At exactly 48.75 degrees, the refracted ray skims along the boundary. Above 48.75 degrees, total internal reflection takes over.
The critical angle exists only when light moves from a denser medium to a rarer one, and it is calculated as theta_c = asin(n2/n1). If n2 is greater than n1, the ratio exceeds 1 and the arcsine is undefined, which is why there is no critical angle when going from air into water or from air into glass. The effect has practical uses that surround us every day. Fibre optic cables rely on total internal reflection to guide light signals over long distances inside a glass core, keeping the light confined even as the cable bends and twists. A swimmer looking upward underwater can see a mirror-like circle on the surface directly above, where light from below strikes the boundary at angles beyond the critical angle and reflects back down. Outside that circle, the surface remains transparent and the sky is visible.
Refractive indices of common materials
A refractive index tells you how much a material slows light compared with a vacuum. When you use a Snell's law calculator, you need accurate index values for both the medium the light starts in and the medium it enters. The table below lists refractive indices for common materials you will likely encounter. These are typical values; real indices shift slightly depending on temperature, pressure, and the specific composition of the sample.
Refractive index also depends on wavelength, a phenomenon called dispersion. Blue light has a shorter wavelength and generally experiences a slightly higher refractive index than red light in the same material. This is why a glass prism splits white light into a rainbow. For most calculations, a single representative index works well, but precision work requires the index at the specific wavelength of your light source.
These numbers connect directly to Snell's law, n1 sin(theta1) = n2 sin(theta2), with all angles measured from the normal. Going from air (n 1.00) into water (n 1.33) at 45 degrees refracts to 32.12 degrees, bending toward the normal by a deviation of 12.88 degrees. Going from air into glass (1.50) at 30 degrees gives sin(theta2) = 0.3333 and a refracted angle of 19.47 degrees. The larger the index jump, the more the light bends.
The direction of travel matters. Going from water (1.33) into air (1.00) at 60 degrees gives sin(theta2) = 1.1518, which is impossible, so total internal reflection occurs instead. The critical angle exists only when going from a denser to a rarer medium, calculated as theta_c = asin(n2/n1). For water into air, that critical angle is 48.75 degrees. Any incident angle above this value keeps the light trapped inside the denser material.
- Vacuum / air: about 1.00
- Water: 1.33
- Crown glass: about 1.52 (typical glass ranges from 1.50 to 1.52)
- Diamond: 2.42
Where Snell's law runs the world
Every time you look through a window, wear eyeglasses, or spot a shimmering puddle on a hot road, you are watching Snell's law in action. The same relationship that a snell's law calculator solves — n1 sin(theta1) = n2 sin(theta2), with angles measured from the normal — governs how light bends as it crosses from one material into another. Because every transparent medium has its own refractive index, light changes speed at the boundary, and that change forces the ray to alter direction. The result is a world full of optical effects that we rely on without a second thought.
Lenses and prisms are the most familiar examples. When light passes from air into glass, it slows down and bends toward the normal. Take air into glass with a refractive index of 1.50 at an incident angle of 30 degrees: the math gives sin(theta2) = 0.3333 and a refracted angle of 19.47 degrees. That precise bending is what lets a convex lens focus light onto your retina, a camera sensor, or a microscope slide. A prism takes the same principle further, because different wavelengths refract by slightly different amounts, splitting white light into a spectrum. Crown glass, with a refractive index of about 1.52, is a common choice for such optics, while diamond, at 2.42, bends light so strongly that it produces the sharp sparkle the gem is famous for.
Total internal reflection is the flip side of the same coin, and it makes modern fibre communications possible. When light travels from a denser medium into a rarer one, it bends away from the normal. Go from water, with a refractive index of 1.33, into air at 1.00 at an incident angle of 60 degrees, and the equation gives sin(theta2) = 1.1518, which is impossible — no real angle satisfies it. Instead of refracting, the light reflects entirely back inside. The critical angle, which exists only when going from a denser to a rarer medium, is given by theta_c = asin(n2/n1); for water to air that value is 48.75 degrees. Optical fibres exploit this by trapping light inside a glass core, letting data travel across oceans with minimal loss.
Two everyday illusions also flow from the same law. A mirage appears on hot roads because warm air near the pavement has a lower refractive index than cooler air above it, bending sunlight upward so the surface looks wet. And the apparent depth of a pool is a trick of refraction: light leaving the water bends away from the normal as it enters the air, making the bottom seem shallower than it is. For reference, air has a refractive index of about 1.00 and water 1.33, so the bending is always noticeable. Whether the effect is useful, beautiful, or deceptive, the underlying physics is the same.
FAQs
How do you use Snell's law?
Use the equation n1 sin(theta1) = n2 sin(theta2) and solve for theta2. Plug in the refractive indices and the incident angle. For example, light going from air to water at 45 degrees gives a refracted angle of 32.12 degrees. The calculator handles this automatically once you enter the two indices and the incident angle.
What is the critical angle for water to air?
The critical angle is asin(1.00/1.33) = 48.75 degrees. Below this angle light refracts out into the air. Beyond it, as at 60 degrees, light reflects internally instead of refracting. This is the boundary between refraction and total internal reflection when light travels from water into air.
Why does light bend entering water?
Light changes speed when it crosses from air into water. Because the wavefront slows at the boundary, the wavefront swings toward the normal, changing the ray direction. In the verified case this takes the ray from 45 to 32.12 degrees. The bending is a direct result of the speed change at the interface.
What refractive index should I use for glass?
Use about 1.50 to 1.52 for crown glass. The verified glass case uses 1.50 as the refractive index and refracts a 30 degree incident angle to 19.47 degrees. Different glass types vary slightly, but 1.50 is a solid starting point for standard crown glass calculations.
Can the refracted angle be bigger than the incident angle?
Yes, when light leaves a denser medium for a less dense one the refracted angle is larger than the incident angle. This continues until the critical angle, past which there is no refracted ray at all. Beyond that point the light reflects back entirely inside the denser medium instead.
What is total internal reflection used for?
Fibre-optic cables trap light by total internal reflection, keeping signals inside the core. The condition is exactly the water-to-air case here: incidence beyond 48.75 degrees means no light escapes and it reflects internally. This lets fibre-optic cables carry data over long distances with minimal signal loss.