Magnesium don't react with salt.
The magnesium will react with the acid to produce hydrogen gas and a magnesium salt.
Magnesium Sulfate
Magnesium. I believe Magnesium does not react to fresh water but salt water is very corrosive and will disolve the metal.
The metal "dissolves" vigorously, producing Hydrogen gas which is seen as a fizzing and a magnesium salt is formed also.
Magnesium oxide react with water and magnesium hydroxide is formed.
magnesium is more reactive than copper so,it displaces copper from its salt solution.
This reaction makes hydrogen gas escape from magnesium surface immersed in acid solution. Also a magnesium salt is formed.
I'm not sure, but based on my knowledge of chemistry, a compound has different properties from its components. So magnesium salt should not react with HCl (Hydrochloric acid) unless it dissociates in water and magnesium (the element) is present. Anyway when magnesium is mixed with an acid (any acid, not just stomach acid), hydrogen gas is produced and a salt is formed.
Magnesium will react with sulfuric acid to produce magnesium sulfate.
Magnesium(s) + Iron(s) + HCl(aq) -> MagnesiumChloride(aq) + Hydrogen(g) + Iron(s)Iron will not react with hydrochloric acid as magnesium is more reactive than iron , so magnesium will react with hydrochloric acid to give salt and hydrogen gas while iron is deposited.METAL + ACID -> METAL SALT + HYDROGEN GAS
Mg + 2HCl --> MgCl2 + H2 Like that. Salt and hydrogen gas product.
Magnesium acetate Mg(CH3CO2)2