ABCD Matrix
Definition: a 2-by-2 matrix describing the effect of an optical element on a laser beam
Alternative term: ray transfer matrix
Categories: general optics, optical resonators, methods
Purchasing: see our Buyer's Guide page for resonator design software – buyer-oriented background information, selection criteria and supplier list
Summary of this article
An ABCD matrix, or ray transfer matrix, is a 2-by-2 matrix used in optics to describe the effect of an optical element on a light beam under the paraxial approximation. The article explains its application in two main areas: geometrical optics and wave optics.
In geometrical optics, the matrix is used to calculate the transformation of a ray's parameters, namely its transverse offset and angle . In wave optics, it is used to calculate the propagation of Gaussian beams by transforming the complex q-parameter, which combines the beam radius and the radius of curvature of the wavefronts.
The article presents the specific matrices for various optical components like lenses, curved mirrors, and sections of free space, and explains how to combine them for sequences of elements. Typical applications include analyzing beam propagation in optical systems and, most importantly, the design of optical resonators, particularly laser resonators, where the resonator modes are determined from the round-trip matrix.
(This summary was generated with AI based on the article content and has been reviewed by the article’s author.)
What Are ABCD Matrices?
An ABCD matrix [1] is a 2-by-2 matrix associated with an optical element which can be used for describing the element's effect on a laser beam. The matrix elements are usually real numbers, but can be complex in certain cases.
Such a matrix can be used both in geometrical optics, where geometrical rays are propagated, and for propagating Gaussian beams in the context of wave optics. This can be expanded to Hermite–Gaussian beams, while ABCD matrices are generally not usable for propagation of arbitrary beam shapes, where numerical beam propagation is needed.
The paraxial approximation is always required for ABCD matrix calculations, i.e., the involved beam angles or divergence angles must stay small for the calculations to be accurate. That condition is often very well fulfilled in practice, but not e.g. in cases with very tight focusing.
The ABCD matrix method should not be confused with a different matrix method for calculating the reflection and transmission properties of dielectric multilayer coatings.
Ray Optics
Originally, the concept was developed in geometrical optics for calculating the propagation of light rays with some transverse offset and offset angle from a reference axis (Figure 1). As long as the angles involved are small enough (→ paraxial approximation), there is a linear relation between the and coordinates before and after an optical element. The following equation can then be used for calculating how these parameters are modified by an optical element:

Figure 1: Definition of and before an after an optical system.
where the primed quantities (left-hand side) refer to the beam after passing the optical component. The ABCD matrix (also called ray transfer matrix) is a characteristic of each optical element.
For example, a thin lens with focal length has the following ABCD matrix:
This shows that the offset remains unchanged, whereas the offset angle experiences a change in proportion to .
Propagation through free space over a distance is associated with the matrix
which shows that the angle remains unchanged, whereas the beam offset is increasing or decreasing according to the angle.
Further examples of ABCD matrices are given below.
One can show that the determinant of an ABCD matrix () always must be 1 as long as the refractive index is the same on the input and output side; otherwise, it is the input refractive index divided by the output refractive index. This also implies that an ABCD matrix can never be singular; it can always be inverted.
ABCD Matrix Calculations
The software RP Resonator uses ABCD matrices – or actually ABCDEF matrices, also treating misalignment effects – for calculating the mode properties of optical resonators. This is vital for laser development, for example. This tool is particularly flexible, allowing even rather sophisticated resonator design optimizations. For example, you can take into account alignment sensitivity and thermal lensing, and even design a resonator for operation in a specific stability zone.
Modified Matrices
For situations where beams propagate through dielectric media, it is convenient to use a modified kind of beam vectors, where the lower component (the angle) is multiplied by the refractive index:
This can somewhat simplify the ABCD matrices for certain situations. In numerous instances of free-space optics it makes no difference, since the beams are considered only at positions in air where . However, equations for interfaces between different media, for example, are affected.
The determinant of such a modified ABCD matrix () is always 1.
Propagation of Gaussian Beams
ABCD matrices can also be used for calculating the effect of optical elements on the parameters of a Gaussian beam. A convenient quantity for that purpose is the complex parameter, which contains information on both the beam radius and the radius of curvature of the wavefronts:
The following equation shows how the parameter is modified by an optical element:
The fractional-linear transformation of the Gaussian parameter assumes that the field remains an ideal Gaussian under a first-order optical system. It therefore does not include diffraction loss or beam reshaping at hard apertures, spatially varying gain saturation, or higher-order transverse-mode coupling; such effects require physical-optics propagation rather than only ABCD matrices.
ABCD Matrices of Important Optical Elements
The following list gives the ABCD matrices of frequently used optical elements.
Air space with length :
(For propagation in a transparent medium, the length has to be divided by the refractive index , if the above-mentioned modified definition is used where the lower component (the angle) is multiplied by the refractive index.)
Lens with focal length (where positive applies for a focusing lens):
Curved mirror with curvature radius (>0 for concave mirror), incidence angle in the horizontal plane:
with in the tangential plane (horizontal direction) and in the sagittal plane (vertical direction).
Gaussian duct:
where the radially varying refractive index is
and the modified definition of beam vectors – with the angle multiplied by the refractive index (see above) – is used.
Various textbooks (see e.g. Ref. [5]) specify the ABCD matrices for other types of optical components.
Note that there are optical elements (e.g. axicons) which cannot be described by ABCD matrices, and which convert a Gaussian beam into a non-Gaussian beam.
For non-planar layouts or elements whose principal planes rotate, the two transverse coordinates are generally coupled. Then a pair of independent 2-by-2 ABCD matrices for the tangential and sagittal planes is not sufficient; one requires a 4-by-4 first-order ray matrix acting on , from which general astigmatism and image rotation can be described.
Combining Multiple Optical Elements
If a beam propagates through several optical elements (including any air spaces in between), this means that the () vector is subsequently multiplied by various matrices. Instead, a single matrix may be used, which is the matrix product of all the single matrices. Note that the first optical element must be on the right-hand side of that product – matrix multiplications are not commutative, and the same holds for optical elements.
Example:
- combined matrix for free-space propagation length with distance , followed by a lens with focal length :
- combined matrix for a lens with focal length , followed by free-space propagation length with distance :
Typical Applications
Some typical applications of the ABCD matrix algorithm are:
- It is often of interest how a laser beam propagates through some optical setup. Both the geometric path of a ray and the evolution of the beam radius can be calculated.
- The changes in beam parameters within one complete round trip in a resonator can be described by an ABCD matrix. The properties of resonator modes can then be obtained from the matrix components. This is essential for resonator design, in particular for laser resonators.
- An extended algorithm, involving an ABCDEF matrix (a 3-by-3 matrix with some constant components), can be used for calculating the alignment sensitivity of a laser resonator [3].
Software
ABCD matrices are usually computed with suitable software – most frequently, either by general optical design software or resonator design software. Outputs are often not the matrix components themselves, but rather other things computed based on those, such as resulting beam or mode properties. Users of such software are thus not directly dealing with these matrices.
When selecting resonator design software for ABCD-based work, check whether it can automate parameter sweeps and numerical optimization, vary thermal-lens dioptric power, and treat tangential/sagittal astigmatism or full 3D geometries when needed. Scripting interfaces are especially valuable when the design target is a compound figure of merit rather than a single beam radius. See our Buyer's Guide for resonator design software for more details.
Purchasing
For professional purchasing, our buyer's guide for resonator design software explains additional buyer-oriented technical background and suggests selection criteria: Physical modeling method, Optimization capabilities, 3D and astigmatism support, Scripting and automation, Thermal lensing simulation, Visualization and output, Alignment sensitivity calculation, Dispersion calculation. It also lists 10 suppliers of resonator design software. One of these shows their product descriptions as sponsored content:
💻 software





Our RP Resonator software is a particularly flexible tool for sophisticated resonator design analysis and optimization – including the sensitivity to misalignment and intracavity beam aberrations.
Frequently Asked Questions
This FAQ section was generated with AI based on the article content and has been reviewed by the article’s author (RP).
What is an ABCD matrix?
An ABCD matrix is a 2×2 matrix used in optics to describe how an optical element, such as a lens or a free-space path, affects a light ray or a Gaussian laser beam.
How are ABCD matrices used to trace geometric light rays?
A light ray is described by a vector containing its transverse position and angle. Multiplying this vector by the ABCD matrix of an optical element gives a new vector for the ray's position and angle after the element.
How can ABCD matrices be used for Gaussian beams?
For Gaussian beams, the complex parameter, which encodes the beam radius and wavefront curvature, is propagated through an optical system using a specific transformation rule involving the matrix elements , , and .
What is the main limitation of the ABCD matrix method?
The ABCD matrix formalism is only accurate under the paraxial approximation, meaning that all light rays must travel at small angles to the optical axis. It is also generally not usable for arbitrary beam shapes, only for Gaussian-type beams.
How do you model a system with multiple optical components?
An entire optical system can be described by a single equivalent ABCD matrix, obtained by multiplying the matrices of all individual components (in correct order).
What are some common applications of the ABCD matrix formalism?
It is commonly used to calculate laser beam propagation through an optical setup, to analyze the properties and modes of optical resonators, and to determine the alignment sensitivity of a laser resonator.
Bibliography
| [1] | H. Kogelnik and T. Li, “Laser beams and resonators”, Appl. Opt. 5 (10), 1550 (1966); doi:10.1364/AO.5.001550 |
| [2] | P. A. Bélanger, “Beam propagation and the ABCD ray matrices”, Opt. Lett. 16 (4), 196 (1991); doi:10.1364/OL.16.000196 |
| [3] | O. E. Martínez, “Matrix formalism for dispersive laser cavities”, IEEE J. Quantum Electron. 25 (3), 296 (1989); doi:10.1109/3.18543 |
| [4] | K. A. Menard, “From ray tracing to modal characterization: a tutorial on Gaussian beam system analysis”, Opt. Eng. 65 (10), 102002 (2026); doi:10.1117/1.oe.65.10.102002 |
| [5] | A. E. Siegman, Lasers, University Science Books, Mill Valley, CA (1986) |

