Skip to content
ScienceQuest

Snell’s Law Calculator

CalculatorSchool Updated

Support ScienceQuest on Buy Me a Coffee (opens in a new tab)

Apply Snell’s law to find the refraction angle between two media, with the critical angle for total internal reflection and a warning when no ray refracts.

Calculator

Vacuum 1, air 1.0003, water 1.333, crown glass 1.52, diamond 2.417.

Measured from the normal, not from the surface.

22.0301

Critical angle
Only exists when traveling into a lower-index medium.
n/a
Speed in medium 2
224.9 ×10⁶ m/s
Bends
Toward normal

Working, with your numbers

  1. n1 sin(t1) = n2 sin(t2)
  2. sin(t2) = 1 × sin(30 deg) / 1.333
  3. sin(t2) = 0.37509
  4. t2 = 22.03 deg

Values are converted into the units the equation is worked in before the arithmetic.

Cite this tool

Citing this tool

Last updated . Add the date you accessed it as well, which a citation of a page that can change asks for. If a specific result matters, cite the permalink from the tool’s share row instead of this page: it reproduces the exact parameters.

On the syllabus: AP Physics 2, Unit 13: Geometric Optics; AQA GCSE Required Practicals, Light; MCAT, 4D: How light and sound interact with matter.

Teaching with this? You can put it on a class page or LMS for free, with no ads inside the frame. Get the embed code.

The equation

n1sin⁡θ1=n2sin⁡θ2n_1 \sin\theta_1 = n_2 \sin\theta_2

Snell (1621, unpublished) and Descartes (1637)

The equation as an image to reuse
Snell’s Law Calculator: the equation n₁ sin θ₁ = n₂ sin θ₂, solved for any of n₁, θ₁, n₂ and θ₂.
The equation the calculator is built on, with its source. Image © ScienceQuest, CC BY 4.0. Free to reuse with credit and a link to this page; how to reuse it. Download PNG

What is the Snell’s law formula?

The Snell’s law formula governs light refraction at an interface: n₁ sin θ₁ = n₂ sin θ₂, where n₁ and n₂ are the dimensionless refractive indices of the first and second media, θ₁ and θ₂ are the angles of incidence and refraction, both measured from the normal.

What refractive index actually measures

Light travels at c in vacuum and more slowly in matter. The refractive index, n = c / v, is just the ratio of those two speeds, so n = 1.52 for crown glass means light crawls through it at 197 million metres per second instead of 300 million. Snell’s law follows from that slowdown. When a wavefront meets a boundary at an angle, the edge that crosses first slows first, and the whole front pivots. A marching band turns the same way when the players on one side shorten their stride.

Because the bending depends only on the ratio of the two indices, the relation is symmetric: n₁ sin θ₁ = n₂ sin θ₂. Going into a higher-index medium bends the ray toward the normal. Coming out of one bends it away by exactly the same amount, which is why a lens works identically in either direction and why a ray traced backwards retraces its own path.

Worked example

A laser in air strikes a crown glass block at 40° from the normal. Where does the beam go inside the glass?

  • Air is n₁ = 1.000, crown glass is n₂ = 1.52.
  • sin θ₂ = n₁ sin θ₁ / n₂ = 1.000 × 0.6428 / 1.52
  • sin θ₂ = 0.4229, so θ₂ = 25.0°

The beam has bent 15 degrees toward the normal. Send the same ray back out of the glass at 25.0° and it emerges into the air at 40° again.

The critical angle and total internal reflection

Going the other way, from a higher index to a lower one, there is a limit. As the angle of incidence grows, the refracted ray swings further from the normal until it lies flat along the boundary. Past that point there is no refracted ray at all and the surface behaves as a perfect mirror. The threshold is θc = arcsin(n₂/n₁): 48.6° for water into air, 41.1° for crown glass (n = 1.52) into air, and only 24.4° for diamond, which is why cut diamonds bounce light around so many times before releasing it.

Optical fibre is the same effect made useful. Light entering the core at a shallow enough angle can never escape through the cladding, so it zigzags down kilometres of glass with almost no loss. Ask this calculator for the refraction angle beyond the critical angle and it tells you no solution exists rather than returning a meaningless number.

Common mistakes

  • Measuring from the surface. Angles in Snell’s law are measured from the normal. A ray described as hitting glass at 20° to the surface has an angle of incidence of 70°. This single confusion accounts for most wrong answers in refraction problems.
  • Using the ratio of the angles. It is the ratio of the sines that is fixed, not the ratio of the angles. Doubling the angle of incidence does not double the angle of refraction, and the gap between the two widens as you approach grazing incidence.
  • Expecting a critical angle in the wrong direction. Total internal reflection only happens when n₁ > n₂. Air into water has no critical angle at any angle of incidence.
  • Treating n as a single number for all colors. Index varies with wavelength. That is dispersion, and it is why a prism makes a spectrum. For crown glass n runs from about 1.514 in the red to 1.530 in the violet, so a precise calculation needs the index at your wavelength.

Sources

How to calculate the angle of refraction with Snell’s law

  1. Write down the formula: θ₂ = arcsin(n₁ sin θ₁ / n₂)
  2. Gather the values it needs. The calculator above starts with these:
    • Refractive index, medium 1: n₁ = 1
    • Angle of incidence: θ₁ = 30°
    • Refractive index, medium 2: n₂ = 1.333
  3. Substitute them and work through the arithmetic:
    1. n1 sin(t1) = n2 sin(t2)
    2. sin(t2) = 1 × sin(30 deg) / 1.333
    3. sin(t2) = 0.37509
    4. t2 = 22.03 deg
  4. To find one of the other values instead, rearrange the formula for it:
    • Refractive index, medium 1: n₁ = n₂ sin θ₂ / sin θ₁
    • Angle of incidence: θ₁ = arcsin(n₂ sin θ₂ / n₁)
    • Refractive index, medium 2: n₂ = n₁ sin θ₁ / sin θ₂

More worked examples

Each one runs through the calculator above, so the arithmetic here is the arithmetic it does.

What is the critical angle in an optical fibre with a 1.48 core and 1.46 cladding?

  1. n1 sin(t1) = n2 sin(t2)
  2. sin(t1) = 1.46 × sin(90 deg) / 1.48
  3. sin(t1) = 0.98649
  4. t1 = 80.57 deg

80.6 degrees from the normal, found by setting the refraction angle to 90 degrees and solving for the angle of incidence. With indices this close the critical angle is nearly grazing, so a ray has to run within about 9.4 degrees of the fibre’s axis to stay trapped in the core. Anything steeper leaks into the cladding.

What is the refractive index of a liquid if light at 45 degrees refracts to 32?

  1. n1 sin(t1) = n2 sin(t2)
  2. n2 = 1 × sin(45 deg) / sin(32 deg)
  3. n2 = 0.70711 / 0.52992
  4. n2 = 1.3344

1.33, the refractive index of water. It is the ratio of the sines that is fixed, not the ratio of the angles: dividing 45 by 32 gives 1.41, which would point to a different liquid, and the gap between the two methods widens as the angles grow.

Common questions

Are the angles measured from the surface or from the normal?

From the normal, the imaginary line perpendicular to the surface at the point where the ray strikes it. This is the single most common error in refraction problems: a ray described as hitting the glass at 20 degrees to the surface has an angle of incidence of 70 degrees, not 20. If your answer bends the wrong way, check this first.

What is the critical angle and when does it exist?

It is the angle of incidence at which the refracted ray grazes along the boundary, given by θc = arcsin(n₂/n₁). It only exists when light travels from a higher-index medium into a lower-index one, so water to air has one at 48.6 degrees while air to water has none. Past the critical angle nothing refracts and all the light reflects internally, which is how optical fibers work.

Why does light bend at all?

Because it travels more slowly in a medium of higher refractive index, at c/n rather than c. The part of a wavefront that enters first slows first, which pivots the wavefront. Entering a higher-index medium bends the ray toward the normal; entering a lower-index one bends it away.