A galvanic cell, a system where a chemical reaction produces energy as flow of electrons, produces electricity by allowing a redox reaction to happen spontaneously. In contrast, an electrolytic cell is an electrochemical cell that requires electrical energy to drive a nonspontaneous redox reaction. Electrolysis, then, is the process of using electric current to do work on a chemical cell against its electric potential. Electrolytic cells are used to split the components of an electrolyte into constituent ions.
In an electrolytic cell, as in a galvanic cell, reduction—gaining of electrons—takes place at the cathode. Oxidation—loss of electrons—takes place at the anode. However, because the flow of electrons is reversed compared to a galvanic cell, the signs of the electrodes are reversed as well. Therefore, in an electrolytic cell, the anode is positive while the cathode is negative. The sign of the cell potential is also reversed. An additional difference between galvanic and electrolytic cells is that the two half-cells are discrete, with a salt bridge connecting them, while in an electrolytic cell the electrodes are both immersed in a single molten electrolyte. The electrolyte must be molten in order for electrolysis to occur, because the ions of the electrolyte must be free to move and thus separate from one another.
Electrolysis has many applications. For example, electrolysis underlies electroplating, in which a substrate is covered with a thin film of metal. Electrolysis is also used to isolate nonmetals such as hydrogen, calcium, and fluorine. In order to apply electrolysis in this manner, engineers must know precisely how much electricity to pass through the electrolytic cell. They do so by using the Faraday constant, the charge of one mole of electrons (96,485 C/mol). The charge Q of n moles of electrons can be given as , where n is the number of moles of electrons and F is the Faraday constant. The charge Q can also be given as the strength of the current for the time it takes the current to pass through the electrolyte. This is written as , where I is the current in amperes and t is the time in seconds. Combining the equations for charge (Q) produces the equation . Engineers can use this equation to determine precisely how to apply current over what time to get the desired result.