Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Physics
  3. /Wave & Physical Optics
  4. /Diffraction Grating Calculator

Diffraction Grating Calculator

Last updated: March 17, 2026

Calculator

Results

Calculated Value

19.26477

Effective Slit Spacing

1.667

μm

Effective Lines per mm

599.88

lines/mm

mλ/d

0.329934

Observable Order Flag

1

Maximum Observable Order

3

Resolving Power

600

Minimum Resolvable Δλ

0.916667

nm

Angular Dispersion

0.000635484

rad/nm

Angular Dispersion

0.036410535

deg/nm

Results

Calculated Value

19.26477

Effective Slit Spacing

1.667

μm

Effective Lines per mm

599.88

lines/mm

mλ/d

0.329934

Observable Order Flag

1

Maximum Observable Order

3

Resolving Power

600

Minimum Resolvable Δλ

0.916667

nm

Angular Dispersion

0.000635484

rad/nm

Angular Dispersion

0.036410535

deg/nm

The Diffraction Grating Calculator solves the grating equation mλ = d sin θ for any unknown — the diffraction angle, wavelength, or slit spacing. It also computes the resolving power R = mN, angular dispersion, and the maximum observable diffraction order, giving you a complete characterization of the grating's spectral performance.

Diffraction gratings are among the most important optical components in spectroscopy. By splitting light into its constituent wavelengths with far greater resolution than a prism, they enable precise measurement of atomic emission lines, laser wavelengths, and stellar spectra. This calculator handles both transmission and reflection gratings — the fundamental equation is the same.

Visual Analysis

How It Works

When a plane wave of wavelength λ strikes a grating with slit spacing d, constructive interference occurs at angles satisfying the grating equation:

$$m\lambda = d\sin\theta$$

where m = 0, ±1, ±2, ... is the diffraction order. The zeroth order (m = 0) passes straight through at θ = 0 regardless of wavelength; higher orders separate wavelengths angularly.

The resolving power of a grating determines the smallest wavelength difference it can distinguish:

$$R = mN = \frac{\lambda}{\Delta\lambda_{\min}}$$

where N is the total number of illuminated slits. Higher order and more slits both improve resolution.

The angular dispersion measures how rapidly the diffraction angle changes with wavelength:

$$\frac{d\theta}{d\lambda} = \frac{m}{d\cos\theta}$$

This determines the physical separation of spectral lines at the detector plane. The maximum observable order is limited by the condition sin θ ≤ 1, giving $$m_{\max} = \lfloor d/\lambda \rfloor$$.

Gratings are specified by their line density (lines per mm). A 600 lines/mm grating has d = 1/600 mm = 1.667 μm. Typical scientific gratings range from 300 to 2400 lines/mm, with higher line densities providing greater dispersion but lower maximum order.

Understanding Your Results

If the result shows θ approaching 90°, the order is near the physical limit — the diffracted beam grazes the grating surface and intensity drops sharply. If mλ/d exceeds 1, no real angle exists for that order. The resolving power R tells you that wavelengths differing by less than λ/R cannot be distinguished. For example, R = 600 at λ = 550 nm means spectral features closer than about 0.92 nm will overlap.

Worked Examples

Visible Light Through a 600 lines/mm Grating

Inputs

solve fortheta
d1.667
lambda nm550
m1
N600
theta deg19.27

Results

result19.27
result unit°
resolving power600
min resolvable0.9167
max order3

Green light (550 nm) diffracts at 19.27° in first order through a standard 600 lines/mm grating. The resolving power of 600 can separate the sodium D lines (589.0 and 589.6 nm, Δλ = 0.6 nm) only marginally — you would need m = 2.

Finding Wavelength from Measured Angle

Inputs

solve forlambda
d0.833
lambda nm550
m1
N1200
theta deg41.3

Results

result549.5
result unitnm
resolving power1200
min resolvable0.4579
max order1

A 1200 lines/mm grating (d = 0.833 μm) shows first-order diffraction at 41.3°, corresponding to λ ≈ 549.5 nm. Only first order exists for visible wavelengths at this line density.

Frequently Asked Questions

A diffraction grating is an optical element with many equally spaced parallel slits (or grooves). When light passes through, each slit acts as a source of secondary wavelets that interfere constructively at specific angles determined by the grating equation mλ = d sin θ, separating white light into its spectral components.

Resolving power R = mN depends on the diffraction order m and the total number of illuminated slits N. More slits and higher orders both improve resolution. A grating with 1000 slits in second order has R = 2000, meaning it can resolve wavelengths differing by λ/2000.

The maximum order is m_max = floor(d/λ). Since sin θ cannot exceed 1, the grating equation requires mλ ≤ d. For a 600 lines/mm grating with 550 nm light, m_max = floor(1667/550) = 3.

Gratings offer higher resolving power, linear dispersion (nearly equal angular spacing per nm), and work across a wider wavelength range. Prisms have higher throughput (no light lost to multiple orders) and no overlapping orders but provide nonlinear dispersion that depends on the glass material.

Angular dispersion dθ/dλ = m/(d cos θ) measures how fast the diffraction angle changes with wavelength in rad/nm. Higher angular dispersion means greater physical separation of spectral lines at the detector, improving the ability to resolve closely spaced features.

Yes. The second-order diffraction of wavelength λ appears at the same angle as first-order diffraction of 2λ. For example, 400 nm in second order overlaps with 800 nm in first order. Filters or cross-dispersers are used to separate overlapping orders in spectrometers.

Sources & Methodology

Hecht, E. (2017). Optics, 5th ed., Pearson. Born, M. & Wolf, E. (1999). Principles of Optics, 7th ed., Cambridge University Press. Palmer, C. (2005). Diffraction Grating Handbook, 6th ed., Newport Corporation.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Wavelength Calculator

Wave & Physical Optics

Frequency Calculator

Wave & Physical Optics

Wave Speed Calculator

Wave & Physical Optics

Wave Period Calculator

Wave & Physical Optics

Wave Number Calculator

Wave & Physical Optics

Doppler Effect Calculator

Wave & Physical Optics