Diffraction Grating Calculator
Inputs
| Ruling density N | 600 |
|---|---|
| Wavelength λ | 550 nm |
| Diffraction order m | 1 |
Diffraction Grating Calculator
Calculate the diffraction angle for any order using the grating equation d·sinθ = mλ. Enter the grating ruling density, light wavelength and diffraction order to find the angle at which that order appears.
Inputs
Results
Enter a value to see results.
Details
Diffraction gratings
A diffraction grating is an optical element containing a large number of equally spaced parallel slits or grooves, typically several hundred to several thousand per millimetre. When coherent light strikes the grating, each slit acts as an independent wave source. The waves from all slits travel outward simultaneously and interfere with one another. At most angles the crests and troughs cancel, but at specific angles determined by the grating equation the waves from every slit arrive exactly in phase and reinforce — producing bright diffraction maxima. Because these angles depend on wavelength, the grating separates polychromatic light into its component colours.
The grating equation
The condition for constructive interference between adjacent slits separated by distance is that the path difference equals a whole number of wavelengths:
dsinθ=mλwhere is the angle of the diffracted beam measured from the grating normal, is the integer diffraction order and is the wavelength. The slit spacing relates to the ruling density (lines per millimetre) by
d=N1 mm.Solving for the diffraction angle gives .
Formula table
| Symbol | Quantity | Relation |
|---|---|---|
| Ruling density (lines/mm) | user input | |
| Slit spacing | ||
| Wavelength | user input | |
| Diffraction order | user input | |
| Diffraction angle |
Worked example
Consider a diffraction grating ruled at 600 lines/mm illuminated by sodium yellow light at 550 nm.
The slit spacing is
d=6001 mm≈1.667μm=1667 nm.For the first order (order ):
sinθ1θ1=dmλ=1667 nm1×550 nm≈0.330,=arcsin(0.330)≈19.3°.The first-order maximum appears about 19.3° from the straight-through direction.
Diffraction orders and the maximum order
The zeroth order () satisfies , so it always appears straight ahead at regardless of wavelength. It carries no spectral information. The first order is most commonly used for spectroscopy because it is bright and well-separated from zero. Higher orders exist at larger angles but grow progressively dimmer.
An order is physically observable only when , which requires . The highest visible order is therefore
mmax=⌊λd⌋.For the 600 lines/mm grating at 550 nm, . Attempting to observe the fourth order yields , which has no solution — the calculator flags this order as unavailable.
Applications in spectroscopy
Diffraction gratings are the dispersing element of choice in most modern spectrometers, monochromators and spectrophotometers. Their angular dispersion is large and nearly linear across the spectrum, which makes wavelength calibration straightforward. Echelle gratings use high diffraction orders (up to ) to achieve very high spectral resolution in compact instruments, such as the cross-dispersed spectrographs used in astronomy to record entire optical spectra at once.
Limits of the model
The grating equation assumes perfectly coherent, monochromatic plane waves and ideal uniformly spaced slits with no manufacturing defects. Real gratings have a finite width that limits the spectral resolving power to , where is the total number of illuminated slits. The blaze angle, a deliberate tilt of the grating facets, concentrates intensity into a preferred order. The calculator does not account for grating efficiency, polarisation effects or the finite bandwidth of real light sources.
Frequently Asked Questions (FAQ)
What is the diffraction grating equation?
The grating equation is d·sinθ = m·λ, where d is the centre-to-centre slit spacing, θ is the angle of the diffracted beam measured from the grating normal, m is an integer order (0, ±1, ±2, …) and λ is the wavelength. Rearranging gives sinθ = m·λ/d, and the angle follows from the inverse sine. The slit spacing is related to the ruling density N (lines per millimetre) by d = 1 mm / N.
What is a diffraction grating?
A diffraction grating is an optical element with a large number of equally spaced parallel slits or grooves, typically hundreds to thousands per millimetre. When light strikes the grating, each slit acts as an independent wave source.
The waves from all slits interfere constructively only at specific angles set by the grating equation, separating light of different wavelengths into distinct beams. Reflection gratings (ruled or holographic) are more common than transmission gratings in modern instruments.
What are diffraction orders and which is highest?
Each integer value of m in d·sinθ = m·λ gives a diffraction order. The zeroth order (m = 0) is the straight-through or specularly reflected beam at θ = 0, carrying no wavelength separation. The first order (m = 1) is the most useful analytically. Higher orders appear at larger angles until sinθ would exceed 1, at which point the order is physically inaccessible.
The maximum observable order is m_max = floor(d / λ). For a 600 line/mm grating illuminated by 550 nm light the slit spacing is about 1667 nm, giving m_max = floor(1667/550) = 3.
How does a diffraction grating compare with a prism?
Both gratings and prisms disperse white light into a spectrum, but by different mechanisms. A prism separates colours through refraction — its dispersion is non-linear, with blue light bending more than red. A grating separates colours through interference — the angular dispersion dθ/dλ = m/(d·cosθ) is more linear and larger, which is why gratings are the preferred dispersing element in modern spectrometers.
Gratings also allow multiple orders to be used simultaneously and are easier to manufacture to precise, uniform specifications at large sizes.
Recommended Next
Double-Slit Interference Calculator
Calculate fringe spacing and bright-fringe position for Young's double-slit experiment using d·sinθ = mλ. Enter slit separation, wavelength, screen distance, and fringe order.