A thin film optics calculator tells you whether light reflected from the two surfaces of a thin film, such as a soap bubble, an oil slick or an anti-reflection coating, reinforces or cancels. Enter the refractive indices, the film thickness and the wavelength, and it gives the optical path difference and the type of interference.
How to use the thin film optics calculator
- Enter the refractive indices n₁, n₂ and n₃.
- Enter the film thickness and the wavelength, in nanometres.
- Add an angle of incidence if the light is not straight on.
- Press Calculate.
What thin-film interference is
When light hits a thin transparent film, part of it is reflected from the top surface and part from the bottom surface. The two reflected beams overlap, and depending on the extra distance that one of them travels, they add up or cancel [1]. This is what colours a soap bubble or a patch of oil on water. The calculator works out the extra distance and the phase change, and tells you which case you have.
The optical path difference
The beam that goes through the film travels an extra distance. Wikipedia gives the optical path difference as OPD = 2 n₂ d cos θ₂, where n₂ is the index of the film, d its thickness and θ₂ the angle of the light inside the film [1]. The OPD is measured in nanometres, the same unit as the wavelength, so you can divide the two directly.
The angle in the film
The angle θ₂ inside the film comes from Snell's law, n₁ sin θ₁ = n₂ sin θ₂ [2]. For light straight on, both angles are zero and cos θ₂ is 1, so the path difference is just 2 n₂ d. For a tilted beam, cos θ₂ is smaller, so the OPD drops, which is why the colours of a bubble shift as you move your head. If n₁ sin θ₁ is larger than n₂, the light cannot enter the film, and the tool says so.
Phase change on reflection
Light that reflects from a medium of higher refractive index gets a phase change of 180 degrees, half a wavelength. Light that reflects from a lower-index medium does not [1]. The calculator checks both interfaces: the top one compares n₁ with n₂, and the bottom one compares n₂ with n₃. If n₁ is larger than n₂ and n₂ is larger than n₃, each reflection is from a lower-index medium, so there is no shift at either interface. The tool states which of the cases applies.
Constructive and destructive
If both interfaces give a shift, or neither does, the shifts cancel out of the comparison. Reflection is then constructive when OPD = m λ and destructive when OPD = (m − ½) λ, with m a positive whole number. If only one interface gives a shift, the two conditions swap. Wikipedia writes the air-film-air case the same way: constructive when 2 n d cos θ₂ = (m − ½) λ [1]. We accept a ratio that is within 0.02 of the exact value.
The anti-reflection coating
A coating on glass has an index between those of air and glass, so both reflections have a 180 degree shift. The best cancellation comes when the optical thickness is a quarter of the wavelength, d = λ ÷ (4 n) [1]. We add the angle by writing d = λ ÷ (4 n₂ cos θ₂), our own working. The tool shows this thickness whenever n₁ is below n₂ and n₂ is below n₃.
A worked example
Take air above a magnesium fluoride type coating with n₂ = 1.38 on glass with n₃ = 1.52, light at 550 nm and a thickness of 99.6 nm. The OPD is 2 × 1.38 × 99.6 = 274.9 nm, which is 0.4998 wavelengths. Both interfaces give a shift, so destructive reflection needs (m − ½) λ, and with m = 1 that is half a wavelength. The reflection is destructive, and the quarter-wave thickness is 99.638 nm. The example numbers are our own.
A soap bubble
For a soap film in air, n₁ = 1, n₂ = 1.5 and n₃ = 1 give a shift at the top only. At 600 nm and 100 nm thickness, the OPD is 300 nm, half a wavelength, so the reflection is constructive, since this case needs (m − ½) λ. A thinner film, below about a tenth of the wavelength, makes the path difference small, so the shift at the top dominates and the film looks dark just before it bursts. This is our own example and reasoning.
What the tool does not do
This tool does not compute the Fresnel reflectivity of the film: it tells you the type of interference, not how much light is reflected. It also treats one wavelength at a time and one pass through the film, ignoring the beams that bounce several times inside it. For a coating design with several layers, use thin-film software. Check the wavelength is the one in air, not the one inside the film.
Using the results
Try the quarter-wave thickness for the middle of the visible range, about 550 nm, then vary the thickness and watch the result change from destructive to constructive. Change the wavelength to see why a single coating works best for one colour and leaves a faint purple tint. Raise the angle to see the effective thickness fall. Always use the same unit for the thickness and the wavelength, as the tool takes both in nanometres.
Common mistakes
- Using the wavelength inside the film. Enter the wavelength in air or vacuum.
- Mixing up the indices. n₁ is above the film, n₃ below.
- Forgetting the phase shifts. They swap the two conditions.
- Entering the thickness in micrometres. Both lengths are in nm.
What next
Use this often? Add Thin Film Op to your Home screen.
Frequently asked questions
What is a thin film optics calculator?
A tool that finds the optical path difference of a thin film and whether the two reflected beams reinforce or cancel.
What is the optical path difference of a film?
OPD = 2 n₂ d cos θ₂, with n₂ the film index, d the thickness and θ₂ the angle inside the film.
What is the quarter-wave coating thickness?
d = λ ÷ (4 n), the thickness at which reflections from a coating between air and glass cancel.
When does a reflection get a 180 degree phase shift?
When light reflects from a medium of higher refractive index than the one it travels in.
Does the calculator give the reflectivity?
No. It gives the type of interference, not the percentage of light reflected.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.