← Articles

How to Measure M² Beam Quality: Camera and Knife-Edge Methods

Procedure for measuring laser beam quality (M²) per ISO 11146 with a beam-profiling camera or a knife edge: second-moment (D4σ) widths and why baseline noise inflates them, the caustic scan through a focus, hyperbolic fitting, automated M² systems, and the dominant errors.

Published May 12, 2026Updated October 6, 202616 min read

Scope

This article describes the procedure for measuring the M² beam quality parameter of a laser beam according to ISO 11146 (Test methods for laser beam widths, divergence angles, and beam propagation ratios). The measurement has two parts: measuring the beam's width at a series of positions through a focus, and fitting those widths to the propagation law. The widths can be measured with a beam-profiling camera, using the second-moment (D4σ) method, or with the knife-edge method; both are given here in procedural detail, together with the hyperbolic fit, a worked example, automated M² systems, and the dominant sources of error. Scanning-slit profilers follow the knife-edge principle and are mentioned for comparison. Measuring divergence alone, without the full caustic, is covered in How to Measure Laser Beam Divergence.

Definition

The beam quality parameter M2 (also called the beam propagation ratio) compares the divergence of a real beam to that of an ideal Gaussian beam of the same waist size. For a Gaussian beam of waist radius w0 propagating in the z direction, the beam radius evolves as:

w(z)  =  w01+(z−z0zR)2,zR  =  πw02λ,

where z0 is the position of the waist and zR is the Rayleigh range. The far-field divergence half-angle is θ=λ/(πw0).

For a real (non-Gaussian) beam, the same hyperbolic functional form applies, but the divergence is scaled by M2≥1:

w(z)=w01+M4(z−z0zRG)2,zRG=πw02λ,

equivalently expressed in terms of beam waist and divergence:

M2  =  πw0θλ.

M2=1 corresponds to an ideal diffraction-limited Gaussian beam (the Gaussian Beam Calculator computes its waist, Rayleigh range and divergence). Higher values indicate the beam diverges faster than the corresponding ideal Gaussian, requiring tighter optics or larger apertures to deliver the same beam quality at distance.

Typical M2 values:

SourceTypical M2
Single-mode HeNe laser1.0–1.05
Single-mode fiber laser output1.05–1.1
Single-spatial-mode semiconductor laser1.1–1.3
Multi-mode fiber-coupled laser5–100
Broad-area edge-emitting laser, slow axis5–50
Broad-area edge-emitting laser, fast axis1.0–1.5
High-power solid-state laser1.5–10
LED≥100

For asymmetric beams (such as edge-emitter outputs), M2 is reported separately for the two principal axes, Mx2 and My2.

Beam width definition

ISO 11146 specifies the second-moment beam width (the D4σ width) as the standard width for M2 extraction:

w2  =  4σ2  =  4∬(x−xc)2 I(x,y) dx dy∬I(x,y) dx dy,

where I(x,y) is the intensity distribution and xc is the centroid. Here w=2σ is the second-moment radius; the D4σ diameter is 2w=4σ. For a Gaussian beam, w equals the conventional 1/e2 intensity radius exactly (and the D4σ diameter equals the 1/e2 diameter). For non-Gaussian beams, the D4σ width remains well-defined and produces an M2 value consistent with the divergence-based definition.

Alternative width definitions include full-width-half-maximum (FWHM), 1/e, and 1/e2. These produce different numerical values for non-Gaussian beams and must not be used for M2 extraction without explicit conversion. ISO 11146 is unambiguous: use D4σ.

Choosing how to measure the width

MethodWhat it recordsStrengthsLimits
Beam-profiling camera (CCD or CMOS)The full two-dimensional intensity in one frameD4σ computed directly in both axes; shows beam structure, astigmatism and rotation; captures a pulsed beam in a single frameSensor size and pixel pitch limit the beam sizes; needs attenuation; sensitive to baseline offset (below); silicon sensors cover roughly the visible to about 1.1 μm, other wavelengths need InGaAs, pyroelectric or phosphor-converted sensors
Knife edgeThe power passing the edge as it crosses the beam, one axis at a timeAny wavelength a power meter can detect; high power; beams from a few microns to centimetersSlow; one-dimensional; needs a stable beam over the scan; pulsed sources need synchronization
Scanning slitThe power through a slit crossing the beamFast repetitive scans; wide dynamic rangeOne-dimensional; the slit width must be small compared with the beam

The camera is the method of choice when the beam fits on the sensor and the wavelength suits it, because it measures the second moment the standard specifies and shows the whole profile. The knife edge covers the cases the camera cannot: wavelengths outside the sensor's range, very small or very large beams, and powers that are awkward to attenuate.

Camera-based measurement (second-moment method)

Setting up the camera

  1. Attenuate before the camera. Use reflective attenuation (uncoated wedge pickoffs) or neutral-density filters of good optical quality, placed where they do not distort the beam; a filter placed in a converging beam near a focus can add aberration, and multiple reflections between filters can add ghost images. Set the attenuation so the peak pixel sits well within the sensor's linear range, below saturation but using most of its dynamic range.
  2. Match the beam to the sensor. The beam's 1/e2 diameter should cover many pixels (a common rule of thumb is at least ten across the diameter, more for structured beams) and fit within the sensor with room for the wings: the integration region below extends to about three times the beam width.
  3. Take a dark frame. With the beam blocked, record the background and subtract it from every image. Ambient light, sensor offset and fixed-pattern noise all appear in it.
  4. Remove the protective window if the maker allows it, or use a camera with a wedged window; interference between the window's surfaces and the sensor produces fringes in a coherent beam.

Why the baseline matters

The second moment weights each pixel by the square of its distance from the centroid, so a small uniform residual far from the beam contributes heavily. For a Gaussian beam of diameter D integrated over a square region three times D on a side, a residual background equal to a fraction of the peak intensity inflates the D4σ width as follows (computed from the second-moment integral):

Residual background (fraction of peak)D4σ width over a 3D regionOver a 5D region
0.1%1.12 D1.71 D
0.5%1.46 D2.97 D
1%1.75 D3.68 D

A background that is invisible in the image therefore makes the width, and the M² computed from it, far too large, and a larger integration region makes it worse. For this reason ISO/TR 11146-3 describes baseline correction and restricts the integration to a region a few times the beam width, found iteratively: compute the width, set the region from it, recompute, and repeat until the width stops changing. Profiler software implements this; its settings, not the default display width, decide whether the reported value is the ISO second-moment width.

Measuring the caustic

The camera is moved along the beam through a focus, as in the procedure below, and the D4σ width is recorded in both principal axes at each position. For a beam whose axes are rotated relative to the sensor, the software's principal-axis widths should be used rather than the widths along the sensor's rows and columns. A camera behind a lens on a motorized rail, stepping through the focus and fitting the result, is what commercial M² measurement systems automate; the physics, the ISO point distribution and the error sources are the same as for a manual measurement.

Knife-edge method principle

A knife-edge is translated transversely across the beam at fixed propagation distance z. As the edge moves from fully blocking to fully unblocking the beam, the transmitted power P(x) traces a sigmoid curve. The intensity profile is the derivative of this curve:

I(x)  =  −dPdx.

For a Gaussian beam, the transmitted power as a function of edge position has the form of an erf function:

P(x)  =  Pmax2[1−erf(2(x−xc)w)],

where w is the 1/e2 intensity radius. Fitting the measured P(x) to this form extracts w directly.

For non-Gaussian beams, the second-moment width can be extracted from the knife-edge data either by numerical differentiation followed by second-moment integration, or by fitting to a generalized lineshape. For near-Gaussian beams the Gaussian erf fit gives a width within a few percent of the true D4σ; for flat-top, multimode or pedestal-bearing beams the two can differ by 10 to 20% or more, and the second-moment route should be used.

The knife-edge method has two important practical advantages over camera-based methods:

  1. No pixel saturation for high-power beams: the integrating detector sees the whole unmasked beam, so only its total-power linear range matters (see Detector saturation below).
  2. No wavelength-limited sensor: knife-edge measurements work at wavelengths where CCDs are not available (deep UV, mid-IR, THz).

The corresponding limitation is that the knife-edge method measures one-dimensional integrated profiles. Two orthogonal scans (knife edges along x and y) give the widths along the two axes, and the full two-dimensional distribution only for a separable beam; for highly non-symmetric beams, beams with rotated principal axes, or beams with complex spatial structure, camera methods are preferred. The knife-edge measurement entry gives the relation between the 10–90% edge distance and the beam radius used for quick single-plane checks.

Equipment

FunctionComponentSpecification
Focusing opticLens of high optical qualityAberration-free over the beam aperture; focal length chosen to produce waist size compatible with knife-edge resolution
Width measurementBeam-profiling camera with attenuation, or a razor blade or specialized knife on a linear translation stageCamera: pixel pitch small compared with the beam; knife edge: sub-micron resolution, encoded position readout
Z-axis translationMotorized linear stage≥6×zR travel range (real-beam zR); calibrated absolute position
PhotodetectorCalibrated power meterLinear range covering full unblocked power; bandwidth > knife scan rate
Beam sourceLaser under testStable output power (≤1% drift over measurement duration)

The focusing lens transforms the input beam to produce a measurable waist. For a high-quality lens (f-number >4, low aberrations), the lens preserves M2 and the measured waist parameters apply to the input beam after correction by the lens focal length.

For input beams that are already focused (such as fiber outputs), the lens may be unnecessary; the input beam waist is measured directly in the existing focus region.

Procedure

ISO 11146-1 specifies the measurement procedure in detail. The essential elements:

1. Configure the focused beam

Place the focusing lens in the beam path. Identify the approximate waist position z0 by observing the beam diameter through the focus region. The stage should reach well beyond ±2zR on either side of the waist (about ±3zR), where zR=w0/θ=zRG/M2 is the Rayleigh range of the real beam, M2 times shorter than the ideal-Gaussian value zRG above, so that half of the positions can lie beyond 2zR.

For a collimated input beam and lens focal length f, the focused waist has radius approximately

w0  ≈  M2λfπwin,

where win is the input beam radius at the lens. Choose f so that w0 is in the range 20−200 μm for convenient knife-edge measurement.

2. Measure the width at multiple z positions

ISO 11146-1 requires at least 10 measurement positions distributed as follows:

  • Half within ±zR of the waist (the near-field region)
  • Half beyond ±2zR from the waist (the far-field region)

Even distribution is not required; the asymmetric distribution (more points near the waist where small width variations are visible, more points in the far field where divergence is established) gives the best fit.

At each z position, record a camera frame and compute the D4σ widths as described above, or perform a knife-edge scan:

  1. Translate the knife from fully blocking to fully unblocking the beam
  2. Record transmitted power P(x) at ≥30 knife positions
  3. Subtract any background (with knife fully blocking)

Record both the absolute z position and the resulting transmitted power curve.

3. Repeat for orthogonal axis

Rotate the knife edge by 90° (or use a second knife edge oriented perpendicular to the first). Repeat the scan series for the y axis. The orthogonal axis must be measured at the same z positions to enable proper Mx2 and My2 extraction for asymmetric beams.

For circularly symmetric beams, only one orientation is necessary; for any beam from a non-symmetric source (edge-emitter, fiber-coupled with poor mode matching, etc.), both axes are required.

4. Extract beam width at each z

Camera measurements give the D4σ width directly. For each knife-edge scan, fit the transmitted power to the erf function:

P(x)  =  Pmax2[1−erf(2(x−xc)w(z))]+Pbg.

The fit has four free parameters: w(z), xc, Pmax, and Pbg. The fitted w(z) is the 1/e2 intensity radius at this z position.

For non-Gaussian beams, the erf fit may not capture the lineshape well; in this case, numerically differentiate P(x) to obtain I(x) and compute the second moment directly:

w(z)2  =  4⋅∑i(xi−xc)2I(xi)∑iI(xi).

5. Fit the hyperbolic propagation

Plot w(z)2 versus z for each axis. The data follows:

w(z)2  =  w02+(M2λπw0)2(z−z0)2.

Equivalently, in terms of the asymptotic divergence half-angle θ=M2λ/(πw0):

w(z)2  =  w02+θ2(z−z0)2.

Perform a least-squares fit on w(z)2 versus z, with three free parameters: w0, z0, and θ (or equivalently M2).

6. Compute M²

From the fit:

M2  =  πw0θλ.

Report:

  • M2 for both axes (Mx2 and My2)
  • Waist radius w0 for both axes
  • Waist position z0
  • Rayleigh range zR
  • 95% confidence interval on M2 from the fit
  • Number of data points N and range zmin to zmax in units of zR

Worked example

A 1064 nm fiber-coupled solid-state laser is focused through an aspheric lens with f=50 mm. The focused beam is scanned over ±4 mm around the apparent focus position, with 10 knife-edge scans per axis at:

z=−4.0,−3.0,−2.0,−1.0,−0.4,0.0,0.4,1.0,2.0,4.0 mm

(relative to nominal focus). At each z, the erf fit to the knife-edge scan gives:

z (mm)wx (μm)wy (μm)
−4.0285270
−3.0220205
−2.0150142
−1.09288
−0.46562
0.05856
0.46260
1.08986
2.0145138
4.0280265

Fitting w2 versus z to the hyperbolic form gives:

AxisWaist radius w0Divergence θM2=πw0θ/λ
x56.7 μm0.069 rad11.6
y54.6 μm0.065 rad10.5

For the x-axis, Mx2=π×56.7 μm×0.069/1064 nm=11.6, and the fitted waist lies at z0,x = 0.043 mm.

The fitted z0 differs slightly from nominal because the operator's reference position was not exactly at the true waist; the fit recovers the true position. The real-beam Rayleigh range is w0/θ = 0.82 mm for x and 0.84 mm for y, so three of the ten positions lie within ±zR and five beyond ±2zR; a set that follows ISO 11146 would move the two positions at ±1.0 mm inside ±0.8 mm.

The resulting M2≈11 is consistent with a multi-mode fiber-coupled solid-state laser. The slight asymmetry (Mx2>My2) reflects the residual asymmetry of the fiber-coupled output mode.

Sources of measurement error

Insufficient points outside the Rayleigh range. The hyperbolic fit's divergence parameter is constrained primarily by far-field data points (∣z−z0∣>zR). Measurements that cluster near the waist produce poorly-constrained divergence and large M2 uncertainty. ISO 11146 specifies the asymmetric distribution (half near, half far) for this reason.

Lens aberrations. Spherical aberration in the focusing lens redistributes intensity in the focal region and can artificially inflate M2. Use of a low-aberration aspheric or apochromatic lens, and avoidance of operation at large fractions of the lens NA, mitigate this contribution. Standard guideline: lens f-number >4.

Beam clipping. If the beam diameter exceeds the lens aperture at any point in the optical path, the clipped beam has artificially elevated divergence and M2. The clear aperture must accommodate ≥3w for negligible clipping.

Background light. Stray light reaching the detector during the knife-edge scan adds a baseline that shifts the apparent beam centroid and broadens the apparent profile. Subtract background measured with knife fully blocking; for very weak beams, use lock-in detection.

Knife-edge diffraction. As the waist approaches a few wavelengths, diffraction at the edge and the edge's finite sharpness distort the measured profile and the erf model loses accuracy. With a sharp edge and a detector that collects all of the transmitted light, waists of a few micrometers can still be measured.

Camera baseline and saturation. An unsubtracted background inflates the D4σ width, as tabulated above; a saturated peak flattens the profile and does the same. Check the dark frame and the peak pixel value at every position, since the beam's peak intensity changes by orders of magnitude through the focus and the attenuation may need to change with it.

Detector saturation. During the unblocked portion of a knife-edge scan, the detector receives the full beam power. Operation in the linear range of the detector must be verified, particularly for pulsed lasers, where peak power may saturate even at low average power.

Beam position drift during the measurement. A 10-position M2 measurement takes minutes; if the beam drifts laterally during this time, the measured profile centroids shift and the apparent width may be inflated. Active beam stabilization or short measurement times mitigate this.

Mistaken use of FWHM or 1/e2 width. Reporting M2 using a non-D4σ width is a common literature error. The numerical M2 value from a Gaussian-fit 1/e2 width and from a true D4σ measurement differ for non-Gaussian beams. For diffraction-limited or near-Gaussian beams, the difference is small (a few percent); for high-M2 beams with complex structure, the difference can be 20% or more.

Polarization-dependent reflectivity at high incidence angles. For beams measured at non-normal incidence on lenses or beam splitters, polarization-dependent transmission may distort the measured profile. Use S- or P-polarized input where possible, or characterize the polarization dependence.

Validation

The fit residuals on w2 versus z should be randomly distributed about zero with no systematic trend. Visible curvature in the residuals indicates either lens aberration, beam clipping, or fit failure.

For a diffraction-limited reference source (single-mode HeNe or single-mode fiber output), the measured M2 should fall in the range 1.0–1.1. Values significantly higher indicate measurement error, not source quality.

Repeated measurement on the same source under nominally identical conditions should agree within ±5%. Drift larger than this indicates source instability, beam drift, or measurement chain issues.

For asymmetric beams, the geometric mean Mx2My2 is often quoted as a single quality metric; report both axes to enable proper system design.

References

For the controlling international standard, see ISO 11146-1:2021, Lasers and laser-related equipment: Test methods for laser beam widths, divergence angles, and beam propagation ratios, and ISO/TR 11146-3 for the intrinsic and geometrical beam classification, propagation and details of test methods, including baseline correction for camera measurements. For the original theoretical treatment of beam quality and the M² formalism, see Siegman (1990, 1993) on new developments in laser resonators and beam quality. For practical comparison of knife-edge, slit, and CCD methods, see Roundy (1999) and the SPIE proceedings on laser beam profiling.