Home · Math · Fractions · Diffraction Grating Calculator

Diffraction Grating Calculator

A diffraction grating sends each order m to the angle where the path difference between neighbouring slits equals m wavelengths. Angles are in degrees and both lengths use nanometres.

Your figures

Example result — edit the figures to make it yours

14.48

Diffraction angle

sin θ0.2500

What this calculator does

A diffraction grating sends each order m to the angle where the path difference between neighbouring slits equals m wavelengths. Angles are in degrees and both lengths use nanometres. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Grating equation: d sin θ = mλ, so θ = asin(mλ ÷ d)

A diffraction grating sends each order m to the angle where the path difference between neighbouring slits equals m wavelengths. Angles are in degrees and both lengths use nanometres.

Inputs use the units shown in the field labels and every denominator or total must be non-zero. The result is an arithmetic value from the stated formula only; it is not a quote, a rating or professional advice.

Worked example

With the example inputs this page opens with (grating spacing (nm) 2000, diffraction order (m) 1, wavelength (nm) 500), the result is 14.48 — diffraction angle. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying grating spacing (nm)
Grating spacing (nm)Diffraction angle
100030.00
160018.21
200014.48
250011.54
30009.59
40007.18

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Diffraction Grating Calculator work?

A diffraction grating sends each order m to the angle where the path difference between neighbouring slits equals m wavelengths. Angles are in degrees and both lengths use nanometres. Grating spacing · Diffraction order · Wavelength → Diffraction angle. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Diffraction Grating Calculator need?

Grating spacing · Diffraction order · Wavelength → Diffraction angle. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Diffraction Grating Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.