Frequently Asked Questions
What happens if I ask for an order that does not exist?
The calculator returns an error instead of an angle. For the default 600 line grating at 532 nm, asking for order 4 produces a message that m × λ must be less than the groove pitch and that the highest order you can see is 3. Lower the order, use a coarser grating, or choose a shorter wavelength.
How do I find the maximum diffraction order for my grating?
Divide the groove pitch by the wavelength and keep the whole-number part; the card shows this as the highest order possible line. The default gives 1,666.67 divided by 532, or 3.13, so three orders exist on each side. The 900 line preset shows 2 and the 360 line preset shows 5. Order zero, the straight-through beam, is always there.
Does a wider laser beam change the diffraction angle?
No. The angle depends only on pitch, wavelength and order. Beam width only changes how many grooves are illuminated, and therefore the resolving power. In the default setup, widening the beam from 10 mm to 25 mm keeps the angle at 18.61 degrees while R rises from 6,000 to 15 thousand. So if you need finer resolution without moving your detector, a beam expander in front of the grating is the change to try first.
Is higher order always better for resolution?
Resolving power and dispersion both grow with order, so on paper yes. In practice higher orders are dimmer unless the grating is blazed for them, they overlap with other wavelengths from lower orders, and they sit at steep angles. Order 3 on the default grating is at 73.26 degrees, which many mounts cannot collect cleanly.
What is order overlap and does the calculator warn about it?
Light of wavelength λ in order 2 lands at the same angle as λ/2 in order 1. So 532 nm in second order coincides with light at half that wavelength, deep in the ultraviolet, in first order, if your source emits any. The calculator does not check for this. Spectrometers handle it with order-sorting filters that block the shorter wavelengths.
Why is the resolving power the same for red and green light?
R = m·N contains no wavelength. What changes with colour is Δλ, the smallest gap you can split, because Δλ is λ divided by R. At 532 nm the default R of 6,000 gives 0.089 nm, while at a longer red wavelength the same grating separates lines only proportionally further apart. Longer wavelengths therefore need either more grooves under the beam or a higher order to reach the same absolute Δλ.
Can I use this for a CD or DVD acting as a grating?
Yes, as a rough check. Enter the track density in lines per millimetre, computed as one thousand divided by the track pitch in micrometres. Expect the spots to be less sharp than a ruled grating because disc tracks are curved and not perfectly regular, and light usually reflects off the disc at an angle rather than square on.
What does a minimum resolvable wavelength of 0.09 nm mean?
Two spectral lines closer together than about 0.09 nm near 532 nm will blur into one with the default grating and beam. It is the Rayleigh limit set by the grating alone. Your actual spectrometer will usually do worse, because the entrance slit, focusing optics and detector pixels add their own blur.
How do I convert lines per inch to lines per millimetre?
Divide by 25.4, the number of millimetres in an inch. Many educational film gratings are labelled in lines per inch, so enter the converted figure. If you type the per-inch number directly, the calculator will treat the grating as far finer than it is and will usually tell you that no diffraction order exists at your wavelength.
Why does the order box reject 1.6?
Diffraction orders are whole numbers, because each one counts how many whole wavelengths of path difference separate light from neighbouring grooves. The page accepts 1, 2, 3 and so on, up to the highest order possible line, which is 3 at the defaults. If you meant a fractional value, you are probably thinking of another quantity, such as wavelength in micrometres.
Does the grating equation here work for a reflection grating in a spectrometer?
It does when the light arrives square to the grating face, which is what the page assumes. Most spectrometers use a Littrow or Czerny-Turner layout where the incoming beam is tilted, and then you need d(sin θ_i + sin θ_m) = m·λ instead. The resolving power line, 6,000 at the defaults, still holds in either case because it depends only on m and N.
A green laser on a 600 line grating: 18.61 degrees
Out of the box the calculator describes a common teaching and spectroscopy setup. A grating ruled at 600 lines per millimetre is lit at normal incidence by 532 nm light, which is the green of a frequency-doubled laser pointer. The beam covers 10 mm of the grating and you are looking at the first order.
The headline answer is an order-1 diffraction angle of 18.61 degrees. Under it sit five more lines: a groove pitch of 1,666.67 nm, a chromatic resolving power of 6,000, a minimum resolvable wavelength difference of 0.09 nm, a highest possible order of 3, and an angular dispersion of 0.04 degrees per nanometre.
Those come from different parts of the physics. The angle and the highest order depend only on the groove pitch, the wavelength and, for the angle, the order. The resolving power ignores the wavelength entirely and depends only on how many grooves the light falls on and which order you use. The Δλ line divides the wavelength by the resolving power, so it is the place where both halves meet.
That split is the most useful thing to understand before you change any input. Widening the beam never moves the spot. Changing the wavelength never changes R. Only the order and the groove density touch both.
Checking d·sin θ = m·λ by hand
The pitch first. A density of 600 lines per millimetre means each groove sits one six-hundredth of a millimetre from the next. A millimetre is 10⁶ nm, so d is 10⁶ divided by 600, or 1,666.67 nm. That is the supporting line, and the interpretation rounds it to 1666.7 nm.
Now the grating equation. With light arriving square to the grating, d·sin θ = m·λ, so sin θ = m·λ/d. For the default, that is 1 × 532 divided by 1,666.67, which is 0.3192. The arcsine of 0.3192 is 18.61 degrees, matching the result.
Try the other presets the same way. At 360 lines per millimetre the pitch is 2,777.78 nm, sin θ is 532 divided by 2,777.78 or 0.1915, and the angle is 11.04 degrees. At 900 lines per millimetre the pitch is 1,111.11 nm, sin θ is 0.4788, and the angle is 28.61 degrees. The angle is not proportional to the density, because the sine curve flattens as it climbs. Going from 600 to 900 lines adds ten degrees; doubling the density from the default adds about 21 degrees, landing at 39.67.
The calculator assumes normal incidence. If your beam hits the grating at an angle, the full equation is d(sin θ_i + sin θ_m) = m·λ, and the numbers here will not match your bench.
Highest order that exists, and what happens past it
Because a sine can never exceed 1, a diffracted order only exists when m·λ is smaller than d. That gives a simple ceiling: the largest real order is the whole-number part of d/λ. For the default, 1,666.67 divided by 532 is 3.13, so orders 1, 2 and 3 exist on each side of the straight-through beam and order 4 does not. The card prints this directly as the highest order possible, 3.
The calculator gives order 2 at 39.67 degrees and order 3 at 73.26 degrees, both correct. Ask for order 4 and it refuses with an error: it explains that m × λ must be less than the groove pitch and tells you the highest order you can see is 3. That is the right behaviour, since there is no angle to report.
The same limit appears when you raise the density instead of the order. At double the default density, 532 nm still reaches order 1 at 39.67 degrees, but order 2 is refused. At four times the default density the pitch drops below the 532 nm wavelength itself, and the page reports that no diffraction order exists at all, suggesting a coarser grating or a shorter wavelength.
The presets show how the ceiling moves. For the 900 line preset, d/λ is 2.09, and the card shows a highest order of 2. For the 360 line preset it is 5.22, and the card shows 5. Angles close to 90 degrees are legal but hard to use: order 3 on the default grating at 73.26 degrees already skims the grating surface.
Resolving power R = m·N: where 6,000 comes from
N is the number of grooves the light actually illuminates. The engine takes it as density times beam width: 600 lines per millimetre across 10 mm gives 6,000 grooves. In first order R = m·N = 6,000, which is the supporting figure.
R is defined as λ/Δλ, so the smallest wavelength gap you can separate at 532 nm is 532 divided by 6,000, or 0.089 nm. The supporting line rounds that to 0.09 nm; the interpretation keeps three decimals.
The presets show the density effect cleanly. At 360 lines per millimetre over the same 10 mm, N is 3,600 and Δλ widens to 0.148 nm. At 900 lines, N is 9,000 and Δλ narrows to 0.059 nm.
Order multiplies the result directly. The default grating in order 2 gives R of 12 thousand and Δλ of 0.044 nm; in order 3 it gives 18 thousand and 0.03 nm. Widening the illuminated patch to 25 mm in first order gives 15 thousand without moving the spot at all. That is often the cheapest improvement on a real instrument: expand the beam so it fills the grating.
Angular dispersion: how far apart two colours land
Resolving power says whether two lines can be separated in principle. Dispersion says how far apart they actually land, which decides whether your detector pixels or slit can see the split. The card shows it as the angular dispersion line, and it follows the formula dθ/dλ = m / (d·cos θ), in radians per nanometre when d is in nanometres, converted to degrees.
For the default, cos 18.61 degrees is 0.948, so dispersion is 1 divided by (1,666.67 × 0.948), about 0.00063 radians per nm, or 0.036 degrees per nm. The card rounds that to 0.04 deg/nm. Two lines 1 nm apart leave the grating about 0.036 degrees apart. The 360 line preset shows 0.02 deg/nm and the 900 line preset 0.06 deg/nm.
Order 2 at 39.67 degrees gives about 0.089 degrees per nm, which the card shows as 0.09, roughly two and a half times the first-order value. Order 3 at 73.26 degrees gives 0.36 degrees per nm, ten times first order, because cos θ is getting small. The steep growth near grazing angles is real, but so are the losses: high orders near 90 degrees are dim and often clipped by mounts.
To turn angle into distance at a detector, multiply by the focal length of the lens or mirror that follows the grating. A 100 mm lens in first order spreads the spectrum by about 0.063 mm per nm.
Entering groove density, order and beam width correctly
Groove density is lines per millimetre, the number printed on most gratings. Some slides and film gratings are sold in lines per inch; divide by 25.4 before entering, or the page will treat the grating as about 25 times finer than it is. If you only know the pitch in micrometres, density is one thousand divided by the pitch, so a pitch of 1.666 micrometres is the default 600 lines per millimetre.
Wavelength is in nanometres in vacuum or air; the difference is too small to matter here. Any wavelength above zero is accepted, so ultraviolet and infrared work too. At 50 nm, for instance, the default grating gives a first-order angle of just 1.72 degrees, because the wavelength is tiny compared with the pitch.
Order must be a whole number of 1 or more; the page returns an error for 0, negative values or fractions such as 1.6. Negative orders are mirror images of positive ones at normal incidence, so enter the positive value and remember the matching spot on the other side of the straight-through beam.
Beam width is the width across the grooves, not along them. A round 10 mm beam on a grating tilted in its mount covers more than 10 mm of grating; use the projected width. If the beam is wider than the ruled area, enter the ruled width, because grooves that are not there cannot contribute to N.
Why the slug says Bragg and what that means here
The page address mentions Bragg because a second grating calculator was merged into this one. The maths on the page is the plane-grating equation at normal incidence, not Bragg's law for crystal planes, 2d·sin θ = n·λ. The two look alike but measure angles from different references and include a factor of two. If you are working with X-ray diffraction from a crystal lattice, or with a volume Bragg grating where the angle is set by fringes inside the material, this page does not apply directly.
For a reflection grating used in a spectrometer, the result still holds when the light comes in square to the grating surface. Blazed gratings change how bright each order is, not where it lands, so the angles and the 6,000 resolving power are unaffected by the blaze. What blaze does decide is which order is worth using.
Practically, this means the angles on this page are the ones to use for a transmission grating slide on an optical bench or a reflection grating hit square on, which covers most classroom and hobby spectroscopes.
Using the numbers to pick a grating
Suppose you need to split two lines 0.1 nm apart near 532 nm. You need R of at least 532 divided by 0.1, a little over 5 thousand. The default first-order setup gives 6,000, so it works on paper. The 360 line preset gives only 3,600 and would not.
Then check geometry. The grating must not push the order you want past what your optics can collect. The 900 line grating gives more resolving power per millimetre of beam, but its first order is at 28.61 degrees and its second sits at 73.26, close to grazing.
Real instruments rarely reach the theoretical R. Slit width, lens aberrations and detector pixel size usually limit resolution first, so treat the engine's Δλ as the best case the grating allows, not the spectrum you will record.