Loading…

Refraction and Snell's Law Solver

Physics Optics • Geometric Optics Basics

View all topics

Apply Snell’s law \(n_1\sin\theta_1 = n_2\sin\theta_2\), compute the critical angle when it exists, and inspect an animated bent-ray diagram with pan, drag, and zoom.

Inputs
Angles are measured from the normal. A critical angle exists only when \(n_1 > n_2\). If \(\dfrac{n_1}{n_2}\sin\theta_1 > 1\), there is no real transmitted ray and total internal reflection occurs.
Animation
Ready
Ready
Animated refraction diagram
The ray reaches a flat interface at the center. If transmission is possible, it bends according to Snell’s law. If not, the diagram switches to total internal reflection. A dashed extension can also show the apparent direction.
Drag to pan. Use the mouse wheel to zoom. Fit view restores the default framing.
Enter values and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does the refraction and Snell’s law solver compute?

It computes the refracted angle using Snell’s law, checks whether total internal reflection occurs, and calculates the critical angle when the first medium has the higher refractive index.

When does a critical angle exist?

A critical angle exists only when light travels from a higher-index medium into a lower-index medium, so the condition is n1 greater than n2.

Why can total internal reflection happen?

It happens when the Snell-law expression for sin(theta2) becomes greater than 1. Since no real angle can have sine larger than 1, the transmitted ray disappears and the light reflects back into the first medium.

Why is there no critical angle for air to glass?

Because air has a lower refractive index than glass. Critical-angle behavior applies only in the opposite direction, such as glass to air.