Sidestream serves as an important reservoir collecting pharmaceuticals from sludge. However, the knowledge on sidestream pharmaceutical removal is still insufficient. In this work, atenolol biodegradation during sidestream partial nitritation (PN) processes characterized by high free nitrous acid (FNA) accumulation was modeled. To describe the FNA inhibition on ammonia oxidation and atenolol removal, Vadivelu-type and Hellinga-type inhibition kinetics were introduced into the model framework. Four inhibitory parameters along with four biodegradation kinetic parameters were calibrated and validated separately with eight sets of batch experimental data and 60 days' PN reactor operational data. The developed model could accurately reproduce the dynamics of nitrogen and atenolol. The model prediction further revealed that atenolol biodegradation efficiencies by ammonia-oxidizing bacteria (AOB)-induced cometabolism, AOB-induced metabolism, and heterotrophic bacteria-induced biodegradation were 0, ∼ 60, and ∼35% in the absence of ammonium and FNA; ∼ 14, ∼ 29, and ∼28% at 0.03 mg-N L -1 FNA; and 7, 15, and 5% at 0.19 mg-N L -1 FNA. Model simulation showed that the nitritation efficiency of ∼99% and atenolol removal efficiency of 57.5% in the PN process could be achieved simultaneously by controlling pH at 8.5, while 89.2% total nitrogen and 57.1% atenolol were removed to the maximum at pH of 7.0 in PN coupling with the anammox process. The pH-based operational strategy to regulate FNA levels was mathematically demonstrated to be effective for achieving the simultaneous removal of nitrogen and atenolol in PN-based sidestream processes.