Clever Quest Lab ← Labs

Thin-Film Interference

Change a thin film’s thickness, refractive index and viewing angle and see which colours it reflects, with every reflection inside the film added up.

Presets:

nm

The strip shows the reflected colour for every thickness from 0 to 2000 nm with the current settings. Click or tap it to pick a thickness.

Reflected colour

#000000 Shown with exposure ×10 True brightness
Luminous reflectance Y
0 %
Chromaticity x, y
0, 0
Path difference 2n1d cos θ1
0 nm
Angle in the film θ1
0°
At 550 nm
R = 0 %

Phase on reflection

Reflected spectrum

Solid line: reflectance R(λ) of the film. Dashed: the same surface without the film. The fill shows the colour of each wavelength.

The two reflected waves

Film and surroundings

Air 1.00, water 1.33, soap solution about 1.33, oil about 1.47, glass about 1.52, magnesium fluoride 1.38, titanium dioxide about 2.4.

Light

Unpolarized light is the average of s (electric field parallel to the surface) and p (field in the plane of incidence).

Thin films reflect only a few per cent of the light, so the colours are brightened like a camera exposure. Automatic exposure brightens the brightest thickness in the strip to about 85 % white.

Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves the film, light and picture settings and how far the film has drained on this device.

Added

How to use it

A thin film is a transparent layer a few hundred nanometres thick, such as a soap bubble wall, oil on a wet road or a lens coating. Light reflects from both of its surfaces and the two reflections interfere. Some wavelengths add up, others cancel, and the film looks coloured. Pick a preset and change the thickness to see it.

In the soap film picture the film drains: it thins with time and is thinnest at the top, so colour bands slide down until the top turns black. Click or tap the film to place a measuring point; its local thickness then drives the rest of the page. The oil picture shows a drop spreading on water; the plate picture compares a surface with and without the film.

Controls

How it works

Light reflected from the bottom surface crosses the film twice, so it travels an extra optical path

OPD = 2 n1 d cos θ1,   with  n0 sin θ0 = n1 sin θ1 (Snell’s law)

Reflection where the index goes up flips the wave by 180° (half a wavelength); where it goes down, there is no flip. A soap film in air has one flip, so it reflects a wavelength most strongly when 2n1d cos θ1 = (m + ½)λ and least when it equals mλ. With no flip or two flips (magnesium fluoride on glass) the rules swap. As d shrinks to zero, the two reflections of a soap film cancel completely: the black film.

The page adds every multiple reflection, not just two, using the Fresnel coefficients r01 and r12 of the two surfaces:

r = (r01 + r12 e2iδ) / (1 + r01 r12 e2iδ),   δ = 2π n1 d cos θ1 / λ,   R = |r|²

This is done for s and p polarization separately; unpolarized light is their average. Complex angles also handle total internal reflection, including light tunnelling through a very thin film. The indices do not change with wavelength and nothing is absorbed, so the transmitted share is 1 − R. The two-wave picture shows only the first two reflections, which carry most of the effect when the surfaces reflect weakly.

For the colour, the reflectance every 5 nm from 380 to 780 nm is weighted by daylight (CIE standard illuminant D65) and the CIE 1931 2° colour-matching functions from the published CIE tables, then converted to sRGB, clipping colours a screen cannot show. Y is the luminous reflectance, the share of the light that the eye sees as reflected.

The draining film is a simple model: a wedge, thinnest at the top, that thins steadily and turns into a 10 nm black film where it gets thinner than 30 nm, much like real soap films. The waves in the bands are only for looks, and the drop spreads at an invented pace with a fixed volume.

Things to try

Frequently asked questions

Why does a soap film turn black at the top?

Where the film is much thinner than the wavelength, the flipped reflection from the top and the unflipped one from the bottom are almost exactly opposite and cancel for every colour.

Why are the colours pale when the film is thick?

A thick film has many reflection maxima inside the visible range at once, and the mix of many narrow bright bands looks almost white.

Is the colour exactly what I would see?

It is the colour of reflected daylight for the CIE standard observer. Your screen, the real light source, the background and the exposure all change what you perceive.

Why does an anti-reflection coating work best at one wavelength?

Its thickness is a quarter wavelength inside the coating, about 100 nm for green light; only there are the two reflections exactly half a wave apart.

Sources