Thin-Film Optical Coating Calculator

Choose a quarter-wave antireflection layer, see how much light it still reflects across the spectrum, and find thin-film interference colours.

🪞 Thin-Film Optical Coating Calculator
Ambient index (n0)
Coating or film index (n1)
Substrate index (ns)
Design wavelength (λ0)
nm
400700
Film thickness (d)
nm
0500
Wavelength to test (λ)
nm
3501000
Film thickness (d)
nm
Quarter-wave thickness
—
Ideal coating index
—
Uncoated reflectance
—
Coated reflectance
—
Coated transmittance
—
Reflection removed
—
Your index minus ideal
—
Half-wave thickness
—

Reflectance at the wavelength
—
Transmittance
—
Uncoated reflectance
—
Optical thickness
—
Phase thickness
—
Layer type
—
Minimum, 350 to 1000 nm
—
Maximum, 350 to 1000 nm
—

Path difference 2 n d
—
Visible maxima
—
Visible minima
—
Phase case
—
Maximum rule
—
Front surface
—

🪞 What is a Thin-Film Optical Coating?

A thin-film optical coating is a transparent layer, often only a few hundred nanometres thick, deposited on a lens, mirror, window or solar cell to control how much light it reflects. The simplest design is a single quarter-wave antireflection layer. When light meets the coated surface, part of it reflects from the front of the film and part from the boundary between the film and the substrate. If the film is a quarter of a wavelength thick, the second reflection travels half a wavelength further, so the two reflected waves are out of step and cancel. The light that is not reflected passes through, which brightens the image and reduces stray light.

Coatings are used almost everywhere there is glass and light. Camera lenses and spectacle lenses carry antireflection layers to cut ghosts and glare. Solar cells use a coating to let more sunlight in. Laser optics, telescope mirrors and microscope objectives use designs from a single layer up to dozens of layers. The same interference explains the colours of soap bubbles, oil films on water and some insect wings, where the film is not designed but accidental. In every case the key quantities are the refractive indices of the ambient medium (n0), the film (n1) and the substrate (ns), the film thickness and the wavelength of light.

Two design rules follow. First, the thickness: d = λ / (4 n1), where λ is the wavelength in vacuum. Second, the refractive index: the cancellation is complete only when n1 equals the square root of n0 times ns, the geometric mean of the surrounding indices. For air and common glass this ideal is about 1.23, a lower value than most durable materials provide, so single layers usually reduce reflection to about a quarter rather than to zero. A single layer also works well only near its design wavelength, which is why broadband designs use more layers. These calculations assume normal incidence and lossless layers. For a related single-interface effect see the Brewster angle calculator, and for index values see the index of refraction calculator.

This calculator offers three modes. Design gives the quarter-wave thickness, the ideal index and the coated and uncoated reflectance at the design wavelength with a reflectance chart. Reflectance lets you test any thickness at any wavelength. Interference finds the visible wavelengths where a film of given thickness reflects strongly or weakly, using the correct phase flip rule for the three indices you enter.

📐 Formula

d  =  λ0 / (4 n1)     nideal  =  √( n0 ns )
d = coating thickness (nm), λ0 = design wavelength in vacuum (nm)
n0, n1, ns = refractive indices of the ambient medium, the coating (or film) and the substrate
Uncoated reflectance: R0 = ( (n0 − ns) / (n0 + ns) )²
Quarter-wave coated reflectance: R = ( (n0 ns − n1²) / (n0 ns + n1²) )², zero when n1² = n0 ns
Any thickness: R = (r01² + r12² + 2 r01 r12 cos 2δ) / (1 + r01² r12² + 2 r01 r12 cos 2δ), with r01 = (n0 − n1)/(n0 + n1), r12 = (n1 − ns)/(n1 + ns) and 2δ = 4π n1 d / λ
Interference: with no relative phase flip, maxima at 2 n1 d = mλ and minima at (m + 1/2)λ; with one flip the two rules swap
Example: n1 = 1.38, λ0 = 550 nm gives d = 550 / 5.52 = 99.64 nm

📖 How to Use This Calculator

Steps

1
Enter the three refractive indices. Type the ambient index (air is 1.0), the coating or film index, and the substrate index (glass is about 1.5).
2
Choose a mode. Use Design for a quarter-wave layer at a chosen wavelength, Reflectance to test any thickness at any wavelength, or Interference to find the visible maxima and minima of a film.
3
Read the reflectance and the chart. Compare the coated and uncoated reflectance, check the ideal index against your material, and read the chart to see the behaviour across the spectrum.

💡 Example Calculations

Example 1 — MgF2 on Glass at 550 nm

n0 = 1.0, n1 = 1.38 (magnesium fluoride), ns = 1.52 (glass, illustrative), λ0 = 550 nm

1
d = 550 / (4 × 1.38) = 99.64 nm and the ideal index is √(1.0 × 1.52) = 1.233
2
Uncoated: R0 = (0.52 / 2.52)² = 4.26 %
3
Coated: R = ( (1.52 − 1.9044) / (1.52 + 1.9044) )² = 1.26 %, so transmittance is 98.74 % and about 70.4 % of the reflection is removed. The index is 0.147 above the ideal.
Thickness = 99.64 nm, reflectance = 1.26 % (down from 4.26 %)
Try this example →

Example 2 — High-Index Substrate (Illustrative)

n0 = 1.0, n1 = 1.9, ns = 3.5 (illustrative values), λ0 = 600 nm

1
d = 600 / (4 × 1.9) = 78.95 nm and the ideal index is √3.5 = 1.871
2
Uncoated: R0 = (2.5 / 4.5)² = 30.86 %
3
Coated: R = ( (3.5 − 3.61) / (3.5 + 3.61) )² = 0.0239 %, because 1.9 is within 0.03 of the ideal index. Almost 99.9 % of the reflection is removed.
Thickness = 78.95 nm, reflectance = 0.0239 %
Try this example →

Example 3 — The Same Coating Away from Its Design Wavelength

n0 = 1.0, n1 = 1.38, ns = 1.52, d = 100 nm, tested at 450 nm

1
Optical thickness n d = 138 nm = 138 / 450 = 0.307 waves, a phase thickness of 110.4° (a quarter wave would be 90°)
2
R = 1.63 %, so transmittance is 98.37 %
3
Over 350 to 1000 nm the reflectance ranges from 1.26 % at 550 nm up to 3.14 % at 350 nm, always below the uncoated 4.26 %
Reflectance at 450 nm = 1.63 %
Try this example →

Example 4 — A Half-Wave Layer Disappears

n0 = 1.0, n1 = 1.38, ns = 1.52, d = 199.28 nm, tested at 550 nm

1
n d = 1.38 × 199.28 = 275.0 nm = 0.500 waves, a phase thickness of 180.0°
2
R = 4.26 %, the same as the uncoated surface
3
The layer is "absent" at this wavelength. Transmittance is 95.74 %.
Reflectance = 4.26 %, equal to the bare glass
Try this example →

Example 5 — Soap Film in Air

n0 = 1.0, n1 = 1.33 (water based film), ns = 1.0 (air behind), d = 300 nm

1
Path difference 2 n d = 2 × 1.33 × 300 = 798.0 nm
2
The front surface inverts the wave (1.33 > 1.0) and the back surface does not (1.0 < 1.33), so maxima follow 2 n d = (m + 1/2) λ. For m = 1, λ = 798 / 1.5 = 532.0 nm.
3
Minima follow 2 n d = m λ. For m = 2, λ = 798 / 2 = 399.0 nm. One maximum and one minimum fall in the visible range (about 380 to 750 nm).
Visible maximum at 532.0 nm, minimum at 399.0 nm
Try this example →

Example 6 — Oil Film on Water (Illustrative Index)

n0 = 1.0, n1 = 1.47 (oil, illustrative), ns = 1.33 (water), d = 500 nm

1
Path difference 2 n d = 2 × 1.47 × 500 = 1470.0 nm
2
The front surface inverts (1.47 > 1.0) but the back does not (1.33 < 1.47), so maxima follow (m + 1/2): m = 2 gives 588.0 nm and m = 3 gives 420.0 nm
3
Minima follow m: m = 2 gives 735.0 nm and m = 3 gives 490.0 nm, so each has two visible entries
Visible maxima at 588.0 and 420.0 nm, minima at 735.0 and 490.0 nm
Try this example →

❓ Frequently Asked Questions

What is a quarter-wave antireflection coating?+
It is a transparent layer whose optical thickness is one quarter of the design wavelength. Light reflected from its back surface travels half a wavelength further than light reflected from the front, so the two reflections cancel.
How do you calculate the thickness of a quarter-wave coating?+
Divide the design wavelength by four times the coating index: d = wavelength / (4 n). For magnesium fluoride (n about 1.38) at 550 nm that is 550 / 5.52 = 99.6 nm.
What is the ideal refractive index of an antireflection coating?+
The ideal index is the geometric mean of the two surrounding indices, n = sqrt(n0 x ns). Air (1.0) on glass of index 1.52 gives 1.233. With that index a quarter-wave layer cancels the reflection exactly at the design wavelength.
How much light does an uncoated glass surface reflect?+
At normal incidence the Fresnel reflectance is R = ((n0 - ns) / (n0 + ns))^2. For air to glass of index 1.52 that is 4.26 percent per surface, so a window with two surfaces loses about 8 percent.
How much does a quarter-wave MgF2 coating reduce reflection?+
On glass of index 1.52, a quarter-wave layer of index 1.38 reflects about 1.26 percent at the design wavelength, down from 4.26 percent. That is a reduction of about 70 percent for a single layer.
Why does a coating work only near one wavelength?+
The cancellation needs a path difference of exactly half a wavelength, and the path difference is set by the thickness. At other wavelengths the waves only partly cancel, so the reflectance rises on both sides of the design wavelength.
What is a half-wave layer?+
A half-wave layer has an optical thickness of half the wavelength. The round trip adds a whole wavelength, so the layer has no effect on the reflectance at that wavelength, and it behaves as if it were absent.
Why do soap bubbles show colours?+
Light reflects from the front and back of the soap film and the two reflections interfere. The result depends on thickness and wavelength, so at a given thickness some colours are reinforced and others cancelled, producing bands of colour.
What is the interference condition for a thin film?+
The path difference is 2 n d. If both surfaces or neither surface invert the wave, maxima occur when 2 n d = m wavelengths. If exactly one surface inverts it, maxima occur when 2 n d = (m + 1/2) wavelengths and the minima swap.
Does this calculator handle oblique incidence or absorbing films?+
No. It models a single lossless layer at normal incidence with constant refractive indices. Multilayer designs, absorbing films, dispersion and non-normal angles need full thin-film design software.
How does this relate to Brewster's angle?+
Brewster's angle is the angle at which p-polarised light is not reflected from a single interface. The coating here works at normal incidence for any polarisation and relies on interference between two reflections instead of a special angle.

What is a quarter-wave antireflection coating?

It is a transparent layer whose optical thickness is one quarter of the design wavelength. Light reflected from its back surface travels half a wavelength further than light reflected from the front, so the two reflections cancel.

How do you calculate the thickness of a quarter-wave coating?

Divide the design wavelength by four times the coating index: d = wavelength / (4 n). For magnesium fluoride (n about 1.38) at 550 nm that is 550 / 5.52 = 99.6 nm.

What is the ideal refractive index of an antireflection coating?

The ideal index is the geometric mean of the two surrounding indices, n = sqrt(n0 x ns). Air (1.0) on glass of 1.52 gives 1.233. With that index, a quarter-wave layer cancels the reflection exactly at the design wavelength.

How much light does an uncoated glass surface reflect?

At normal incidence the Fresnel reflectance is R = ((n0 - ns) / (n0 + ns))^2. For air to glass with index 1.52 that is 4.26 percent per surface.

How much does a quarter-wave MgF2 coating reduce reflection?

On glass of index 1.52 a quarter-wave layer of index 1.38 reflects about 1.26 percent at the design wavelength, down from 4.26 percent. That is a reduction of about 70 percent.

Why does a coating work only near one wavelength?

The cancellation needs a path difference of exactly half a wavelength. The path difference is fixed by the thickness, so at other wavelengths the waves only partly cancel, and the reflectance rises on both sides of the design wavelength.

What is a half-wave layer?

A half-wave layer has an optical thickness of half the wavelength. The round trip adds a full wavelength, so the two reflections are in phase relation to the bare surface, and the layer has no effect on reflectance at that wavelength.

Why do soap bubbles show colours?

Light reflects from the front and back of the soap film. The two reflections interfere, and the result depends on thickness and wavelength. At a given thickness some colours are reinforced and others cancelled, producing bands of colour.

What is the interference condition for a thin film?

The path difference is 2 n d. If the net phase flip is zero (both or neither surface inverts the wave), maxima occur when 2 n d = m wavelengths. If exactly one surface inverts, maxima occur when 2 n d = (m + 1/2) wavelengths.

Does this calculator handle oblique incidence or absorbing films?

No. It models a single lossless layer at normal incidence with constant refractive indices. Multilayer designs, absorbing films, dispersion and non-normal angles need full thin-film software.

How does this relate to Brewster's angle?

Brewster's angle is the angle at which p-polarised light is not reflected from a single interface. The coating here works at normal incidence for any polarisation and relies on interference rather than a special angle.