HomeArticlesWashing & Cleaning

Soap Bubbles: Thin-Film Drainage and Interference Colours

Why bubble colours swirl as they drain, what thin-film interference has to do with it, and why a black patch means a pop is imminent.

mysimulator teamUpdated June 2026≈ 7 min read▶ Open the simulation

A bubble wall is a sandwich a few hundred nanometres thick

A soap film is a thin layer of water trapped between two monolayers of surfactant, tails pointing outward into the air, heads pointing inward toward the water core. This structure is only metastable: gravity drainage continuously pulls water downward through the film under its own weight, thinning the top of the bubble while the bottom bulges, and evaporation removes water from the surface independently of gravity. Both processes reduce film thickness over the bubble's lifetime, and the balance between them (plus a stabilising effect called the Marangoni effect, where local surface-tension gradients resist further thinning) is what determines how long a bubble survives before popping.

live demo - film thickness draining and thinning over time● LIVE

Thin-film interference: why the colours swirl

Light reflecting off a soap film reflects twice - once at the outer air-film surface, once at the inner film-air surface - and those two reflected waves interfere. Whether a given wavelength interferes constructively (bright) or destructively (dark) depends on the extra path length the second reflection travels, which is set by the film thickness d and the light's angle:

path difference ≈ 2 n d cos(θ)      // n = refractive index of soap film (≈1.33-1.4)

constructive (bright) for a given wavelength λ when:
2 n d cos(θ) = (m + ½) λ        // extra ½λ from a phase flip at one interface

// as d changes continuously during drainage, the wavelength
// satisfying this condition sweeps through the visible
// spectrum - this is why the colour bands visibly drift
// and swirl as you watch a real bubble thin

The extra half-wavelength term exists because light reflecting off the outer surface (going from low-index air into higher-index film) undergoes a 180-degree phase flip, while light reflecting off the inner surface (going from film back into air, higher to lower index) does not. That asymmetry is what produces genuine interference colours rather than the two reflections simply cancelling identically at every thickness.

The colour sequence tracks film thickness

Because thickness decreases roughly monotonically as the film drains, the sequence of interference colours you see corresponds to specific thickness ranges - the same Newton's colour scale used historically to gauge coating thickness in thin-film optics and metrology. Thick, freshly-formed films (roughly a micron) show pale, washed-out pastel colours from many overlapping orders; as drainage thins the film toward a few hundred nanometres, saturated first-order colours emerge - yellow, orange, magenta, blue, green - cycling as thickness continues to fall.

Black film: the last stage before popping

When the film thins below roughly 100 nanometres - well under one quarter of the shortest visible wavelength - the path difference becomes too small for any visible wavelength to satisfy the constructive-interference condition at any meaningful order, and reflected intensity for all colours drops toward zero simultaneously. The film appears essentially black; this is the common black film or, thinner still, the Newton black film stabilised by short-range repulsive forces between the two surfactant monolayers pressing close together. A black film patch is a visible countdown: it is now so thin that a small local perturbation, an air current, or simple continued evaporation can rupture it, and film rupture nucleated anywhere in a bubble propagates almost instantly across the whole surface because surface tension can no longer hold the collapsing structure together.

~1000 nm : pale, washed-out pastel colours (many overlapping interference orders)
~300-700 nm : saturated first-order colours, actively cycling as film drains
~100 nm  : colours fade toward silvery-grey
<100 nm  : common/Newton black film - effectively non-reflective, imminent rupture

What actually pops a bubble

A bubble does not simply run out of soap; it pops the instant its weakest point crosses a critical thinness where the film can no longer mechanically self-heal against a local disturbance. Anything that locally destabilises the film - a dust particle piercing it, a dry patch from local evaporation, a puff of air distorting the surface, or simply the drainage-driven approach to the black-film limit at the thinnest point (usually the top, since gravity has been pulling water away from there the whole time) - triggers rupture. This is also why humid air, a dust-free environment and added glycerin (which slows evaporation and stabilises the film) all measurably extend real bubble lifetimes: they each slow one of the specific processes driving the film toward that critical thinness.

Frequently asked questions

Why do soap bubble colours constantly shift and swirl instead of staying fixed?

Because the colours come from thin-film interference, and the film thickness is continuously changing as gravity drains water out of the top of the bubble and evaporation removes water from the surface. As thickness changes, the wavelength that satisfies the constructive-interference condition sweeps through the visible spectrum, so the visible colour band drifts and swirls in real time.

Why does a bubble go transparent or black right before it pops?

Once drainage and evaporation thin the film below about 100 nanometres, the path-length difference between the two reflected light waves becomes too small for any visible wavelength to interfere constructively at a meaningful order, so almost no light reflects back and the film looks black. This black film state is the thinnest a soap film can be while still mechanically intact, and it typically ruptures shortly after appearing.

Why does the bubble usually pop at the top first?

Gravity drains liquid downward through the film continuously, so the top of the bubble thins fastest while liquid accumulates and thickens the bottom. The top therefore reaches the critical black-film thinness - and becomes vulnerable to rupture - well before the rest of the bubble does.

Try it live

Everything above runs in your browser — open Soap Bubble Thin-Film Drainage and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Soap Bubble Thin-Film Drainage simulation

What did you find?

Add reproduction steps (optional)