Thin Film Interference Calculator – Film Thickness for Bright & Dark Fringes

Use this free Thin Film Interference Calculator to find the film thickness that makes a soap bubble, an oil slick or an anti-reflective coating shine brightly — or go dark — for a chosen colour of light.

A soap bubble is a sheet of water barely a hundred atoms' worth of nanometres thick, yet it paints itself in swirling colour. No pigment does that painting: the colours are manufactured on the spot by interference between two reflections of the same light — one from the film's front surface, one from its back. Where the two reflections arrive in step, that colour blazes; where they arrive opposed, it vanishes. Which colours win depends on a single quantity, the film's optical thickness 2nt, and this calculator inverts the relationship: give it a wavelength, an index and an order, and it returns the thickness that reflects that colour brightly, or cancels it.

The twist that makes thin films interesting — and catches every beginner — is the phase flip. A reflection off a denser material (higher n) flips the wave by half a cycle; a reflection off a rarer one does not. A soap film in air suffers exactly one flip (at its front surface), and that lone flip swaps the naive conditions: a film of zero thickness would reflect nothing at all, and the thinnest bright film is a quarter-wave thick, not a half. The calculator's formulas are built for this one-flip case, which covers soap films, oil on water and most textbook setups; the depth section explains how to swap the conditions when both reflections flip, as they do in camera-lens coatings.

Thin Film Interference Calculator — formula and diagram

Thin-film interference is simultaneously a toy and an industry. The same equations colour butterfly wings and beetle shells, gauge the oxide layers on silicon wafers, and — inverted into anti-reflective coatings a quarter-wavelength thick — sit on the front of nearly every camera lens, pair of glasses and solar panel on Earth. The sections below work the standard cases, decode the bubble's colour bands, and show how engineers spend a hundred nanometres of coating to buy back lost light.

air film (n, t) air / water below ray 1 reflects off the top (with a phase flip) ray 2 crosses the film twice: extra path 2nt

Formula

For a film with air (or a lower-index material) on both sides, one of the two reflections flips phase by half a wavelength, giving:
Bright (constructive): 2nt = (m + ½)λ  •  Dark (destructive): 2nt = mλ,   m = 0, 1, 2… — so t = (m + ½)λ ÷ 2n or t = mλ ÷ 2n

Phase-change note: a ray reflecting off a denser material (higher n) flips by half a wavelength; reflecting off a rarer one does not. The formulas above assume exactly one flip (true for a soap film in air). If both reflections flip — or neither does — the bright and dark conditions swap over. Inside the film the light's wavelength is λ/n, which is why the round trip of physical length 2t counts optically as 2nt; the calculator wants the wavelength in air, the index, and the order, and assumes light arriving almost perpendicular to the film (at a slant, 2nt becomes 2nt cosθt and the colours shift).

SymbolMeaningUnits
tfilm thicknessnm typically
nrefractive index of the filmno units
λwavelength in air (vacuum)nm
morder — 0 is the thinnest film of its kindno units
2ntoptical path difference between the two reflectionsnm

Two reflections, one flip: how a film chooses its colour

Send light at a soap film. A few percent reflects immediately from the front surface — and because the film is denser than air, that reflection flips, shifting the wave by half a cycle. The rest enters, crosses the film, reflects from the back surface (film to air: rarer, no flip), crosses again and emerges parallel to the first reflection, delayed by the round trip 2nt. Two coherent copies of the same wave now travel together, their phase difference set by two contributions: the path 2nt, and the single flip. Everything about thin films is the arithmetic of those two contributions.

Suppose the film is so thin that the path contributes nothing (t → 0). The flip alone leaves the two reflections in perfect opposition: they cancel, for every wavelength at once, and the film reflects nothing — the black spot that appears at the top of an ageing bubble (and one of this page's original FAQs). Now grow the film. When 2nt reaches half a wavelength, the path delay adds its own half-cycle, undoing the flip: the reflections align, and that wavelength reflects at full strength. That is the m = 0 bright condition, t = λ/(4n) — the film is a quarter-wave thick in its own medium. Grow further and the conditions alternate: dark at 2nt = λ, bright at 2nt = 3λ/2, each colour taking its turn as t climbs.

White light contains all wavelengths, so a film of any given thickness is simultaneously bright for some colours and dark for others — the reflected spectrum has holes and peaks carved into it, and the eye reads the remainder as a saturated colour. Drain the film (gravity does, continuously) and the thickness slides through the conditions in sequence: the bubble's bands migrate and cycle through the spectrum. A film a few micrometres thick, by contrast, satisfies high orders for dozens of wavelengths at once; the peaks and holes average out and the reflection looks silvery-white — which is why only thin films are colourful.

thinnest: black one colour bright the next colour higher orders overlap a draining bubble is a thickness scale, read in colour

How to use

  1. Choose what the film should do at your wavelength: reflect it brightly (constructive) or cancel it (destructive).
  2. Enter the wavelength in air, in nanometres — 550 nm is mid-green, the standard design wavelength for coatings.
  3. Enter the film's refractive index: 1.33 for a soap film, about 1.45 for oil, 1.38 for the magnesium fluoride of lens coatings.
  4. Enter the order m — use m = 0 for the thinnest possible bright film. (For destructive, m = 0 means zero thickness — no film at all — so start at m = 1.)
  5. Click "Calculate Film Thickness". The result assumes the one-flip geometry (film with lower-index material on both sides) and near-perpendicular light.

Worked examples

Example 1 — the thinnest bright soap film, and its cancelling twin. Green light of 550 nm reflects off a soap film (n = 1.33) in air. The thinnest film that reflects it brightly is order m = 0:
t = (0 + ½) × 550 ÷ (2 × 1.33) = 275 ÷ 2.66 = 103.38 nm.
To cancel the same colour instead (m = 1, destructive): t = 550 ÷ 2.66 = 206.77 nm — the principle behind anti-reflective coatings.

Example 2 — the same film in red. λ = 650 nm, n = 1.33, constructive, m = 0.
t = ½ × 650 ÷ (2 × 1.33) = 325 ÷ 2.66 = 122.18 nm. Red's longer wavelength needs a proportionally thicker film — the whole pattern of conditions scales with λ, which is why a draining bubble cycles colours in spectral order.

Example 3 — and in blue. λ = 450 nm, n = 1.33, constructive, m = 0.
t = 225 ÷ 2.66 = 84.59 nm. A film of exactly this thickness reflects blue brightly while sitting between conditions for green and red — one thickness, one chosen colour.

Example 4 — an oil film's round number. λ = 580 nm (yellow), oil n = 1.45, constructive, m = 0.
t = 290 ÷ (2 × 1.45) = 290 ÷ 2.90 = 100.0 nm exactly. Oil slicks on wet tarmac pass through this thickness as they spread, flashing yellow at the hundred-nanometre contour.

Example 5 — higher orders of the manifest film. λ = 550 nm, n = 1.33, constructive.
m = 1: t = (1.5 × 550) ÷ 2.66 = 825 ÷ 2.66 = 310.15 nm.
m = 2: t = (2.5 × 550) ÷ 2.66 = 1375 ÷ 2.66 = 516.92 nm.
The same green blazes again at every order — but at the higher orders other colours satisfy their own conditions nearby, so the reflected green grows less pure. First order is the vivid one.

Example 6 — cancelling deep red. λ = 700 nm, film n = 1.40, destructive, m = 1.
t = 700 ÷ (2 × 1.40) = 700 ÷ 2.80 = 250.0 nm. A coating designer cancelling the red end of the spectrum works with noticeably thicker films than one cancelling blue — the thickness budget is written by the wavelength.

Thin films in real life

Anti-reflective coatings. The highest-value thin film ever sold: a quarter-wave layer of magnesium fluoride (n = 1.38) on glass. As the depth section shows, its two reflections flip equally, so the destructive condition lands at t = λ/(4n) ≈ 100 nm for green light — reflections cancel, transmission rises, and the residual sheen on good lenses glows purple-green from the wavelengths at the spectrum's edges that the single layer cannot quite cancel.

Oil slicks and wet roads. A spreading oil drop thins through the interference orders in sequence, so its rainbow bands are contour lines of equal thickness — the same phenomenon as the bubble, drawn on tarmac. Environmental scientists read slick colours to estimate spill thickness; the bands stop where the film exceeds a few micrometres and the orders wash out.

Silicon wafer inspection. The oxide layer grown on a silicon wafer is a thin film on a reflective substrate, and its colour under white light reports its thickness against standard colour charts — fab technicians literally read nanometres as colours, the calculator's table in industrial dress.

Temper colours on steel. Heat polished steel and an oxide film grows; its interference colour — straw, bronze, purple, blue — reports the temperature the metal reached, a scale blacksmiths have used for centuries to judge tempering. The colours are this page's conditions, satisfied by iron oxide instead of soap.

Butterfly wings and beetle shells. The Morpho butterfly's blue is not pigment but stacked thin films in its wing scales, tuned by evolution to the constructive condition for blue. Structural colour never fades, because there is no dye to bleach — only geometry, which is why fossil beetles can still flash their colours.

Newton's rings. Rest a lens on a flat glass plate and the air gap between them is a wedge-shaped film, showing concentric rings — each ring a contour of equal gap thickness. Opticians count rings to test lens surfaces to fractions of a wavelength: interference as a workshop gauge.

Newton's rings: each ring is one more half-wavelength of air gap lens, curved down

Counting flips: when the conditions swap

The calculator's formulas carry one flip. Lay the film on glass, though — MgF₂ (n = 1.38) on crown glass (n = 1.52) — and the bookkeeping changes: the top reflection flips (air → film, denser), and the bottom reflection also flips (film → glass, denser again). Two flips cancel each other's phase effect, so the conditions swap: destructive interference now needs the path alone to supply the half-cycle, 2nt = (m + ½)λ. The thinnest cancelling coating is therefore t = λ ÷ (4n) = 550 ÷ (4 × 1.38) = 99.6 nm — the famous quarter-wave coating. The rule for any stack: count reflections off denser media; an odd count uses this calculator's conditions as printed, an even count swaps bright and dark. Every multilayer coating on a modern lens — some run to dozens of layers — is this parity rule, iterated.

Why tilting changes the colour

View a film obliquely and the internal ray slants: the round trip becomes 2nt cosθt, with θt the angle inside the film. The cosine only shrinks the effective path, so the wavelength that satisfies a given order shrinks too — tilt a soap bubble or an oil slick and its colours slide toward the blue. The same blue-shift is engineered deliberately in interference filters, whose passband is specified at a stated angle, and it is why a coated lens flashes different colours as you turn it in the light. At the calculator's assumed near-normal incidence the shift vanishes; by 45° inside the film it has cost the path nearly 30%.

Quick reference: thinnest bright film (m = 0, n = 1.33)

Wavelengtht = λ ÷ 4n
400 nm (violet)75.19 nm
450 nm (blue)84.59 nm
500 nm (cyan-green)93.98 nm
550 nm (green)103.38 nm
600 nm (orange)112.78 nm
650 nm (red)122.18 nm
700 nm (deep red)131.58 nm

The whole visible spectrum is spanned by films between 75 and 132 nanometres — a range thinner than the wavelength of the light itself. Nature and industry both do their colour work in this sliver of thickness, which is why nanometre control, not micrometre, is the coating trade's discipline.

Common mistakes

  • Forgetting the phase flip. The single most common error in the topic: writing 2nt = mλ for the bright condition of a soap film. With one flip, bright is (m + ½)λ. Films with zero or two flips swap the pair — count the flips before choosing the formula.
  • Double-counting the index. The formula wants λ in air (or vacuum) and carries n explicitly in 2nt. Substituting the in-film wavelength λ/n while keeping the n in 2nt applies the index twice and shrinks every thickness by a factor of n.
  • Starting destructive at m = 0 and expecting a film. In the one-flip convention, destructive m = 0 is t = 0 — the absence of a film, which indeed reflects nothing (both "reflections" come from the same plane, opposed by the flip). The thinnest real cancelling film is m = 1.
  • Assuming the colours survive at any thickness. Beyond a few micrometres, dozens of orders overlap within the eye's sensitivity and the reflection washes to silver-white; beyond the light's coherence length (micrometres for lamplight), the two reflections cannot interfere at all. Window glass shows no colours for exactly this reason.
  • Ignoring the viewing angle. The conditions are written for near-normal incidence. At a slant, replace 2nt by 2nt cosθt — colours shift toward blue, and a thickness computed for head-on viewing misses its target colour when the part is used at an angle.

FAQ

Why do soap bubbles show swirling colours?
The film is not one thickness — gravity drains it, so it is thicker at the bottom. Each thickness picks out a different wavelength to reflect brightly, painting the bubble in bands of colour that shift as the film thins.

Why does the top of an old bubble look black just before it pops?
When the film becomes much thinner than a wavelength, the path difference is nearly zero, but the one phase flip remains — so all colours interfere destructively and the film reflects almost nothing: it looks black.

How do anti-reflective coatings on glasses work?
A coating of carefully chosen thickness (about a quarter wavelength in the coating) and intermediate refractive index makes the two reflections cancel for the middle of the visible spectrum, so far less light bounces off the lens.

How thick is a soap bubble when it turns black?
Very thin indeed — the black film is typically a few tens of nanometres or less, far below the quarter-wave thickness for any visible colour. At that point the path difference is negligible for all wavelengths, the lone phase flip cancels everything, and the film reflects almost nothing just before it bursts.

Why do the colours on a bubble move downward over time?
Gravity drains the film: the top thins, the bottom thickens, and each horizontal band of constant thickness — hence constant colour — migrates as the profile evolves. The bands are a live contour map of the draining, ending with the black, thinnest region at the top.

Can one coating cancel all colours at once?
Not with a single layer: the quarter-wave condition is exact for one wavelength (usually green, mid-spectrum) and approximate for its neighbours, which is why coated lenses show faint purple and green residual reflections. Multilayer stacks — several films of alternating index and tuned thicknesses — broaden the cancellation across the spectrum and into the infrared.

What are Newton's rings used for?
Testing curved surfaces. A lens rested on a reference flat shows rings whose number and regularity report the surface's error in fractions of a wavelength: perfectly circular, evenly spaced rings mean a true sphere; distorted rings map the bumps. The air film between the surfaces is the gauge.

Does the film's material or its thickness matter more?
They enter as the product nt — optical thickness — so either can compensate the other: a thinner film of higher index matches a thicker one of lower index. Designers choose the material for durability and adhesion, then dial the thickness; nature, stuck with chitin and keratin, dials thickness alone.

Why don't I see colours in a glass window?
Three reasons stack up: window glass is millimetres thick (millions of orders overlap and average out), its two surfaces are not parallel to nanometre tolerance across your field of view, and ordinary light's coherence length is only micrometres — the two reflections from a thick pane cannot hold a phase relationship long enough to interfere. Thin, parallel and coherent: a film needs all three.

Can thin-film interference measure thickness?
Yes, precisely — it is a metrology industry. Count fringes as a film grows or an air wedge moves, and each fringe is half a wavelength of optical thickness; read a silicon oxide's colour against a chart and you have its thickness to ~10 nm. Ellipsometry refines the idea into the standard thickness gauge of the semiconductor world.

Rachel Novak

Rachel Novak

Senior Editor · All Topics

Rachel Novak creates and reviews our calculators across the whole CalcVIP library calculators at CalcVIP. Every calculator is checked against hand-worked examples before it is published, so the formula, the diagram and the answer all agree.

View full profile & all calculators by Novak →