ForHosting KIT · Developer Utilities

Thin film constructive interference calculator

This thin-film constructive interference calculator finds the film thickness that makes reflected light reinforce at a selected vacuum wavelength.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter the wavelength, the film refractive index, an interference order, and whether exactly one reflected ray undergoes a phase reversal or both rays have the same reflection phase behavior. The result assumes normal incidence, reports thickness in the same length unit as the wavelength, and exposes the formula and optical path difference so the calculation can be checked directly.

Choose the reflection phase condition before using the thickness formula

Constructive interference in reflected light depends on more than the extra distance traveled inside the film. A reflection from a boundary leading to a higher refractive index adds a phase shift of one half-cycle, while a reflection toward a lower index does not. Compare the two reflections that leave the film toward the observer. If exactly one of them receives that half-cycle shift, select one_phase_reversal. If neither reflection receives it, or both receive it, select zero_or_two_phase_reversals because their reflection-induced phase difference is zero. This selection changes the allowed optical thickness by one quarter-wave. The calculator assumes the surrounding media and boundary ordering have already been examined to determine this condition; it does not infer the condition from substrate and ambient indices. At normal incidence, one phase reversal gives constructive reflection when 2nt equals (m + 1/2) times the vacuum wavelength. Zero or two reversals give constructive reflection when 2nt equals m times the wavelength. Here n is the film index, t is physical thickness, and m is the integer interference order.

Enter consistent quantities and interpret the interference order

Provide the vacuum wavelength and film refractive index as positive finite numbers. The calculator does not impose a particular length unit: a wavelength entered in nanometers produces thickness in nanometers, while a wavelength entered in meters produces thickness in meters. Do not mix a wavelength expressed in one unit with an expectation that the answer will silently convert to another. The order m selects one member of the repeating family of constructive thicknesses. With exactly one phase reversal, m = 0 produces the smallest positive solution, λ divided by 4n; increasing m adds λ divided by 2n each time. With zero or two phase reversals, m = 1 is the smallest positive film solution, λ divided by 2n. Although the mathematical m = 0 solution in that case is zero, a zero-thickness layer is not a physical film, so this calculator rejects it explicitly. The returned optical_path_difference is 2nt and gives a convenient verification value. It should equal (m + 1/2)λ for one reversal or mλ for equal reflection phase behavior.

Apply the result within the limits of the normal-incidence model

The calculation is useful for first-pass design of coatings, instructional problems, sensor layers, and interference demonstrations where one target wavelength should appear enhanced in reflection. It is an idealized phase-condition calculation, not a complete coating simulator. It assumes a uniform, lossless film with a real refractive index, monochromatic light, coherent reflected rays, and normal incidence. At oblique incidence, the propagation term depends on the angle inside the film, polarization can affect reflection phase and amplitude, and the simple normal-incidence thickness should not be treated as final. Real materials may also have wavelength-dependent or complex refractive indices, surface roughness, absorption, and manufacturing tolerances. Multilayer stacks require transfer-matrix or equivalent modeling because every interface contributes additional reflected waves. Use this result as the nominal thickness implied by the stated two-ray model, then validate practical designs with the actual material dispersion, incident-angle range, bandwidth, and layer stack. The browser calculation is free; an automated successful API request costs $0.002. Invalid inputs are rejected instead of producing a misleading thickness.

Single-layer coating estimate

Find a nominal film thickness that constructively reflects a chosen wavelength after identifying the boundary phase-reversal pattern.

Optics homework verification

Check interference-order calculations and compare the quarter-wave and half-wave thickness families at normal incidence.

Deterministic design fixtures

Generate repeatable expected thickness and optical-path values for educational software, calculators, and automated tests.

Which unit does the thickness use?

Thickness uses the same length unit as wavelength. Enter 550 nm to receive a thickness in nm, or enter the equivalent wavelength in meters to receive meters.

What does one phase reversal mean?

Exactly one of the two interfering reflected rays gains a half-cycle phase shift at its reflection boundary, creating a relative reflection phase difference of π.

Why is order zero rejected for zero or two phase reversals?

That combination gives t = 0. Because the requested quantity is a physical film thickness, the calculator requires m to be at least 1 for this condition.

Does the calculator support oblique incidence?

No. It assumes normal incidence. Oblique incidence requires the propagation angle inside the film and may require polarization-dependent treatment.

Does a constructive thickness guarantee maximum reflectance?

No. It aligns phase in the ideal two-ray model, but actual reflectance also depends on interface amplitudes, absorption, dispersion, additional layers, angle, and polarization.

What does the API request cost?

A successful API request costs $0.002. The same deterministic calculation can run free in the browser.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/optics/thin-film-constructive

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/optics/thin-film-constructive \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"wavelength":550,"film_index":1.38,"order":0,"reflection_phase_condition":"one_phase_reversal"}'
{
  "wavelength": 550,
  "film_index": 1.38,
  "order": 0,
  "reflection_phase_condition": "one_phase_reversal"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "optics.thin_film_constructive",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →