X-rays are ideal for determining crystal structures because their wavelengths (approximately 0.1–10 nm) match the interplanar spacing of crystal lattices. This enables constructive interference when X-rays interact with atoms in the crystal, following Bragg’s law:
\(n\lambda = 2d \sin \theta\)
where:
$n$: Order of diffraction.
$\lambda$: Wavelength of X-rays.
$d$: Interplanar spacing.
$\theta$: Angle of incidence.
The diffraction pattern generated by this interaction is analyzed to determine the atomic arrangement and symmetry in the crystal.