X-ray fluorescence (XRF) can be used to determine the chemical composition of solid, liquid, powdered samples. It is frequently used for contamination detection, qualitative and quantitative analysis, thickness and composition measurements in thin-films and coatings, etc.