Bragg’s law allows you to determine the interplanar distance (d-spacing) in a crystal from the angles at which constructive interference occurs in a diffraction pattern.
n =integer multiple of wavelength
λ =wavelength
d =distance between (hkl) planes
θ =angle of constructive interference