A diffraction grating splits light into its component wavelengths by exploiting interference from many equally spaced slits or grooves. Where a double slit gives you broad, fuzzy fringes, a grating with thousands of slits produces sharp, well-separated maxima that let you measure wavelengths with high precision. That's why gratings are at the heart of nearly every modern spectrometer.
Properties of diffraction gratings
A diffraction grating is a surface with a large number of parallel, equally spaced grooves or slits. When light hits the grating, each groove acts as a source of diffracted waves. These waves interfere with each other, producing sharp bright lines (maxima) at angles that depend on wavelength.
Structure of diffraction gratings
- A grating consists of many parallel grooves etched onto a reflective or transparent surface.
- The groove spacing (distance between adjacent slits, called ) determines the grating's diffractive properties. A typical grating might have 1200 lines/mm, giving .
- More grooves per millimeter means smaller , which spreads the diffracted orders farther apart.
- The groove shape (its cross-sectional profile) affects how efficiently the grating directs light into a particular order.
Transmission vs. reflection gratings
Transmission gratings let light pass through the slits, forming a diffraction pattern on the far side. They're typically made of glass or plastic with grooves ruled into the surface.
Reflection gratings bounce light off a grooved, metal-coated surface. The physics is the same, but the diffracted beams appear on the same side as the incoming light. Reflection gratings are more common in research spectrometers because they work across a wider wavelength range, including UV and IR where glass absorbs.
The choice depends on your application and wavelength range.
Grating spacing and resolution
The grating spacing is inversely related to angular separation between orders. Smaller means the diffracted beams spread out more, giving you better ability to distinguish nearby wavelengths.
The fundamental relationship governing all diffraction gratings is the grating equation:
- = grating spacing (distance between adjacent slits)
- = angle of the diffracted beam measured from the normal
- = diffraction order (integer: 0, ±1, ±2, ...)
- = wavelength of light
Resolution also improves as you illuminate more grooves, a point covered in detail below.
Diffraction grating equation
The grating equation is the single most important formula in this topic. It tells you exactly where bright fringes appear for a given wavelength.
Derivation of the grating equation
The derivation follows directly from the condition for constructive interference:
- Consider two adjacent slits separated by distance .
- Light arrives perpendicular to the grating (normal incidence, for simplicity).
- For a diffracted ray leaving at angle , the wave from one slit travels a path difference of compared to the wave from the neighboring slit.
- Constructive interference (a bright fringe) occurs when this path difference equals a whole number of wavelengths: .
- Because every adjacent pair of slits satisfies the same condition simultaneously, the constructive interference from thousands of slits all reinforces at the same angle, producing very sharp maxima.
This derivation assumes monochromatic light and equally spaced, parallel grooves.
Multiple-order spectra
The integer in the grating equation gives the order of diffraction:
- (zero order): , so light goes straight through (or reflects straight back). No dispersion occurs here; all wavelengths land at the same spot.
- (first order): the most commonly used spectrum. Each wavelength diffracts to a different angle.
- (higher orders): wavelengths spread out even more, but intensity drops.
For polychromatic (white) light, different orders can overlap. For example, the second-order red () can appear at the same angle as the third-order blue-violet (), since .
The maximum observable order is limited by the requirement that , which gives .
Blaze angle and efficiency
A plain grating spreads light across many orders, wasting energy. A blazed grating has grooves tilted at a specific angle (the blaze angle) so that most of the diffracted light is concentrated into one desired order.
- Blazed gratings have an asymmetric, sawtooth groove profile.
- The blaze angle is chosen to optimize efficiency for a target wavelength and order.
- Efficiency varies with wavelength, so manufacturers provide efficiency curves to help you pick the right grating for your experiment.
Applications of diffraction gratings
Spectroscopy and spectrometers
Diffraction gratings are the core dispersive element in most modern spectrometers. They separate light from a source (a star, a gas discharge tube, a chemical sample) into its component wavelengths, revealing emission or absorption lines.
Compared to prism-based instruments, grating spectrometers offer higher resolution and more uniform dispersion across the spectrum. Applications span chemical analysis, astrophysics, and materials science.
Telecommunications
In fiber optic networks, gratings are used in wavelength division multiplexing (WDM) systems. Multiple data channels, each carried on a different wavelength of light, travel through the same fiber. Gratings separate and combine these wavelength channels, enabling high-bandwidth communication.

Laser technology
Gratings serve several roles in laser systems:
- Wavelength selection and tuning inside laser cavities
- Narrow linewidth operation in external-cavity diode lasers
- Pulse compression in ultrafast (femtosecond) laser systems
- Spectral beam combining in high-power lasers
Interference patterns
Formation of maxima and minima
Bright fringes (maxima) appear at angles satisfying . At these angles, waves from all slits arrive in phase and add constructively.
Between the maxima, waves from different slits arrive out of phase and cancel. With total slits, there are minima between each pair of adjacent principal maxima. This is why more slits produce sharper peaks: the more slits contributing, the more precisely the waves must align to avoid cancellation.
Intensity distribution
The intensity pattern from a grating is shaped by two effects working together:
- Multi-slit interference determines where the sharp principal maxima appear (at angles given by the grating equation).
- Single-slit diffraction from each individual slit creates a broad envelope that modulates how bright each maximum is.
The single-slit envelope has the form , where and is the width of each individual slit. If a principal maximum falls at an angle where the single-slit envelope is near zero, that order will be very dim or missing entirely.
Angular dispersion
Angular dispersion tells you how rapidly the diffraction angle changes with wavelength. It's found by differentiating the grating equation:
Higher dispersion means nearby wavelengths are spread farther apart in angle, making them easier to distinguish. Notice that dispersion increases with order and decreases with grating spacing . This is a key parameter when designing a spectrometer.
Resolution and resolving power
Rayleigh criterion for gratings
Two spectral lines are considered just barely resolved when the principal maximum of one falls on the first minimum of the other (the Rayleigh criterion).
For a grating, the resolving power is defined as:
where is the total number of illuminated grooves and is the diffraction order. is the smallest wavelength difference you can resolve.
For example, a grating with 5000 illuminated lines used in second order gives . At , you could resolve lines separated by .
Factors affecting resolution
- Number of illuminated lines (): More lines means higher resolving power. Using a wider beam to illuminate more of the grating directly improves resolution.
- Diffraction order (): Higher orders give better resolution but lower intensity.
- Grating quality: Irregularities in groove spacing degrade resolution in practice.
- Optical system: Aberrations in lenses or mirrors, and misalignment, can limit the resolution you actually achieve below the theoretical value.
Comparison with prisms
Gratings generally offer higher and more uniform dispersion across the spectrum. Resolution scales with grating size (more lines = better resolution).
Prisms don't produce overlapping orders, which simplifies interpretation. They can also be more light-efficient since they don't spread energy across multiple orders. However, prism dispersion is nonuniform (stronger in the blue, weaker in the red) and resolution is limited by the prism material's dispersive properties.
The choice depends on your needs: gratings for high resolution and broad spectral coverage, prisms for simplicity and efficiency in certain wavelength ranges.
Experimental techniques

Diffraction grating setup
A standard lab setup includes:
- Light source: a laser for monochromatic work, or a spectral lamp / white light source for observing spectra.
- Collimating optics: a slit and lens to produce a parallel beam hitting the grating.
- Grating: mounted on a rotatable stage so you can adjust the angle of incidence.
- Detection: a screen for visual observation, or a telescope/detector on a rotating arm to measure angles precisely.
Careful alignment is critical. If the grating isn't perpendicular to the optical axis, or the incoming beam isn't well-collimated, your angle measurements will be off.
Measurement of wavelengths
To measure an unknown wavelength using a grating of known spacing :
- Align the spectrometer and locate the zero-order (straight-through) beam.
- Rotate the detector arm to find a first-order maximum and record the angle .
- Repeat for the other side () and average to eliminate zero-offset errors.
- Apply the grating equation: .
- Measure higher orders () if visible, and average the results for better accuracy.
If is unknown, calibrate first using a source with known spectral lines (like the sodium doublet at 589.0 nm and 589.6 nm or mercury lines).
Error analysis in grating experiments
Common sources of error and how to handle them:
- Angle measurement uncertainty: Use vernier scales or digital encoders. Measure on both sides of zero order and average.
- Grating misalignment: Ensure the grating face is perpendicular to the incident beam. Small tilts introduce systematic error.
- Uncertainty in : If you're using a quoted value for lines/mm, the manufacturer's tolerance propagates into your wavelength calculation.
- Random errors: Take multiple measurements and compute a standard deviation. Use error propagation to find the uncertainty in your final wavelength: since , the fractional uncertainty in combines fractional uncertainties in and .
Advanced concepts
Echelle gratings
Echelle gratings are designed for very high resolution. They use a coarse groove spacing (low line density) but operate at high diffraction orders ( can be 50 or more) and steep blaze angles.
The tradeoff is that many orders overlap at the detector. To sort them out, an echelle spectrograph uses a second dispersive element (a prism or low-order grating) oriented perpendicular to the echelle, spreading the overlapping orders into a 2D pattern. This cross-dispersion approach packs a wide wavelength range at high resolution onto a single detector, making echelle spectrographs popular in astronomy and analytical chemistry.
Holographic gratings
Instead of mechanically ruling grooves, holographic gratings are made by exposing a photoresist-coated surface to the interference pattern of two laser beams. The resulting groove pattern can be extremely uniform, which reduces stray light and ghost images compared to ruled gratings.
Holographic techniques also allow for curved groove patterns and variable line spacing, enabling specialized designs that correct for optical aberrations.
Grating anomalies
At certain wavelength-angle combinations, a grating's efficiency can change abruptly. These are called Wood's anomalies and occur when a diffracted order just grazes the grating surface ( for some order). At that threshold, energy is redistributed among the remaining orders, causing unexpected dips or spikes in efficiency. Being aware of these anomalies matters when designing systems that need stable, predictable performance across a wavelength range.
Limitations and challenges
Stray light and ghost images
No grating is perfect. Surface imperfections scatter light in unintended directions, raising the background level and reducing the signal-to-noise ratio. Ghost images are false spectral lines caused by periodic errors in groove spacing. Holographic gratings largely avoid this problem because their grooves are more uniform than mechanically ruled ones.
Polarization effects
Diffraction efficiency depends on the polarization of the incoming light. Light polarized parallel to the grooves (S-polarization) and perpendicular to them (P-polarization) diffract with different efficiencies, especially at large angles. For unpolarized light, this can cause intensity variations that look like real spectral features if you're not careful. Polarization-insensitive grating designs or adding a polarizer to the setup can address this.
Temperature sensitivity
Thermal expansion changes the groove spacing , which shifts the diffraction angles and degrades resolution. For everyday lab work this effect is small, but in high-resolution instruments or large gratings, temperature control matters. Precision spectrometers use temperature-stabilized enclosures or compensating mount designs to keep performance consistent.