Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Diffraction Grating Calculator

Grating lines per millimeter: enter 1 or more. Prefilled example: 600.

Wavelength, in nm: enter 1 or more. Prefilled example: 532.

Diffraction order m: enter 0 or more. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Grating lines per millimeter: enter 1 or more.
  2. Wavelength, in nm: enter 1 or more.
  3. Diffraction order m: enter 0 or more.
  4. 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

  1. D=1,000,000lpm
  2. Th=deg⁡(asin⁡(m×lD))
Symbols used in the formula
SymbolMeaningUnit
lpmGrating lines per millimeter
lWavelengthnm
mDiffraction order m
DGrating spacing dnm
ThDiffraction angle θ°
deg(x)the angle x, converted from radians to degrees.

Worked example

Grating lines per millimeter600
Wavelength532 nm
Diffraction order m1
Grating spacing d (nm)1,666.6667
Highest order that exists3
  1. D=1,000,000600=1,666.67
  2. Th=deg⁡(asin⁡(1×5321,666.67))=18.6146

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.

Related calculators