Home / Science / Physics / Optics and photonics / Gaussian beam calculatorTool #930

Gaussian beam calculator: laser waist, Rayleigh range and divergence through lenses and mirrors (ABCD)

Put lenses and curved mirrors on an optical rail and follow a laser beam through them with the complex beam parameter q and ABCD matrices: the size and position of every new waist, Rayleigh range, divergence, beam radius and wavefront curvature anywhere, with M² for real lasers.

Keep it one tap away for everyday use.

Bookmark Gaussian beam calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Beam
  2. Rail
  3. Propagate
  4. Waists
Nothing is uploadedWorks offline once open

Beam

Waist radius: the 1/e² intensity radius at the narrowest point (half the diameter on a laser's data sheet). Waist position: where that waist is on the rail; negative means before the start (inside the laser). M² = 1 for a perfect Gaussian beam; real lasers are 1.05 to 1.5 or more, which makes the beam spread faster.

A curved mirror is drawn as a lens with f = R/2 on a straight ("unfolded") rail: the beam continues after it as if the mirror were a lens. The example (a 3× beam expander then a focusing lens) is made up.

Result

Each stretch of the rail

Thin-lens, paraxial Gaussian optics: no aberrations, no clipping by apertures, and every element is treated as having zero thickness. For study and planning; check a real set-up with a beam profiler.

Download

What it does

A laser beam is not a bundle of straight rays: it has a narrowest point, the waist, and spreads on either side of it in a smooth, predictable way. Near the waist the beam stays nearly parallel for a distance called the Rayleigh range z_R = π w₀² / (M² λ); far away it spreads at a fixed divergence angle θ = M² λ / (π w₀). A lens or curved mirror does not make a point focus but a new waist somewhere else, with a new size.

This calculator follows the beam along a straight optical rail using the complex beam parameter q = (z − z_waist) + i z_R. Free space adds the distance to q, and a thin lens of focal length f changes 1/q by −1/f (the ABCD law). After every element you get the new waist radius and position, its Rayleigh range and divergence, and a plot of the beam radius along the whole rail.

How to use it

  1. Type the wavelength in nanometres (633 for a red helium-neon laser, 1064 for Nd:YAG, 532 for a green pointer).
  2. Give the beam quality M²: 1 for an ideal TEM₀₀ beam, a little more for real lasers. Every formula then uses M²·λ in place of λ (the “embedded Gaussian”), so a poorer beam spreads faster and focuses to a larger spot.
  3. Give the waist radius w₀ (the 1/e² intensity radius, half the data-sheet diameter) and where the waist is on the rail. A negative position means the waist is before the start, for example inside the laser.
  4. Set the rail length and list the elements, one per line: lens 200 50 is a lens at 200 mm with f = 50 mm (negative for a diverging lens); mirror 400 500 is a concave mirror of radius 500 mm, used as a lens of f = R/2. Add a name at the end if you like.
  5. Look at position gives the beam radius, diameter, wavefront radius and Gouy phase at any point.

What the results mean

  • Waist at a position before the stretch it belongs to is a virtual waist: the beam after that lens is diverging as if it came from there.
  • Beam parameter product w₀ × θ never changes through ideal lenses: you can trade a small spot for a large divergence, never beat it.
  • The ABCD matrix of the whole rail lets you check your own hand calculation; its determinant is always 1.
  • The table lists each stretch: the waist that describes the beam there, and the beam radius at each end of it.

Worked example

The made-up example is a helium-neon laser (633 nm, M² = 1) with a 0.5 mm waist at the start of the rail. Its Rayleigh range is 1,241 mm and its divergence 0.403 mrad. Lenses of 50 mm at 200 mm and 150 mm at 400 mm form a 3× beam expander (their spacing equals f₁ + f₂): the first makes a tiny 20.0 µm waist at 250.2 mm, and after the second the waist is exactly 1.5 mm (virtual, at −800 mm) with the divergence cut to 0.134 mrad. A 250 mm lens at 600 mm then focuses it to a 33.4 µm waist at 850.6 mm, with a Rayleigh range of only 5.54 mm. At the rail end (1,000 mm) the beam is 0.902 mm in radius again. With M² = 1.3 instead, the focus grows to 43.3 µm and moves to 851.0 mm.

Tips

  • To focus tightly, expand the beam first: the focused waist is about M² λ f / (π w) for a beam of radius w on the lens.
  • A lens placed one focal length after a waist puts the new waist one focal length after the lens, whatever the beam size.
  • For a folded set-up with mirrors, measure positions along the beam path, not across the table.

FAQ

Why is the focus not where the lens focal length says? A Gaussian beam’s waist is at the focal point only when the incoming beam is collimated far beyond its Rayleigh range. Otherwise the waist shifts towards the lens (Self’s formula, which this tool reproduces).

Does it include lens thickness or aberrations? No: thin, ideal lenses and mirrors, and paraxial beams. For aberrations use a ray tracer. This is for study and planning, not a substitute for measuring the real beam.

Diameter or radius? Everything is the 1/e² radius unless it says diameter.

Where the numbers come from

  • Gaussian beam optics, the complex beam parameter q and ABCD ray-transfer matrices: standard results, for example Siegman, A. E. (1986), Lasers, chapters 17 and 20, and Saleh, B. E. A. and Teich, M. C., Fundamentals of Photonics, chapter 3.
  • Thin-lens imaging of a Gaussian waist: Self, S. A. (1983), Applied Optics 22, 658 to 661. Embedded-Gaussian treatment of M²: Siegman (1990).
  • Checked against an independent NumPy ABCD calculation and Self's lens formula written for the tests; no data tables are used. The example rail is made up.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Thin-film coating simulator #931 Stack thin layers on glass and see how much light they reflect and transmit at every wavelength and angle, for s, p or unpolarised light, by the transfer-matrix method: anti-reflection coatings, Bragg mirrors, soap films and thin absorbing layers. Lens ray tracer #932 Type a lens system as a list of spherical surfaces and trace exact rays through it: focal length, f-number, image position, a spot diagram against the Airy disc, spherical aberration, ray fans, best focus, distortion and Petzval field curvature, drawn as a lens layout. Diffraction pattern generator #933 See and measure the light pattern from a single slit, a double slit, a grating or a round hole on a screen at any distance: the picture, the irradiance profile, fringe spacing, the Airy disc, grating orders and resolving power, in the far field (Fraunhofer) or near field (Fresnel). Fibre optic calculator #934 From a fibre's core and cladding indices, core size and wavelength, get the numerical aperture, acceptance angle, V-number, single-mode cut-off, the guided LP modes, effective index and mode-field diameter, then pulse spreading, bandwidth and a full link power budget. Polarisation calculator #936 Send polarised, partly polarised or unpolarised light through polarisers, quarter- and half-wave plates, any retarder, rotators, partial polarisers and depolarisers, and see the output intensity, Stokes vector, Jones vector, ellipse and the path on the Poincaré sphere. Uncertainty propagation calculator #25 Type your formula and your measurements with their uncertainties, or paste repeated readings. Get the result with its uncertainty, which input matters most, and a Monte Carlo check. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Telescope and camera calculator #19 Enter your telescope, eyepieces and camera to see magnification, true field, exit pupil, faintest stars, image scale and whether your camera suits your seeing, with a picture of what fits in the view.