In this study, an external semi-elliptical crack was modeled in a 3D API 5 L X52 pipeline with stress corrosion cracking (SCC). To make the crack, the finite element method (FEM) was used to obtain the failure pressure (Pf) and its mechanical behavior. The longitudinal crack had a constant length (2c) and varied with depth (a). The properties of X52 steel subjected to SCC using the slow strain rate technique (SSRT) were considered. True stress-strain curves were obtained in air and in an NS4 solution with pHs of 3.5 and 9.5 at temperatures of 25 and 50 °C. According to the SCC index calculated from the mechanical properties of the SSRT, the X52 steel is susceptible to SCC at pH 3.5 and 50 °C. The mechanical properties of the tensile test using the stress-strain curves decreased as the pH and temperature changed, compared to those carried out at room temperature. This was due to the corrosion and hydrogen embrittlement produced by the solution on the X52 steel. The failure pressure is sensitive to the stress-strain curve; if the stress-strain curve decreases, the failure pressure also decreases. Corrosion defects, such as longitudinal cracks in X52 steel, which could be susceptible to SCC in an NS4 solution, decrease the failure pressure (Pf) and its capacity to withstand pressures of up to 75 % in pipe-grade steel that transports hydrocarbons.