Physics

Snell's Law Calculator

Apply Snell's law in one click: solve refracted angle, incidence angle, refractive index, critical angle, Brewster angle, and apparent depth. Free, fast & instant charts — no sign-up.

Did this calculator help you?

What is Snell's Law Calculator?

Snell's law (also called the law of refraction) describes how a light ray bends when it crosses the boundary between two transparent media. It states that the product of the refractive index and the sine of the angle to the normal is conserved across the interface: n₁·sin θ₁ = n₂·sin θ₂. When light enters a denser medium (higher n) it slows down and bends toward the normal; when it enters a rarer medium it speeds up and bends away from the normal.

This calculator solves every variant of the law: the refracted angle from an incidence angle, the unknown incidence angle, an unknown refractive index, the critical angle that starts total internal reflection, Brewster's angle where reflected light becomes perfectly polarized, and the apparent depth that makes a pool look shallower than it is. It also reports Fresnel reflectance, deviation angle, and light's speed in each medium — with an interactive ray diagram, two reference charts, and a 15-material index table.

When to Use This Calculator

  • Solving refraction problems in physics class or on exams.
  • Designing lenses, prisms, fibers, and waveguide structures.
  • Checking whether light will undergo total internal reflection in a medium pair.
  • Estimating glare and reflectance of glass windows and screens.
  • Explaining why a straw looks bent or a pool looks shallow.
  • Studying polarization for photography, sunglasses, and laser setups.

Steps:

  1. Identify the two media and their refractive indices — the material above the boundary is n₁ (where the ray starts) and the material below is n₂.
  2. Measure the angle to the normal, not to the surface — angles are always taken from the dashed perpendicular line, never from the interface itself.
  3. Enter θ₁ and both indices in Find θ₂ mode to get the refracted angle, or switch modes to solve for the unknown value instead.
  4. Check the critical angle — if light travels from the denser medium (n₁ > n₂) and θ₁ exceeds θc, no ray passes through and everything reflects.
  5. Read the ray diagram and charts — the curve shows θ₂ rising until it stops at θc, while the Fresnel curves show how reflectance climbs from ~4% to 100% at grazing angles.
  6. Sanity-check with a known pair — air to water at 30° must give about 22°, and water to air above 48.6° must trigger total internal reflection.

Formula

Snell's Law: n1 * sin(theta1) = n2 * sin(theta2) Solving for the refracted angle: sin(theta2) = (n1 / n2) * sin(theta1) theta2 = arcsin( (n1 / n2) * sin(theta1) ) Critical angle (total internal reflection): theta_c = arcsin( n2 / n1 ) [only when n1 > n2] Brewster's angle (polarized reflection): theta_B = arctan( n2 / n1 ) Apparent depth (looking straight down): d' = d * (n2 / n1) Fresnel reflectance at normal incidence: R = ( (n2 - n1) / (n2 + n1) )^2 Light speed in a medium: v = c / n (c = 299,792,458 m/s) Wavelength in a medium: lambda = lambda_0 / n Where: n1, n2 = refractive indices of the incident and transmitted media theta1 = angle of incidence, measured from the surface normal theta2 = angle of refraction, measured from the surface normal d = real (actual) depth d' = apparent depth as seen from the other medium

Use Cases

  • Fiber-optic design — computing the numerical aperture and acceptance angle that keep light trapped inside the core by total internal reflection.
  • Lens and prism engineering — predicting the bending of rays through eyepieces, camera lenses, prisms, and beam splitters.
  • Geology and gemology — using critical angles to cut diamonds for maximum sparkle and to study light paths in crystals.
  • Physics homework and exams — instant, verified answers for refraction, TIR, Brewster angle, and apparent-depth problems.
  • Underwater imaging and diving — estimating how objects shift position and why pools look shallower than they are.
  • Coating and AR-film design — reading Fresnel reflectance to estimate glare and anti-reflective coating performance.

Key Benefits

  • Six modes in one tool — solve for θ₁, θ₂, n₂, the critical angle, Brewster's angle, or apparent depth without ever leaving the page.
  • Instant visual feedback — the ray diagram, refraction curve, and Fresnel reflectance chart update live as you drag the angle.
  • One-tap material presets — air/water, air/glass, diamond, and optical-fiber pairs prefill the exact indices for you.
  • Real-world validation — the 15-material reference table shows each index, light's speed in it, and its critical angle against air.
  • Free and instant — no sign-up, no ads in the way, works on phone, tablet, and desktop.

Pro Tips

  • Quick memory: going into a denser medium the ray bends toward the normal (θ₂ < θ₁); going into a rarer medium it bends away (θ₂ > θ₁).
  • The critical angle exists only when n₁ > n₂. If the calculator reports 'impossible', swap which medium the light starts in.
  • To measure an unknown index experimentally: aim a laser across a semicircular block, find the angle where the refracted ray vanishes — that is the critical angle.
  • Reflectance at normal incidence only needs one number: R = ((n₂−n₁)/(n₂+n₁))². For n = 1.5 that is (0.5/2.5)² = 4%.
  • In optics fiber the core index (1.475) must exceed the cladding (1.460); the 81.8° critical angle keeps light guided for kilometers.

Common Mistakes to Avoid

  • Measuring from the surface instead of the normal — θ₁ and θ₂ are always measured from the perpendicular line; a 30° ray to the surface is actually 60° to the normal.
  • Applying Snell's law when going denser → rarer above θc — if θ₁ > θc there is no refracted ray; sin θ₂ > 1 is a signal for total internal reflection, not an error.
  • Swapping n₁ and n₂ — the incident medium must be n₁. Swapping them inverts the bend and produces nonsense critical angles.
  • Forgetting that indices are unitless ratios — refractive index has no unit; only the speeds and wavelengths use meters and nanometers.
  • Using visible-angle intuition for reflectance — even at near-normal incidence glass already reflects ~4%, and reflectance climbs steeply past 60°, reaching 100% at grazing angles.

Key Terms Explained

Refractive index (n):
The ratio of light's speed in vacuum to its speed in the medium, n = c/v. Vacuum is exactly 1.
Normal:
The imaginary line perpendicular to the surface at the point where the ray strikes; all angles are measured from it.
Critical angle (θc):
The largest incidence angle that still produces a refracted ray when n₁ > n₂; beyond it, total internal reflection occurs.
Total internal reflection (TIR):
Complete reflection at a boundary — no light is transmitted, giving 100% reflectance.
Brewster's angle (θB):
The angle at which reflected light is perfectly polarized parallel to the surface, θB = arctan(n₂/n₁).
Deviation angle:
The difference |θ₁ − θ₂| — how far the ray's direction changed crossing the boundary.

Related Concepts

  • Refractive index: The material property n = c/v that this calculator reads for both media — every result scales directly with it.
  • Total Internal Reflection: The phenomenon created whenever θ₁ exceeds θc — the physics that carries internet traffic through optical fibers.
  • Fresnel Equations: The full description of how much light reflects versus transmits at each angle, summarized by the reflectance chart.
  • Apparent Depth: The everyday illusion of objects sitting higher than they are, derived from the same law at near-normal viewing.
  • Polarization by Reflection: How unpolarized glare becomes polarized at Brewster's angle — the theory behind polarized sunglasses.

Example

Air → water at 30°. Light leaves air (n₁ = 1.0003) and strikes water (n₂ = 1.333) at θ₁ = 30°. Snell's law: sin θ₂ = (1.0003 / 1.333) × sin 30° = 0.7504 × 0.5 = 0.3752 θ₂ = arcsin(0.3752) ≈ 22.02° Deviation = 30° − 22.02° ≈ 7.98° — the ray bends toward the normal because water is optically denser. Now reverse it — water → air at 50°: sin θ₂ = (1.333 / 1.0003) × sin 50° = 1.016 > 1, so no transmitted ray exists. The critical angle is θc = arcsin(1.0003 / 1.333) ≈ 48.61°, and at 50° the light is totally internally reflected — the physics behind fiber optics and diamond sparkle.

Interpreting Your Results

Start by comparing θ₂ with θ₁. If θ₂ < θ₁, light entered a denser medium and slowed down; if θ₂ > θ₁, it entered a rarer medium and sped up; if they are equal, both indices match and no bending occurs. Next look at the TIR status: active means the ray never crosses the boundary and 100% of the light reflects; not reached means a transmitted ray exists but you are approaching θc; impossible means the light is heading into a denser medium, so TIR can never happen in that direction. Finally, read the Fresnel reflectance: ~4% is normal glare off window glass, 20–40% is strong edge reflection, and 100% is total internal reflection.

Frequently Asked Questions

What is Snell's law?
Snell's law states that n₁·sin θ₁ = n₂·sin θ₂: the product of the refractive index and the sine of the angle to the normal stays constant across the boundary between two media. It lets you predict exactly how much a light ray bends when it passes from air into water, glass, or any other transparent material.
How do I use this calculator?
Pick a preset (or enter n₁ and n₂), enter the known angle or index, and the missing value is solved instantly. Six tabs cover every variation: find the refracted angle θ₂, find the incidence angle θ₁, find an unknown index n₂, compute the critical angle, compute Brewster's angle, or convert real depth to apparent depth.
When does total internal reflection happen?
Total internal reflection occurs when light travels from a denser medium to a rarer medium (n₁ > n₂) and the incidence angle exceeds the critical angle θc = arcsin(n₂/n₁). Below θc a refracted ray still exists; at and above θc all light reflects back — reflectance reaches 100%.
What is the critical angle of water in air?
θc = arcsin(1.0003/1.333) ≈ 48.61°. Any light striking the water surface from below at an angle steeper than 48.61° from the normal cannot escape — it is reflected back into the water. This is also why an underwater diver sees a circular window of light about 97° wide above them.
Why does a straw look bent in a glass of water?
Light from the submerged part of the straw refracts as it leaves the water, so your eyes trace it back along a straight line to a position higher than the real object. The calculator's apparent-depth mode quantifies this: a 2 m deep pool appears only about 1.50 m deep from directly above.
What is Brewster's angle?
Brewster's angle θB = arctan(n₂/n₁) is the incidence angle where reflected light is 100% polarized parallel to the surface and the reflected and refracted rays are perpendicular. For air → crown glass it is 56.59°, for air → water about 53.1°. Polarized sunglasses exploit it to block horizontal glare.
Does the color (wavelength) of light matter?
Yes, slightly — refractive index varies with wavelength (dispersion), which is why prisms split white light into a spectrum. This calculator uses indices at the sodium D line (589 nm). Blue light bends a little more than red light in the same medium, but the difference is usually under 1% for visible light in water or glass.
How do I calculate the refractive index from two angles?
Rearrange Snell's law: n₂ = n₁·sin θ₁ / sin θ₂. Enter n₁, θ₁, and θ₂ in the Find n₂ mode. For example, air (1.0003) at 30° refracting to 19.47° gives n₂ ≈ 1.5 — crown glass.
What does 'relative index' mean in the results?
The relative index n₂/n₁ is the ratio of the two refractive indices. It equals the ratio of the sine terms in Snell's law and also the factor by which light's speed changes when crossing the boundary (v₂/v₁ = n₁/n₂). For air → water it is about 1.332, meaning light slows to roughly 75% of its previous speed.
Why is there always some reflection even when light passes through?
The Fresnel equations show that every interface reflects a fraction of the light. At normal incidence the reflectance is R = ((n₂−n₁)/(n₂+n₁))² — about 4% for glass in air and 2% for water. It stays low through moderate angles, then climbs rapidly beyond 60°, reaching 100% at grazing incidence and beyond the critical angle.
Does Snell's law work for sound and water waves too?
Yes. Any wave that changes speed when crossing a boundary between two media refracts according to the same law — sound in air layers, seismic waves in rock, and water waves entering shallow water all obey the sine-ratio relationship, substituting wave speed for refractive index (n = c/v means the angle law is equivalent).

Discover More Tools

Fresh picks from across our tool library.