Prism Dispersion Simulator

Adjust the prism apex and incidence angles to compare refraction, spectral spread, and total internal reflection in glass, water, and diamond.

Ray diagram

The dashed line extends the incoming direction. Colored lines trace individual wavelengths.

Direct right-face rays
—
Red–violet spread
—
Critical angle at 580 nm
—
Abbe number νd
—

Angles and paths by wavelength

The exit angle e is measured from the exit face normal. The deviation δ is the angle between the incoming and final outgoing rays. Spread is shown when both spectrum endpoints leave directly through the right face.

Wavelength λ (nm) Index n First internal incidence Exit angle e Deviation δ Exit path

Reading the ray diagram

Refraction at an interface

n₁ sin θ₁ = n₂ sin θ₂

Measure an angle from the surface normal. In these materials shorter wavelengths have a higher refractive index, so violet usually deviates more than red along the direct path out of the right face.

Minimum deviation

δ = i + e − A

For a ray that exits directly through the right face, e in the formula is signed. It is positive on the base side of the exit normal and negative on the apex side. The minimum at a given wavelength occurs on the symmetric path, where i = e.

Total internal reflection

θc = arcsin(1/n)

When a ray inside the prism strikes a face above its critical angle, it reflects and may leave through a different face.

The model uses Sellmeier indices over 400–700 nm and takes the index of air as 1. Screen colors identify the sampled wavelengths. Line widths and animation speed are schematic.

Newton used a prism to spread sunlight across a paper screen and a lens to recombine the separated light into white.