The significance of spillways is to allow the flood to be safely discharged from downstream. There is a strong correlation between the poor design of spillways and the failures of dams. In order to address this concern, the present study investigates the flow over the Nazloo-ogee spillway using the CFD 3D numerical model and an artificial intelligence method called Gene Expression Programming (GEP). In a physical model, discharge and flow depths were calculated for 21 different total heads. Among different turbulence models, the RNG turbulence model achieved the maximum compatibility in computational fluid dynamic simulation. In addition, GEP was used to estimate Q, in which 70% of collected data was dedicated to training and 30% to testing. R2, RMSE, and MAE were obtained as performance criteria, and the new mathematical equation for the prediction of discharge was obtained using this model. Finally, the numerical model and GEP outputs were compared with the experimental data. According to the results, the numerical model and GEP exhibited a high level of correspondence in simulating flow over an ogee-crested spillway.