The soil piping and drift sand phenomenon is one of the catastrophic failure forms in foundation pit excavations in coastal buildings. Presently, there is a deficiency in the theoretical research regarding the seepage fields around foundation pits, primarily due to the complexity of theoretical solutions given the difficulty in accurately describing the distribution of the groundwater’s hydraulic head in a seepage field. This study proposes an explicit analytical solution for the steady-state seepage field surrounding a foundation pit under anisotropic conditions. A numerical model, constructed with FLAC3D 7.0 software, was utilized to validate the solution presented in this study. The effects of the foundation pit’s width, the distance between the retaining wall and the impervious layer, and anisotropic seepage conditions on the total head are studied through parameter research. The study shows that the flow behavior of a foundation pit is sensitive to parameters such as the anisotropy of the soil layer and the width of the foundation pit. Further, the study also analyzes the influence of the above parameters on the exit gradient and proposes a simplified algorithm for the exit hydraulic gradient at the base of a foundation pit, which can control the error within 5%. This method makes a certain contribution to improving seepage calculations for foundation pits and is applicable to the seepage problem of anisotropic soil layers.