QQ: 859818709

Diffraction Grating Calculator

Diffraction Grating Calculator

Diffraction Grating Calculator

Based on the ideal grating equation mλ=d(sinα±sinβ), this online tool solves for the diffraction angle, angular dispersion, linear dispersion, resolving power, free spectral range (FSR) and blaze wavelength from the groove density, incident angle, wavelength and diffraction order. It supports reflection / transmission gratings and includes 5 built-in preset scenarios, making it suitable for spectrometer design, laser line selection and optical fibre communications.

🔷 Diffraction angle β📐 Angular dispersion D🔬 Resolving power R🌈 Free spectral range✨ Blaze wavelength

🔬 Diffraction Grating Parameter Calculator

Select the grating type, enter the groove density, incident angle, wavelength and order, and all spectral performance indicators are calculated immediately

Grating type
Preset scenarios

lines/mm

nm

°

Integer

mm

mm

°

Ray geometry diagramGeometry

The red line is the incident light; coloured lines represent the diffraction orders (the highlighted one is the currently selected order m). All angles are measured from the normal.

Diffraction angle – wavelength curveβ vs λ

With the current incident angle α and groove density N fixed, this shows how the diffraction angle β varies with wavelength λ for different orders m; a break in the curve indicates that the order does not exist (|sinβ|>1).

OVERVIEW

Overview of the Diffraction Grating Calculator

From the grating equation to the full set of spectral performance indicators, all in one place

A diffraction grating is a dispersive optical element made up of a large number of equally spaced parallel grooves. It uses multi-beam interference and single-slit diffraction to separate polychromatic light spatially by wavelength, and is a core component of spectrometers, monochromators, laser wavelength selection and optical fibre communications. Based on the ideal grating equation, this calculator covers the full range of calculations from the basic diffraction angle to advanced spectral performance indicators, helping engineers complete rapid feasibility estimates and teaching demonstrations.

Parameter description

Parameter Symbol Meaning / unit
Groove density N Number of grooves per millimetre (lines/mm); grating period d = 10⁶/N (nm)
Wavelength λ Vacuum wavelength of the incident light, in nm
Incident angle α Angle between the incident ray and the grating normal, in °
Diffraction order m Integer diffraction order; 0 is the zeroth order (no dispersion), ±1/±2… are orders on either side
Illuminated width W Illuminated width of the grating (mm), which determines the total number of grooves N_total = W·N
Focal length f Focal length of the imaging / collimating system (mm), used for linear dispersion calculation
Blaze angle θ_B Tilt angle of the groove facet (°), used for the Littrow blaze wavelength calculation

CORE FORMULAS

Core formulas of the diffraction grating

Master the following relationships to estimate any spectral performance indicator quickly

Grating equation
m·λ = d·(sinα + sinβ)
For a reflection grating (transmission uses the minus sign, mλ=d(sinα−sinβ)). d=1/N is the grating period, and both α and β are measured from the normal. Reflection grating: sinβ=mλ/d−sinα, i.e. β=arcsin(mλ/d−sinα); transmission grating: sinβ=sinα−mλ/d. When |sinβ|>1 the order does not exist.
Angular dispersion
D = dβ/dλ = m/(d·cosβ)
In rad/nm; it expresses the change in diffraction angle per unit wavelength change. The closer β is to 90° (grazing incidence), the greater the dispersion.
Reciprocal linear dispersion
dλ/dl = d·cosβ/(m·f)
In nm/mm, a key spectrometer indicator; the smaller it is, the narrower the wavelength range covered by the same pixels and the higher the resolution. Linear dispersion dl/dλ=f·D.
Resolving power
R = λ/Δλ = m·N_total
N_total = W·N (total illuminated grooves = illuminated width W × groove density N). The minimum resolvable Δλ_min=λ/R. At zeroth order m=0, R=0 and there is no dispersion.
Free spectral range FSR
FSR ≈ λ/|m|
The maximum wavelength span within one order without overlap from adjacent orders, approximately FSR≈λ/|m|; the strict adjacent-order overlap threshold is λ/(|m|+1) (the long wavelength λ of order m overlaps the short wavelength λ′=mλ/(m+1) of order m+1). Beyond this, order m and order m+1 are superimposed.
Blaze condition (Littrow)
2·d·sinθ_B = m·λ_B
The blaze angle θ_B corresponds to the blaze wavelength of highest efficiency λ_B=2d·sinθ_B/m. In the Littrow configuration α=β=θ_B, giving autocollimation and the highest blaze efficiency.
Reflection / transmission switchingFull output of all indicatorsRay geometry diagram + β–λ curve5 preset scenariosPure front-end local calculation

FAQ

FAQ

Common questions about the Diffraction Grating Calculator

What is a diffraction grating?
A diffraction grating is an optical element made up of a large number of equally spaced parallel grooves. It uses multi-beam interference and single-slit diffraction to separate polychromatic light spatially by wavelength, and is a core component of spectrometers, monochromators and laser wavelength selection. The groove density N is the number of grooves per millimetre, and the grating period d=1/N.
What is the grating equation?
The grating equation describes the angular relationship between incident and diffracted light: for a reflection grating mλ=d(sinα+sinβ), for a transmission grating mλ=d(sinα−sinβ). Here m is the diffraction order (an integer), λ the wavelength, d the grating period, α the incident angle and β the diffraction angle. All angles are measured from the grating normal.
What is the difference between angular dispersion and linear dispersion?
Angular dispersion D=dβ/dλ=m/(d·cosβ) expresses the change in diffraction angle per unit wavelength change, in rad/nm. Linear dispersion is the displacement per unit wavelength in the focal plane, dl/dλ=f·D; in engineering its reciprocal dλ/dl=d·cosβ/(m·f) is more commonly used, in nm/mm, which directly determines the wavelength calibration of a spectrometer.
How is the resolving power of a diffraction grating calculated?
Resolving power R=λ/Δλ=m·N_total, where N_total is the total number of illuminated grooves = illuminated width W × groove density N. The larger R, the smaller the distinguishable wavelength difference Δλ_min=λ/R. At zeroth order (m=0) there is no dispersion and R=0.
What is the free spectral range (FSR)?
The free spectral range (FSR) is the maximum wavelength span within one order without overlap from adjacent orders, approximately FSR≈λ/|m|; the strict adjacent-order overlap threshold is λ/(|m|+1) (the long wavelength λ of order m overlaps the short wavelength λ′=mλ/(m+1) of order m+1). Exceeding this range causes spectral overlap.
What is the relationship between blaze angle and blaze wavelength?
In a blazed grating the groove facet is tilted relative to the surface by a blaze angle θ_B. In the Littrow autocollimation configuration (incident angle = diffraction angle = θ_B), the blaze wavelength of highest efficiency satisfies 2d·sinθ_B=m·λ_B. Given θ_B, the blaze wavelength of that order can be obtained as λ_B=2d·sinθ_B/m.
Are the formulas for reflection and transmission gratings the same?
The core is mλ=d(sinθ_i±sinθ_m) in both cases; the difference lies in the sign convention: for a reflection grating the incident and diffracted rays are on the same side of the normal, using the plus sign mλ=d(sinα+sinβ); for a transmission grating they are on opposite sides, using the minus sign mλ=d(sinα−sinβ). This calculator provides reflection / transmission switching and automatically applies the corresponding convention.
Why does a diffraction order not exist?
When |mλ/d − sinα|>1 (reflection) or |sinα − mλ/d|>1 (transmission), the equation has no real solution, indicating that the order does not exist under the current parameters — usually caused by too long a wavelength, too high an order or too low a groove density. This tool reports the highest visible order m_max=floor[(d/λ)(1+sinα)].
What can the Diffraction Grating Calculator do?
By entering the groove density, incident angle, wavelength and diffraction order, this tool calculates the diffraction angle, angular dispersion, reciprocal linear dispersion, resolving power, minimum resolvable wavelength, free spectral range, highest visible order and blaze wavelength, and provides a ray geometry diagram and a diffraction-angle-versus-wavelength curve, with 5 built-in preset scenarios including spectrometer, Littrow laser line selection, optical communications and UV.
Which applications is the Diffraction Grating Calculator suitable for?
It is suitable for spectrometer / monochromator design, laser wavelength selection and frequency stabilisation, pulse-compression grating pairs, optical fibre communications wavelength analysis, evaluation of grating efficiency and blaze conditions, and demonstration of the grating equation and dispersion in optics teaching.
Is this Diffraction Grating Calculator free?
Yes. The Diffraction Grating Calculator provided by Soar Laser is completely free and requires no registration; all calculations are performed locally in the browser and no data is uploaded.
Are the calculation results accurate and suitable for engineering design?
The calculations are based on the ideal grating equation and standard formulas, suitable for feasibility estimates and teaching. The efficiency, polarisation dependence, aberrations and manufacturing tolerances of real devices affect actual performance; for formal design, please refer to the grating manufacturer’s specification sheet.
How are the grating period d and groove density N converted?
The groove density N is in lines/mm, and the grating period d=1/N (mm), which converts to nanometres as d=10⁶/N (nm). For example, 1200 lines/mm corresponds to d≈833.3 nm.
How should the diffraction order m be chosen?
m is an integer, with positive and negative values representing the two sides of the normal. The first order (m=±1) is the most commonly used, with the highest efficiency and moderate dispersion; higher orders give greater dispersion and resolving power but a smaller free spectral range, more spread-out energy and lower efficiency. The choice requires a trade-off between dispersion, efficiency and FSR.
What effect does the illuminated width have on resolving power?
Resolving power R=m·N_total, with N_total = illuminated width W × groove density N. For a fixed grating and order, increasing the illuminated width of the grating (i.e. increasing the number of grooves participating in interference) directly raises R and reduces Δλ_min, so uniform illumination over a large aperture is beneficial for higher resolution.
What is the Littrow configuration?
The Littrow configuration is an autocollimation optical path in which the incident angle equals the diffraction angle (α=β), so the beam returns along its original path. In this case the blaze efficiency is highest (autocollimation) and the blaze condition is naturally satisfied; it is commonly used for laser line selection and external-cavity frequency stabilisation, corresponding to α=β=θ_B and 2d·sinθ_B=mλ_B.
What is the practical significance of the reciprocal linear dispersion dλ/dl?
dλ/dl represents the wavelength interval per millimetre in the focal plane (nm/mm) and is a key spectrometer indicator. The smaller it is, the narrower the wavelength range covered by the same detector pixels and the higher the resolution. A typical monochromator with 1200 lines/mm and a 500 mm focal length is about 1.6 nm/mm.
What is the difference between a diffraction grating calculator and a prism spectrometer?
Gratings disperse light by multi-beam interference: the dispersion is approximately independent of wavelength and the orders are distinct, but there is order overlap (FSR). Prisms rely on refractive index dispersion: the dispersion varies greatly with wavelength and there is no order overlap, but the usable wavelength range is limited. Gratings are more prevalent in modern spectrometers.
Can this tool be used to design a pulse-compression grating pair?
This tool can calculate the angular and linear dispersion of a grating pair, for estimating the amount of stretching / compression; however, pulse compression also requires consideration of group delay dispersion (GDD), the incidence geometry (typically the -1 order with α≈54.7°) and the grating size, so further calculation with femtosecond pulse design references is recommended.

This Diffraction Grating Calculator is based on the ideal grating equation and standard formulas and is suitable for feasibility estimates, teaching demonstrations and preliminary selection. The efficiency, polarisation dependence, aberrations, manufacturing tolerances and mounting errors of real diffraction gratings significantly affect actual performance; for critical applications such as precision spectrometer design, laser frequency stabilisation or pulse compression, please refer to the official specification sheets and measured data provided by the grating manufacturer. Soar Laser makes no express or implied warranty regarding the results calculated by this tool; use of the tool constitutes acknowledgement of and agreement to this disclaimer.

Related tools:Optical Tools Calculator Overview· Gaussian beam propagation · focused spot · laser-induced damage threshold (LIDT) · F/# and numerical aperture.

中文EN