Diffraction gratings are optical components with many closely spaced lines or grooves that diffract light into several beams traveling in different directions. When monochromatic light hits such a grating, it produces bright interference maxima at specific angles. This calculator helps determine those diffraction angles based on the grating's line density, the light's wavelength, and the diffraction order.
The fundamental equation governing diffraction gratings is:
where:
The grating spacing d is the reciprocal of the number of lines per meter. Since the calculator input is lines per millimeter, it converts this value accordingly.
Rearranging the formula to solve for the angle:
This angle is physically meaningful only if the value inside the inverse sine function is between -1 and 1. If it exceeds this range, no diffraction maximum exists for that order and wavelength.
The calculated angle θ indicates the direction at which constructive interference produces a bright fringe for the specified order. Key points to note:
If the sine value is greater than 1, it means the chosen order is not physically possible for the given wavelength and grating spacing.
Suppose you have a diffraction grating with 600 lines per millimeter and want to find the first-order diffraction angle for light with a wavelength of 500 nm.
d = 1 / (600,000) = 1.6667 × 10-6 mλ = 500 × 10-9 m = 5 × 10-7 msin(θ) = (1 × 5 × 10-7) / (1.6667 × 10-6) = 0.3θ = sin-1(0.3) ≈ 17.46°This means the first-order bright fringe appears at approximately 17.46 degrees from the normal.
| Lines per mm | Grating Spacing d (μm) | Typical Use | Effect on Diffraction Angle |
|---|---|---|---|
| 300 | 3.33 | Basic spectroscopy | Smaller angles, less spectral spread |
| 600 | 1.67 | General purpose | Moderate angle spread |
| 1200 | 0.83 | High-resolution spectroscopy | Larger angles, better wavelength separation |
| 2400 | 0.42 | Precision instruments | Wide angle spread, high resolving power |
mλ/d ≤ 1 produce valid angles.If the calculated sine value is greater than 1, no diffraction maximum exists for that order and wavelength. You should try a lower order or adjust the wavelength or grating spacing.
Yes. The calculator accepts any positive wavelength in nanometers, including UV and IR ranges, as long as the diffraction condition is physically possible.
Higher orders correspond to larger diffraction angles but generally produce weaker intensity fringes. The first order (m=1) is usually the brightest and most commonly observed.
Lines per millimeter is a standard unit for diffraction gratings and convenient for typical laboratory gratings. The calculator converts this to meters internally for calculations.
No, this calculator assumes normal incidence. For angled incidence, the grating equation includes an additional term and requires a different approach.
Diffraction gratings are used in spectrometers, lasers, telecommunications, and even in everyday items like CDs and security holograms to separate or analyze light by wavelength.