Enter Grating Inputs
Example Data Table
| Wavelength | Line Density | Incident Angle | Order | Approx. Diffraction Angle | Use Case |
|---|---|---|---|---|---|
| 532 nm | 600 lines/mm | 0° | 1 | 18.62° | Green laser separation |
| 632.8 nm | 600 lines/mm | 0° | 1 | 22.33° | He-Ne optical testing |
| 450 nm | 1200 lines/mm | 5° | 1 | 27.45° | Compact spectrometer design |
| 1550 nm | 300 lines/mm | 10° | 1 | 17.74° | Infrared system studies |
Formula Used
The calculator uses the grating equation for diffraction analysis. It also estimates dispersion and spectral resolution using standard engineering optics relationships.
| Quantity | Formula | Meaning |
|---|---|---|
| Grating Equation | mλ = d(sinα + sinβ) |
Relates wavelength, order, spacing, incident angle, and diffracted angle. |
| Spacing from Density | d = 1 / (lines per meter) |
Converts groove density into spacing. |
| Resolving Power | R = |m|N |
Shows how well the grating separates close wavelengths. |
| Minimum Resolvable Difference | Δλ = λ / R |
Smallest wavelength separation that can be resolved. |
| Angular Dispersion | D = |m| / (d cosβ) |
Shows angle sensitivity to wavelength change. |
| Free Spectral Range | FSR ≈ λ / |m| |
Approximate usable wavelength span before overlap. |
How to Use This Calculator
- Choose whether you want to enter line density or direct grating spacing.
- Enter the wavelength and choose the correct unit.
- Set the incident angle and diffraction order to study.
- Enter illuminated grating width to estimate resolving power.
- Add focal length if you want approximate linear dispersion.
- Set graph order limits to compare multiple observable orders.
- Press the calculate button to display results above the form.
- Use the CSV or PDF buttons to export the result section.
Frequently Asked Questions
1. What does this diffraction grating calculator compute?
It computes grating spacing, diffraction angle, line density, dispersion, resolving power, minimum resolvable wavelength difference, and approximate free spectral range from your engineering inputs.
2. Why does the calculator sometimes show no real solution?
A real diffraction angle exists only when the grating equation produces a sine value between -1 and 1. If it falls outside that range, the selected order cannot propagate physically.
3. How does line density affect diffraction angle?
Higher line density means smaller spacing. Smaller spacing usually increases angular separation between wavelengths, which helps produce stronger dispersion in many optical engineering designs.
4. What is resolving power in a grating system?
Resolving power measures how well the grating can distinguish nearby wavelengths. It increases with diffraction order and the number of illuminated grooves on the grating surface.
5. Why is the incident angle important?
The incident angle shifts the diffraction solution because the beam already arrives with angular bias. Changing it alters observable orders, diffraction direction, and dispersion behavior.
6. Can I use spacing instead of lines per millimeter?
Yes. The calculator supports direct spacing entry. It automatically converts spacing into equivalent line density, then uses the same grating relationships for all outputs.
7. What does the Plotly chart show?
The chart plots diffraction order on the horizontal axis and diffraction angle on the vertical axis. It helps you compare which orders are physically valid and how quickly angle changes.
8. Is linear dispersion exact in this tool?
It is an engineering estimate based on focal length and angular dispersion. It is very useful for quick planning, but detailed instrument design may need fuller optical modeling.