Abstract In X‐ray fluorescence, as well as other quantitative methods for determining trace metal concentrations, computer methods for extracting characteristic peaks from background are very important. Cases where background is large and nonlinear, or there are overlapping peaks, present difficulties in the development of simple computer programs which give an accurate analysis of the peak. The method of analysis that will be described here was developed to meet these demands. The basic concept is simple, and good accuracy and reproducibility are achieved in samples with large nonlinear background, as well as overlapping peaks. The analysis is essentially independent of background.