How can electricity turn a white salt into a metal and a gas?
A white salt called magnesium chloride can give you shiny magnesium metal and chlorine gas. You start with just one compound, so where do the two products come from? Follow the charged particles to see how electricity separates them.
When you measured pH, you worked with hydrogen ions in water. A salt contains ions too. In a solid salt, the ions are held in place. When the salt melts, those ions can move, so the molten salt can conduct electricity.
Connect two inert electrodes in the molten salt to a direct current supply. The negative electrode is the cathode, and the positive electrode is the anode. Positive ions, called cations, move towards the cathode. Negative ions, called anions, move towards the anode. Using electricity to break down the compound is electrolysis.
A chloride ion has a negative charge. Which electrode attracts it in an electrolysis cell? Look at the charges rather than trying to match the names, then pick your answer.
Electrons carry charge in the wires, and moving ions carry charge in the melt. At the cathode, metal ions gain electrons from the electrode and form a metal. At the anode, non-metal ions lose electrons to the electrode and form a non-metal. The ions are discharged at the electrodes.
Molten magnesium chloride contains one magnesium ion for every two chloride ions. At the cathode, magnesium forms. For Higher tier, show reduction by adding two electrons to each magnesium ion. At the anode, two chloride ions each lose one electron to form a chlorine molecule. This is oxidation.
Now swap magnesium chloride for molten sodium bromide. You have positive sodium ions and negative bromide ions. Predict which product forms at each electrode, then pick the pair that puts both products in the right places.
Dissolve aluminium oxide in molten cryolite to lower the operating temperature and save energy. Aluminium forms at the negative cathode. At the positive anode, oxygen forms and reacts with the carbon to make carbon dioxide. The carbon anodes are gradually used up, so they need replacing.
A dissolved salt can give different products from a molten salt because the water provides hydrogen and hydroxide ions. At the cathode, a metal less reactive than hydrogen forms. Otherwise, you predict hydrogen. At the anode, predict oxygen unless halide ions are present, when the GCSE rule predicts a halogen.
An exam might ask: predict the products when molten lead bromide is electrolysed and explain your answer. Start with the positive lead ions and negative bromide ions. Lead ions move to the negative cathode and gain electrons, forming lead. Bromide ions move to the positive anode and lose electrons, forming bromine.