An everyday explanation · 2 min read

Why a soap bubble shows rainbow colors

A soap bubble’s colors come from light reflected by both faces of its thin film. One reflection comes from the front surface. Another travels through the film, reflects at the back and comes out again. The waves overlap. Depending on the film’s thickness and the viewing angle, some wavelengths reinforce while others are weakened.

An iridescent soap bubble with blue, green and pink bands against a dark background.
Original AI-assisted editorial illustration. The explanatory drawing below is a separate, source-checked schematic.

Look a little closer

See the mechanism

Two reflected paths in a thin film

Thinner patchOne reflection leaves from the front. The other crosses the film twice before leaving.Soap filmFront reflectionBack reflection
Thinner patch. One reflection leaves from the front. The other crosses the film twice before leaving.
Read the diagram steps

Thinner patch. One reflection leaves from the front. The other crosses the film twice before leaving.

Thicker patch. The lower reflecting surface is farther away, so the second path is longer.

Original qualitative ray construction. Path colors identify the two rays and do not signify the color of the bubble.

Diagram basis: Investigating thin film interference with a digital camera.

Sources: Leslie J. Atkins and Richard C. Elliott / American Journal of Physics · OpenStax, College Physics

Two parts of the same wave come back

The bubble wall is a thin liquid layer with air on both sides. At the first surface, some incoming light reflects and some enters the film. Part of the light inside reflects from the second surface. It then travels out again and can overlap with the first reflection.

Traveling through the film puts one wave behind the other. Reflection can also shift the phase, which describes where the peaks and troughs of the wave fall. Where peaks line up, the reflected waves reinforce. Where a peak lines up with a trough, they tend to cancel.

Two stacked wave pairs compare peaks lined up with peaks and peaks lined up with troughs.
The two reflections overlap. At a given wavelength, peaks that line up reinforce each other, while a peak lined up with a trough can cancel.

Sources: OpenStax, College Physics · Leslie J. Atkins and Richard C. Elliott / American Journal of Physics

Sources: Leslie J. Atkins and Richard C. Elliott / American Journal of Physics · OpenStax, College Physics

A change in thickness changes the returned mix

White light contains many wavelengths. The same extra path can line up the peaks for one wavelength and set another out of step. A change in thickness alters the path inside the film, so a different mix of wavelengths comes back. Looking from an angle changes that path too.

A holographic sticker can also flash changing colors. Its embossed surface redirects light through diffraction across a fine pattern. On the bubble, the two rounds of reflection happen at the front and back of one thin film.

Sources: Leslie J. Atkins and Richard C. Elliott / American Journal of Physics · OpenStax, College Physics

The thing to remember

The film’s two reflections overlap. Thickness and viewing angle determine which wavelengths return strongly.

What this example leaves out

The diagrams show local film sections, with thickness exaggerated and ray paths representing two reflections. They do not identify a color at a particular thickness.

Sources & further reading

Source access dates are listed below. Manufacturer descriptions and patents support the specific constructions described, not every product.

  1. Investigating thin film interference with a digital camera ↗

    Leslie J. Atkins and Richard C. Elliott / American Journal of Physics · Retrieved 2026-11-26 · Two interfaces reflect light; the return waves have wavelength-dependent phase differences. An experiment photographed colors across a changing-thickness soap film.
    Controlled flat soap film rather than a whole spherical bubble. The physical two-interface principle is used locally on the bubble.

  2. 27.7 Thin Film Interference ↗

    OpenStax, College Physics · Retrieved 2026-11-26 · Reflection from a higher refractive index can reverse phase; path length and phase determine reinforcement or cancellation.
    Textbook idealization used to support qualitative explanation, not predicted color for an individual bubble.

How we use sources and handle corrections

Keep the question going

Read this next.

Compare another construction in this part of the library: Tiny patterned surface features redirect different wavelengths into different directions. Follow the parts and the stated limits in each explanation.

Materials · 2 min read

Why a holographic sticker shines in rainbow colors

Continue reading