The Angle Dispersion Calculator computes angular spread of wavelengths through a prism or grating based on refractive index and geometry.
Report an issue
Spotted a wrong result, broken field, or typo? Tell us below and we’ll fix it fast.
What Is a Angle Dispersion Calculator?
An angle dispersion calculator estimates how much an output beam’s direction changes when the input wavelength changes slightly. This rate, often written as dθ/dλ, is the angular dispersion. It is a key driver of spectral resolution and physical spread in spectrometers and monochromators.
The calculator typically supports two common optical elements: diffraction gratings and prisms. For gratings, dispersion arises from interference and depends on groove spacing, order, and geometry. For prisms, dispersion arises from wavelength-dependent refractive index and the prism’s apex angle. In both cases, the tool uses standard physics formulas to compute angles and the slope with respect to wavelength, in your chosen units.
With the results, you can predict how far apart colors will land on a detector at a given focal length. You can also compare configurations, test ranges, and understand tradeoffs between sensitivity and usable wavelength coverage.

How the Angle Dispersion Method Works
The method ties geometry to wavelength. It starts with a base equation that gives the output angle as a function of wavelength. Differentiating that relation yields angular dispersion. Multiplying by a focal length converts angular dispersion to linear dispersion at a focal plane.
- Select a model: diffraction grating or prism.
- Compute the diffraction or deviation angle for a wavelength using the relevant law.
- Differentiate the angle with respect to wavelength to get dθ/dλ (angular dispersion).
- Optionally multiply by focal length f to get dY/dλ (linear dispersion) on a detector.
- For two discrete wavelengths, compute each angle and use Δθ/Δλ as an average dispersion.
This approach keeps constants, variables, and units visible at each step. It provides both local sensitivity (derivative) and practical separation between two lines. The result is a clear picture of how your system spreads colors.
Equations Used by the Angle Dispersion Calculator
The calculator implements the standard relations for gratings and prisms. It handles base angles, derivatives, and optional conversions to linear dispersion. When material models are needed, it uses common formulas with wavelength-dependent refractive index.
- Diffraction grating (general):
mλ = d [sin θ + sin α] where m is diffraction order (integer), λ is wavelength, d is groove spacing, θ is diffraction angle, and α is incidence angle. - Grating angular dispersion (holding m, d, α fixed):
dθ/dλ = m / [d cos θ] Note: θ must be in radians for dθ/dλ to have units of rad per wavelength unit. - Littrow mounting (α = θ) special case:
mλ = 2d sin θ and dθ/dλ = m / [2d cos θ] - Linear dispersion at focal length f:
dY/dλ = f (dθ/dλ)
giving distance per wavelength on a focal plane (e.g., mm/nm). - Prism at minimum deviation δ:
n(λ) = sin[(A + δ)/2] / sin(A/2)
where A is prism apex angle, n(λ) is refractive index. Solve for δ(λ) = 2 arcsin[n(λ) sin(A/2)] − A. - Prism angular dispersion at minimum deviation (exact):
dδ/dλ = 2 sin(A/2) [dn/dλ] / cos[(A + δ)/2]
The calculator can use exact implicit differentiation for prisms or the thin-prism approximation for speed. For gratings, it computes θ from the grating law, then applies the derivative formula. If you provide a focal length, it returns linear dispersion as well.
Inputs and Assumptions for Angle Dispersion
The calculator needs a small set of inputs. Some are geometric parameters, others are optical material properties. Units are explicit, and constants are treated consistently throughout the computation.
- Model: grating or prism.
- Wavelength: λ (single) or a pair (λ1, λ2) for average dispersion; selectable units (nm, µm, m).
- Grating: groove density (lines/mm) or pitch d; incidence angle α; diffraction order m.
- Prism: apex angle A; refractive index model n(λ) with coefficients (e.g., Cauchy or Sellmeier) and valid wavelength range.
- Focal length f for linear dispersion (optional), with units (mm or m).
- Angle units for output (deg or rad).
Ranges and edge cases matter. For gratings, if cos θ approaches zero, dispersion grows rapidly and small errors inflate. For prisms, n(λ) must be valid over the chosen bandwidth; extrapolation can mislead. Higher orders m increase dispersion but may push angles beyond physical limits. The tool flags inputs that violate geometry or unit consistency.
How to Use the Angle Dispersion Calculator (Steps)
Here’s a concise overview before we dive into the key points:
- Choose the optical model: diffraction grating or prism.
- Enter the wavelength (or two wavelengths) and select the units.
- Provide geometry: grating pitch or lines/mm and incidence angle, or prism apex angle.
- Set the diffraction order m (grating) or select a refractive index model and coefficients (prism).
- Optionally enter the focal length if you want linear dispersion at a detector plane.
- Compute to view angles, dθ/dλ, and, if applicable, dY/dλ.
These points provide quick orientation—use them alongside the full explanations in this page.
Real-World Examples
Grating spectrometer for a green laser line: A spectrometer uses a 1200 lines/mm grating, normal incidence (α = 0 deg), and first order (m = 1). Groove pitch is d = 1/1200 mm = 833.33 nm. For λ = 532 nm, sin θ = λ/d ≈ 0.532/0.8333 ≈ 0.638, so θ ≈ 39.6 deg. Angular dispersion is dθ/dλ = m/[d cos θ] ≈ 1/[833.33 nm × 0.769] ≈ 0.00156 rad/nm (≈ 0.089 deg/nm). With a focal length f = 200 mm, linear dispersion is dY/dλ = f dθ/dλ ≈ 0.312 mm/nm. What this means: Two spectral lines 0.5 nm apart would be separated by about 0.156 mm at the detector.
Prism-based spectrograph with BK7: A 60 deg apex BK7 prism operates near minimum deviation. Using standard BK7 indices at the Fraunhofer F and C lines, n(486.1 nm) ≈ 1.52238 and n(656.3 nm) ≈ 1.51432. The deviation is δ = 2 arcsin[n sin(A/2)] − A, with sin(A/2) = 0.5. For 486.1 nm, δ ≈ 39.2 deg; for 656.3 nm, δ ≈ 38.8 deg, so Δδ ≈ 0.4 deg across Δλ ≈ 170.2 nm. The average angular dispersion is about 0.4 deg/170.2 nm ≈ 0.00235 deg/nm (≈ 0.041 mrad/nm). What this means: Over the visible band, a single prism spreads wavelengths gently, which suits coarse spectral separation or pre-dispersion.
Limits of the Angle Dispersion Approach
Angle dispersion is a local sensitivity measure. It is most accurate for small wavelength changes around a set point. Practical systems also face alignment, aberrations, and polarization effects that this simple model may not include by default.
- Scalar diffraction and ray optics ignore vector polarization and coatings unless specified.
- Material models (Cauchy/Sellmeier) have valid wavelength ranges and temperature limits.
- High orders or near-grazing angles can yield very large derivatives and unstable outputs.
- Finite slit widths and detector sampling limit real resolving power beyond pure dispersion.
Use the calculator to compare configurations and predict trends. Validate final designs with full optical simulation and measured material data when possible.
Units Reference
Units matter because dispersion is a ratio of an angle to a wavelength. Mixing deg and rad, or nm and µm, changes numerical values. Keep inputs and outputs consistent to avoid scaling errors.
| Quantity | Symbol | Typical Units | Notes |
|---|---|---|---|
| Wavelength | λ | nm, µm, m | 1 µm = 1000 nm; visible light ≈ 380–750 nm |
| Angle | θ, δ, α, A | rad, deg | Use rad for derivatives; 1 rad ≈ 57.2958 deg |
| Grating groove density | 1/d | lines/mm | d (pitch) = 1 / density; d can be in nm or µm |
| Angular dispersion | dθ/dλ | rad/nm, deg/nm | Ensure θ in rad if you need SI-consistent outputs |
| Linear dispersion | dY/dλ | mm/nm, mm/µm | dY/dλ = f (dθ/dλ) with f in mm or m |
| Focal length | f | mm, m | Choose units to match your detector scale |
Read the table left to right: pick the quantity, note the symbol, then select consistent units. If your inputs use mixed units, convert first to keep the variables aligned.
Troubleshooting
Most issues arise from unit mismatches or geometry that violates physical constraints. If the output angle is not real, or dispersion seems unreasonably large, check each input and confirm valid ranges.
- Verify wavelength units match the refractive index model (e.g., λ in µm for Cauchy coefficients).
- Ensure |sin θ| ≤ 1 for grating solutions; otherwise adjust order m or angles.
- Avoid cos θ near zero for grating dispersion unless that regime is intended.
- Confirm prism n(λ) is defined over your λ range and at your temperature.
If problems persist, simplify the case: use a single wavelength, set α = 0 deg for gratings, or use the thin-prism approximation. Then add complexity step by step.
FAQ about Angle Dispersion Calculator
What is the difference between angular and linear dispersion?
Angular dispersion dθ/dλ is change in angle per change in wavelength. Linear dispersion dY/dλ multiplies that by focal length to get distance per wavelength at a detector.
Do higher diffraction orders always improve resolution?
Higher orders increase angular dispersion, but they also reduce usable bandwidth and can create overlapping spectra. Balance order m with your wavelength range and detector size.
Which is better for dispersion, a grating or a prism?
Gratings typically provide stronger, more linear dispersion over moderate bandwidths. Prisms offer smooth, continuous dispersion and high throughput but less separation per nanometer.
Can the calculator handle material temperature effects?
If you supply temperature-adjusted refractive index coefficients or models, yes. Otherwise it assumes standard conditions, which may slightly shift results.
Angle Dispersion Terms & Definitions
Angular dispersion
The derivative dθ/dλ describing how the output angle changes with wavelength, usually expressed in rad/nm or deg/nm.
Linear dispersion
The spatial spread per wavelength at a focal plane, dY/dλ = f (dθ/dλ), typically in mm/nm.
Grating equation
The relation mλ = d [sin θ + sin α] that sets the diffraction angle for a given order, wavelength, and geometry.
Apex angle
The angle A between the two refracting faces of a prism; it controls deviation and dispersion strength.
Minimum deviation
The prism orientation where the input and output angles are symmetric, yielding δ = 2 arcsin[n sin(A/2)] − A.
Refractive index model
An equation, such as Cauchy or Sellmeier, that gives n as a function of wavelength and sometimes temperature.
Diffraction order
An integer m labeling the interference maximum; higher orders can increase dispersion but reduce usable range.
Groove density
The number of grating lines per unit length (e.g., lines/mm); its inverse is the groove spacing d.
Sources & Further Reading
Here’s a concise overview before we dive into the key points:
- Wikipedia: Diffraction grating overview, equations, and applications
- HyperPhysics: Diffraction grating basics and resolving power
- RefractiveIndex.INFO: BK7 optical glass refractive index data (SCHOTT)
- Wikipedia: Sellmeier equation for modeling dispersion in transparent media
- HyperPhysics: Prism minimum deviation and refractive index relations
- MIT OpenCourseWare: Lecture notes on optics and diffraction
These points provide quick orientation—use them alongside the full explanations in this page.