A diffraction grating spreads light into its colors using many fine lines. This calculator applies the grating equation to give the angles of the bright orders, the number of orders that exist and the resolving power of the grating.
How the calculation works
- Line spacing d = 1 mm ÷ lines per millimeter
- Grating equation: d × sin θ = m × λ, so θ = arcsin(m × λ ÷ d)
- Highest order = the largest whole number m with m × λ ≤ d
- Resolving power = order × number of lines illuminated
- Smallest resolved difference Δλ = λ ÷ resolving power
Example
A grating of 600 lines/mm has a spacing of 1.667 μm. Green light of 550 nm appears at 19.27° in the first order, 41.30° in the second and 81.89° in the third, and there are no more. With 10 mm illuminated, 6,000 lines are used, so the first-order resolving power is 6,000 and the grating separates wavelengths 0.092 nm apart.
Why it matters
Gratings are the core of spectrometers, from school demonstrations to telescopes, and they explain the rainbow on the surface of a CD or DVD, whose tracks act as a grating. Knowing the angles lets you design the instrument, and the resolving power tells you whether it can separate two nearby lines, such as the sodium doublet.
Good to know
The equation is for light that hits the grating at a right angle. At other angles, the term d × sin of the incidence angle is added. The orders overlap for different wavelengths, so a second-order red may land on a third-order blue. Real gratings concentrate the light in one order by their groove shape (blaze). This tool is for education.
In practice
Try the same grating with red light at 700 nm and blue light at 450 nm: the red is bent farther than the blue, the opposite of a prism. A laser pointer and a CD, with about 625 lines per millimeter, make a simple test: measure the angle of the spots on a wall, then compare the wavelength you compute with the one printed on the pointer.
Related tools
The wavelength calculator converts between frequency and wavelength, the refraction calculator applies Snell’s law, and the Malus’s law calculator handles polarized light.