D = (K × λ) / (β × cos θ). Enter 2θ & FWHM in degrees; the tool converts to radians and applies instrumental correction if provided.