As global economic integration continues to advance, ports are playing an increasingly important role in trade demand and are supported by national policies. However, the expansion of port facilities has had adverse effects on the local natural and social environment, posing threats to economic sustainability and residents' quality of life. These issues urgently need to be addressed. This study employs statistical analysis methods, including ANOVA, multiple regression, and least squares, with the aim of quantitatively analyzing factors related to port sustainability in three cases: Wuhan Port, Shanghai Port, and Tianjin Port. Specifically, we focus on various stages of construction, operation, technological advancement, and technological innovation, while also considering intermodal transportation as a significant factor. Through in-depth analysis, we find a significant positive correlation between increased research investment and the number of rail-water intermodal routes with port sustainability. This research aims to provide valuable insights for port managers and policymakers to promote port sustainability. Our study emphasizes the critical role of statistical analysis methods in understanding the impact of environmental externalities throughout the entire lifecycle of ports.