If the presence of cations and anions are more than one in the electrolytic cell, then the ions of same charge move towards the similar electrode. But the ion that has more preference alone gets discharged at the electrode. There are some factors which influence the preferential discharge of ions at the electrodes. They are:
1. The placement of metallic ion in electrochemical series: The ion located lower in the electrochemical series gets discharged first at the respective electrodes in preference with other ions placed higher in the series.
For example, in the electrolysis reaction, if the electrolyte is aqueous copper sulphate solution, the dissociation of electrolyte takes place as:
The ions migrating to cathode would be ions. But the ion that is preferentially discharged at cathode is ions as it is located lower than ion in the electrochemical series. Similarly ions migrating to anode would be ions. But the ion that is preferentially discharged at anode is as it is located lower than in the electrochemical series.
2. Ionic concentration in the electrolyte: If the concentration of an anion present in the electrolyte is high, then this anion is preferentially discharged at anode than other anions. For example, in the electrolysis of concentrated NaCl, chloride ions get preferentially discharged at anode, even though ions are located lower than ions in the electrochemical series.
3. Type of electrode: If the electrode involved in the electrolysis is inert like graphite or platinum, then it does not decide the preferential ion discharged at it. But if the electrode involved in the electrolysis is reactive like Cu, Ni, etc. then it gets involved in the electrode reaction and decides the preferential ion discharged at it. In these cases, anions migrate to anode but they do not discharge, instead reactive anode itself loses electrons and forms ions.
For example, in the electrolysis of aqueous copper sulphate between copper electrodes, ions do not get discharged but the copper anode itself loses electrons to form ions. The electrolytic reactions that take place are:
Reaction at cathode:
Reaction at anode: (SO42-, OH- are not discharged at anode while Cu anode oxidises itself).