Thin Film Interference: Soap Bubbles and Oil Slicks

April 12, 2026

Problem

A soap bubble (n = 1.33, thickness 300 nm) is illuminated with white light. Determine which visible wavelengths are reinforced (constructive interference) and which are cancelled (destructive). Explain the role of the phase change on reflection and compute the conditions for bright and dark bands.

Explanation

The iridescent colors of soap bubbles, oil slicks on wet roads, and butterfly wings are all caused by thin film interference — one of the most beautiful phenomena in optics. Light reflecting off the top surface of a thin transparent film interferes with light reflecting off the bottom surface. Depending on the film thickness, wavelength, and refractive indices, certain colors are reinforced and others are suppressed.

How thin film interference works

When light hits a thin film (a soap bubble wall, a layer of oil, an anti-reflection coating), two reflected beams are produced:

  1. Beam 1 reflects off the top surface of the film.
  2. Beam 2 enters the film, travels through it, reflects off the bottom surface, travels back through the film, and exits through the top.

Beam 2 has traveled an extra distance of 2t2t inside the film (down and back up), where tt is the film thickness. But because the film has a different refractive index nn, the effective optical path difference is 2nt2nt (the wavelength inside the film is λ/n\lambda/n, so the phase accumulates nn times faster per unit distance).

These two beams overlap and interfere. If they're in phase, you see a bright reflection of that color (constructive). If they're out of phase, that color is missing from the reflection (destructive).

The phase-change-on-reflection rule

There's a critical subtlety: a phase change of 180° (half a wavelength) occurs when light reflects off an interface where the second medium has a higher refractive index — going from low nn to high nn. No phase change occurs when reflecting from high nn to low nn.

For a soap bubble in air (nair=1n_{\text{air}} = 1, nfilm=1.33n_{\text{film}} = 1.33, nair=1n_{\text{air}} = 1):

  • Beam 1 reflects at the air→film interface: nn increases (11.331 \to 1.33), so there IS a 180° phase change.
  • Beam 2 reflects at the film→air interface: nn decreases (1.3311.33 \to 1), so there is NO phase change.

The net result: Beam 1 has an extra half-wavelength phase shift compared to Beam 2 (from the reflection alone). Combined with the path difference 2nt2nt, the total phase difference is 2nt+λ/22nt + \lambda/2.

Conditions for constructive and destructive interference

With one phase-inverted reflection (soap bubble), the conditions swap compared to the "no phase change" case:

Constructive (bright — the beams end up in phase): 2nt=(m+12)λ,m=0,1,2,2nt = \left(m + \dfrac{1}{2}\right)\lambda, \quad m = 0, 1, 2, \ldots

The extra half-wavelength from the path must compensate for the half-wavelength phase shift from reflection, so they align at half-integer multiples.

Destructive (dark — the beams cancel): 2nt=mλ,m=0,1,2,2nt = m\lambda, \quad m = 0, 1, 2, \ldots

Solving for the soap bubble

n=1.33n = 1.33, t=300t = 300 nm.

2nt=2×1.33×300=7982nt = 2 \times 1.33 \times 300 = 798 nm.

Which wavelengths show constructive interference?

λ=2ntm+1/2=798m+1/2\lambda = \dfrac{2nt}{m + 1/2} = \dfrac{798}{m + 1/2}

  • m=0m = 0: λ=798/0.5=1596\lambda = 798/0.5 = 1596 nm (infrared — not visible)
  • m=1m = 1: λ=798/1.5=532\lambda = 798/1.5 = 532 nm (green — visible!)
  • m=2m = 2: λ=798/2.5=319\lambda = 798/2.5 = 319 nm (ultraviolet — not visible)

So for a 300 nm soap film, only green light (~532 nm) is strongly reinforced in the visible range. The bubble appears greenish in reflected light.

Which wavelengths are destructively cancelled?

λ=2ntm=798m\lambda = \dfrac{2nt}{m} = \dfrac{798}{m}

  • m=1m = 1: λ=798\lambda = 798 nm (near-infrared)
  • m=2m = 2: λ=399\lambda = 399 nm (violet — borderline visible)

So violet is weakly suppressed, and the rest of the visible spectrum is partially reflected. The net color appearance is a blend — dominated by the constructive green.

Why soap bubbles show multiple colors

A real soap bubble isn't a single thickness — it's thinnest at the top (where gravity thins the film) and thickest at the bottom. Different thicknesses reinforce different wavelengths, producing bands of color that slowly shift and swirl as the film drains and changes shape.

Anti-reflection coatings

This same physics is used to eliminate unwanted reflections from camera lenses, eyeglasses, and solar cells. A thin coating (often magnesium fluoride, n=1.38n = 1.38) of thickness t=λ/(4n)t = \lambda/(4n) is applied to the glass surface. At this "quarter-wave" thickness, the two reflected beams are exactly out of phase, and the reflection for that wavelength drops to nearly zero.

For a coating optimized for λ=550\lambda = 550 nm (green — the eye's most sensitive color): t=550/(4×1.38)100t = 550/(4 \times 1.38) \approx 100 nm. The coating appears purple/magenta in reflection because it cancels green but not red or blue.

Oil slick colors

An oil slick on water has two phase-changing reflections (air→oil and oil→water, since noil1.5>nwater=1.33n_{\text{oil}} \approx 1.5 > n_{\text{water}} = 1.33). With both reflections experiencing a phase change, the net phase shift from reflections is zero (two half-wavelength shifts cancel), so the constructive condition becomes 2nt=mλ2nt = m\lambda (no extra half-wavelength). The colors are different from a soap bubble of the same thickness because the phase-change rules differ.

Common mistakes

  • Forgetting the phase change on reflection. This is the #1 mistake. You must check at each surface whether nn increases or decreases. Count the number of phase-reversing reflections (0, 1, or 2) and adjust the constructive/destructive conditions accordingly.
  • Using 2t2t instead of 2nt2nt. The optical path difference is 2nt2nt, not 2t2t. The film's refractive index matters because the wavelength inside the film is shorter.
  • Not checking which mm values give visible wavelengths. The equations produce wavelengths for all integers mm, but most will be outside the visible range (380–750 nm). Only report the ones in the visible range.

Try it in the visualization

Drag the thickness slider and watch the reflected color change. Very thin films appear dark (destructive for all visible wavelengths), then cycle through a sequence of colors as thickness increases. Toggle "show spectrum" to see which wavelengths are being reinforced at the current thickness. Switch to "oil on water" mode to see how the different phase-change situation produces a different color sequence.

Interactive Visualization

Parameters

300.00
1.33
Soap bubble (air-film-air)
0.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Thin Film Interference: Soap Bubbles and Oil Slicks | MathSpin