Aiming at the foundation pit engineering of a sports center building foundation in a city, a numerical model of the foundation pit‐slope particle flow is established based on the particle flow software PFC, and the excavation is simulated to compare and analyze the contact force slope in the process of different methods of foundation pit excavation. The change law of internal stress field, strain field and particle displacement, as well as the selection of primary grading and secondary grading, provide references for similar slope projects.