Diffraction Grating and Gaussian Beam Calculator

Enter grating lines per mm, wavelength, illuminated width and aperture, plus laser beam radius, lens focal length and M² to get grating orders and focused beam size.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Enter grating data

    Lines per mm and wavelength.

  2. 2
    Enter illuminated width

    For resolving power.

  3. 3
    Enter aperture

    For the Rayleigh limit.

  4. 4
    Enter beam data

    Input radius, focal length, M².

  5. 5
    Read the results

    Orders, resolution and beam size.

Sobre aquesta eina

A diffraction grating splits light into its wavelengths at angles set by the line spacing, and its resolving power decides how close two spectral lines can be told apart. A focused laser beam does not shrink to a point but to a waist set by diffraction. This calculator covers both: grating angles for all orders, resolving power, the diffraction limit of a circular aperture, and the waist, Rayleigh range and divergence of a Gaussian beam with an M² quality factor.

Who this is for

Physics students in optics labs, spectroscopy users, laser engineers, makers using laser cutters and astronomers.

The grating equation

For light hitting a grating at normal incidence, bright orders appear where d sin θ = m λ, with d the line spacing (1/lines per mm) and m the order. Orders exist only while m λ ≤ d. A 600 lines/mm grating has d = 1667 nm, so green 532 nm light shows three orders.

Resolving power

A grating resolves two wavelengths separated by Δλ = λ / (m N), where N is the number of illuminated lines. 10 mm of a 600 lines/mm grating gives 6000 lines and separates lines 0.09 nm apart in first order, enough to split the sodium doublet (0.6 nm).

Diffraction limit of an aperture

A circular aperture of diameter D cannot resolve angles smaller than 1.22 λ / D (Rayleigh). A 100 mm telescope at 532 nm resolves about 1.3 arcseconds.

Gaussian beams

Laser beams have a Gaussian profile. Focusing a beam of radius w with a lens of focal length f gives a waist w₀ = M² λ f / (π w). The beam stays roughly that size over the Rayleigh range z_R = π w₀² / (M² λ) on either side, and diverges at θ = M² λ / (π w₀) far away. M² = 1 is a perfect beam; many diode and fibre lasers have M² from 1.1 to over 10.

Practical meaning

A smaller waist needs a larger input beam or shorter focal length, but then depth of focus (2 z_R) shrinks. Laser cutters and microscopes balance spot size against depth of focus.

Good practice

Use the 1/e² radius for w. Measure M² according to ISO 11146 if precision matters.

Choosing a grating

More lines per millimetre spread the spectrum wider but give fewer orders; blazed gratings concentrate light into one order. CDs (about 625 lines/mm) and DVDs (about 1350 lines/mm) work as simple gratings for classroom spectroscopes.

Worked example

A 600 lines/mm grating with 532 nm light diffracts the first order at 18.6°. Focusing a 2 mm-radius beam with a 100 mm lens gives an 8.5 µm waist, a 0.42 mm Rayleigh range and 20 mrad divergence. 1 mm from focus the beam radius is 21.7 µm.

Limits

Normal incidence, ideal thin lens; not a substitute for official laser safety calculations.

Exemple resolt

600 lines/mm diffracts 532 nm light at 18.6° in the first order.

En resum

Preguntes freqüents

What is the grating equation?

d sin θ = mλ.

How many orders can I see?

All orders with mλ ≤ d.

What limits a grating's resolution?

The number of illuminated lines and the order: R = mN.

What is a beam waist?

The smallest radius of a focused Gaussian beam.

What does M² mean?

How much a beam differs from a perfect Gaussian; 1 is ideal.

Is my data stored?

No. Everything is calculated in your browser.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes