How to calculate
Convert the line density to line spacing. Multiply wavelength by the diffraction order and divide by line spacing, then take the inverse sine.
Worked example
Use Wavelength (nm) 500 · Grating lines per millimeter 500 · Diffraction order 1. The result is ≈ 14.47751218593 °.
Input and result notes
Use a positive whole-number order. The zero-order beam is undeviated, and negative orders mirror the positive side.