Thin Film Interference: How Soap Bubbles and Oil Slicks Get Their Colors

Updated June 2026
Thin film interference occurs when light reflects simultaneously from the top and bottom surfaces of a transparent layer whose thickness is comparable to the wavelength of light. The two reflected beams travel slightly different path lengths, causing certain wavelengths to constructively interfere (appearing bright) while others destructively interfere (disappearing). This produces the shimmering colors seen in soap bubbles, oil slicks, anti-reflection coatings, and many biological structures.

How Thin Film Interference Works

When light hits a thin transparent film (such as a soap bubble wall or an oil layer), partial reflection occurs at both the top and bottom surfaces. The beam reflected from the bottom surface travels an extra distance equal to roughly twice the film thickness (accounting for the angle of incidence and the refractive index of the film material). If this extra path equals a whole number of wavelengths, the two reflected beams arrive in phase and constructively interfere. If it equals a half-integer number of wavelengths, they arrive out of phase and destructively interfere.

A complication arises from phase shifts upon reflection. When light reflects from a surface where the second medium has a higher refractive index (like air reflecting off glass), the reflected wave undergoes a 180-degree phase shift (equivalent to half a wavelength). When reflecting from a surface where the second medium has a lower index (glass reflecting off air), no phase shift occurs. Whether zero, one, or two phase shifts occur at the film surfaces affects the interference condition.

The condition for constructive interference in reflection (bright colors) depends on the specific film configuration. For a soap film in air (phase shifts at both surfaces cancel): 2 * n * t * cos(angle) = m * wavelength, where n is the film refractive index, t is thickness, and m is an integer. For an oil film on water (phase shift at only one surface): 2 * n * t * cos(angle) = (m + 0.5) * wavelength. The observed color depends on which wavelengths satisfy the constructive condition for the specific film thickness.

Because the constructive condition depends on wavelength, a film of uniform thickness reflects one dominant color while suppressing others. As thickness changes (across a soap bubble surface, for example), different locations reflect different colors. The color also depends on viewing angle because the effective path length through the film changes with angle. This angle-dependence creates the characteristic iridescence where colors shift as the observer moves.

Natural Examples

Soap bubbles produce their familiar rainbow swirls because the film thickness varies across the bubble surface due to gravity (thicker at bottom, thinner at top) and surface tension variations. A newly formed bubble shows relatively uniform thickness, then develops color bands as it thins by drainage. The sequence of colors as thickness decreases follows a predictable order: first order (thick, about 300 to 500 nm) shows yellow-red-violet, second order shows blue-green-yellow, and higher orders cycle through increasingly pale versions. Just before popping, the top becomes so thin (under 25 nm) that no visible wavelength constructively interferes, appearing black.

Oil slicks on wet pavement create colorful patterns because the oil film thickness varies across the spreading puddle. The oil refractive index (about 1.5) differs from both air above and water below, creating the conditions for interference. Different thicknesses produce different colors, and the thickness distribution creates the swirling, shifting patterns familiar from parking lots after rain. The same physics applies to gasoline films, cosmetic oils, and any thin liquid layer on water.

Butterfly wings, beetle shells, and peacock feathers produce some of their colors through thin-film structures rather than pigments. Multiple thin layers of chitin, melanin, or keratin with air gaps create multilayer interference systems more complex than single films. These biological photonic structures can produce extremely vivid, narrowband colors and striking angle-dependent iridescence. Unlike pigment colors, structural colors never fade because no chemical molecule degrades, only physical dimensions matter.

Nacre (mother-of-pearl) in mollusk shells achieves its distinctive iridescent luster through interference in stacked aragonite platelets separated by thin organic layers. Each platelet is about 500 nm thick, and the regular spacing creates interference conditions that produce shimmering color changes across the surface. Opals display iridescence through a different mechanism: diffraction from a regular three-dimensional array of silica nanospheres rather than thin-film reflection, though the visual effect is similar.

Anti-Reflection Coatings

Anti-reflection (AR) coatings exploit thin-film destructive interference to eliminate unwanted surface reflections. A single-layer coating with refractive index equal to the square root of the substrate index, applied at a thickness of one-quarter wavelength, creates two reflected beams of equal amplitude with a half-wavelength path difference. These beams destructively interfere perfectly, canceling the reflection at the design wavelength.

For glass (n = 1.52), the ideal single-layer coating index would be 1.23. Magnesium fluoride (n = 1.38) is the closest practical material, reducing reflection from about 4% to about 1.3% per surface. This single-layer AR coating appears faintly purple because it is optimized for green (center of visible spectrum), leaving slight red and blue reflections uncompensated.

Multi-layer AR coatings stack several thin films of alternating high and low refractive index materials to broaden the anti-reflection effect across the entire visible spectrum. Modern camera lenses use 5 to 7 layer coatings that reduce surface reflections to below 0.2% across all visible wavelengths. With 10 to 15 air-glass surfaces in a typical zoom lens, multi-layer coatings are essential for preventing cumulative reflection losses and the flare that degraded pre-coated lens designs.

Anti-reflection coatings are equally important for solar cells (reducing reflection loss of incoming sunlight), eyeglasses (eliminating distracting reflections and improving transparency), display screens (reducing glare), and laser optics (minimizing cavity losses). Each application requires coatings optimized for different wavelength ranges, angles of incidence, and substrate materials.

Interference Filters and Mirrors

Interference filters use multiple thin film layers to create extremely narrow transmission bands or broad reflection zones impossible to achieve with colored glass or dyes. A Fabry-Perot filter consists of two high-reflectivity multilayer mirrors separated by a precise spacer layer. Only wavelengths that resonate within the spacer cavity transmit through, producing a transmission bandwidth as narrow as 0.1 nm. These are used in astronomy, fluorescence microscopy, laser systems, and telecommunications wavelength selection.

Dielectric mirrors (Bragg reflectors) achieve reflectivities exceeding 99.99% at specific wavelengths by stacking alternating quarter-wave layers of high and low refractive index materials. Each interface contributes a small reflection, and constructive interference from many layers produces near-perfect total reflection. Laser cavity mirrors require this extreme reflectivity because light bounces millions of times between mirrors, and even 0.01% loss per reflection would quickly deplete the circulating power.

Dichroic filters selectively reflect certain wavelength ranges while transmitting others with sharp transitions between reflection and transmission bands. Stage and architectural lighting use dichroic filters to produce colored light without absorbing energy (unlike gel filters that absorb and heat up). Scientific instruments use dichroic beamsplitters to separate fluorescence emission from excitation light, or to split broadband light into different wavelength channels for simultaneous analysis.

Key Takeaway

Thin film interference produces color through constructive and destructive interference between light reflected from the top and bottom surfaces of a transparent layer. Film thickness determines which wavelengths appear bright, creating the iridescent colors of soap bubbles and oil slicks. Engineered thin films enable anti-reflection coatings, interference filters, and ultra-high-reflectivity mirrors.