Diffraction Grating Calculator
Calculate diffraction angles from wavelength, grating lines per mm, and diffraction order, using the grating equation d sin theta = m lambda.
Diffraction Grating Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: d×sin(θ) = mλ
Worked example — θ=19.3°
Formula
d×sin(θ) = mλ
Relates grating spacing, diffraction angle, order, and wavelength.
Worked Examples
Example 1: Visible light
Problem:λ=550nm, 600 lines/mm, m=1
Solution:d=1.667μm, sin(θ)=0.33, θ=19.3°
Result:θ=19.3°
Frequently Asked Questions
What is a diffraction grating?
A surface with many parallel slits that splits light into its component wavelengths. Used in spectrometers. Higher line density = greater angular separation.
What is the grating equation and what does each variable mean?
The grating equation is d × sin(θ) = m × λ, where d is the grating spacing (distance between slits in meters), θ is the diffraction angle measured from the normal, m is the diffraction order (an integer: 0, ±1, ±2...), and λ is the wavelength of light. The grating spacing d = 1 / (lines per meter). For a 600 lines/mm grating, d = 1.667 micrometers. The first order (m=1) gives the primary diffracted beam and is most commonly used in spectroscopy.
What is the difference between reflection and transmission diffraction gratings?
Reflection gratings have grooves ruled on a reflective surface (like a mirror), and light diffracts after bouncing off the surface. They are used in most modern spectrometers and monochromators. Transmission gratings have transparent slits or grooves and light passes through them, similar to the classic two-slit experiment. Transmission gratings are common in educational demonstrations and some compact spectrometers. Blazed reflection gratings are optimized to concentrate most diffracted light into a specific order, improving efficiency for particular wavelength ranges.
What are typical applications of diffraction gratings in science and technology?
Diffraction gratings are essential tools in many scientific and commercial applications: spectrometers and spectrophotometers use them to separate wavelengths of light for chemical analysis and astronomical observation; laser systems use gratings for wavelength selection and tuning; optical telecommunications use them in wavelength-division multiplexing (WDM) to combine and separate multiple wavelengths on a single fiber; CDs and DVDs have microscopic pit patterns that act as diffraction gratings producing rainbow reflections; and X-ray crystallography uses crystal planes as natural diffraction gratings to determine molecular structures of materials and proteins.
How do I convert lines per millimetre into the grating spacing d?
The spacing is the reciprocal of the line density. A grating ruled with 600 lines per millimetre has d equal to one six-hundredth of a millimetre, about 1.667 micrometres or 1.667e-6 m. Convert to metres before using the grating equation so that d and the wavelength share units. Finer rulings mean smaller d and larger diffraction angles for the same wavelength.
How many diffraction orders can actually be observed?
Since the sine of the angle cannot exceed one, the grating equation limits the order to the largest integer not greater than d divided by the wavelength. A grating with d of 1.667 micrometres illuminated at 550 nm gives a ratio near 3.0, so orders up to the third appear. Coarser gratings show many orders, while a grating with d smaller than the wavelength shows only the zeroth.
What is the difference between a grating and a double slit?
Both produce maxima where the path difference is a whole number of wavelengths, so the positions match. The difference is sharpness. A double slit gives broad fringes of gradually varying intensity, whereas N slits concentrate light into narrow principal maxima whose peak intensity scales with N squared and whose width narrows in proportion to one over N. That sharpening is what makes gratings useful for spectroscopy.
What sets the resolving power of a grating?
The chromatic resolving power, the wavelength divided by the smallest resolvable wavelength difference, equals the order multiplied by the number of grooves actually illuminated. Widening the illuminated area or working in a higher order improves resolution. A 600 line per millimetre grating illuminated over 10 mm has 6000 grooves, so in first order it separates wavelengths about one part in 6000 apart, roughly 0.08 nm near 500 nm.
What is angular dispersion and why does it matter in a spectrometer?
Angular dispersion is the rate at which the diffraction angle changes with wavelength, equal to the order divided by d times the cosine of the angle. It is larger for finer rulings, higher orders and larger angles. Together with the focal length of the camera optics it determines how far apart two wavelengths land on the detector, which fixes the reciprocal linear dispersion of the instrument.
Why do overlapping orders limit the usable wavelength range?
The grating equation depends only on the product of order and wavelength, so second-order 400 nm light is diffracted to exactly the same angle as first-order 800 nm light. Without a filter the detector records both at once and the spectrum is ambiguous. Instruments therefore use order-sorting filters, or a cross-dispersing element, to isolate the intended order before detection.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy
Related Calculators
🧮Acceleration Calculator
Calculate acceleration with inputs, formulas, and instant results.
🧮Motion on Incline with Friction Calculator
Calculate motion on incline with friction with inputs, formulas, and instant results.
🧮Relative Velocity Calculator
Calculate relative velocity with inputs, formulas, and instant results.
🧮Velocity Calculator
Calculate velocity with inputs, formulas, and instant results.
🧮Coupled Spring Damper Calculator
Calculate coupled spring damper with inputs, formulas, and instant results.
🧮Friction Force Calculator
Calculate friction force with inputs, formulas, and instant results.