Science · Interactive demo
Does a prism create a rainbow?
Change hypothetical dispersion while prism geometry and the incoming ray stay fixed; the sampled colors converge to one still-bent beam.
Created by ExplainerTools.
About this explainer
- Made by
- ExplainerTools
- Format
- Interactive demo
- Subject
- Science
- Where it runs
- Plays here
- Full tool
- Open the tool page
- Published
- Added to collection
- optics
- light
- refraction
- dispersion
- spectrum
How the model works
A white beam goes in and a rainbow comes out. Is the glass making those colors, or were they in the light all along?
- Dispersionnone → model glass
- Entry anglehead-on → glancing
Presets Model glass · 100%No dispersion · 0%Violet reflects · 30°
An illustrative two-surface ray model with deliberately strong dispersion and approximate display colors; zero dispersion is hypothetical, not a real adjustable glass.
Model notes and sources
Two-surface ray model of an equilateral (60°) prism in air. At each real face the ray refracts by the vector form of Snell’s law, n1 sin θ1 = n2 sin θ2: the index times the ray’s component along the surface is the same on both sides. When no transmitted ray exists (n1 sin θ1 > n2), the model applies total internal reflection and follows the reflected ray to the next face. A trace stops after 12 surface hits; a ray still inside is then reported as a trace limit, a limit of the calculation, not of light.
Index of refraction (illustrative, not a calibrated glass): n(λ) = 1.50 + d · 0.018 µm² · (1/λ² − 1/(0.550 µm)²), a Cauchy-style 1/λ² dependence centered on 550 nm. The Dispersion knob d runs from 1 (this model glass) to 0, where every wavelength gets n = 1.50. Zero dispersion is a hypothetical teaching control; real glass always disperses, and you cannot tune it away. At d = 1 the index runs from 1.550 at 405 nm to 1.477 at 700 nm. That dispersion is deliberately strong, larger than ordinary window or crown glass, so the fan is easy to see.
Fixed values: apex angle 60°, prism circumradius 190 model units, a horizontal incoming beam. The Entry angle knob turns the prism (default 45°). At 45° the model gives bends of 42.3° at 405 nm, 37.4° at 550 nm and 35.3° at 700 nm, a 6.9° spread; with d = 0 every color bends 37.4°. These are predictions of this illustrative model, not measurements. Not modeled: partial reflection at each surface (a few percent of the light), absorption, beam width and divergence, polarization, the measured dispersion of named glasses, and anything outside the drawing’s plane. Display colors are approximate. White light is a continuous spectrum; the seven rays are samples of it, and the faint fan between them is traced every 10 nm.
Sources: OpenStax, University Physics Vol. 3: Refraction, Total internal reflection and Dispersion; Cauchy’s equation.
An ExplainerTools Original. Concept inspired by Ryan Sael’s Prismatic.
Watch it move
- Does a prism create a rainbow?34-second Short
Go deeper
Explore interactive ideas in space, science, math, and more. Try a demo, read an interactive article, watch a short video, and follow what makes you curious.
New Originals
Change one thing and see why.
The three newest models, each with a short film. Watch the question, then play with the answer.
Follow your curiosity
A collection of small doors into big ideas.
Format
Swipe or scroll for more formats →
Subject
Swipe or scroll for more subjects →
Topic
Swipe or scroll for more topics →
Sort by
Rankings count activity here on ExplainerTools. Newest means added to this collection.
Loading collection…
Make something click.
Made an explainer, or found one you love? Give it a place in the collection.


