Snell’s Law Calculator
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.
- 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
- n1 sin(t1) = n2 sin(t2)
- sin(t2) = 1 × sin(30 deg) / 1.333
- sin(t2) = 0.37509
- 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.
The equation
Snell (1621, unpublished) and Descartes (1637)
The equation as an image to reuse
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 isn₂ = 1.52. sin θ₂ = n₁ sin θ₁ / n₂ = 1.000 × 0.6428 / 1.52sin θ₂ = 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
- OpenStax, University Physics Volume 3, section 1.3, Refraction, for the law, Snell’s discovery of it in 1621 and Ibn Sahl’s of 984.
- OpenStax, University Physics Volume 3, section 1.4, Total Internal Reflection, for θc = sin⁻¹(n₂/n₁) when n₁ > n₂, and the critical angles of 48.6° for water into air and 24.4° for diamond.
- OpenStax, University Physics Volume 3, section 1.5, Dispersion, Table 1.2, for crown glass from 1.512 at 660 nm to 1.530 at 410 nm.
- OpenStax, College Physics 2e, section 25.3, The Law of Refraction, Table 25.1, for the indices of air, 1.000293, water, 1.333, and crown glass, 1.52.
- Schott N-BK7 Sellmeier coefficients, Zemax catalog 2017-01-20b, at refractiveindex.info, for 1.5143 at 656 nm and 1.5302 at 405 nm.
- NIST CODATA, speed of light in vacuum, for c = 299 792 458 m/s, exact.
- MacTutor History of Mathematics, Willebrord Snell (1580 to 1626), for Snell leaving the law unpublished until Huygens printed it in Dioptrica in 1703.
- Stanford Encyclopedia of Philosophy, Descartes’ Physics, for Descartes’ law of refraction in his Optics of 1637.
Converting units first? Use the angle conversion table.
Constants used: Speed of light in vacuum (c).
How to calculate the angle of refraction with Snell’s law
- Write down the formula:
θ₂ = arcsin(n₁ sin θ₁ / n₂) -
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
-
Substitute them and work through the arithmetic:
- n1 sin(t1) = n2 sin(t2)
- sin(t2) = 1 × sin(30 deg) / 1.333
- sin(t2) = 0.37509
- t2 = 22.03 deg
-
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 θ₂
- Refractive index, medium 1:
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?
- n1 sin(t1) = n2 sin(t2)
- sin(t1) = 1.46 × sin(90 deg) / 1.48
- sin(t1) = 0.98649
- 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?
- n1 sin(t1) = n2 sin(t2)
- n2 = 1 × sin(45 deg) / sin(32 deg)
- n2 = 0.70711 / 0.52992
- 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.