Article · Wikipedia archive · Last revised Jun 16, 2026

Transfer-matrix method (optics)

The transfer-matrix method is a method used in optics and acoustics to analyze the propagation of electromagnetic or acoustic waves through a stratified medium — a stack of thin films. This is, for example, relevant for the design of anti-reflective coatings and dielectric mirrors.

Last revised
Jun 16, 2026
Read time
≈ 14 min
Length
3,298 w
Citations
7
Source
Propagation of a ray through a layer source ↗

The transfer-matrix method is a method used in optics and acoustics to analyze the propagation of electromagnetic or acoustic waves through a stratified medium — a stack of thin films.12 This is, for example, relevant for the design of anti-reflective coatings and dielectric mirrors.

The reflection of light from a single interface between two media is described by the Fresnel equations. However, when there are multiple interfaces, such as in the figure, the reflections themselves are also partially transmitted and then partially reflected. Depending on the exact path length, these reflections can interfere destructively or constructively. The overall reflection of a layer structure is the sum of an infinite number of reflections.

The transfer-matrix method is based on the fact that, according to Maxwell's equations, there are simple continuity conditions for the electric field across boundaries from one medium to the next. If the field is known at the beginning of a layer, the field at the end of the layer can be derived from a simple matrix operation. A stack of layers can then be represented as a system matrix, which is the product of the individual layer matrices. The final step of the method involves converting the system matrix back into reflection and transmission coefficients.

Formalism for electromagnetic waves

Below is described how the transfer matrix is applied to electromagnetic waves (for example light) of a given frequency propagating through a stack of layers at normal incidence. It can be generalized to deal with incidence at an angle, absorbing media, and media with magnetic properties. We assume that the stack layers are normal to the z {\displaystyle z\,} axis and that the field within one layer can be represented as the superposition of a left- and right-traveling wave with wave number k {\displaystyle k\,} ,

E ( z ) = E r e i k z + E l e i k z {\displaystyle E(z)=E_{r}e^{ikz}+E_{l}e^{-ikz}\,} .

Because it follows from Maxwell's equation that electric field E {\displaystyle E\,} and magnetic field (its normalized derivative) H = 1 i k Z c d E d z {\textstyle H={\frac {1}{ik}}Z_{c}{\frac {dE}{dz}}\,} must be continuous across a boundary, it is convenient to represent the field as the vector ( E ( z ) , H ( z ) ) {\textstyle (E(z),H(z))\,} , where

H ( z ) = 1 Z c E r e i k z 1 Z c E l e i k z {\displaystyle H(z)={\frac {1}{Z_{c}}}E_{r}e^{ikz}-{\frac {1}{Z_{c}}}E_{l}e^{-ikz}\,} .

Since there are two equations relating E {\displaystyle E\,} and H {\displaystyle H\,} to E r {\displaystyle E_{r}\,} and E l {\displaystyle E_{l}\,} , these two representations are equivalent. In the new representation, propagation over a distance L {\displaystyle L\,} into the positive direction of z {\displaystyle z\,} is described by the matrix belonging to the special linear group SL(2, C)

M = ( cos k L i Z c sin k L i Z c sin k L cos k L ) , {\displaystyle M=\left({\begin{array}{cc}\cos kL&iZ_{c}\sin kL\\{\frac {i}{Z_{c}}}\sin kL&\cos kL\end{array}}\right),}

and

( E ( z + L ) H ( z + L ) ) = M ( E ( z ) H ( z ) ) {\displaystyle \left({\begin{array}{c}E(z+L)\\H(z+L)\end{array}}\right)=M\cdot \left({\begin{array}{c}E(z)\\H(z)\end{array}}\right)}

Such a matrix can represent propagation through a layer if k {\displaystyle k\,} is the wave number in the medium and L {\displaystyle L\,} the thickness of the layer: For a system with N {\displaystyle N\,} layers, each layer j {\displaystyle j\,} has a transfer matrix M j {\displaystyle M_{j}\,} , where j {\displaystyle j\,} increases towards higher z {\displaystyle z\,} values. The system transfer matrix is then

M s = M N M 2 M 1 . {\displaystyle M_{s}=M_{N}\cdot \ldots \cdot M_{2}\cdot M_{1}.}

Typically, one would like to know the reflectance and transmittance of the layer structure. If the layer stack starts at z = 0 {\displaystyle z=0\,} , then for negative z {\displaystyle z\,} , the field is described as

E L ( z ) = E 0 e i k L z + r E 0 e i k L z , z < 0 , {\displaystyle E_{L}(z)=E_{0}e^{ik_{L}z}+rE_{0}e^{-ik_{L}z},\qquad z<0,}

where E 0 {\displaystyle E_{0}\,} is the amplitude of the incoming wave, k L {\displaystyle k_{L}\,} the wave number in the left medium, and r {\displaystyle r\,} is the amplitude (not intensity!) reflectance coefficient of the layer structure. On the other side of the layer structure, the field consists of a right-propagating transmitted field

E R ( z ) = t E 0 e i k R z , z > L , {\displaystyle E_{R}(z)=tE_{0}e^{ik_{R}z},\qquad z>L',}

where t {\displaystyle t\,} is the amplitude transmittance, k R {\displaystyle k_{R}\,} is the wave number in the rightmost medium, and L {\displaystyle L'} is the total thickness. If H L = 1 i k Z c d E L d z {\textstyle H_{L}={\frac {1}{ik}}Z_{c}{\frac {dE_{L}}{dz}}\,} and H R = 1 i k Z c d E R d z {\textstyle H_{R}={\frac {1}{ik}}Z_{c}{\frac {dE_{R}}{dz}}\,} , then one can solve

( E ( z R ) H ( z R ) ) = M ( E ( 0 ) H ( 0 ) ) {\displaystyle \left({\begin{array}{c}E(z_{R})\\H(z_{R})\end{array}}\right)=M\cdot \left({\begin{array}{c}E(0)\\H(0)\end{array}}\right)}

in terms of the matrix elements M m n {\displaystyle M_{mn}\,} of the system matrix M s {\displaystyle M_{s}\,} and obtain

t = 2 i k L e i k R L [ 1 M 21 + k L k R M 12 + i ( k R M 11 + k L M 22 ) ] {\displaystyle t=2ik_{L}e^{-ik_{R}L}\left[{\frac {1}{-M_{21}+k_{L}k_{R}M_{12}+i(k_{R}M_{11}+k_{L}M_{22})}}\right]}

and

r = [ ( M 21 + k L k R M 12 ) + i ( k L M 22 k R M 11 ) ( M 21 + k L k R M 12 ) + i ( k L M 22 + k R M 11 ) ] {\displaystyle r=\left[{\frac {(M_{21}+k_{L}k_{R}M_{12})+i(k_{L}M_{22}-k_{R}M_{11})}{(-M_{21}+k_{L}k_{R}M_{12})+i(k_{L}M_{22}+k_{R}M_{11})}}\right]} .

The transmittance and reflectance (i.e., the fractions of the incident intensity | E 0 | 2 {\textstyle \left|E_{0}\right|^{2}} transmitted and reflected by the layer) are often of more practical use and are given by T = k R k L | t | 2 {\textstyle T={\frac {k_{R}}{k_{L}}}|t|^{2}\,} and R = | r | 2 {\displaystyle R=|r|^{2}\,} , respectively (at normal incidence).

Example

As an illustration, consider a single layer of glass with a refractive index n and thickness d suspended in air at a wave number k (in air). In glass, the wave number is k = n k {\displaystyle k'=nk\,} . The transfer matrix is

M = ( cos k d sin ( k d ) / k k sin k d cos k d ) {\displaystyle M=\left({\begin{array}{cc}\cos k'd&\sin(k'd)/k'\\-k'\sin k'd&\cos k'd\end{array}}\right)} .

The amplitude reflection coefficient can be simplified to

r = ( 1 / n n ) sin ( k d ) ( n + 1 / n ) sin ( k d ) + 2 i cos ( k d ) {\displaystyle r={\frac {(1/n-n)\sin(k'd)}{(n+1/n)\sin(k'd)+2i\cos(k'd)}}} .

This configuration effectively describes a Fabry–Pérot interferometer or etalon: for k d = 0 , π , 2 π , {\textstyle k'd=0,\pi ,2\pi ,\cdots \,} , the reflection vanishes.

Acoustic waves

It is possible to apply the transfer-matrix method to sound waves. Instead of the electric field E and its derivative H, the displacement u and the stress σ = C d u / d z {\displaystyle \sigma =Cdu/dz} , where C {\displaystyle C} is the p-wave modulus, should be used.

Abeles matrix formalism

Reflection from a stratified interface source ↗

The Abeles matrix method345 is a computationally fast and easy way to calculate the specular reflectivity from a stratified interface, as a function of the perpendicular momentum transfer, Qz:

Q z = 4 π λ sin θ = 2 k z {\displaystyle Q_{z}={\frac {4\pi }{\lambda }}\sin \theta =2k_{z}}

where θ is the angle of incidence/reflection of the incident radiation and λ is the wavelength of the radiation. The measured reflectivity depends on the variation in the scattering length density (SLD) profile, ρ(z), perpendicular to the interface. Although the scattering length density profile is normally a continuously varying function, the interfacial structure can often be well approximated by a slab model in which layers of thickness (dn), scattering length density (ρn) and roughness (σn,n+1) are sandwiched between the super- and sub-phases. One then uses a refinement procedure to minimise the differences between the theoretical and measured reflectivity curves, by changing the parameters that describe each layer.

In this description the interface is split into n layers. Since the incident neutron beam is refracted by each of the layers the wavevector k, in layer n, is given by:

k n = k z 2 4 π ( ρ n ρ 0 ) {\displaystyle k_{n}={\sqrt {{k_{z}}^{2}-4\pi ({\rho }_{n}-{\rho }_{0})}}}

The Fresnel reflection coefficient between layer n and n+1 is then given by:

r n , n + 1 = k n k n + 1 k n + k n + 1 {\displaystyle r_{n,n+1}={\frac {k_{n}-k_{n+1}}{k_{n}+k_{n+1}}}}

Because the interface between each layer is unlikely to be perfectly smooth the roughness/diffuseness of each interface modifies the Fresnel coefficient and is accounted for by an error function,6

r n , n + 1 = k n k n + 1 k n + k n + 1 exp ( 2 k n k n + 1 σ n , n + 1 2 ) . {\displaystyle r_{n,n+1}={\frac {k_{n}-k_{n+1}}{k_{n}+k_{n+1}}}\exp(-2k_{n}k_{n+1}{\sigma _{n,n+1}}^{2}).}

A phase factor, β, is introduced, which accounts for the thickness of each layer.

β 0 = 0 {\displaystyle \beta _{0}=0}
β n = i k n d n {\displaystyle \beta _{n}=ik_{n}d_{n}}

where i2 = −1. A characteristic matrix, cn is then calculated for each layer.

c n = [ exp ( β n ) r n , n + 1 exp ( β n ) r n , n + 1 exp ( β n ) exp ( β n ) ] {\displaystyle c_{n}=\left[{\begin{array}{cc}\exp \left(\beta _{n}\right)&r_{n,n+1}\exp \left(\beta _{n}\right)\\r_{n,n+1}\exp \left(-\beta _{n}\right)&\exp \left(-\beta _{n}\right)\end{array}}\right]}

The resultant matrix is defined as the ordered product of these characteristic matrices

M = n c n {\displaystyle M=\prod _{n}c_{n}}

from which the reflectivity is calculated as:

R = | M 10 M 00 | 2 {\displaystyle R=\left|{\frac {M_{10}}{M_{00}}}\right|^{2}}


Application: a stack of flat layers

One can use the transfer matrix method to find the optical absorptance, reflectance, and transmittance of a stack of flat homogeneous dielectric and metallic layers at any angle of incidence. The following five steps show how this is done. The calculations are most easily done using a scientific programming language that supports complex variables and functions. The theoretical justifications are contained in the references at the end of this article.7

The transfer matrix method is used extensively in the design of multi-layer anti-reflective coatings, highly reflective coatings, beam splitters, interferometers, neutral density filters and interference filters.

1. Define the complex variables that characterize the different layers

The refractive index in layer m {\displaystyle m} at the wavelength of interest : N m = n m + i k m {\displaystyle N_{m}=n_{m}+{\text{i}}k_{m}\,}

The relative permittivity in layer m : E m = N m 2 {\displaystyle m:E_{m}=N_{m}^{2}\,}

The thickness of layer m : D m {\displaystyle m:D_{m}}

The wave number for vacuum wavelength λ , {\displaystyle \lambda ,} in layer m : K m = 2 π N m | cos ( θ m ) | / λ {\displaystyle m:K_{m}=2\pi N_{m}|\cos(\theta _{m})|/\lambda }
N o t e : D m {\displaystyle Note:D_{m}} and λ {\displaystyle \lambda } must be in the same units.

Snell's law: cos ( θ m ) = 1 sin 2 ( θ m ) = 1 ( N 1 / N m ) 2 sin 2 ( θ 1 ) {\displaystyle \cos(\theta _{m})={\sqrt {1-\sin ^{2}(\theta _{m})}}={\sqrt {1-(N_{1}/N_{m})^{2}\sin ^{2}(\theta _{1})}}}
θ m {\displaystyle \theta _{m}} is the angle relative to the interface normal.

The beam originates in the first layer 1, some fraction reflects back into layer 1, another fraction transmits into the last layer L {\displaystyle L} , and the remaining fraction (if any) is absorbed. It is assumed that layers 1 and L {\displaystyle L} are not absorptive, either because k 1 {\displaystyle k_{1}} and k L {\displaystyle k_{L}} are negligible or because the beam path in them is short. Layers 2 through L 1 {\displaystyle L-1} comprise the stack of flat dielectric and metallic layers.

2. Compute all interface matrices for s and p polarized photons.

The s-polarized interface matrix for layers m {\displaystyle m} and m + 1 {\displaystyle {m+1}} is

M s , m + 1 , m = 1 2 K m [ K m + K m + 1 K m K m + 1 K m K m + 1 K m + K m + 1 ] {\displaystyle M_{{\text{s}},m+1,m}={\frac {1}{2K_{m}}}{\begin{bmatrix}K_{m}+K_{m+1}&K_{m}-K_{m+1}\\K_{m}-K_{m+1}&K_{m}+K_{m+1}\\\end{bmatrix}}}

The p-polarized interface matrix for layers m {\displaystyle m} and m + 1 {\displaystyle {m+1}} is

M p , m + 1 , m = 1 2 K m / E m [ K m / E m + K m + 1 / E m + 1 K m / E m K m + 1 / E m + 1 K m / E m K m + 1 / E m + 1 K m / E m + K m + 1 / E m + 1 ] {\displaystyle M_{{\text{p}},m+1,m}={\frac {1}{2K_{m}/E_{m}}}{\begin{bmatrix}K_{m}/E_{m}+K_{m+1}/E_{m+1}&K_{m}/E_{m}-K_{m+1}/E_{m+1}\\K_{m}/E_{m}-K_{m+1}/E_{m+1}&K_{m}/E_{m}+K_{m+1}/E_{m+1}\\\end{bmatrix}}}

These interface matrices account for the reflection and transmission between layers m {\displaystyle m} and m + 1 {\displaystyle m+1} , in accordance with the Fresnel equations.

3. Compute all propagation matrices

The propagation matrix for layer m {\displaystyle m} of thickness D m {\displaystyle D_{m}} is
P m = [ exp ( -i K m D m ) 0 0 exp ( i K m D m ) ] {\displaystyle P_{m}={\begin{bmatrix}\exp({\text{-i}}K_{m}D_{m})&0\\0&\exp({\text{i}}K_{m}D_{m})\\\end{bmatrix}}} .

This matrix phase shifts and attenuates the electric field in layer m {\displaystyle m}
exp ( i K m D m ) = exp ( i 2 π n m D m cos ( θ m ) / λ ) exp ( 2 π k m D m cos ( θ m ) / λ ) {\displaystyle \exp({\text{i}}K_{m}D_{m})=\exp({\text{i}}2\pi n_{m}D_{m}\cos(\theta _{m})/\lambda )\quad \exp(-2\pi k_{m}D_{m}\cos(\theta _{m})/\lambda )}

Example: The transmitted power T {\displaystyle T} is proportional to the square of the attenuated field, so for the example of normal incidence in layer m {\displaystyle m} , T exp ( 4 π k m D m / λ ) = exp ( D m / d ) {\displaystyle \quad T\propto \exp(-4\pi k_{m}D_{m}/\lambda )=\exp(-D_{m}/d)} ,
which corresponds to the optical penetration distance d = λ / ( 4 π k m ) {\displaystyle d=\lambda /(4{\pi }k_{m})} .

4. Multiply the interface and propagation matrices (in the proper order)

The combined transfer matrices for s and p polarized photons are
[ M s11 M s12 M s21 M s22 ] = M s , L , L 1 P L 1 . . . . . P m + 1 M s , m + 1 , m . . . . . P 2 M s , 2 , 1 {\displaystyle {\begin{bmatrix}M_{\text{s11}}&M_{\text{s12}}\\M_{\text{s21}}&M_{\text{s22}}\\\end{bmatrix}}=M_{{\text{s}},L,L-1}P_{L-1}.....P_{m+1}M_{{\text{s}},m+1,m}.....P_{2}M_{{\text{s}},2,1}}

[ M p11 M p12 M p21 M p22 ] = M p , L , L 1 P L 1 . . . . . P m + 1 M p , m + 1 , m . . . . . P 2 M p , 2 , 1 {\displaystyle {\begin{bmatrix}M_{\text{p11}}&M_{\text{p12}}\\M_{\text{p21}}&M_{\text{p22}}\\\end{bmatrix}}=M_{{\text{p}},L,L-1}P_{L-1}.....P_{m+1}M_{{\text{p}},m+1,m}.....P_{2}M_{{\text{p}},2,1}}

The matrix multiplication must be done from right to left (first compute the product P 2 M 2 , 1 {\displaystyle P_{2}M_{2,1}} ,
then the product M 3 , 2 [ P 2 M 2 , 1 ] {\displaystyle M_{3,2}[P_{2}M_{2,1}]} ), then the product P 3 [ M 3 , 2 ( P 2 M 2 , 1 ) ] {\displaystyle P_{3}[M_{3,2}(P_{2}M_{2,1})]} , etc.). The order is critical since matrix multiplication is not commutative.

5. Compute the absorptance, reflectance, and transmittance of the stack

The combined transfer matrices contain the overall reflectance, transmission, and absorption of the stack and account for multiple reflections.

The reflectance coefficients for s and p polarized photons are
r s = M s21 / M s11 r p = M p21 / M p11 {\displaystyle r_{\text{s}}=M_{\text{s21}}/M_{\text{s11}}\quad r_{\text{p}}=M_{\text{p21}}/M_{\text{p11}}}

The transmittance coefficients for s and p polarized photons are
t s = 1 / M s11 t p = 1 / M p11 {\displaystyle t_{\text{s}}=1/M_{\text{s11}}\quad t_{\text{p}}=1/M_{\text{p11}}}

The reflected powers for s and p polarized photons are
R s = | r s | 2 R p = | r p | 2 {\displaystyle R_{s}=|r_{\text{s}}|^{2}\quad R_{p}=|r_{\text{p}}|^{2}}

The reflected power for unpolarized light is the average
R = 0.5 R s + 0.5 R p {\displaystyle R=0.5R_{s}+0.5R_{p}}

The transmitted powers for s and p polarized photons are
T s = n N cos ( θ N ) n 1 cos ( θ 1 ) | t s | 2 T p = cos ( θ N ) / n N cos ( θ 1 ) / n 1 | t p | 2 {\displaystyle T_{s}={\frac {n_{N}\cos(\theta _{N})}{n_{1}\cos(\theta _{1})}}|t_{\text{s}}|^{2}\quad T_{p}={\frac {\cos(\theta _{N})/n_{N}}{\cos(\theta _{1})/n_{1}}}|t_{\text{p}}|^{2}}

The transmitted power for unpolarized light is the average
T = 0.5 T s + 0.5 T p {\displaystyle T=0.5T_{\text{s}}+0.5T_{\text{p}}}

The absorbed power is
A = 1 R T {\displaystyle A=1-R-T}

See also

See also

References

References

  1. Born, M.; Wolf, E., Principles of optics: electromagnetic theory of propagation, interference and diffraction of light. Oxford, Pergamon Press, 1964.
  2. Mackay, T. G.; Lakhtakia, A., The Transfer-Matrix Method in Electromagnetics and Optics. San Rafael, CA, Morgan and Claypool, 2020. doi:10.2200/S00993ED1V01Y202002EMA001
  3. O. S. Heavens. Optical Properties of Thin Films. Butterworth, London (1955).
  4. Névot, L.; Croce, P. (1980). "Caractérisation des surfaces par réflexion rasante de rayons X. Application à l'étude du polissage de quelques verres silicates" (PDF). Revue de Physique Appliquée (in French). 15 (3). EDP Sciences: 761–779. doi:10.1051/rphysap:01980001503076100. ISSN 0035-1687. S2CID 128834171.
  5. Abelès, Florin (1950). "La théorie générale des couches minces" [The generalized theory of thin films] (PDF). Journal de Physique et le Radium (in French). 11 (7). EDP Sciences: 307–309. doi:10.1051/jphysrad:01950001107030700. ISSN 0368-3842.
  6. Névot & Croce (1980).
  7. Steven J. Byrnes (2020). "Multilayer optical calculations", arXiv1603.02720v5
Further reading

Further reading

External links

There are a number of computer programs that implement this calculation: