Magnesium Hydroxide Formula: How to Write It Correctly
In this article
The proper formula for magnesium hydroxide is Mg(OH)₂. You get it by pairing the magnesium ion (Mg²⁺) with two hydroxide ions (OH⁻) so the charges balance: +2 from magnesium and −2 from the two hydroxides. That is the whole answer, but writing it correctly and using it safely in a home or school setting takes a few careful steps.
What You'll Need
- A periodic table or a reliable list of common ion charges
- Paper and pencil (or a text editor) to work through the charge balance
- If you plan to make a small batch: magnesium hydroxide powder or milk of magnesia, distilled water, a clean glass or plastic container, and a stirrer
- Safety glasses and nitrile gloves if you are handling powders or concentrated solutions
Step-by-Step
- Identify the cation and its charge. Magnesium is an alkaline earth metal in group 2, so it forms the Mg²⁺ ion. Write "Mg" with a 2+ charge above it.
- Identify the anion and its charge. Hydroxide is a polyatomic ion with the formula OH and a 1− charge. Treat "OH" as one unit, not as separate oxygen and hydrogen atoms.
- Balance the charges. You need two hydroxide ions to cancel the 2+ charge on magnesium: (+2) + (2 × −1) = 0. That gives one Mg for every two OH.
- Write the formula with subscripts. Put the magnesium symbol first, then the hydroxide group in parentheses with a subscript 2: Mg(OH)₂. The parentheses matter because the 2 applies to the whole OH group, not just the hydrogen.
- Check the atom count. Mg(OH)₂ contains one magnesium, two oxygen and two hydrogen atoms. If you wrote MgOH₂ without parentheses, you would be implying one oxygen and two hydrogens, which is wrong.
- Use the formula in a name-to-formula or formula-to-name exercise. Magnesium hydroxide is the ionic compound; the solid is a white powder, and a suspension in water is sold as milk of magnesia.
- If you are making a small demonstration batch, add a spoonful of magnesium hydroxide powder to distilled water and stir. It is only slightly soluble, so most of it will settle as a white solid. That is normal and is the point of the demonstration: magnesium hydroxide is a sparingly soluble base.
- Store any prepared suspension in a labelled container, keep it out of reach of children and pets, and do not use homemade preparations on your skin or internally. For medicinal use, buy a commercial product and follow its label.
Common Mistakes
- Dropping the parentheses. MgOH₂ is a frequent error. The subscript 2 must sit outside the parentheses so it multiplies both O and H.
- Using the wrong hydroxide charge. Hydroxide is OH⁻, not O²⁻H⁺. Treating it as separate ions leads to formulas like MgO₂H₂, which is not the standard way to write it.
- Forgetting to balance charges. Writing MgOH gives a net charge of +1, which is not a neutral compound.
- Confusing magnesium hydroxide with magnesium oxide. MgO is a different compound with different properties; the hydroxide contains water-derived OH groups.
- Assuming it dissolves fully. Magnesium hydroxide is only slightly soluble in water. A cloudy mixture is expected, not a sign that something went wrong.
Tips
- Write the ion charges above the symbols before you write the final formula; it makes the balancing obvious.
- Remember the "-ide" versus "-hydroxide" naming: hydroxide is a polyatomic ion, so it keeps its own name and needs parentheses when more than one is present.
- When checking your work, count atoms on both sides of the formula. Mg(OH)₂ has one Mg, two O and two H; that is the quickest self-check.
- For school work, show the charge-balancing step. Teachers often award marks for the method, not just the final formula.
- If you are handling the powder, work in a ventilated area and avoid breathing dust; it is an irritant in powder form.
Troubleshooting
- Your formula does not balance. Re-check the charge on each ion. Magnesium is always 2+ in its compounds; hydroxide is always 1−. If the charges do not sum to zero, add another hydroxide.
- You are unsure whether to use parentheses. Use them whenever a polyatomic ion appears more than once. For a single hydroxide, MgOH would be wrong anyway because the charge is unbalanced, so Mg(OH)₂ is the only neutral option here.
- Your mixture stays cloudy or separates. That is expected for magnesium hydroxide because of its low solubility. Stir before use if you need a uniform suspension, and do not assume cloudiness means contamination.
- You accidentally used magnesium oxide or Epsom salt. Magnesium oxide (MgO) and magnesium sulfate (MgSO₄) are different compounds. Check the label on the container before mixing anything.
- You need the formula for a quiz but keep second-guessing. Write out the ions first: Mg²⁺ and OH⁻. Two OH⁻ balance one Mg²⁺, so the formula is Mg(OH)₂.
Frequently Asked Questions
What is the chemical formula for magnesium hydroxide?
Mg(OH)₂. One magnesium ion (2+) is balanced by two hydroxide ions (1− each).
Why does magnesium hydroxide have parentheses in its formula?
The parentheses show that the subscript 2 applies to the whole hydroxide group, giving two oxygen atoms and two hydrogen atoms per magnesium atom.
Is magnesium hydroxide the same as milk of magnesia?
Milk of magnesia is a suspension of magnesium hydroxide in water. The active ingredient is the same compound, but commercial products contain measured concentrations and should be used according to their labels.
Does magnesium hydroxide dissolve in water?
Only slightly. It is considered sparingly soluble, which is why a mixture often looks cloudy or leaves a white residue.
What is the difference between MgOH and Mg(OH)₂?
MgOH is not a neutral compound because the charges do not balance. Mg(OH)₂ is the correct neutral formula with two hydroxide ions per magnesium ion.
Can I make magnesium hydroxide at home?
You can prepare a small demonstration suspension from magnesium hydroxide powder and distilled water, but do not use homemade preparations for medicinal or skin applications. Buy a commercial product for those uses and follow its directions.