A method for manufacturing a metal electrode includes forming a resist pattern of which upper portion has a wider width than a lower portion thereof, forming an insulating layer for molding on the resist pattern, removing the resist pattern, thereby forming a mold, and forming, in the mold, a metal electrode including an alloy of a first metal and a second metal.