X-ray diffractometers operate by directing X-rays at a sample and measuring the angles and intensities of the X-rays that are scattered by the sample's atoms. This scattering forms a diffraction pattern, which can be analyzed to determine the sample's crystal structure. Key components of an X-ray diffractometer include an X-ray source, a sample holder, and a detector.