Home / Learn / Physics / Prism and dispersionTool #L4 (formerly #1004)

Prism and dispersion: refraction through a glass prism, angle of deviation, minimum deviation and the spectrum

Shine a ray through a glass prism and see it bend twice: the angles at both faces, the angle of deviation, the deviation graph with its minimum, and white light splitting into a spectrum from red to violet.

Keep it one tap away for everyday use.

Bookmark Prism and dispersion?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Set prism
  2. Aim the ray
  3. Deviation
  4. Spectrum
Nothing is uploadedWorks offline once open

The index is for yellow light (589 nm). How much it changes with colour uses Cauchy's formula n = a + b/λ² with rounded, made-up teaching values of b, so the spread of the spectrum is about right but not exact for any real glass.

 

Deviation against angle of incidence

The deviation is smallest when the ray passes through the prism symmetrically (i = e, and the ray inside is parallel to the base). That smallest value is the angle of minimum deviation δm.

Try this

  • Slide the angle of incidence from small to large. The deviation first falls, reaches a minimum, then rises again: watch the dot run along the curve.
  • Press Go to minimum deviation: the ray inside the prism runs parallel to the base.
  • Switch to White light. Violet bends the most and red the least, so white light fans out into a spectrum. Dense flint glass and diamond spread it more.
  • Make the angle of incidence small: at some point the light cannot get out of the second face at all (total internal reflection).

Check yourself

Fresh numbers each time. Angles in degrees. Nothing is saved.

What it does

A glass prism bends light twice, once going in and once coming out, and both bends turn the ray towards the prism’s base. The total turn is the angle of deviation δ. Because glass bends violet light a little more than red, a prism also spreads white light into a spectrum: this is dispersion, and it is how a rainbow’s colours are separated too.

This tool draws a ray through a prism of any angle, gives the angles at both faces, and plots the deviation against the angle of incidence so you can find the minimum deviation. Switch to white light to see the spectrum fan out.

It follows the Class 10 Science chapter on the human eye and the colourful world (refraction through a prism, dispersion, the spectrum) and the Class 12 Physics chapter on ray optics (prism formula, minimum deviation). Before this, see a single bend in snell's law; for colours made by waves instead of by refraction, see diffraction pattern generator.

How to use it

  1. Set the angle of incidence i and the prism angle A with the sliders, and choose what the prism is made of.
  2. Read the angles: r₁ at the first face, r₂ at the second, the angle of emergence e, and the deviation δ.
  3. The graph shows δ for every angle of incidence that lets light out; the dot is your ray, the dashed line the minimum. Go to minimum deviation moves the ray there.
  4. White light splits the ray into seven colours and gives the spread between violet and red.
  5. Class 12 adds the minimum-deviation formula and solves it for your prism.

Worked example

The page opens with a 60° crown-glass prism (n = 1.52) and light arriving at i = 50°. Inside, sin r₁ = sin 50° / 1.52, so r₁ = 30.3°. Then r₂ = 60° − 30.3° = 29.7°, and the ray leaves at e = 48.9°. The deviation is δ = i + e − A = 50° + 48.9° − 60° = 38.9°.

That is already very close to the minimum: the graph’s minimum for this prism is δm = 38.9°, reached at i = e = 49.5°, when the ray inside is parallel to the base. Switch to white light: violet (410 nm) is turned by 40.1° and red (680 nm) by 38.7°, so the spectrum spreads over about 1.4°.

Things to notice

  • Too small an angle of incidence, and the light hits the second face beyond the critical angle and cannot get out. For this prism nothing gets through below about 30°.
  • A bigger prism angle or a denser glass gives a bigger deviation, and a wider spectrum.
  • At minimum deviation r₁ = r₂ = A/2, which is why measuring δm in a lab gives the refractive index so neatly.

Check yourself

Four questions with fresh numbers each time: r₂ from r₁, deviation from i and e, minimum deviation from n, and n from the minimum deviation. Show working reveals the steps. Nothing is saved or sent anywhere.

FAQ

Why does violet bend more than red? In glass, violet light travels slightly slower than red light, so the glass has a slightly higher refractive index for it.

Is the spectrum on screen exactly what a real prism makes? The angles come from the prism formulas, but how much the index changes with colour uses rounded teaching values, so the spread is about right rather than exact for any particular glass.

Why does the deviation have a minimum? Very small and very large angles of incidence both make the light hit one face steeply, which bends it a lot. In between, the two bends share the work equally and the total turn is least.

This is a teaching model for school optics. It is not connected to NCERT or any exam board.

Where the numbers come from

  • Prism relations r₁ + r₂ = A, δ = i + e − A and n = sin((A + δm)/2) / sin(A/2), with Snell's law at each face: standard school optics, as taught in Class 10 and Class 12 physics. Refractive indices for yellow light are rounded general values (crown 1.52, dense flint 1.65, water 1.33, diamond 2.42).
  • Colour dependence: Cauchy's formula n = a + b/λ² with rounded, made-up teaching values of b (not data for any real glass). Spectrum colours on screen are approximate.
  • Checked against an independent Python calculation (math.asin) of the ray path and against a brute-force scan for the minimum deviation.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Change log for Prism and dispersion

  1. Add #1004 Prism and dispersion Details on GitHub

Every change to fibub

Related tools

Diffraction pattern generator #T668 See and measure the light pattern from a single slit, a double slit, a grating or a round hole on a screen at any distance: the picture, the irradiance profile, fringe spacing, the Airy disc, grating orders and resolving power, in the far field (Fraunhofer) or near field (Fresnel). Lens ray diagram #L2 Drag an object in front of a convex or concave lens and watch the principal rays find the image: where it forms, how big it is, real or virtual, with the lens formula, magnification and power worked out with signs. Snell's law #L3 Aim a ray of light at the boundary between air, water, glass or diamond and see it bend by Snell's law, find the critical angle and total internal reflection, the sideways shift through a glass slab, and why a pool looks shallower than it is. Eye defects #L5 See how the eye lens changes its power to focus near and far, what goes wrong in short sight, long sight and presbyopia, and which lens fixes each one, with the power in dioptres worked out. Sky colour #L7 Move the sun from overhead to the horizon and see why the sky is blue, why the sun turns red at sunset, why clouds are white and why the Moon's sky is black, with the scattering law worked out. Plane mirror lab #L115 Drag a laser at a flat mirror and see that the angle of reflection always equals the angle of incidence. Put two mirrors at any angle and count the images (360/θ − 1), then tilt the mirrors of a periscope until light gets through. Pigment spectra #L247 Slide a colour of light from violet to red and see how much chlorophyll a, chlorophyll b and the carotenoids absorb, and how fast photosynthesis goes in that colour. Replay Engelmann's bacteria experiment and work out photon energies. Class 10 and Class 11 levels, with quick questions. Electromagnetic spectrum explorer #L273 Drag along the electromagnetic spectrum from gamma rays to radio waves and see the band, what it is used for, the frequency f = c/λ and the energy of one photon in joules and electronvolts. Jump to everyday examples such as a TV remote, Wi-Fi, a microwave oven or FM radio. Optical fibre #L275 Send a ray of light into a glass fibre and watch it bounce along the core by total internal reflection. Bend the fibre tighter, change the core and cladding, and see when light leaks out, with the critical angle, numerical aperture and acceptance angle worked out. Double slit #L276 See the bright and dark fringes of Young's double slit on a screen and as a graph. Change the wavelength, slit gap and screen distance and watch β = λD/d, check the path difference at any point, switch to white light, and compare with a single slit's wide central maximum.