If you know the refractive index of two media and the incident angle, Snell’s Law gives the refracted angle. This Snell’s Law Calculator computes that angle, checks for total internal reflection, and shows the result in degrees.
Use it for optics homework, lab planning, and quick sanity checks when designing lenses, windows, or fiber-optic systems.
What Is Snell’s Law?
Snell’s Law describes how light bends when it moves between materials with different refractive indices. It links the incident angle and the refracted angle to the refractive indices of the two media.
The law is written as:
n₁ sin(θ₁) = n₂ sin(θ₂)
Variables and Units (What Each Input Means)
- n₁: Refractive index of the first medium (dimensionless).
- n₂: Refractive index of the second medium (dimensionless).
- θ₁: Incident angle (degrees).
- θ₂: Refracted angle (degrees).
Angles must be measured from the normal (the imaginary line perpendicular to the boundary surface).
How the Calculator Works (Core Formula)
The calculator rearranges Snell’s Law to solve for the refracted angle:
sin(θ₂) = (n₁ / n₂) · sin(θ₁)
Then it computes:
θ₂ = arcsin( (n₁ / n₂) · sin(θ₁) )
Total Internal Reflection (When Refraction Does Not Happen)
If the expression inside arcsin is greater than 1 or less than -1, the refracted angle is not physically possible. That condition means total internal reflection occurs.
- If sin(θ₂) > 1, refraction cannot occur; light reflects fully back into the first medium.
- If sin(θ₂) < -1 (rare for typical setups), the same idea applies: no valid refracted angle.
The calculator flags this case and tells you that no refracted angle exists for the given inputs.
Step-by-Step Example (Quick Manual Check)
Suppose light goes from air into glass.
- n₁ = 1.00 (air, approximate)
- n₂ = 1.50 (glass)
- θ₁ = 30°
Compute:
- sin(θ₂) = (1.00/1.50) · sin(30°) = 0.6667 · 0.5 = 0.3333
- θ₂ = arcsin(0.3333) ≈ 19.47°
That is the refracted angle measured from the normal.
Practical Use-Cases
1) Designing window glare and coatings
When light enters a pane from air, the angle changes. Knowing θ₂ helps predict how beams spread, where reflections may intensify, and how coatings can reduce unwanted glare by managing refractive index differences.
2) Checking fiber-optic coupling angles
Fiber optics rely on controlled refraction and total internal reflection. Snell’s Law helps estimate how light bends at the core–cladding boundary and whether conditions approach the point where total internal reflection dominates.
Common Mistakes to Avoid
- Using angles from the surface instead of the normal. Snell’s Law assumes angles are measured from the normal.
- Swapping n₁ and n₂ without changing θ₁. The incident angle must correspond to the first medium.
- Using invalid refractive indices. n values must be positive numbers.
- Ignoring total internal reflection. If the calculator reports no valid θ₂, you must treat the situation as reflection-only.
Frequently Asked Questions
What does a Snell’s Law Calculator compute?
A Snell’s Law Calculator computes the refracted angle θ₂ when light travels from one medium to another. It uses n₁, n₂, and the incident angle θ₁ to evaluate sin(θ₂) and then apply arcsin. It also detects total internal reflection.
Why is the calculator sometimes unable to return a refracted angle?
The calculator cannot return a refracted angle when total internal reflection occurs. Mathematically, the computed value for sin(θ₂) becomes larger than 1 in magnitude, which has no real arcsin solution. In that case, light reflects fully.
Are refractive indices unitless?
Yes. Refractive index n is dimensionless because it is a ratio of speeds (or wavelengths) in two materials. Only the angles carry units, typically degrees. The calculator assumes angles are measured from the normal line.
How do I know if my angles are correct?
Confirm that θ₁ and θ₂ are measured relative to the normal, not relative to the surface. If your diagram uses the surface angle, convert it by subtracting from 90°. Using the wrong reference changes the result dramatically.
Can I use the calculator for any two materials?
You can use it for any two media where Snell’s Law applies and the refractive indices are known. For strongly absorbing or complex media, simple n values may not capture all effects. Still, for typical optics problems, the calculator gives accurate refraction angles.