Magnesium sulfate ( or magnesium sulphate ) is an inorganic salt ( chemical compound ) containing magnesium , sulfur and oxygen , with the formula MgSO4 .
Magnesium sulfate is a chemical compound that contains magnesium , sulfur and oxygen . Its formula is MgSO4 .