Gold plating is a method of depositing a thin layer of gold onto the surface of another metal, most often copper or silver (to make silver-gilt), by chemical or electrochemical plating. This article covers plating methods used in the modern electronics industry; for more traditional methods, often used for much larger objects, see gilding.[clarification needed]
There are several types of gold plating used in the electronics industry:
There are five recognized classes of gold plating chemistry:
Gold plating of silver is used in the manufacture of jewelry. Silver atoms diffuse into the gold layer, causing slow gradual fading of its color and eventually causing tarnishing of the surface. This process may take months and even years, depending on the thickness of the gold layer. A barrier metal layer is used to counter this effect. Copper, which also migrates into gold, does so more slowly than silver. The copper is usually further plated with nickel. A gold-plated silver article is usually a silver substrate with layers of copper, nickel, and gold deposited on top of it.
A layer of a suitable barrier metal, usually nickel, is often deposited on the copper substrate before the gold plating. The layer of nickel provides mechanical backing for the gold layer, improving its wear resistance. It also reduces the impact of pores present in the gold layer.
Both the nickel and gold layers can be plated by electrolytic or electroless processes. There are many factors to consider in selection of either electrolytic or electroless plating methods. These include what the deposit will be used for, configuration of the part, materials compatibility and cost of processing. In different applications, electrolytic or electroless plating can have cost advantages.
At higher frequencies, the skin effect may cause higher losses due to higher electrical resistance of nickel; a nickel-plated trace can have its useful length shortened three times in the 1 GHz band in comparison with the non-plated one. Selective plating is used, depositing the nickel and gold layers only on areas where it is required and does not cause the detrimental side effects.
Now, a reliable nickel-free surface finish solution is available for high-frequency applications. 
Gold plating may lead to formation of gold whiskers.
Wire bonding between gold plated contacts and aluminium wires or between aluminium contacts and gold wires under certain conditions develops a brittle layer of gold-aluminium intermetallics, known as purple plague.
Gold reacts with both tin and lead in their liquid state, forming brittle intermetallics. When eutectic 63% tin - 37% lead solder is used, no lead-gold compounds are formed, because gold preferentially reacts with tin, forming the compound. Particles of disperse in the solder matrix, forming preferential cleavage planes, significantly lowering the mechanical strength and therefore reliability of the resulting solder joints.
If the gold layer does not completely dissolve into the solder, then slow intermetallic reactions can proceed in the solid state as the tin and gold atoms cross-migrate. Intermetallics have poor electrical conductivity and low strength. The ongoing intermetallic reactions also cause Kirkendall effect, leading to mechanical failure of the joint, similar to the degradation of gold-aluminium bonds known as purple plague.
A 2-3 µm layer of gold dissolves completely within one second during typical wave soldering conditions.  Layers of gold thinner than 0.5 µm (0.02 thou) also dissolve completely into the solder, exposing the underlying metal (usually nickel) to the solder. Impurities in the nickel layer can prevent the solder from bonding to it. Electroless nickel plating contains phosphorus. Nickel with more than 8% phosphorus is not solderable.Electrodeposited nickel may contain nickel hydroxide. An acid bath is required to remove the passivation layer before applying the gold layer; improper cleaning leads to a nickel surface difficult to solder. A stronger flux can help, as it aids dissolving the oxide deposits. Carbon is another nickel contaminant that hinders solderability.