This paper presents the plant-wide model Biological Nutrient Removal Model No. 2 (BNRM2). Since nitrite was not considered in the BNRM1, and this previous model also failed to accurately simulate the anaerobic digestion because precipitation processes were not considered, an extension of BNRM1 has been developed. This extension comprises all the components and processes required to simulate nitrogen removal via nitrite and the formation of the solids most likely to precipitate in anaerobic digesters. The solids considered in BNRM2 are: struvite, amorphous calcium phosphate, hidroxyapatite, newberite, vivianite, strengite, variscite, and calcium carbonate. With regard to nitrogen removal via nitrite, apart from nitrite oxidizing bacteria two groups of ammonium oxidizing organisms (AOO) have been considered since different sets of kinetic parameters have been reported for the AOO present in activated sludge systems and SHARON (Single reactor system for High activity Ammonium Removal Over Nitrite) reactors. Due to the new processes considered, BNRM2 allows an accurate prediction of wastewater treatment plant performance in wider environmental and operating conditions.