On this page
A steel ruler has marks 1 mm apart. A diffraction grating for visible light has lines a few micrometres apart, about a thousand times closer. Yet if you shine a red laser pointer almost along the ruler, so that it skims the engraved marks, a neat row of bright spots climbs up the far wall. Measure their heights with the same ruler and you can work out the laser's wavelength to about one per cent. The trick is grazing incidence, and the equation behind it is a classic path-difference problem.
Safety first. Never look into the laser beam or along it, and never point it at anyone. The steel ruler is a mirror, so check where the reflected beam goes before you switch on, and keep the spots on the wall below anyone's eye level. Use a low-power pointer and read why laser pointers are dangerous for eyes before you start.
Why does a ruler act like a diffraction grating?
The engraved marks scatter light differently from the polished steel between them, so the surface is a periodic pattern with spacing d = 1 mm: a reflection grating, like the spiral track in why a CD shows rainbow colours. That post uses light falling straight on, where the grating equation is d sin θ = mλ.
Try that with d = 1 mm. The first order sits at sin θ = λ/d = 650 nm / 1 mm = 6.5 × 10⁻⁴. On a wall 3 m away it would be only 3 m × 6.5 × 10⁻⁴ ≈ 2 mm from the central spot, lost inside the spot itself. Straight on, a ruler is useless as a grating.
At grazing incidence the picture changes. Seen along the beam, the 1 mm marks are foreshortened to d sin α, where α is the small angle between the beam and the ruler's surface. At α = 0.5°, that is 1 mm × sin 0.5° ≈ 8.7 µm, close to the spacing of a coarse grating. That is why the spots spread by degrees instead of by hundredths of a degree.
What is the path difference at grazing incidence?
Measure every angle from the ruler's surface, not from the normal. Let the beam arrive at angle α and leave towards a spot at angle β.
Take two neighbouring marks, A and B, with A nearer the laser. The ray to B travels an extra d cos α along the incoming direction. After reflection, the ray from A travels an extra d cos β to catch up with the ray leaving B. So the path difference is
Δ = d cos α − d cos β
Bright spots appear where Δ is a whole number of wavelengths:
d(cos α − cos β_n) = nλ, with n = 0, 1, 2, 3 …
The order n = 0 gives β = α: the ordinary mirror reflection. For n ≥ 1, cos β_n is smaller, so β_n is larger and the spots climb above the mirror spot.
There are no spots below the mirror spot. For n = −1 you would need cos β = cos α + λ/d = 0.99996 + 0.00065, which is more than 1. No angle has that cosine.
Worked example: where do the spots land?
Take λ = 650 nm (a red pointer), d = 1 mm, α = 0.5°, and a wall L = 3.00 m from the marks. Heights y are measured from the plane of the ruler, so tan β = y/L.
Mirror spot (n = 0): y₀ = 3.00 m × tan 0.5° = 2.62 cm.
cos α: cos 0.5° = 0.999962.
First order (n = 1): cos β₁ = 0.999962 − 0.00065 = 0.999312, so β₁ = 2.13° and y₁ = 3.00 m × tan 2.13° = 11.13 cm.
Higher orders: the same steps give y₂ = 15.54 cm, y₃ = 18.95 cm, y₄ = 21.83 cm and y₅ = 24.39 cm.
Check the pattern: for small angles β_n² ≈ α² + 2nλ/d, so the heights grow roughly as √n. The gaps shrink: 8.5 cm, then 4.4, 3.4, 2.9 and 2.6 cm. Equal gaps would mean you had the wrong equation.
Unlike a normal-incidence grating, the spots are not evenly spaced. This is the clearest sign that you are seeing grazing-incidence diffraction.
How do you get the wavelength back from the spots?
Now run it backwards, the way you would in the lab.
Find the ruler's plane. Remove the ruler and mark where the direct beam hits the wall. Put it back and mark the mirror spot. The plane of the ruler is halfway between them.
Measure heights. Say you read y₀ = 2.62 cm and y₃ = 18.95 cm.
Angles: α = tan⁻¹(2.62/300) = 0.500°, β₃ = tan⁻¹(18.95/300) = 3.614°.
Wavelength: λ = d(cos α − cos β₃)/3 = 1 mm × (0.999962 − 0.998011)/3 ≈ 650 nm.
Error check: reading y₃ 1 mm too high (19.05 cm) gives about 659 nm, an error of about 1.4%. Use a high order and a distant wall to keep the relative error small.
Notice that you never need a protractor. The mirror spot gives you α, and the ruler supplies d.
The idea is old. Arthur Schawlow, one of the laser's pioneers, described it in Measuring the wavelength of light with a ruler, a short note in the American Journal of Physics in 1965. If you have measured a hair with a laser, as in measure a hair with a laser pointer, this is the reverse trick: there you knew λ and found a size; here you know the size and find λ.
What can go wrong in the experiment?
Cheap plastic rulers often have marks too shallow to diffract well. A steel rule with engraved marks works better.
If your ruler has half-millimetre marks in the same row, they add a 0.5 mm spacing. Its spots fall on the even-numbered 1 mm spots, so the odd ones can look fainter.
Keep α small. At α = 2° the first spot is only 0.9° above the mirror spot, against 1.6° at α = 0.5°.
Measure heights from the ruler's plane, not from the floor or table.
How does this help with JEE questions?
JEE problems on oblique incidence test exactly this skill: writing the path difference from the geometry instead of from memory. The ruler gives you a real experiment to hang the equation on. If you want worked problems like this inside a full plan, Fermi Test Prep offers personalised preparation for JEE Main & Advanced with an AI tutor, live classes, adaptive mocks, mentorship and a study plan that updates based on mastery. For a single problem, the Fermi Problem Library has a step-by-step solver that explains the reasoning.
Quick checklist
Angles measured from the surface: d(cos α − cos β_n) = nλ.
n = 0 is the mirror spot; all other spots lie above it.
Spot heights grow roughly as √n, not in equal steps.
Get α from the mirror spot and the ruler's plane; get λ from a high order.
Never look into the beam or point it at anyone.



