Bragg's Law Calculator

With this Bragg's law calculator, you can compute the angle of an incident X-ray for which the reflected wave from a crystal has the maximum intensity.

Clear
Angle of order 1 maximum10.9875°2d sin θ = nλ — the factor of 2 is the extra path down to the lower plane and back
sin θ0.190594
Wavelength154 nm154 nm
Spacing404 nm2.6234 wavelengths
Highest order available5beyond this sin θ would exceed 1, so the order simply does not exist — which is why a grating must have a spacing comparable to the wavelength
Position on a screen 2 m away388.3062 mm388.306 mm from the centre
Rayleigh angular resolution3.758e-6 rad0.7751 arcseconds — 1.22λ/D, the diffraction limit no amount of magnification can beat
Smallest detail at 1 km3.7576 mm
At twice the aperture0.3875 arcsecondstwice as fine — which is the whole reason telescopes are built large

The formula

d sin θ = mλ; Bragg 2d sin θ = nλ; Rayleigh θ = 1.22λ ÷ D

Why a grating needs fine spacing

Diffraction maxima occur where the path difference between adjacent slits is a whole number of wavelengths, giving d sin θ = mλ. Since sin θ cannot exceed 1, an order only exists if mλ ≤ d — so a grating must have a line spacing comparable to the wavelength it is meant to disperse. A grating with spacing below one wavelength produces no orders at all beyond the central one.

Bragg reflection carries an extra factor of two because the ray must travel down to the next plane and back, doubling the path difference. Forgetting it halves every spacing derived from an X-ray pattern, which is the classic error in crystallography arithmetic.

The Rayleigh criterion sets a hard limit: an aperture of diameter D cannot resolve detail finer than about 1.22λ/D, no matter how good the optics or how much you magnify. This is diffraction, not imperfection, and it is why telescope apertures grow rather than their eyepieces — and why electron microscopes exist, since electrons have far shorter wavelengths than light.