Mixing magnesium with vinegar causes an immediate chemical reaction that produces hydrogen gas and magnesium acetate. The metal dissolves, releasing heat in the process. This is a classic example of a single-displacement reaction between a reactive metal and a weak acid.
The basic reaction
When magnesium metal comes into contact with vinegar, the acetic acid in the vinegar reacts with the metal. Magnesium is more reactive than hydrogen, so it displaces the hydrogen atoms from the acid. The chemical equation is Mg + 2CH3COOH → Mg(CH3COO)2 + H2. The visible result is bubbling, which is hydrogen gas escaping into the air. The liquid also warms up because the reaction is exothermic.
What is left behind
As the magnesium dissolves, it forms magnesium acetate, a white crystalline salt. If you evaporate the remaining liquid, you are left with a dry powder. This compound has industrial uses, such as a dye fixative in textiles or a de-icing agent that is less corrosive than rock salt. The solution itself becomes a mixture of this salt and unreacted vinegar.
Why the form of magnesium matters
The physical shape of the magnesium drastically changes how fast the reaction occurs. A solid block or ribbon has a small surface area, so the reaction starts slowly and proceeds steadily. A fine powder has a much larger surface area, causing the reaction to accelerate rapidly. Powdered magnesium can boil and splatter hot liquid, making it dangerous to handle without proper safety gear. Always prefer solid forms for safe, observable experiments.
Safety considerations
The primary hazard is the hydrogen gas produced. Hydrogen is highly flammable and can ignite if exposed to an open flame or spark. Keep any ignition sources away from the reaction. The solution also gets hot, so use heat-resistant containers and avoid skin contact with the bubbling liquid. While vinegar is a weak acid, the reaction generates enough heat to cause burns if mishandled. Work in a well-ventilated area to disperse the gas safely.
Vinegar versus other acids
Vinegar contains acetic acid, which is weak and does not fully dissociate in water. This keeps the reaction relatively controlled compared to strong inorganic acids like hydrochloric acid. Strong acids react with magnesium almost instantly, often causing violent boiling and rapid gas release. Household users sometimes confuse these different acids, leading to unexpected intensity. Stick to vinegar for a manageable demonstration, but never assume all acidic cleaners will behave similarly.
Common misconceptions
People often assume the reaction will continue indefinitely as long as metal is present. In reality, the acid depletes quickly. Once the acetic acid is consumed, the reaction stops, leaving solid magnesium behind. The smell during the reaction is primarily from vinegar vapor, not a toxic chemical byproduct. The fizzing is not chlorine gas or anything poisonous; it is simply hydrogen and acetic acid mist. Understanding these limits prevents unnecessary worry about the safety of the fumes released.