Thin Film Interference Calculator

Thin-film interferenceConstructive (bright)
Optical path difference 2 n t250.0 nm
Path difference in wavelengths0.500
How this was calculated
  1. At normal incidence the optical path difference between the two reflections is 2 n t = 2 x 1.25 x 100.0 nm = 250.0 nm.
  2. One reflection (off the higher-index surface) flips phase, so the conditions swap: bright when 2 n t is an odd multiple of half the wavelength, dark when it is a whole multiple.
  3. Here 2 n t / lambda = 250.0 / 500.0 = 0.500, so the reflections land in the 'Constructive (bright)' case for 500.0 nm light.
  4. Tilting the film shortens the effective path (the rays cross at an angle), which is why soap films and oil slicks shift color as you move — each viewing angle picks out a different wavelength.

A thin film interference calculator determines whether light reflecting off the two surfaces of a thin film produces a bright or dark result. At normal incidence, the optical path difference is 2 n t, where n is the film's refractive index and t its thickness. The calculator compares this path difference to the wavelength of incident light and accounts for phase changes. A reflection off a higher-index medium flips the phase by half a wavelength; with one flipped and one unflipped reflection, the bright and dark conditions swap. For example, a film with n = 1.25 and t = 100 nm gives 2 n t = 250.0 nm, exactly half of a 500 nm wavelength — with one phase change, that is constructive (bright). The same film at t = 200 nm gives 2 n t = 500.0 nm, a whole wavelength — destructive (dark) with one phase change. An oil film (n = 1.33) at t = 150 nm gives a ratio of 0.665 wavelengths for 600 nm light, in between bright and dark.

The 2 n t method is the accepted standard for thin film interference calculations because it directly captures the optical path difference that determines whether interference is constructive or destructive, while phase-change rules handle the reflection physics that shift the outcome. Tilting the film changes the effective path, which is why soap films and oil slicks shift color as you move. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result the calculator produces.

Worked examples

Quarter-wave film, bright

Primary result: Constructive (bright) — 2 n t lands on an odd half-multiple — bright. (500 · 1.25 · 100 · One phase change (film between lower-index media))

Thin-film interferenceConstructive (bright)
Optical path difference 2 n t250.0 nm
Path difference in wavelengths0.500

Half-wave film, dark

Primary result: Destructive (dark) — a whole multiple with one phase change — dark. (500 · 1.25 · 200 · One phase change (film between lower-index media))

Thin-film interferenceDestructive (dark)
Optical path difference 2 n t500.0 nm
Path difference in wavelengths1.000

Oil film, in between

Primary result: In between — an oil film at a thickness between the bright and dark conditions. (600 · 1.33 · 150 · One phase change (film between lower-index media))

Thin-film interferenceIn between
Optical path difference 2 n t399.0 nm
Path difference in wavelengths0.665

The thin-film interference conditions

Light reflecting off the two surfaces of a thin film interferes with itself; the optical path difference at normal incidence is 2 n t, where n is the film's refractive index and t its thickness. This path difference is the core input for any thin film interference calculator, because it determines whether the two reflected waves line up to reinforce each other or cancel each other out.

A reflection off a higher-index medium flips the phase by half a wavelength. When one of the two reflections flips and the other does not, the bright and dark conditions swap. That means a path difference equal to a whole wavelength becomes destructive (dark), while a path difference equal to half a wavelength becomes constructive (bright). With no phase change or with two phase changes, the conditions stay in their normal order.

A film with n = 1.25 and t = 100 nm gives 2 n t = 250.0 nm, exactly half of a 500 nm wavelength. With one phase change, that is constructive (bright). The same film at t = 200 nm gives 2 n t = 500.0 nm, a whole wavelength, which is destructive (dark) with one phase change. An oil film (n = 1.33) at t = 150 nm gives a ratio of 0.665 wavelengths for 600 nm light, putting the result in between bright and dark rather than at either extreme.

Tilting the film changes the effective path, which is why soap films and oil slicks shift color as you move. A thin film interference calculator assumes normal incidence, so results shift when the viewing angle moves away from perpendicular.

Worked examples

Light reflecting off the two surfaces of a thin film interferes with itself; the optical path difference at normal incidence is 2 n t, where n is the film's refractive index and t its thickness. A reflection off a higher-index medium flips the phase by half a wavelength; with one flipped and one unflipped reflection, the bright and dark conditions swap. The three cases below show how a thin film interference calculator applies those rules.

Start with a film that has n = 1.25 and t = 100 nm. The optical path difference is 2 n t = 250.0 nm, which is exactly half of a 500 nm wavelength. With one phase change, that half-wavelength offset lands on the constructive side, so the film looks bright at 500 nm. Double the thickness to t = 200 nm and the same film gives 2 n t = 500.0 nm — a whole wavelength. That whole multiple is destructive with one phase change, so the reflected 500 nm light goes dark.

Not every film sits neatly on a bright or dark point. An oil film with n = 1.33 and t = 150 nm gives 2 n t = 399.0 nm, which for 600 nm light works out to a ratio of 0.665 wavelengths. That puts the reflection in between bright and dark, so the film shows a partial, muted color rather than a full bright band.

Keep in mind that tilting the film changes the effective path, which is why soap films and oil slicks shift color as you move. The examples above assume normal incidence; change the angle and the same thickness can swing from bright to dark or land somewhere in between.

Filmnt (nm)2 n t (nm)Reference wavelength (nm)RatioPhase changesResult
Example 11.25100250.05000.51Bright (constructive)
Example 21.25200500.05001.01Dark (destructive)
Oil film1.33150399.06000.6651In between
These three cases assume one phase change. With zero or two phase changes, the bright and dark conditions swap — a whole wavelength becomes bright and a half wavelength becomes dark.

Phase change on reflection explained

When light hits a thin film, it reflects off both the front and back surfaces. Those two reflected waves then overlap and interfere with each other. The optical path difference at normal incidence is 2 n t, where n is the film's refractive index and t is its thickness. But there is a second piece to the puzzle: phase change on reflection. A reflection off a higher-index medium flips the phase by half a wavelength. This flip is the key detail a thin film interference calculator has to account for, because it determines whether the overlapping waves add up or cancel out.

Consider a film with n = 1.25 sitting on a lower-index material. The front-surface reflection enters a higher-index medium, so that wave flips by half a wavelength. The back-surface reflection does not flip, because the light is entering a lower-index medium. With one flipped and one unflipped reflection, the bright and dark conditions swap. At a thickness of 100 nm, the path difference is 2 n t = 250.0 nm, exactly half of a 500 nm wavelength. Normally that half-wavelength offset would produce destructive interference, but the single phase flip reverses the outcome, making it constructive (bright). Increase the thickness to 200 nm and the path difference becomes 500.0 nm, a whole wavelength. That should be constructive, but the same phase flip turns it destructive (dark).

When both reflections flip, the situation is different. If the film sits between a higher-index material on top and a lower-index material on the bottom, both the front and back reflections enter higher-index media and each flips by half a wavelength. Two flips cancel each other out, so there is no net phase change. The bright and dark conditions stay where you would expect them from the path difference alone.

Real films rarely sit at a perfect angle, and that matters too. Tilting the film changes the effective path, which is why soap films and oil slicks shift color as you move. An oil film with n = 1.33 at a thickness of 150 nm gives a path difference that is 0.665 wavelengths for 600 nm light, putting it in between bright and dark. The phase flip still applies, but the result is a partial mix rather than a clear maximum or minimum.

  • Reflection off a higher-index medium flips the phase by half a wavelength; reflection off a lower-index medium does not.
  • One flip swaps the bright and dark conditions; two flips cancel out, leaving no net phase change.
  • At normal incidence the path difference is 2 n t; tilting the film changes the effective path and shifts the observed color.
A single phase flip reverses the usual interference rule: half-wavelength path differences become bright, and whole-wavelength differences become dark.

Thin films in the real world

The same 2 n t arithmetic that powers a thin film interference calculator shows up wherever a transparent layer sits between air and another material. Light reflecting off the two surfaces of a thin film interferes with itself; the optical path difference at normal incidence is 2 n t, where n is the film's refractive index and t its thickness. Soap bubbles, oil slicks on wet pavement, anti-reflective coatings on eyeglasses, and Newton's rings in optics labs all trace back to this single relationship.

A reflection off a higher-index medium flips the phase by half a wavelength; with one flipped and one unflipped reflection, the bright and dark conditions swap. Take a film with n = 1.25 and t = 100 nm: 2 n t = 250.0 nm, exactly half of a 500 nm wavelength. With one phase change, that is constructive (bright). Thicken the same film to t = 200 nm and 2 n t = 500.0 nm, a whole wavelength — destructive (dark) with one phase change. An oil film (n = 1.33) at t = 150 nm gives a ratio of 0.665 wavelengths for 600 nm light, landing in between bright and dark. That middle ground is why oil slicks display a spread of colors rather than sharp bands.

Anti-reflective coatings put this swapping to practical use through the quarter-wave film. By choosing a thickness that makes 2 n t equal to half the target wavelength, the coating arranges destructive interference for reflected light, sending more of it through the lens instead. Newton's rings, the concentric colored circles seen when a curved lens rests on a flat glass plate, arise from the same principle: the air gap between the surfaces acts as a thin film whose thickness changes with radius, cycling through bright and dark conditions.

Tilting the film changes the effective path, which is why soap films and oil slicks shift color as you move. The thickness of a soap bubble wall also drains over time, so its colors evolve even when you stand still. Oil slicks vary in thickness across their surface, producing patches of different hues. Each of these everyday phenomena maps directly onto the inputs you would enter into a thin film interference calculator: refractive index, thickness, and viewing angle.

FAQs

How do you calculate thin film interference?

Compute the optical path difference 2 n t and compare it with the wavelength. For example, 2 x 1.25 x 100 nm = 250.0 nm is half of 500 nm, which is bright when one reflection flips phase. The calculator handles this comparison automatically.

When is a thin film bright?

With one phase change, the film is bright when 2 n t is an odd multiple of half the wavelength. With no net phase change, it is bright when 2 n t is a whole multiple of the wavelength. The phase conditions determine which case applies.

Why do soap bubbles show colors?

The film thickness varies from point to point, so each spot satisfies the bright condition for a different wavelength. Tilting changes the path, shifting the colors. This variation across the surface is why you see a rainbow of colors across a single soap bubble.

What is a quarter-wave anti-reflective coating?

A film whose optical thickness is a quarter wavelength makes the two reflections cancel. Here 2 n t = lambda/2 with the phase flips arranged, producing the destructive case of this calculator. The reflected waves are out of phase and eliminate each other.

Does the wavelength used change inside the film?

Yes. Light travels at lambda/n in the film, which is exactly why the path difference is written 2 n t using the vacuum wavelength. The wavelength inside the film is shorter, so the optical path difference accounts for this change.

What happens at thicknesses between bright and dark?

Partial interference occurs. The reflection is dimmer than the bright case but not extinguished, producing an in between result. For example, the 0.665-wavelength oil film gives partial interference rather than full brightness or complete darkness.

Sources

Related calculators

Wavelength Calculator
Solve the wave equation v = f × λ for wavelength, frequency or speed — for sound, light, water and radio waves alike.
Density Calculator
Density, mass or volume from the other two — ρ = m/V — with the float-or-sink check against water built in.