Optics · Wave Physics

Refraction of Light
Through a Prism

Drag the angle slider and watch white light shatter into the full visible spectrum. Snell's Law governs every ray — with normal lines, angle labels, and deviation readout updating live.

🔭 Wave Optics 📐 Snell's Law 🎓 FYUGP Physics
Prism Refraction Lab — Live Simulation
BOROSILICATE GLASS · n ≈ 1.52
Angle of Incidence
35°
θ₁ — incident
Refracted Angle (589 nm)
22.1°
θ₂ — refracted
Deviation: --°
Display Options
n₁ sin θ₁ = n₂ sin θ₂  ·  1.00 × sin 35° = 1.517 × sin 22.1°
nair = 1.000
nglass1.52
Prism apex: 60°
Physics Deep Dive

How Light Bends Through a Prism

When a ray of white light strikes the surface of a glass prism, it crosses a boundary between two media of different optical density — air (n ≈ 1.00) and glass (n ≈ 1.52). At this boundary, light slows down and bends toward the normal. This bending is called refraction, governed by Snell's Law:

n₁ sin θ₁ = n₂ sin θ₂   // Snell's Law at each face

θ_r = arcsin( (n₁/n₂) × sin θ_i )   // solving for refracted angle

δ = (i − r₁) + (e − r₂)   // total angle of deviation

At the second face the ray exits the glass — bending away from the normal back into air. The angular difference between the original incident direction and the final emergent ray is the angle of deviation (δ).

Why colours separate
Glass is a dispersive medium — refractive index varies with wavelength. Violet (400 nm) n ≈ 1.531 bends most. Red (700 nm) n ≈ 1.510 bends least. This is dispersion.
The Normal Line
The normal is perpendicular to the prism face at the point of incidence. All Snell's Law angles — θ₁ and θ₂ — are measured from this normal, not from the surface itself.
Angle of Deviation
The angle of deviation (δ) is the angle between the original incident ray and the final emergent ray. It reaches a minimum at the angle of minimum deviation.
Cauchy's Equation
Wavelength-dependence: n(λ) = A + B/λ². For borosilicate glass, A ≈ 1.5046, B ≈ 4200 nm² — used directly in this simulation for each spectral ray.

Visible Spectrum — Refractive Indices (Borosilicate Glass)

Colourλ (nm)n(λ)Bending
Red7001.5100Least ↓
Orange6201.5140
Yellow5891.5170
Green5301.5200
Blue4701.5240
Indigo4401.5270
Violet4001.5310Most ↑

Each wavelength follows its own Snell's Law computation, producing the rainbow fan emerging from the second prism face. Drag the slider to see how the angle of incidence changes the spread and deviation of all colours simultaneously.