OPTICS · High school · College

Refraction & Snell’s Law Simulator

Follow a moving ray as it reaches the interface between two materials. Calculate the refracted angle or watch total internal reflection.

↓ Jump to simulatorFree · No loginReal-time controlsUnits & models explained
LIVE EXPERIMENTReady · Press Start
Your browser does not support canvas. Read the scientific lesson below.
Press Start to explore the model

Scientific model: A two-dimensional, monochromatic geometric ray model of a sharp, planar boundary. The display omits polarization, Fresnel reflection amplitudes, absorption, scattering, dispersion and evanescent fields. Index values are user-defined illustrations.

Refraction & Snell’s Law Simulator — static example view
Example view of this experiment. Use the simulator above to explore your selected parameters and live measurements.
LEARNING OUTCOMES

What will you understand?

  • Measure incidence and refraction angles from the surface normal.
  • Use Snell’s law to calculate refraction between materials.
  • Find when total internal reflection occurs from a high-index medium.
THE PHYSICS EXPLAINED

How the simulation works

Why light changes direction

Light travels at different phase speeds in different transparent, homogeneous media. At a flat boundary, the tangential component of the wavevector is preserved, so the propagation direction generally changes.

Angle is measured from the normal

Both incidence θ₁ and refraction θ₂ are measured with respect to the perpendicular to the boundary, not the boundary itself. Higher refractive index usually means a ray bends toward the normal.

Total internal reflection

When light goes from a larger index n₁ to a smaller index n₂, and the incidence angle is above arcsin(n₂/n₁), no propagating refracted ray exists in the geometric-optics model. The ray reflects back into the first medium.

MODEL EQUATION
n₁ sin θ₁ = n₂ sin θ₂

Use the controls above to change the relevant parameters. All displayed values follow the assumptions stated on this page.

TRY IT YOURSELF

Three experiments to try

  1. Start with air n₁ = 1.00 and glass n₂ = 1.50 at 40°. Predict whether the ray bends toward the normal.
  2. Make both indices equal; observe that the transmitted direction no longer bends.
  3. Try n₁ = 1.50, n₂ = 1.00 and raise the incidence angle above 42° to explore total internal reflection.
WORKED EXAMPLE

Calculate it before you visualize it

From air into a medium with n₂ = 1.50 at incidence θ₁ = 30°, Snell’s law gives sin θ₂ = (1.00/1.50)sin 30° = 1/3, so θ₂ ≈ 19.47°. At a glass-to-air boundary with n₁ = 1.50 and n₂ = 1.00, the critical angle is arcsin(1/1.5) ≈ 41.81°.

QUICK KNOWLEDGE CHECK

Can you predict the result?

What happens to a light ray entering a medium with a higher refractive index at the same nonzero incidence angle?

Reveal the answer

It bends toward the normal, making a smaller angle to the normal in the second medium.

ASSUMPTIONS & LIMITS

What the model does not show

A two-dimensional, monochromatic geometric ray model of a sharp, planar boundary. The display omits polarization, Fresnel reflection amplitudes, absorption, scattering, dispersion and evanescent fields. Index values are user-defined illustrations.

REFERENCES & MODEL REVIEW

Science sources

This teaching implementation follows idealized textbook models. It is designed for exploration and should not be used for engineering design or safety decisions.

OpenStax University Physics Vol. 3 — Refraction ↗

Model implementation: MG Labs teaching model. Independent subject-matter review and classroom testing are still pending.