Isotope correction of a profile is an important step in the analysis of mass spectrometry derived data. The problem is mathematically formulated as a system of linear equations which is general enough to include previous correction methods. For the solution of these equations when applied to the whole profile an efficient algorithm is developed. In experimental tests the resulting algorithm corrected the profile fast and successfully.