SOLVETUTORMATH SOLVER

Instrument MI-03-130 · Physics

Diffraction Grating Calculator

One sine, one ratio: d sin θ = mλ turns a grating's line spacing and a light's wavelength into the exact angle a spectrometer will read.

Instrument MI-03-130
Sheet 1 OF 1
Rev A
Verified
Type 03 — Optics SER. 2026-03130

Diffraction angle

15.962014 deg

θ = asin(mλ ⁄ d)

The working Every figure verified twice
  1. theta = asin(1·0.000001 ⁄ 0.000002) = 0.278590
Worksheet log
  1. No entries yet — change an input to log a scenario.

How this instrument works

A diffraction grating is a surface ruled with thousands of closely and evenly spaced grooves, each acting as its own tiny source of secondary wavelets under the Huygens-Fresnel picture of light. Shine a single wavelength at it and most directions cancel by destructive interference, but at specific angles the wavelets from every groove arrive in step and reinforce. That condition is d sin θ = mλ: the path difference between light leaving two adjacent grooves, d sin θ, must equal a whole number of wavelengths, mλ, for constructive interference to survive. Solve for θ and the formula becomes θ = asin(mλ ⁄ d), which is exactly what this instrument evaluates.

The order m is why a single wavelength produces several beams rather than one: m = 0 is the undeviated beam every grating passes straight through, m = 1 is the first pair of diffracted beams flanking it, and m = 2, 3 and higher follow at steeper angles as long as a solution exists. Because sine cannot exceed 1, there is a hard ceiling: once mλ ⁄ d climbs past 1, no real angle satisfies the equation and that order simply does not appear in the pattern. A grating ruled finer than the wavelength itself, with d smaller than λ, cannot support even the first order, which is the specific way people overestimate what a tighter-ruled grating will do for them.

Spectroscopists lean on this identity daily: an astronomer's echelle spectrograph separates a star's light by wavelength using exactly this angle, and a telecom engineer designing a wavelength-division multiplexer routes different data channels by the same mechanism, just with infrared light and a grating etched into a chip instead of ruled on glass. The common confusion is treating a grating like a prism — a prism bends light by refraction, where the material's own dispersion curve usually bends blue more than red, but a grating disperses by interference, where longer wavelengths bend further from the normal at a given order. Getting that reversed leads to miscalibrated spectrometers and misread spectral lines.

dsinθ=mλd \sin\theta = m\lambdaθ=arcsin ⁣(mλd)\theta = \arcsin\!\left(\frac{m\lambda}{d}\right)
θ — diffraction angle, measured from the grating normal (deg or rad) · d — grating line spacing, the centre-to-centre distance between adjacent grooves (µm) · λ — wavelength of the light (nm) · m — diffraction order, an integer (0, 1, 2, …) counting whole wavelengths of path difference between neighbouring grooves.
  • Enter the grating line spacing (d), the distance between adjacent grooves; the default unit is micrometres, but you can switch to nm for very fine, tightly ruled gratings.
  • Enter the wavelength (λ) of the light you're diffracting, in nanometres — 550 nm sits near the middle of the visible spectrum, in the green.
  • Set the diffraction order (m), the integer count of extra wavelengths in the path difference between grooves; start at m = 1 for the first, brightest diffracted beam.
  • Read the diffraction angle (θ), measured from the grating's normal; switch its unit to radians if your downstream calculation needs that instead of degrees.

Worked example — a 2 µm grating and 550 nm green light

Rule a grating at 2 µm line spacing — d = 2 × 10⁻⁶ m, equivalent to 500 lines per millimetre, a routine bench-spectrometer figure — and shine 550 nm green light on it, λ = 5.5 × 10⁻⁷ m. For the first order, m = 1, so mλ ⁄ d = (1 × 5.5 × 10⁻⁷) ⁄ (2 × 10⁻⁶) = 0.275 exactly.

asin(0.275) = 0.278589702392 rad, which converts to 15.96°. That is the angle, measured from the grating's normal, where the first-order green beam actually lands. The same grating's second order, m = 2, pushes the same wavelength out to 33.37°, since mλ ⁄ d doubles to 0.55.

Questions

What does the diffraction order m physically represent?

It's how many whole wavelengths of extra path the light travels between one groove and the next, at the angle where all the grooves reinforce each other. m = 0 is the straight-through beam every grating passes with zero path difference; m = 1 is the first pair of diffracted beams either side of it; m = 2 and higher follow at steeper angles, as long as mλ ⁄ d stays at or below 1.

Why is there a maximum diffraction order for a given grating and wavelength?

Because sin θ cannot exceed 1, so mλ ⁄ d cannot either. The largest usable order is the biggest integer m for which mλ ⁄ d ≤ 1, which works out to floor(d ⁄ λ). For the 2 µm, 550 nm example here that's floor(2000 ⁄ 550) = 3, so only orders m = 0, 1, 2, 3 exist; a hypothetical m = 4 would need sin θ = 1.1, which has no real solution.

How is a diffraction grating different from a prism?

A prism disperses light by refraction — the glass's own refractive index varies with wavelength, usually bending blue more than red. A grating disperses by interference: d sin θ = mλ bends longer wavelengths further from the normal at a given order, the reverse tendency. Confusing the two directions is a common source of misread spectra when people assume grating behaviour mirrors prism behaviour.

What happens if mλ ⁄ d works out greater than 1?

There is no real angle that satisfies the equation, because sine tops out at 1. Physically, that order doesn't form for that grating and wavelength — the light simply isn't diffracted into it. This is exactly why a grating ruled finer than the wavelength itself, with d less than λ, supports no diffracted orders at all beyond the undeviated m = 0 beam.

Does the line spacing d mean the width of one groove?

No — d is the period, the centre-to-centre distance between one groove and the next, not the width of the groove itself. Gratings are usually rated in lines per millimetre; a 500 lines/mm grating has d = 1 ⁄ 500 mm = 2 µm, which is this calculator's default.

Who actually uses the grating equation in practice?

Astronomers reading an echelle spectrograph use it to convert a measured angle back into the wavelength of a spectral line, which is how stellar composition and redshift get measured. Telecom engineers use the same relation, with infrared light and a grating etched into a chip, to separate wavelength-division-multiplexed channels. Chemists calibrating a monochromator check this angle against a known reference line before trusting a new spectrum.

References