Abstract As Karbala City is a religious tourism destination, millions of tourists visit the city annually, so there is a high fluctuation of flow in the wastewater between the plants during the year. The aim of this study is to evaluate the performance of the wastewater treatment plant (WWTP) in Karbala, Iraq, in removing pollutants for different flow rates in five scenarios using the GPS-X model. The most important phase in modeling, which greatly impacts simulation accuracy, is characterizing the influent composition to meet the mass balance. As a result, the influent wastewater was initially described and thoroughly examined. The model has been calibrated, followed by the collected data’s validation. The sensitivity of different stoichiometric and kinetic factors in the GPS-X was examined and screened to calibrate the model. To demonstrate the consistency between the simulated and measured data, the route mean square error was used in this instance. The result showed that the Karbala WWTP complies with Iraqi environmental regulations for water discharged to surface water or water for other uses and has an appropriate efficiency of wastewater treatment even if the flow entering the plant reaches the peak flow rate of 180,000/day. An improvement in orthophosphate removal efficiency was observed as the flow rate increased because of the contact time in the anaerobic basins, which gradually decreased as the flow increased until it reached the appropriate time for PO 4 3 − {\text{PO}}_{4}^{3-} removal. The outcomes of the present study provide an impression to the operators of the treatment plant of the impact of fluctuating flow on the treatment plant. The developed model can also be used for future studies.