Under the condition of water level fluctuation, the seepage field analysis of the foundation pit on the bank slope plays an important role in determining the anti-floating water level. In order to analyze the change of groundwater level of the buildings on the bank slope under the condition of dynamic change of water level, this paper takes GeoStudio finite element software based on the saturated-unsaturated seepage theory. The numerical simulation of the finite element percolation of the bank slope is carried out. The variation law of the groundwater line under the rise and fall of the bank slope is analyzed, and the groundwater level line at the foundation pit of the building is obtained under the water level change condition. The relationship between the change from the slope to the horizontal distance of the edge of the foundation pit. Which provides a reliable basis for the anti-floating water level of the foundation pit on the bank slope. The calculation results can be used as an important reference data for the anti-floating design of the project, and the anti-floating stability analysis of the foundation pit is instructed.