It uses chemical symbols from the periodic ... The symbol for magnesium is Mg, and sulfuric acid is a compound containing sulfur, oxygen, and hydrogen. Its formula is written: H2SO4.