During the electrolysis of molten sodium chloride, the reaction which occurs at the cathode is
Na++e−→Na(s)
During the electrolysis of molten sodium chloride, the ions present are sodium and chlorine ions. Sodium ions are cations which are attracted to the cathode and chloride ions are anions which are attracted to anodes. Each sodium ion gains one electron to form the sodium atom. Each chloride ion loses one electron to form chlorine atoms. The reactions takes place as follows:
At cathode: Na++e−→Na(s)
At anode: 2Cl−→Cl2(g)+2e−
Overall reaction: 2Na++2Cl−→2Na (s)+Cl2(g)