1D Transfer Matrix Method Calculator

This website provides an interactive 1D transfer matrix method (TMM) calculator for calculating the transmittance spectrum, reflectance spectrum, and electric field distribution of a multilayer structure.
The default setting is for a terahertz 1D photonic crystal composed of alternating layers with refractive indices of 1 and 4.
If the calculator is helpful, an acknowledgement of this website would be appreciated.

Frequency scan

Please enter the frequency range.

Layer structure

Enter the refractive-index list and thickness list in the same layer order.
Separate values using commas, spaces, or new lines. The two lists must have the same number of entries.
Use thickness in µm. Complex refractive indices are allowed.

After changing the layer structure or frequency scan, click Run TMM to recalculate the spectra.

Transmittance and reflectance spectra

Peak selection

Use Peaks search freq min and Peaks search freq max to define the frequency range for detecting cavity peaks from the calculated transmittance spectrum.
Adjust the peak number to view the electric field profile at the corresponding peak frequency.

Detected cavity peaks

Run TMM to detect peaks.

Electric-field profile

Run TMM to calculate the electric-field profile.

Colored regions indicate the layer positions. Layers with the same refractive index use the same color.