Diffraction Grating Equation
Worked example: d = 1 um, theta = 30 deg, m = 2 → lambda = 250 nm — press Try an example to run it live, then adjust anything.
Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!
The grating →
Grade 12Grade 12 Physics
Test your skills in the Exam Room: new numbers every attempt — free lessons for students, no sign-up, just pure learning.
share your results
Diffraction Grating Equation explained
The condition is the same one that governs two slits: light leaves in a bright beam wherever the path difference between neighbouring apertures is a whole number of wavelengths. What a grating adds is not a new condition but sharpness. With two slits, a small deviation from the exact angle puts the pair only slightly out of step and the fringe is broad. With ten thousand slits, the same small deviation accumulates across the ruled width until distant slits are completely opposed, and everything cancels except in a very narrow window around the exact angle. So a grating throws each wavelength into its own thin, bright, well-separated beam, and that is what makes it an instrument rather than a demonstration.
A grating ruled at 600 lines per millimetre has mm µm. Green light at 550 nm goes to , or 19.3°, in first order. Second order needs , so 41.3°. Third order would need 0.990, which is 81.9° and barely usable, and a fourth order is flatly impossible because the sine would exceed 1. The number of orders you can obtain is capped by , and that cap is a real physical limit rather than a numerical inconvenience.
Joseph von Fraunhofer made the first useful gratings in the 1820s by winding fine wire on a frame, and used them to measure the wavelengths of the dark solar absorption lines he had catalogued — the first absolute measurements of the wavelength of light, and the foundation of astronomical spectroscopy. Henry Rowland's ruling engine at Johns Hopkins in the 1880s produced concave gratings good enough that laboratories worldwide bought them for decades. You have one in your house: the data tracks on a CD are spaced 1.6 µm apart, which is a 625-line-per-millimetre grating by accident, and that is the rainbow flash off the disc. A DVD's finer 0.74 µm pitch spreads the same colours over a wider angle.
Five things to watch. is the line spacing, and gratings are sold in lines per millimetre — 600 lines/mm means µm, and entering 600 in a length field is the most frequent error here by a distance. Angles are measured from the normal to the grating, not from its surface. Because cannot exceed 1, orders beyond simply do not exist and the solver will say so rather than return a nonsense angle. Fourth, and this one bites in the laboratory: orders overlap. Second-order 400 nm violet emerges at exactly the same angle as first-order 800 nm infrared, because , so any real spectrometer needs an order-sorting filter and an unfiltered instrument will show ghost features that get mistaken for spectral lines. Finally, this equation tells you where the beams go and says nothing whatever about how bright they are. That is set by the shape of each groove, and a blazed grating is cut with an asymmetric profile that throws most of the light into one chosen order instead of wasting it in the undispersed zeroth.
Diffraction Grating Equation
- = Diffraction order
- = Wavelength (m)
- = Line spacing (m)
- = Diffraction angle (°)
Missing one of these? Work it out first, then come back
- Wavelength — Wave Speed (v = fλ), Double-Slit Fringe Spacing
- Line spacing — Flight Line Spacing from Sidelap
- Diffraction angle — Snell's Law of Refraction, Critical Angle for Total Internal Reflection