Abstract: An apparatus for detecting heavy metals in an oil sample which radiates X-rays from a target type X-ray tube through an iron filter and then upon a sample cell containing the oil to be measured therein and detects fluorescent X-rays excited in the oil by an energy dispersion type fluorescent X-ray detector.