Transfer Matrix Calculator

Build layer stacks and inspect wave behavior. See overall matrix, reflectance, and transmittance at once. Adjust layers quickly for coatings, filters, and mirrors easily.

Inputs

Converted internally to nm.
Example: 1.000 for air.
Example: 1.52 for glass.

Layer Stack

Each layer uses real refractive index and thickness. Use thickness 0 to skip a layer.
Label Refractive index (n) Thickness (d)

Formula Used

This tool uses the 2×2 characteristic matrix for a stack of planar layers at normal incidence. For a layer with refractive index n, thickness d, and wavelength λ, the phase thickness is:

δ = 2π n d / λ

The layer matrix is:

M = [ [ cosδ, i sinδ / n ], [ i n sinδ, cosδ ] ]

The overall matrix is the ordered product M_total = M1 · M2 · … · MN. Using incident admittance η0 = n0 and substrate admittance ηs = ns, reflection and transmission coefficients are:

r = (η0A + η0ηsB − C − ηsD) / (η0A + η0ηsB + C + ηsD)

t = 2η0 / (η0A + η0ηsB + C + ηsD)

Reflectance is R = |r|² and transmittance is T = (ηs/η0)|t|² for real indices.

How to Use This Calculator

  1. Enter the wavelength and choose its unit.
  2. Set the incident index n₀ and substrate index nₛ.
  3. Add layers and fill each refractive index and thickness.
  4. Press Compute to display the matrix and power results.
  5. Use Download CSV or Download PDF after results appear.

Example Data Table

Parameter Value
Wavelength550 nm
Incident index (n₀)1.000
Substrate index (nₛ)1.520
Layer 1n = 1.38, d = 100 nm
Layer 2n = 2.10, d = 70 nm
Layer 3n = 1.38, d = 100 nm

Transfer Matrix Notes

Why transfer matrices matter

Layered media appear in anti-reflection coatings, dielectric mirrors, Fabry–Pérot filters, and thin-film sensors. A transfer matrix compactly tracks how forward and backward waves evolve across many interfaces, so the whole stack behaves like one equivalent interface at a chosen wavelength.

What the inputs represent

The calculator assumes normal incidence and real refractive indices. You enter incident index n₀ (often 1.000 for air), substrate index nₛ (around 1.52 for common glass), plus each layer’s index and thickness. Thickness units are converted internally to nanometers.

Phase thickness and wavelength scaling

The key quantity is the phase thickness δ = 2π n d / λ. For visible optics, λ typically spans 400–700 nm. A quarter‑wave layer at the design wavelength uses d = λ/(4n); for λ = 550 nm, a layer with n = 1.45 is about 94.8 nm thick.

Building the total matrix

Each layer contributes a 2×2 characteristic matrix. The stack matrix is the ordered product M_total = M1·M2·…·MN, matching the physical order from the incident medium toward the substrate. This approach remains efficient even for dozens of layers, which is common in high‑reflectivity coatings.

From matrix to reflection and transmission

With admittance η ≈ n at normal incidence, the matrix elements A, B, C, D yield complex amplitude coefficients r and t. Power reflectance is R = |r|², while T = (nₛ/n₀)|t|². For real indices and ideal math, R + T should be close to 1.

Common coating designs and typical numbers

An uncoated glass surface reflects about 4% at normal incidence because R = ((n₀−nₛ)/(n₀+nₛ))². A single quarter‑wave AR layer can reduce that to roughly 1% near its design wavelength when the layer index is near √(n₀nₛ). As a guide near 550 nm, SiO₂ is about 1.45, while TiO₂ and Ta₂O₅ are typically around 2.1–2.3. Multilayer Bragg mirrors (alternating high/low index) can exceed 99% reflectance with enough pairs and strong index contrast.

Numerical checks and practical limits

If you see R + T drift from 1, it is usually rounding, extreme layer counts, or unrealistic inputs. Very thick layers create rapidly varying sin/cos terms, so results become highly wavelength‑sensitive. For thin films, a 1–2 nm thickness change can noticeably shift a narrowband resonance. For absorption or oblique incidence, the model must be extended to complex indices and polarization‑dependent admittances.

Using results for optimization

Use the CSV export to compare designs across multiple runs (for example, sweeping thicknesses around a quarter‑wave value). The PDF report is useful for sharing a chosen stack with fabrication notes. For broadband performance, repeat the calculation at several wavelengths and look for stable low R or high R bands.

FAQs

1) What does the transfer matrix represent?

It is a 2×2 matrix that links the electric and magnetic field components (or wave amplitudes) across a layer stack. Multiplying layer matrices gives one overall matrix for the full coating.

2) Can I model metals or absorbing films?

This version assumes real refractive indices. Metals and absorbing films require a complex refractive index (n + iκ). The formulas still work, but the implementation must be extended to complex n values.

3) Why is my R + T not exactly 100%?

Small deviations usually come from floating‑point rounding and formatting. Larger deviations can occur with extreme values, many layers, or inconsistent inputs. For real indices and stable math, R + T should stay close to 1.

4) What is a quarter‑wave layer?

A layer whose optical thickness equals one quarter of the design wavelength, so n d = λ/4. It introduces a π/2 phase shift and is widely used in AR coatings and Bragg reflectors.

5) How many layers should I use for a mirror?

It depends on index contrast and target reflectance. Alternating high/low index pairs increase reflectance rapidly; many practical dielectric mirrors use 6–12 pairs to reach very high reflectance near a design wavelength.

6) Does the layer order matter?

Yes. The product order corresponds to the physical order from incident side to substrate. Swapping layers generally changes the interference condition and can significantly change reflection and transmission.

7) Can I use this for radio-frequency multilayers?

Yes, conceptually. The method is general for waves in stratified media. Ensure your wavelength and thickness units are consistent, and interpret refractive index as an effective wave impedance parameter appropriate to your RF material model.

Related Calculators

fourier transform calculatorfourier series calculatordensity of statescalculus of variationsz transform calculatorpath integral calculatorheat equation solverlaplace equation solversaddle point approximationwave equation solver

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.