The cost of treating wastewater contaminated with nitrogen could be lowered in future. Soil scientists have developed a new mathematical model which can help determine the optimum conditions for microbiological water treatment. Using the stable natural nitrogen isotope, this mathematical model is the most accurate to date.