What Is a Diffraction Grating?
A diffraction grating is an optical component with a periodic structure that splits light into its component wavelengths. When monochromatic light hits the grating, it produces bright maxima at specific angles where constructive interference occurs. Polychromatic (white) light is separated into a spectrum, much like a prism but with higher resolution.
Gratings are used in spectrometers, monochromators, laser tuning, telecommunications wavelength-division multiplexing, and scientific research from astronomy to chemistry.
The Grating Equation
Where d is the slit spacing, θ is the diffraction angle, m is the order (positive integer), and λ is the wavelength. The zeroth order (m = 0) passes straight through at θ = 0°.
Resolving Power
The resolving power R equals the diffraction order m times the total number of illuminated slits N. It determines the smallest wavelength difference Δλ the grating can distinguish at wavelength λ.
How to Use
- Select a mode: find angle, wavelength, spacing, lines/mm, resolving power, angular dispersion, or screen position.
- Enter your known values. Use presets for common setups.
- Click Calculate. Results include all derived quantities.
Examples
HeNe laser (632.8 nm) through 600 l/mm grating
d = 1/600 mm = 1.667 μm; θ = arcsin(632.8 nm / 1667 nm) ≈ 22.3° (1st order)
Resolving sodium doublet (589.0 & 589.6 nm)
R = λ/Δλ = 589.3/0.6 ≈ 982. With m=1, need N ≥ 982 slits. A 600 l/mm grating 2 mm wide has 1200 slits — sufficient.
FAQ
What is a diffraction grating?›
A diffraction grating is an optical element with many parallel, equally spaced slits or grooves. When light passes through (transmission grating) or reflects off (reflection grating), each slit acts as a source of wavelets that interfere constructively at specific angles determined by the grating equation.
What does grating spacing mean?›
Grating spacing (d) is the distance between adjacent slits or grooves. It is the reciprocal of the line density: d = 1/N, where N is lines per unit length. A 600 lines/mm grating has d = 1/600 mm ≈ 1.667 μm.
Why can't some orders be observed?›
The grating equation requires sinθ ≤ 1. If mλ/d > 1, no real angle satisfies the equation and that order is physically impossible — the diffracted beam would need to travel backward.
How does resolving power work?›
Resolving power R = mN (order × total slits) determines the minimum resolvable wavelength difference: Δλ = λ/R. A grating with 15,000 slits in first order gives R = 15,000, resolving wavelengths 0.04 nm apart at 600 nm.
What is angular dispersion?›
Angular dispersion D = dθ/dλ = m/(d·cosθ) measures how much the diffraction angle changes per unit wavelength change. Higher dispersion means better wavelength separation on a detector.
Sources

Author & technical reviewer
Manish Kumar
PhysicsCalcs tools are reviewed with an educational focus: clear formulas, transparent assumptions, and practical context for students and science learners.
Learn more about Manish