Diffraction Grating — Spectral Dispersion
A diffraction grating splits light into its component wavelengths by constructive interference. The grating equation d(sin θᵢ + sin θₘ) = mλ relates spacing, angles, order, and wavelength. Resolving power R = mN determines the minimum wavelength difference that can be distinguished.
Did our AI summary help? Let us know.
Higher line density improves resolution but narrows spectral range Blazed gratings concentrate 80–90% of light into one order Echelle gratings use high orders (m=50–100) for extreme resolution Sodium D doublet requires R > 980 to resolve
Ready to run the numbers?
Why: Diffraction gratings enable spectroscopy, laser tuning, and wavelength measurement. Astronomers use them to analyze starlight; CD rainbows come from track spacing acting as a grating.
How: Enter lines per mm, wavelength, and order. The calculator applies d sin θ = mλ for normal incidence, computes resolving power R = mN, and checks if two wavelengths can be resolved.
Run the calculator when you are ready.
Input Parameters
Typical: 300-2400 l/mm
0° = normal incidence
For resolving power calculation
For resolution check
Results - Order m=1
Diffraction Angle
19.269°
Order 1
Resolving Power
2e+4
R = mN
Min Resolvable Δλ
0.0367 nm
λ/R
Max Order
±3
7 visible orders
Grating Constant
1666.667 nm
Total Lines
2e+4
Angular Dispersion
635.606 μrad/nm
Linear Dispersion
635.606 μm/nm
Free Spectral Range
550.000 nm
Can Resolve
✓ Yes
Diffraction Angles for All Orders
Step-by-Step Calculation
Visualizations
For educational and informational purposes only. Verify with a qualified professional.
🔬 Physics Facts
CD/DVD rainbow colors come from 625 lines/mm track spacing acting as a reflection grating.
— HyperPhysics
Echelle gratings use m=50–100 with low line density for exoplanet Doppler detection.
— NIST
Sodium D lines (589.0 and 589.6 nm) need R > 980 to distinguish.
— RP Photonics
Holographic gratings have less scattered light than ruled gratings.
— RP Photonics
🔑 Key Takeaways
Grating Equation: d sin θ = mλ
The fundamental relationship where d is grating spacing, θ is diffraction angle, m is order number, and λ is wavelength. For normal incidence, this simplifies to d sin θ = mλ, showing that different wavelengths diffract at different angles.
Resolving Power: R = mN
The resolving power determines the minimum wavelength difference that can be distinguished. Higher orders (m) and more illuminated lines (N) increase resolution. R = λ/Δλ means smaller Δλ requires larger R.
💡 Did You Know?
CD/DVD Rainbow Effect
The rainbow colors you see on CDs and DVDs are caused by diffraction from the closely-spaced tracks (625 lines/mm), acting as a reflection grating.
Stellar Spectroscopy
Astronomers use diffraction gratings to analyze starlight, determining chemical composition, temperature, and motion of stars millions of light-years away.
Echelle Gratings
Echelle gratings use high orders (m=50-100) with low line density to achieve extremely high resolution, essential for detecting exoplanets via Doppler shifts.
Sodium Doublet Resolution
The famous sodium D lines (589.0 and 589.6 nm) require resolving power R > 980 to distinguish, demonstrating the precision needed for atomic spectroscopy.
Holographic vs Ruled
Holographic gratings are created by interference patterns, producing cleaner spectra with less scattered light than mechanically ruled gratings.
Blaze Wavelength
Blazed gratings concentrate most light into a specific order at a chosen wavelength, increasing efficiency from ~10% to 80-90% for that wavelength.
⚙️ How It Works
1. Light Interaction
When light strikes a diffraction grating, each groove acts as a source of secondary wavelets. Constructive interference occurs when the path difference equals an integer multiple of the wavelength, creating bright diffraction maxima at specific angles.
2. Order Separation
Each wavelength produces multiple diffraction orders (m = 0, ±1, ±2, ...). Higher orders show greater angular separation between wavelengths, improving spectral resolution. However, order overlap limits the usable spectral range.
3. Resolution Limits
The resolving power R = mN determines the minimum wavelength difference Δλ = λ/R that can be distinguished. More illuminated lines (larger N) and higher orders (larger m) improve resolution, but practical limits include grating quality, optical aberrations, and detector resolution.
🎯 Expert Tips
Choose Line Density Wisely
Higher line density (1200-2400 l/mm) provides better resolution but narrower spectral range. For visible light spectroscopy, 600-1200 l/mm is optimal. UV requires 2400+ l/mm, while IR uses 75-300 l/mm.
Optimize Grating Width
Resolving power scales with illuminated width. Use the largest practical grating width for your application. A 50mm wide grating has 2× the resolution of a 25mm grating at the same line density.
Consider Order Overlap
Higher orders increase dispersion but reduce free spectral range. Use order-sorting filters or cross-dispersed echelle configurations to handle overlapping orders in wide spectral coverage applications.
Blaze for Efficiency
Select a blazed grating with blaze wavelength near your primary wavelength of interest. This concentrates 80-90% of light into the desired order, dramatically improving signal-to-noise ratio.
📊 Comparison: Ruled vs Holographic vs Echelle Gratings
| Grating Type | Line Density | Efficiency | Scattered Light | Best For |
|---|---|---|---|---|
| Ruled | 300-2400 l/mm | 60-80% (blazed) | Moderate | General spectroscopy, high efficiency |
| Holographic | 300-3600 l/mm | 30-50% | Low | Raman spectroscopy, low stray light |
| Echelle | 79-316 l/mm | 70-90% (blazed) | Low | High-resolution, wide coverage |
❓ Frequently Asked Questions
What is the difference between transmission and reflection gratings?
Transmission gratings diffract light passing through, while reflection gratings diffract light reflected from the surface. Reflection gratings are more common, especially blazed types that concentrate light into specific orders. Transmission gratings are simpler but less efficient.
How do I choose the right line density for my application?
For visible light (400-700 nm), 600-1200 lines/mm is typical. UV spectroscopy needs 2400+ l/mm for adequate resolution. IR applications use 75-300 l/mm. Higher density improves resolution but reduces spectral range and requires more precise alignment.
What causes order overlap in diffraction gratings?
Order overlap occurs when different wavelengths in different orders appear at the same angle. For example, 400 nm in 2nd order overlaps with 800 nm in 1st order. Free spectral range FSR = λ/m limits the usable range before overlap. Use order-sorting filters or echelle configurations to handle this.
How does resolving power relate to actual spectral resolution?
Resolving power R = mN = λ/Δλ determines the minimum wavelength difference Δλ that can be distinguished. For example, R = 10,000 means wavelengths differing by 0.055 nm at 550 nm can be resolved. Actual resolution also depends on detector pixel size, optical aberrations, and signal-to-noise ratio.
What is a blazed grating and why is it important?
A blazed grating has grooves shaped to concentrate light into a specific order at a chosen wavelength (blaze wavelength). This increases efficiency from ~10% (unblazed) to 80-90% (blazed), dramatically improving signal-to-noise ratio. Choose blaze wavelength near your primary wavelength of interest.
Can I use a diffraction grating to measure unknown wavelengths?
Yes! Measure the diffraction angle θ for a known order m and grating spacing d, then calculate λ = d sin θ / m. This is how spectrometers identify elements in unknown samples. Calibrate with known spectral lines (e.g., sodium D lines at 589.0/589.6 nm) for accuracy.
How does incident angle affect diffraction?
Non-zero incident angles shift all diffraction orders. The grating equation d(sin θᵢ + sin θₘ) = mλ accounts for this. At normal incidence (θᵢ = 0°), it simplifies to d sin θₘ = mλ. Angled incidence can improve efficiency and reduce order overlap in some configurations.
What limits the maximum usable diffraction order?
Maximum order occurs when sin θₘ = ±1, giving m_max = d(1 + sin θᵢ)/λ. Higher orders have greater dispersion but lower intensity and more overlap. Practical limits include detector sensitivity, optical aberrations, and the need for order-sorting filters. Most applications use orders 1-3.
📊 Diffraction Grating by the Numbers
📚 Official Sources
⚠️ Disclaimer
This calculator is for educational and design purposes. Always verify calculations and use appropriate safety margins. For critical applications involving spectroscopy, optical system design, or precision measurements, consult a licensed engineer or optical specialist. Grating calculations assume ideal conditions and may need adjustment for real-world factors like optical aberrations, grating imperfections, detector limitations, and environmental conditions. Actual resolving power may be lower than theoretical values due to manufacturing tolerances, alignment errors, and system limitations.
Related Calculators
Bragg's Law Calculator
Calculate X-ray diffraction angles, d-spacings, and wavelengths using Bragg's Law for crystallography.
PhysicsIndex of Refraction Calculator
Calculate refractive indices, refraction angles, critical angles, and Fresnel reflectances using Snell's law.
PhysicsLaser Linewidth Calculator
Calculate laser linewidth, coherence length, and spectral bandwidth for interferometry applications.
PhysicsSnell's Law Calculator
Calculate refraction angles, critical angles, and total internal reflection using Snell's Law.
PhysicsAngular Resolution Calculator
Calculate the resolving power of optical systems using Rayleigh criterion and diffraction limits.
PhysicsAperture Area Calculator
Calculate aperture area for circular and non-circular apertures in optical and photography systems.
Physics