Dispersion is white light splitting into colours because each wavelength meets a slightly different refractive index. Drag the sliders below to set the prism apex angle, angle of incidence, mean refractive index and Abbe number, and watch the emerging spectrum and its exact deviation angles respond in real time.

Dispersion of Light Through a Prism

A white beam enters the prism and fans into a spectrum because each colour has its own refractive index. Drag the apex angle A, angle of incidence i, mean index nd and Abbe number Vd and watch violet always deviate more than red.

Angular dispersion  violet - red
1.56°
Spectrum emerges — violet deviates most.
Per-colour trace
n (red, 680 nm)1.5166
n (violet, 410 nm)1.5343
Deviation of red38.65°
Deviation of violet40.21°
Prism apex angle A60°
Angle of incidence i50°
Mean index nd1.52
Abbe number Vd58
Colour model: Cauchy n = Ac + B/(wavelength)², fitted from nd and Vd at the 656.3 / 587.6 / 486.1 nm lines. Snell's law is solved at both faces; the fan between red and violet is drawn 4x wider than life so you can see it.
Tip: lower the Abbe number to make the glass more dispersive and the spectrum wider — then push A or nd up until violet stops emerging (total internal reflection).

What Is the Dispersion of Light Simulator?

The dispersion of light simulator is a free interactive physics lab that runs in your browser — nothing to install and no sign-up. Set the prism angle, index and Abbe number to fan white light into a spectrum and read every deviation angle. It reports Angular dispersion violet - red as you drag the sliders.

What you can change in the dispersion of light simulator
ControlRangeStep
Prism apex angle20 – 70 °1
Angle of incidence at the first face20 – 80 °1
Mean refractive index1.30 – 2.600.01
Abbe number15 – 751

Four Sliders, One Spectrum: What to Try First

The four controls map onto the four things that really decide what a prism does. The apex angle A sets how sharply the two refracting faces meet; the angle of incidence i sets how the white beam strikes the first face; the mean index nd says how strongly the glass bends the middle of the spectrum; and the Abbe number Vd says how differently it treats red and violet. Under the canvas, the sim is simply solving Snell's law, sin i = n sin r, at both faces — the same two-boundary refraction you can work through one interface at a time in the Snell's law calculator — with each colour's index set by Cauchy's relation n(λ) = A + B/λ².

The readouts are there to prove the core rule rather than ask you to trust it. At every setting you can reach, n (violet) is larger than n (red), and the violet deviation sits above the red one — the fan on screen always puts violet at the bigger angle. That corrects the classic exam mistake of expecting red, the “stronger” colour, to bend most: bending is set by the index, and the index rises as the wavelength shortens. Since a medium slows light to v = c/n (the idea explored in our speed of light guide), violet is also the colour the glass slows the most.

Two experiments are worth running deliberately. First, drag Vd up and watch the angular-dispersion readout shrink while the whole fan stays put: a high Abbe number means the indices for red and violet crowd together, and the spectrum narrows. Then drag nd up instead and watch every deviation grow at once — the fan swings as a whole. Colour itself is fixed by frequency rather than by the wavelength that changes inside the glass, a distinction unpacked in the frequency formula guide.

Finally, push the geometry until it breaks. Raise A or nd and the status line will announce the moment violet stops emerging: it has hit the second face beyond the critical angle and is totally internally reflected, shown as a dashed ray bouncing back inside the prism. Sweep i slowly from 20° to 80° and each deviation dips through a minimum — the symmetric passage a prism spectrometer exploits to measure the index of a glass sample.

Where the ideal prism breaks down

Cauchy's relation is a curve fit, not a law of nature. It describes glass well only in the transparent window between the material's absorption bands, and this simulator fits it from three visible reference lines at 656.3, 587.6 and 486.1 nm, then evaluates it out at 680 nm and 410 nm — a little beyond the data it was anchored on. Walk towards an absorption band, in the ultraviolet or the infrared, and the index does the opposite of everything the readouts suggest: it falls as the wavelength shortens. That is anomalous dispersion, and Cauchy's two terms cannot represent it at all. Real lens design uses Sellmeier's equation instead, with a resonance term for each absorption band.

The canvas traces a single ray; a real spectrometer never has one. A beam has width, so each colour emerges as a band rather than a line, and two nearby wavelengths blur together unless the prism is physically large. A prism's resolving power is its base length multiplied by the rate at which the index changes with wavelength, so doubling the dispersion of the glass while halving the prism buys you nothing. That is why laboratory prisms are chunky blocks and not the slim wedge drawn here.

Nothing is lost at the surfaces here, and in a real prism a good deal is. Every face reflects part of the beam — about 4% at each surface for an index of 1.52 near normal incidence, and considerably more at the steep angles this simulator works at. Worse, the reflected fraction depends on polarisation, so a prism partly polarises the light passing through it and the spectrum is not uniformly bright across the fan. Anti-reflection coatings exist precisely to claw that back.

Two honest caveats about the picture itself. The fan between red and violet is drawn four times wider than life so that it is visible at all: at the default settings the true angular dispersion is only 1.57°, with red and violet deviating 38.63° and 40.20°. And the index is treated as a fixed number, which it is not. Optical glass shifts its index with temperature, so a precision spectrometer has to be temperature-stabilised before its readings mean anything.

Where this is actually used

The achromatic lens in every camera. A simple lens focuses violet closer than red, which is this same fan happening at a curved surface. The fix is to cement a low-dispersion crown element to a high-dispersion flint one so their colour spreads cancel while their focusing powers do not. The simulator shows why that pairing works: hold nd at 1.52 and drop the Abbe number from 58 to 25, and the dispersion readout jumps from 1.57° to 3.68° while the red deviation shifts only from 38.63° to 38.24°. More than double the colour spread for almost the same bending is exactly the trade an achromat is built on.

Measuring the index of a glass sample. Set A = 60°, nd = 1.52 and Vd = 58, then sweep the angle of incidence: the red deviation falls to 38.63° around i = 49° and climbs again either side. Put that minimum into the spectrometer formula, n = sin((A + D)/2) divided by sin(A/2), and it returns 1.5166 — the exact figure the sim prints for n (red). That is the standard undergraduate index measurement, and it needs nothing but a prism and a protractor.

The width of a rainbow. Set the mean index to 1.33 and the Abbe number to 56, roughly water, and the readouts give 1.3277 for red against 1.3394 for violet. That gap of about 0.012 is the whole cause of the rainbow. Sunlight refracting into a raindrop and reflecting once inside comes back at close to 42° for red and 40° for violet, which is why the bow is a couple of degrees of colour and no wider.

Frequently asked questions

Why does violet leave the prism at a bigger angle than red?

Violet leaves at a bigger angle because the glass refracts short wavelengths more strongly, so its refractive index is higher for violet than for red. A higher index bends the ray harder at both prism faces, giving violet the larger total deviation. The readouts prove it at every slider setting: n(violet) always sits above n(red), and the violet deviation always exceeds the red one.

What does the Abbe number slider change?

The Abbe number sets how strongly the glass disperses: a low value means the refractive index changes a lot between red and violet, so the spectrum fans out wide, while a high value means nearly the same index for every colour and a narrow fan. Slide it down from 75 toward 15 and watch the angular-dispersion readout grow while the mean deviation barely moves.

How does the simulator work out each colour's refractive index?

It fits Cauchy's two-term formula, n = A + B/(wavelength squared), using your mean index and Abbe number at the standard 656.3, 587.6 and 486.1 nm reference lines. Evaluating that formula at 680 nm gives n for red and at 410 nm gives n for violet, and each colour is then traced through both faces of the prism with Snell's law using its own index.

What is the angle of minimum deviation and can I find it here?

Yes — sweep the angle-of-incidence slider slowly and watch a deviation readout fall, bottom out and rise again; the lowest value is the minimum deviation for that colour. It happens at the symmetric setting where the ray crosses the prism parallel to its base, entering and leaving at equal angles. Prism spectrometers measure the refractive index of glass from exactly this angle.

Why does a colour sometimes stop emerging from the prism?

Because it hits the second face steeper than the critical angle and undergoes total internal reflection: the ray reflects back inside the prism instead of refracting out. Violet fails first, since its higher index means a smaller critical angle. The status line flags this the moment it happens — recover the ray by lowering the apex angle or the index, or by raising the angle of incidence.

References & formula source

  • E. Hecht — Optics, 5th ed., §3.5 (Light in Bulk Matter) and §5.5 (Prisms), dispersion and the Cauchy equation.
  • Young & Freedman — University Physics with Modern Physics, §33.4 (Dispersion).
  • R. Nave — HyperPhysics, Georgia State University, "Prisms" / dispersion section.
  • Further reading: Dispersion (optics) — Wikipedia