← thecodex.expert
Optics & Photonics Hub Physicist Biographies
Definition Curious Exploring Deep Dive Sources
Wave Optics · Concept

Diffraction Grating

Reading time: 9 minConfidence: HighLast verified: October 2026

A diffraction grating is a periodic structure of spacing d (the grating period) that diffracts incident light into discrete orders. For normal incidence, principal maxima occur at d sinθm = mλ (m = 0, ±1, ±2, …); for incidence angle θi, d(sinθm − sinθi) = mλ. The angular dispersion is dθ/dλ = m/(d cosθ). With N illuminated lines, maxima are narrow, of angular width ≈ λ/(Nd cosθ), and the chromatic resolving power is R = λ/Δλ = mN. Blazed gratings concentrate light into a chosen order.

Curious

One sentence that captures itA diffraction grating is thousands of tiny parallel grooves that sort light by colour more sharply than a prism.

The rainbow shimmer on the back of a CD or DVD comes from its closely spaced tracks acting as a diffraction grating. Each colour is sent in a slightly different direction, so white light fans out into spectra. Compared with a prism, a grating spreads colours more evenly and can be much finer, which is why it is used in almost every instrument that analyses light: from classroom spectroscopes to the spectrographs on large telescopes (see Spectroscopy).

David Rittenhouse made one of the first gratings in 1785 from hairs strung between screws; Joseph von Fraunhofer built gratings in 1821 and used them to measure the wavelengths of the dark lines in sunlight. Henry Rowland ruled exceptionally fine gratings at Johns Hopkins University in the 1880s.

Exploring

Worked examples(1) A grating with 600 lines/mm has d = 1.667 µm. For 633 nm laser light the first order appears at 22.3° and the second at 49.4°; there is no third order, since mλ/d would exceed 1. (2) A 300 lines/mm grating (d = 3.33 µm) puts first-order violet light (450 nm) at 7.8° and red (650 nm) at 11.2°. (3) With 5,000 illuminated lines in first order, R = mN = 5,000, enough to resolve wavelengths 0.12 nm apart near 600 nm; the sodium doublet (0.6 nm apart) needs only R ≈ 1,000. (4) A CD with track pitch 1.6 µm diffracts 780 nm laser light at about 29° in first order. (Computed in Python.)
GratingLines/mmTypical use
CD track pattern~625 (pitch 1.6 µm)Rainbow reflections
Educational spectroscope300–600Classroom
Spectrometer600–2,400Laboratory spectra
High-resolution echelle~30–300, high ordersAstronomical spectrographs
Holographic gratingsUp to a few thousandLow stray light, lasers
Common mistake — Commonly ConfusedA grating gives several orders on each side, which can overlap: second-order blue light can land where first-order ultraviolet or red does, so spectrometers use filters or order-sorting. And the zeroth order is not dispersed; it is just the straight-through (or mirror-reflected) beam. Also, the principal maxima are sharper with more lines, but it is the number of lines illuminated, not the total ruled, that sets the resolving power.

Deep Dive

Primary sourceFraunhofer, J. (1823). Denkschriften der Königlichen Akademie der Wissenschaften zu München, 8, 1–76; Rowland, H.A. (1882). “Preliminary notice of results accomplished in the manufacture and theory of gratings for optical purposes.” Philosophical Magazine, 13, 469–474.

Derivation. Adding N equally spaced sources with phase increment δ = 2πd sinθ/λ gives intensity I = Islit [sin(Nδ/2)/sin(δ/2)]². Principal maxima appear when δ = 2πm, their height grows as N² and their width falls as 1/N; the single-slit envelope controls relative brightness among orders (see Single Slit Diffraction and Young's Double Slit for N = 2).

Blazing and manufacture. A ruled grating with sawtooth-shaped grooves (blazed) throws most of the light into a chosen order and wavelength, giving high efficiency. Modern gratings are also made holographically, by recording interference fringes from lasers in photoresist, or by lithography; they can have extremely low scattered light. Volume phase gratings and gratings in X-ray and extreme-ultraviolet instruments extend the concept widely.

Related periodic structures. X-ray diffraction from crystals is the same effect in three dimensions (see Bragg's Law); photonic crystals extend periodic structuring to control the flow of light itself (see Photonic Crystals). Gratings also compress ultrashort laser pulses in chirped-pulse amplification, honoured by the 2018 Nobel Prize in Physics.

Sources

  • Fraunhofer, J. (1823). Denkschriften der Königl. Akad. der Wiss. München, 8, 1–76.
  • Rowland, H.A. (1882). Philosophical Magazine, 13, 469–474.
  • Hecht, E. (2017). Optics (5th ed.). Pearson.
Last verified: October 2026 · Source: Fraunhofer (1823); Rowland (1882); Hecht (2017) · Confidence: high