Diffraction Grating Calculator

Calculate diffraction angles, orders, and other parameters for diffraction gratings with this interactive tool. Perfect for physics students and professionals.

Diffraction inputs

How to Use This Calculator

Enter the wavelength, diffraction angle, and grating spacing to compute the diffraction order for your configuration. The inputs must be in the units shown (nm for wavelength, degrees for the angle, and μm for spacing) so the physical constants align with the classical equation.

Click Calculate or update any field to instantly see the new order and related values, then refer to the results column for the formatted output.

Methodology

The calculation is built on the diffraction grating equation d sin(θ) = mλ, which relates the grating spacing (d) and the diffraction angle (θ) to the diffraction order (m) for a given wavelength (λ). The calculator assumes a single order is being observed, and it solves the equation for m when the angle, spacing, and wavelength are supplied.

Glossary of Variables

Step-by-Step Example

Imagine monochromatic light with λ = 500 nm landing on a grating spaced at d = 1 μm with a diffracted beam observed at θ = 30°. Plug the numbers into d sin(θ) = mλ, solve for m, and you get the output structure shown in the results card.

Frequently Asked Questions (FAQ)

What is a diffraction grating?

A diffraction grating is an optical component with a regular pattern, which splits and diffracts light into several beams. It is used in spectrometers, lasers, and analytical instruments.

How do I use this calculator?

Enter the wavelength, angle, and grating spacing to calculate diffraction order and angle. Ensure all inputs are in the units specified for accurate results.

What are common applications of diffraction gratings?

Diffraction gratings are used in spectrometers, lasers, optical communication systems, and wavelength-selective interfaces.

Can diffraction gratings work with any wavelength?

Yes, they can work with any wavelength within the design limits of the grating material and line density.

Are there different types of diffraction gratings?

Yes, there are transmission and reflection gratings, each optimized for specific optical systems.

Formulas

Diffraction Grating Formula:

d sin(θ) = mλ

  • d: Grating spacing in micrometers (μm)
  • θ: Diffraction angle in degrees
  • m: Diffraction order
  • λ: Wavelength in nanometers (nm)
Citations
Changelog
  • 0.1.0-draft — Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0