Magnesium ( \/ mÃ É Ë niË ziÉ m \/ mag-NEE-zee - É m ) is a chemical element with the symbol Mg , atomic number 12 and common oxidation state +2 . Magnesium is a chemical element with the symbol Mg , atomic number 12 and common oxidation number +2 .