Recently, stress corrosion cracking (SCC) of primary piping of stainless steel has been observed. SCC is considered to initiate and progress at near the welding zone in butt-welded pipes, because of the tensile residual stress introduced by welding. In present work, three-dimensional and axisymmetric thermo-elastic-plastic finite element analyses have been carried out, in order to clarify the effect of geometrical and welding conditions on through-thickness residual stress. In particular, butt-welding joints of SUS316L pipes have been examined. The residual stress was simulated by three-dimensional and axisymmetric models and the results were compared and discussed in detail.