Thin Film Interference Calculator
Check whether a film gives constructive or destructive reflection at a chosen wavelength.
What it does
Thin film interference produces the colours of soap bubbles and oil slicks. Light reflected from the top and bottom surfaces of a film travels different distances and can interfere constructively or destructively depending on thickness, wavelength and refractive index.
This tool reports the optical path difference two n t, the wavelength inside the film, and the nearest interference order. The phase reversal setting controls whether the half wave condition applies.
The page opens with a 100 nanometer film of index 1.33 seen in 500 nanometer light with one phase reversal. The path difference is 266 nanometers and the wavelength inside the film is about 375.94 nanometers, giving a near constructive condition at order zero.
Reflection from a higher index material adds a half cycle phase shift. With an odd number of such reversals, constructive reflection needs a half integer multiple of the wavelength inside the film. With an even number, it needs a whole number.
The tool assumes near normal incidence and a uniform film. Angle of incidence and film thickness variation would require a fuller treatment.
How to use
- Enter the film thickness in nanometers.
- Enter the refractive index of the film.
- Enter the vacuum wavelength in nanometers.
- Choose whether the two reflected rays differ by an odd or even number of phase reversals.
- Read the nearest interference condition as the main result.
- Use the deviation to see how close the film is to an exact maximum or minimum.
Formula
- t
- Film thickness.
- n
- Refractive index of the film.
- lambda
- Wavelength in vacuum.
- phase reversal
- A half wave shift on reflection from a higher index boundary.
The closeness value is the difference between the computed ratio of path difference to half wave units and the nearest exact integer or half integer. Values near zero mean a strong constructive condition; values near 0.5 mean near destructive.
Worked example
Example: 100 nm film at 500 nm
The page opens with thickness 100 nm, index 1.33, wavelength 500 nm and one phase reversal.
- Divide the vacuum wavelength by the index: 500 divided by 1.33 is about 375.94 nm inside the film.
- Compute the optical path difference: 2 times 1.33 times 100 is 266 nm.
- Divide 266 by 375.94 to get about 0.708.
- With one phase reversal, constructive interference occurs near a half integer, so the nearest is 0.5 at order zero.
- The deviation is about 0.208, so the film is closer to constructive than destructive.
- The tool reports condition constructive and order 0.
Reference table
| Thickness | Index | Wavelength | Reversals | Nearest condition |
|---|---|---|---|---|
| 100 nm | 1.33 | 500 nm | One | constructive |
Limits
- Assumes near normal incidence.
- Assumes a uniform film and a single wavelength.
- Does not model absorption in the film.
- Uses a simplified nearest-condition comparison.
Common mistakes
- Using the vacuum wavelength inside the film without dividing by n.
- Forgetting the half wave phase shift on reflection.
- Using film thickness instead of optical path difference.
- Treating the reported condition as exact rather than nearest.
- Applying the normal incidence rule at steep angles.
Try it yourself
Quick checks. Answers sit tucked under each question.
Wavelength inside a 1.33 film for 500 nm light?
About 375.94 nm.
What does one phase reversal change?
It swaps the constructive and destructive conditions.
What is the optical path difference for 100 nm at index 1.33?
266 nm.
Questions
Why do thin films show colours?
Different wavelengths satisfy the interference condition at different thicknesses.
What is the extra distance travelled?
Approximately twice the film thickness at normal incidence.
When does a phase reversal occur?
When light reflects from a boundary leading to a higher refractive index.
How do I get wavelength in the film?
Divide the vacuum wavelength by the film index.
Does the angle of light matter?
Yes. This tool assumes near normal incidence.
Is this a real soap bubble model?
It captures the basic interference condition, not the full optical behaviour.
Sources
- OpenStax University Physics Volume 3, interference in thin films
- University of Tennessee, thin film interference notes
- Oregon State University, thin film interference fundamentals