What Is The Formula For Magnesium Sulfide?

The formula for magnesium sulfide is MgS. It is a binary ionic compound composed of one magnesium cation (Mg2+) and one sulfide anion (S2-). The charges on the ions balance out to give a neutral compound with the formula MgS.