Diffraction Grating Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
A diffraction grating sends each wavelength out at its own set of angles. Enter the lines per millimeter, the wavelength and the order.
Result
Diffraction angle θ°
Grating spacing d (nm)
- Highest order that exists
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Grating lines per millimeter: enter 1 or more.
- Wavelength, in nm: enter 1 or more.
- Diffraction order m: enter 0 or more.
- Read the result: Diffraction angle θ; the panel also shows Grating spacing d (nm) and Highest order that exists.
How this calculator works
Grating equation at normal incidence: d sin θ = m λ, with d = 1 ÷ (lines per unit length) the spacing, m the order and λ the wavelength. An order exists only if m λ ≤ d, so the highest order is the whole part of d ÷ λ.
If the order does not exist, the angle shows a dash.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Grating lines per millimeter | ||
| Wavelength | nm | |
| Diffraction order m | ||
| Grating spacing d | nm | |
| Diffraction angle θ | ° | |
deg(x) | the angle x, converted from radians to degrees. |
Worked example
| Grating lines per millimeter | 600 |
|---|---|
| Wavelength | 532 nm |
| Diffraction order m | 1 |
| Grating spacing d (nm) | 1,666.6667 |
|---|---|
| Highest order that exists | 3 |
Diffraction angle θ 18.6146 °
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
At what angle does a 600 line/mm grating send green 532 nm light?
About 18.6° in the first order.
Why do finer gratings spread colors more?
A smaller spacing d makes sin θ = mλ ÷ d larger, so the angles and the gaps between colors grow.