Briefly described its an iterative non-linear least-square fitting approach toanalyse overlapped peaks of energy-dispersive X-ray fluorescence spectra and alinear least-square fitting method for matrix correction of the spectrtum analysis. Acomputer software was compiled and successfully used to analyse multi-element rareearth samples.