- Magnesium forms a +2 ion (Mg²⁺). - Chlorine forms a -1 ion (Cl⁻). - The chemical formula represents the ratio of ions needed for charge neutrality.