This XRF-based method utilizes an X-ray fluorescence (XRF) instrument for total chlorine elemental analysis in crude oil. Although XRF inherently measures total chlorine, a hot water extraction sample preparation step allows for differentiation between organic and inorganic chlorides.