The correct formula for magnesium sulfide is MgS.
Magnesium sulfide is an inorganic compound composed of magnesium (Mg) and sulfur (S). In this compound, magnesium has a +2 charge (Mg2+), and sulfur has a -2 charge (S2-). When these ions combine, they form a neutral compound with the formula MgS.
This formula indicates that one magnesium ion combines with one sulfur ion to form magnesium sulfide. The compound is typically found in a solid state and is used in various industrial applications, including the production of ceramics and as a component in some types of glass.