Snell's Law Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free Snell’s law calculator. Find the angle of refraction from two refractive indices and the angle of incidence, plus the critical angle for total reflection.

Critical angle
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the Snell’s law calculator

  1. Enter the refractive index of the first medium, n₁, the one the light travels in before reaching the boundary. Air is about 1.000.
  2. Enter the refractive index of the second medium, n₂. Water is about 1.333; ordinary glass about 1.5.
  3. Enter the angle of incidence in degrees, measured from the normal, an imaginary line perpendicular to the surface.

The Snell’s law calculator shows the angle of refraction in the second medium, or tells you if the light is totally internally reflected, and shows the critical angle when light goes from a denser to a less dense medium.

What is refraction?

Light travels at different speeds in different materials: fastest in a vacuum, slightly slower in air, and noticeably slower in water and glass. When light crosses at an angle from one material into another, the change in speed makes it change direction. This bending is called refraction. It's why a straw in a glass of water looks bent, why a pool looks shallower than it is, and how lenses in glasses, cameras and microscopes focus light.

The refractive index of a material, n, is the speed of light in a vacuum divided by its speed in the material. Higher refractive index means slower light and more bending.

Material Typical refractive index
Vacuum 1 (exactly)
Air about 1.0003
Water about 1.333
Crown glass about 1.52
Diamond about 2.42

Refractive indices vary slightly with the wavelength (colour) of light, which is why prisms split white light into a spectrum.

How the Snell’s law calculator works

Snell's law, named after the Dutch scientist Willebrord Snellius, relates the angles on either side of the boundary:

n₁ × sin θ₁ = n₂ × sin θ₂

where θ₁ is the angle of incidence and θ₂ the angle of refraction, both measured from the normal. Rearranged:

θ₂ = arcsin(n₁ × sin θ₁ ÷ n₂)

With the default figures, light passing from air (n₁ = 1.000) into water (n₂ = 1.333) at 30°:

  1. sin 30° = 0.5.
  2. sin θ₂ = 1.000 × 0.5 ÷ 1.333 ≈ 0.375.
  3. θ₂ = arcsin(0.375) ≈ 22.03°.

The light bends towards the normal as it enters the slower medium.

Total internal reflection and the critical angle

When light goes from a denser medium into a less dense one, such as from water into air, it bends away from the normal. At a certain angle of incidence, the refracted ray would travel along the surface at 90°. That angle is the critical angle:

Critical angle = arcsin(n₂ ÷ n₁), when n₁ > n₂

Beyond the critical angle, no light passes through; it's all reflected back into the denser medium. This is total internal reflection. For water to air, the critical angle is about 48.6°; for glass (1.5) to air, about 41.8°; and for diamond to air, only about 24.4°, which is why diamonds sparkle so much: light entering them bounces around inside many times before escaping.

A worked example: looking up from underwater

A diver looks up at the water's surface. Light reaching their eye from inside the water at 50° from the vertical:

  1. n₁ = 1.333 (water), n₂ = 1.000 (air).
  2. sin θ₂ = 1.333 × sin 50° ≈ 1.021.
  3. Since this is greater than 1, there's no refracted ray: total internal reflection.

Enter 1.333, 1 and 50 in the Snell’s law calculator to see it. Looking up at steep angles, a diver sees the whole world above the water squeezed into a bright circle overhead, called Snell's window, with reflections of the underwater scene outside it.

Shallower angles

From air into water at 60°, the refracted angle is about 40.5°. The larger the angle of incidence, the more the ray bends. At 0°, straight in along the normal, it doesn't bend at all.

Fibre optics

Optical fibres carry internet and phone data as pulses of light through thin strands of glass. The fibre's core has a slightly higher refractive index than the cladding around it. Light travelling along the core strikes the boundary at angles beyond the critical angle, so it's totally internally reflected, bouncing along the fibre for kilometres with very little loss. Medical endoscopes use the same principle to see inside the body.

Why pools look shallow

Light from the bottom of a pool bends away from the normal as it leaves the water, so to someone above, it appears to come from a point higher than it really is. Looking straight down, the apparent depth is roughly the real depth divided by 1.333, about three quarters. A pool 2 metres deep looks about 1.5 metres deep from directly above, and even shallower at an angle. That's an important safety point for swimmers and divers.

Who uses a Snell’s law calculator

Physics students use it for homework on refraction. Opticians and optical engineers use the principle to design lenses. Photographers and underwater photographers use it to understand how ports and lenses bend light. Fibre optic technicians use critical angles in their work, and gemmologists use refractive indices to identify gemstones.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Common mistakes

  • Measuring angles from the surface instead of from the normal.
  • Swapping n₁ and n₂.
  • Expecting a refracted ray beyond the critical angle.
  • Using radians when the calculator expects degrees.

Using the Snell’s law calculator in reverse

Sometimes you know both angles but not a refractive index, for example in a school experiment where you shine a light beam into a glass block and measure the angles. Rearranging Snell's law gives n₂ = n₁ × sin θ₁ ÷ sin θ₂. With air on the incident side (n₁ = 1), a beam entering at 40° and refracting at 25° gives n₂ ≈ 0.643 ÷ 0.423 ≈ 1.52, typical of crown glass. You can then check the value with the Snell’s law calculator: enter 1, 1.52 and 40, and it should return about 25°.

Rainbows and dispersion

Because the refractive index of water varies slightly with wavelength, about 1.331 for red light and 1.343 for violet, each colour bends by a slightly different amount as sunlight enters and leaves raindrops. Combined with a reflection inside each drop, this spreads sunlight into the colours of a rainbow. You can see the effect in the Snell’s law calculator by entering slightly different values for n₂: the refraction angles differ by a fraction of a degree, which is enough to separate the colours across the sky.

Lenses and eyeglasses

Lenses use refraction at curved surfaces to bend light towards or away from a focus. Higher-index lens materials bend light more strongly, so the same correction can be made with a thinner lens, which is why high-index lenses are popular for strong prescriptions. Lens designers trace thousands of rays through a lens using Snell's law at every surface, which the Snell’s law calculator does for a single ray at a single surface.

Mirages

On a hot day, the air just above a road is hotter, and therefore slightly less dense and with a slightly lower refractive index, than the air above it. Light from the sky travelling down at a shallow angle bends gradually back upwards, and can reach your eye as if it came from the road surface. Your brain interprets the patch of sky as a pool of water on the road, a mirage. The same gradual refraction, explained by Snell's law applied layer by layer, causes the shimmering of distant objects on hot days.

Typical uses of the Snell’s law calculator

Students check textbook answers, teachers prepare examples for lessons on light, and hobbyists working with aquariums, prisms and underwater cameras use the Snell’s law calculator to predict how light will bend at each surface.

Light slows down, not just bends

In water, light travels at about 225,000 kilometres per second, roughly three quarters of its speed in a vacuum, which is exactly what a refractive index of 1.333 means.

Sources and further reading

Frequently asked questions

What is Snell's law?

n₁ × sin θ₁ = n₂ × sin θ₂, relating the angles of incidence and refraction to the refractive indices.

What is the refraction angle from air into water at 30°?

About 22.0°.

What is the critical angle for water to air?

About 48.6°.

When does total internal reflection happen?

When light goes into a less dense medium at more than the critical angle.

Why do angles start from the normal?

That's the convention in Snell's law: angles are measured from the line perpendicular to the surface.

Is the Snell’s law calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep