Mihsaba›Physics›Diffraction Grating Calculator

Diffraction Grating Calculator

Calculate diffraction angle from grating line density, wavelength and order, with the maximum possible order.

Assumes approximately normal incidence and an ideal grating; angle is measured from the normal.

Share this free calculator

Send this tool to someone who needs the calculation.

How to use

A diffraction grating produces constructive interference peaks at angles satisfying mλ=d sinθ.

  1. Enter lines per mm.
  2. Enter λ in nm.
  3. Choose integer order m.
  4. Review angle and maximum order.

How it is calculated

mλ=d sinθ; d=1/N

Example

A 600 lines/mm grating at λ=550 nm gives a first-order angle from arcsin(λ/d).

Important notes

If mλ exceeds d, no real diffraction angle exists for that order in this model.

Worked examples and interpreting results

A hypothetical 500-lines/mm grating has 2 µm spacing. A 500 nm wavelength gives a first-order angle of about 14.478° at normal incidence.

Worked examples and interpreting results
CaseCalculationResult
Line spacing1 ÷ (500 × 1000) × 10⁶2 µm
First-order angleasin(500 ÷ 2000)14.477512 °

How to check the result

Line density is not line spacing. Enter a positive integer order; if order times wavelength exceeds spacing, that order has no real diffraction angle.

Frequently asked questions

What does 600 lines/mm mean?

It corresponds to spacing d=1/(600,000 m⁻¹).

Can m be zero?

The zero order exists at the center; this calculator starts at first order.

Angle from the surface?

No, from the grating normal here.