BackgroundThe electrolytic efficiency in magnesium (Mg) production by molten salt electrolysis is mainly affected by the chloride content, which is determined by the metal content in the cooled molten salt. Laser-induced breakdown spectroscopy (LIBS) is a potential element detection method in cooled molten salt element detection. However, the cooled molten chloride salt is easily deliquescent, which greatly affects the LIBS detection results. ResultsTo solve the problem, a liquid-phase precipitation method based on the addition of a dispersant named as controlled uniform precipitation (CUP) method was proposed to pretreat the samples. Compared with the conventional powder compacting method and precipitation method, the CUP obtained the highest spectral stability and detection accuracy. The average relative standard deviation (ARSD) of Mg, Ca, and Na decreased from the 51.80%, 77.04%, and 44.01% to 6.77%, 6.27%, and 29.97%, the determination coefficient of the calibration curve (R2) increased from 0.044, 0.084, and -0.109 to 0.974, 0.954, and 0.802, and the average relative error (ARE) decreased from 58.49%, 52.46%, and 99.78% to 8.58%, 11.28%, and 29.38%, respectively, compared with the powder compacting method. Further investigation showed that the CUP method suppressed the sample deliquescence and the coffee ring effect, leading to the performance improvement of LIBS quantitative detection. SignificanceThe CUP provided an effective method of detecting metal elements for deliquescent samples and showed applied potential for other precipitable elements detection.