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

1 See

A white beam goes in and a rainbow comes out. Is the glass making those colors, or were they in the light all along?

2 Change
  • Dispersionnone → model glass
  • Entry anglehead-on → glancing

Presets Model glass · 100%No dispersion · 0%Violet reflects · 30°

Model · illustrative glass

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

See how the world works.

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.

Find your next rabbit hole

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.

All Originals

Follow your curiosity

A collection of small doors into big ideas.

Format

Subject

Topic

Sort by

Rankings count activity here on ExplainerTools. Newest means added to this collection.

Loading collection…

Opening the collection…

Make something click.

Made an explainer, or found one you love? Give it a place in the collection.

Your next question

What do you wish someone would explain?

Send one question. If it becomes an ExplainerTools Original, you can hear when it is ready.

One weekly email with new explainers. We send a confirmation link first, and you can unsubscribe at any time.

We save your question, your email if you add one, and whether you asked to subscribe. Privacy

Share something worth understanding.

An interactive demo, an interactive article, or an educational video. Every suggestion is reviewed before it joins the collection.

Submit the creator’s original link. We credit creators and link to their work.

A collection for the curious.

ExplainerTools collects interactive explainers, visual essays, and educational videos that help an idea make sense. Browse by subject, follow a topic, or find a creator whose way of explaining speaks to you.

The work belongs to its creators.

Every entry credits its original creator. Supported experiences play here, with a link to the creator’s original work available in the player. Inclusion does not imply a partnership or endorsement.

How rankings work

Views, likes, and bookmarks count activity on ExplainerTools. They don’t include views or likes from a creator’s website or social accounts. Newest means most recently added to this collection. Ties are ordered by date added, then our curated catalog order.

Your collection

New likes and bookmarks require a free account and sync across devices when sign-in is available. Previously saved items from this browser may remain visible here.

Browse the catalog data or read about privacy.