This paper presents a new method for calculating accurate masses of isotopic peaks. It is based on breaking the calculation into a binary series of calculations. The molecule is built up by a series of such calculations. At each step the accurate masses are calculated as a probability weighted sum of the masses of the contributing peaks. The method is computationally efficient and accurate for both mass and relative abundance.