A semiconductor device, comprising an electronic component including an electrode having a flat reference surface and a solder joint to be solder bonded, the solder junction of the electronic component being solder bonded to a semiconductor element,
- said solder joint having a concave recessed from the reference surface,
- one or more metal layers being laminated on a surface of the concave,
- a position of an interface between (a) a tin alloy layer formed on a surface of the metal layer in solder bonding the metal layer and (b) the metal layer deviating from a plane including the reference surface.