The buildings including steel-structured bridges, plants and ocean platforms which take steel as the main material are prone to fall into pitting corrosion. Mechanical properties are greatly affected by pitting corrosion and hence the security of buildings can hardly be guaranteed. The mechanical drilling and milling method is employed to form conical blind holes and then to simulate corrosion pits in present work, after which the effects of the shape, depth and distribution of corrosion pits on the tensile properties of steel have been systematically investigated. The results indicate that the fracture location of steels with corrosion pits occurred at the cross section with larger pitting corrosion factor. The load-displacement curves of the steels were changed due to the existence of corrosion pits, the yield platform got shorter and even disappeared, accompanied with poorer ductility and brittle fracture. Pit shape, depth and distribution impacted little on the ultimate load of tensile samples, the ultimate strength almost correlated only with the maximum cross-sectional area. However, the yield load of steels was affected by both pit shape and distribution. The elongation was mainly affected by pit denseness and depth, denser and deeper pits per unit area would give rise to smaller elongation. Finally, multivariate regression analysis was performed to acquire the prediction model of elongation.