Skip to content

Snell's Law Calculator

Find the angle of refraction or incidence, or a refractive index, with Snell's law, plus the critical angle for total internal reflection and light's speed.

Calculator Details

Angle of refraction θ₂:22.037°See results ↓

The bent angle, the angle the light came in at, or the second material’s index

First medium (index n₁)

Second medium (index n₂)

Measured from the normal (perpendicular to the surface), 0–90°

Colour of the light (589 nm is the yellow sodium line the indices are for)

Your Results

Angle of refraction θ₂: 22.037°

Angle of refraction θ₂

22.037°

Critical angle

None

Only exists going into a lower index

Speed of light in medium 2

224,901 km/s

Medium 1: 299,705 km/s

Wavelength in medium 2

441.86 nm

Medium 1: 588.83 nm

Ray bends by

7.963°

n₁ = 1.000293, n₂ = 1.333

Light from air (n = 1) entering water (n = 1.333) at 30° bends to 22.04° from the normal.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

AirWater
Incident ray (solid amber), reflected ray (light amber), refracted ray (red); dashed line is the normal.
Refraction angle for each incidence angle, air to water
Incidence θ₁Refraction θ₂
0°0°
10°7.487°
20°14.87°
30° (near yours)22.04°
40°28.84°
50°35.09°
60°40.53°
70°44.84°
80°47.65°
90°48.63°

How This Calculator Works

How It’s Calculated

n₁ sin θ₁ = n₂ sin θ₂ · θ_c = arcsin(n₂ ÷ n₁) · v = c ÷ n · λ = λ₀ ÷ n

Your calculation: 1.000293 × sin 30° = 0.50015 = 1.333 × sin θ₂, giving θ₂ = 22.037°. Light slows to 224,901 km/s in the second medium and its wavelength shortens to 441.86 nm; its frequency (colour) stays the same.

Frequently Asked Questions

What is Snell’s law?

When light crosses from one transparent material into another, n₁ sin θ₁ = n₂ sin θ₂, where n is each material’s refractive index and θ the angle from the normal (a line perpendicular to the surface). Light from air entering water at 30° bends to 22.04°.

What is the index of refraction?

How much slower light travels in a material than in a vacuum: n = c ÷ v. Water’s index is 1.333, so light moves through it at about 224,901 km/s instead of 299,792 km/s. Air is very close to 1 (1.000293).

Which way does light bend?

Toward the normal when it goes into a material with a higher index (air to water or glass), and away from the normal when it goes into a lower one. Light hitting the surface straight on, at 0°, doesn’t bend at all.

What is the critical angle?

Going from a higher to a lower index, there is an angle beyond which light can’t get out and is reflected entirely: θ_c = arcsin(n₂ ÷ n₁). From water into air it is 48.63°; from crown glass 41.15°; from diamond only 24.43°.

What is total internal reflection used for?

Optical fibres keep light inside by bouncing it off the walls beyond the critical angle, carrying internet traffic for kilometres. Binocular prisms, bicycle reflectors and the brilliance of a cut diamond use it too.

Why does a straw look bent in a glass of water?

Light from the underwater part of the straw bends away from the normal as it leaves the water, so your eye traces it back along a straighter line than it really took. The straw appears raised and broken at the surface, and pools look shallower than they are.

Does the wavelength change in a medium?

Yes, it shortens by the index while the frequency (and so the colour your eye sees) stays the same. 589 nm yellow light has a wavelength of 441.9 nm in water.

Uses Snell’s law for a flat, smooth boundary between two clear, uniform materials, with refractive indices for 589 nm yellow light from OpenStax University Physics (Table 1.1). Indices change slightly with colour (dispersion), temperature and, for glasses and plastics, the exact product; enter your own index for a specific material. It doesn’t compute how much light is reflected at each angle (the Fresnel equations), absorption, or birefringent crystals such as calcite that have two indices.

Snell's Law Calculator: Refraction, Critical Angle and Index

By FindMySum · Last reviewed

Light changes direction when it passes from one transparent material into another. This Snell's law calculator works out by how much: the angle of the refracted ray, the incident angle that produces a given refraction, or the refractive index of an unknown material from two measured angles. It also gives the critical angle for total internal reflection, the speed of light in each material and the wavelength there, and draws the rays.

The law of refraction

n₁ sin θ₁ = n₂ sin θ₂

  • n₁ and n₂ are the refractive indices of the two materials.
  • θ₁ is the angle of incidence and θ₂ the angle of refraction, both measured from the normal, an imaginary line perpendicular to the surface, not from the surface itself.

The product n sin θ is the same on both sides of the boundary. Going into a higher index, sin θ must fall, so light bends toward the normal. Going into a lower index it bends away.

Refractive index

The index of a material is the ratio of the speed of light in a vacuum to its speed in the material:

n = c ÷ v

c is exactly 299,792,458 m/s. The frequency of light doesn't change at the boundary, so its wavelength shrinks by the same factor: λ = λ₀ ÷ n. Typical values for yellow light at 589 nm, from the OpenStax table:

Materialn
Air1.000293
Ice1.309
Water1.333
Plexiglas (acrylic)1.51
Crown glass1.52
Flint glass1.66
Diamond2.419

Worked example: the default

Light travelling in air hits a water surface at 30° from the normal:

sin θ₂ = 1.000293 × sin 30° ÷ 1.333 = 0.3752

θ₂ = 22.04°, so the ray bends about 8° toward the normal. In the water, light slows to about 224,900 km/s and the 589 nm yellow light has a wavelength of about 442 nm.

Finding an index

Measure the angles on both sides of a boundary and rearrange: n₂ = n₁ sin θ₁ ÷ sin θ₂. OpenStax's example sends light from air at 30.0° and measures 22.0° inside an unknown liquid: n₂ = sin 30° ÷ sin 22° = 1.33, which identifies it as water. Choose "Second index n₂" to do this calculation.

Critical angle and total internal reflection

When light goes from a higher index into a lower one, the refracted ray bends away from the normal and gets closer to the surface as the incident angle grows. At the critical angle it runs along the surface:

θ_c = arcsin(n₂ ÷ n₁)

Beyond that angle, sin θ₂ would need to be more than 1, which is impossible, so no light gets through: all of it is reflected. For water to air the critical angle is about 48.6°, which is why, looking up from underwater, you see the sky through a bright circle overhead and a silvery mirror beyond it. Crown glass has a critical angle of about 41°, and diamond about 24°.

Total internal reflection is what makes optical fibres work. Light travels down a glass core surrounded by cladding of slightly lower index, striking the boundary at angles beyond the critical angle, so it bounces along for kilometres with very little loss.

The ray diagram

The diagram draws the boundary, the normal (dashed), the incoming ray, the weaker reflected ray and the refracted ray. In total internal reflection the reflected ray is drawn solid and there is no refracted ray. The table beside it gives the refraction angle at every 10° of incidence, which shows how the bending grows non-linearly as the incident angle rises.

Limits

Indices depend on colour: almost every transparent material bends blue light more than red, which is how prisms make spectra. They also change a little with temperature and, for glass and plastics, from one product to another, so for precise optics enter the manufacturer's index at your wavelength. The calculator assumes a flat, smooth surface. It shows that some light reflects, but not how much; that fraction comes from the Fresnel equations and rises steeply at grazing angles.

To convert between a light's wavelength, frequency and photon energy, use the wavelength calculator.

More questions

Why do rainbows form?

Water's index is slightly higher for violet light than for red, so sunlight entering a raindrop bends by a different amount for each colour, reflects off the back of the drop and bends again on the way out. The colours leave at slightly different angles, about 40° to 42° from the direction opposite the sun, which spreads them into an arc.

How do glasses and contact lenses work?

A lens is a piece of material with curved surfaces, so light hits it at different angles across its face and bends by different amounts. That focuses or spreads the light. Higher-index lens materials bend light more strongly, which is why high-index glasses can be thinner for the same prescription.

Why do roads look wet on hot days?

Air just above hot pavement is warmer and has a slightly lower index than the cooler air above. Light from the sky coming in at a shallow angle bends gradually upward through these layers until it reaches your eye from the road surface, so you see a reflection of the sky that looks like water: a mirage.

Can the index of refraction be less than 1?

For visible light in ordinary transparent materials, no: light always travels slower than in a vacuum, so n is above 1. Some materials have indices below 1 for X-rays, and engineered metamaterials can even have negative indices, but those are special cases outside this calculator.

Why does a diamond sparkle more than glass?

Its index, about 2.42, is much higher than glass's 1.5, so its critical angle is only about 24°. Light that enters the top of a well-cut stone hits the back facets beyond that angle, reflects inside several times and comes back out of the top, split into colours by diamond's strong dispersion.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy