Recently, the use of non-ferrous metals has been increasing to lighten the weight of automobiles and parts. In particular, demand for non-ferrous alloy materials such as aluminum alloys and magnesium alloys is increasing. The purpose of this study is to calculate the optimization process of friction stir welding by using different materials of AA5052 and AA6061. By analyzing the reaction value of tensile strength and elongation by full factorial design and Custom Design Methodology. In other words, we analyzed the optimization process according to rotation speed, feed rate, tool angle and tool shape. In conclusion, the optimal process for tensile strength was achieved by using a tool with a rotation speed of 900 RPM, feed rate of 270, tool angle of 2.5° and a triangle tool. and The rotation speed was 1003 RPM, the feed rate was 314.5, tool angle of 1° and a triangle tool, it was able to get the maximum value of elongation when using a tool of the form.