Understanding Diffraction

Diffraction occurs when light encounters an obstacle or aperture comparable in size to its wavelength. Rather than traveling straight through, the light bends around edges and spreads into regions that would be shadowed if light traveled only in straight lines. This bending is a fundamental property of all waves—light, sound, and water waves all diffract.

The effect becomes visible only when the obstacle dimension or aperture width approaches or exceeds the wavelength. Visible light has wavelengths between roughly 400–700 nm, so diffraction effects are most noticeable with apertures in the micrometer range or smaller. A single slit produces a broad, featureless diffraction pattern; multiple slits create sharp, regularly spaced peaks.

What Is a Diffraction Grating?

A diffraction grating is an optical component with many parallel, equally-spaced slits or rulings etched onto a surface. Typical gratings contain anywhere from hundreds to tens of thousands of lines per millimeter. When light strikes all slits simultaneously, each acts as a secondary source of diffracted waves.

These secondary waves interfere constructively at certain angles and destructively at others. The constructive interference angles depend on:

  • The wavelength of incident light
  • The spacing between grating lines (or slits)
  • The angle at which light hits the grating
  • The diffraction order (1st, 2nd, 3rd, etc.)

This makes gratings powerful tools for separating light into its component wavelengths—essential for spectroscopy, color analysis, and optical instrumentation.

The Diffraction Grating Equation

When light strikes a grating at an incident angle, the path difference between adjacent slits determines where constructive interference occurs. The generalized grating equation accounts for both the incident angle and the diffraction angle:

a × λ = (1/d) × [sin(θ_a) + sin(θ_i)]

where a = 1, 2, 3, 4, 5, ... (diffraction order)

  • a — Diffraction order (integer: 1st, 2nd, 3rd order, etc.)
  • λ — Wavelength of incident light (in meters or nanometers)
  • d — Grating spacing (inverse of grating density; distance between adjacent slits in meters)
  • θ_a — Diffraction angle for order a (angle between incident and diffracted ray direction)
  • θ_i — Incident angle (angle between incident ray and the grating normal)

Key Considerations When Working with Gratings

Accurate diffraction predictions require attention to several practical factors.

  1. Order limits exist for every setup — Not every combination of wavelength, grating density, and order will produce a real diffracted ray. The argument inside the sine function must not exceed ±1. If your calculation requires sin(θ) > 1, that diffraction order does not exist for your wavelength and grating density.
  2. Grating density units must be consistent — Grating density is often specified as lines per millimeter (l/mm). Convert this to grating spacing in meters before substituting into the equation: d = 1 / (density in lines/m). A 1000 l/mm grating has spacing d = 1 × 10⁻⁶ m.
  3. Incident angle matters for oblique incidence — Many grating applications use normal incidence (θ_i = 0°), which simplifies the equation. However, gratings used in spectrographs or dispersive instruments often have non-zero incident angles. Always check whether your grating is oriented normally or at an angle.
  4. Higher orders are weaker — While the grating equation predicts diffraction angles for all orders, the intensity of higher-order peaks decreases. By the 5th or 6th order, diffracted light may be too faint to observe, especially with white-light sources.

Real-World Applications

Diffraction gratings are ubiquitous in modern optics and photonics:

  • Spectroscopy: Gratings in spectrometers and spectrographs separate light by wavelength, enabling analysis of emission lines, absorption spectra, and elemental composition.
  • CDs and DVDs: The data pits on optical discs are spaced at roughly 1.6 μm (CD) or smaller (DVD), forming a reflective grating that separates white light into rainbow colors—the colorful patterns you see are diffraction orders.
  • Fiber-optic communication: Fiber Bragg gratings filter and route specific wavelengths in telecommunications networks.
  • Astronomy: Spectroscopic observations of stars and galaxies rely on grating spectrographs to measure redshift, temperature, and chemical composition.
  • Display technology: Diffractive optical elements replace conventional lenses in compact imaging and augmented-reality systems.

Frequently Asked Questions

Why does light diffract through a grating instead of passing straight through?

Light is a wave, and waves bend around obstacles when the obstacle size is comparable to the wavelength. A grating's closely-spaced slits act as multiple point sources of light. Waves from adjacent slits travel slightly different path lengths depending on the viewing angle. At certain angles, these path differences cause waves to reinforce (constructive interference), creating bright diffracted orders. At other angles, they cancel (destructive interference), producing dark regions.

Can I calculate wavelength if I measure the diffraction angle?

Yes. Rearrange the grating equation to solve for wavelength: λ = (d/a) × [sin(θ_a) + sin(θ_i)]. You need to know the grating spacing (d), the diffraction order (a), the measured diffraction angle (θ_a), and the incident angle (θ_i). This is the basis of analytical spectroscopy: measure the angle where light appears, deduce its wavelength, and identify the element or compound responsible.

What happens if I try to observe the 10th-order diffraction?

Whether it exists depends on your wavelength and grating spacing. The equation requires sin(θ) ≤ 1. For visible light (400–700 nm) and typical gratings (1000–3000 l/mm), orders beyond the 5th or 6th usually exceed this limit and do not appear. Additionally, even if mathematically possible, very high orders contain almost no light because the grating's transmission efficiency drops sharply at large angles.

How is grating density related to grating spacing?

Grating density and spacing are reciprocals. If a grating has 1000 lines per millimeter, each line occupies 1/1000 mm = 1 μm. In SI units: spacing d = 1 / (density in lines/meter). A 3000 l/mm grating has spacing d = 1 / (3 × 10⁶) ≈ 333 nm—smaller spacing allows finer wavelength resolution but limits the range of observable orders.

Does incident angle affect where diffraction maxima appear?

Absolutely. The full grating equation includes the incident angle: a × λ = (1/d) × [sin(θ_a) + sin(θ_i)]. If you tilt the grating so light hits it at an angle rather than perpendicularly, the diffraction angles shift. This is intentional in many instruments: oblique incidence in spectrographs improves wavelength range and resolution by spacing orders farther apart on the detector.

Why do CDs display a rainbow pattern?

A CD's data layer consists of pits spiraling in concentric tracks spaced about 1.6 μm apart—precisely the right spacing to act as a diffraction grating for visible light. When white light reflects off the disc, each wavelength diffracts at a slightly different angle. Longer wavelengths (red) diffract more; shorter wavelengths (violet) diffract less. Your eye perceives this spatial separation as a spectrum, creating the characteristic iridescent rainbow you see when tilting the disc under light.

More physics calculators (see all)