Biological treatment with activated sludge as an alternative treatment was studied, and nitrogen and phosphorus were monitored. This scheme involves modifying the treatment tank by dividing it into anoxic and aerobic sections. According to this scheme, the process simulation was performed using Hydromantis' GPS-X 7.0 computer software. Wastewater discharges are usually generated by various industrial activities such as the milk (dairy) processing industry, petroleum processing refineries and slaughterhouses, which were studied in detail. The economic evaluation (cost estimation) of removing nutrients has been done using the CapdetWorks 4.0 computer simulation software. A cost sensitivity analysis has also been performed for the variable influent flows, altering the alpha factor for oxygen transfer during the aeration process and serving as a typical variable. The simulation procedure and economic evaluation have been carried out for a complete wastewater treatment plant, including both treatment lines (the water line and the sludge line simultaneously), and the derived results have been represented through illustrated graphs, tables, and meaningful diagrams.