Magnesium hypochlorite is a chemical compound represented by the molecular formula Mg(ClO)2. It contains one atom of magnesium, two atoms of chlorine and two atoms of oxygen, for a total molar mass of about 127.20 grams per mole.
Magnesium hypochlorite contains the hypochlorite ion, which is an atom of chlorine and an atom of oxygen combined with a total charge of minus one. It also contains a magnesium ion, which is an atom of magnesium with a charge of plus two. When the two ions combine, they produce a molecule with a neutral charge. Magnesium hypochlorite may also be known as dihypochlorous acid magnesium salt.