Milk of magnesia is magnesium hydroxide. What is its formula?
Mg2+ and OH-. Two hydroxides balance one magnesium: Mg(OH)2. Parentheses are required because the polyatomic hydroxide is taken twice.
Magnesium commonly forms Mg2+ in introductory ionic compounds.
| Element | Magnesium |
|---|---|
| Symbol | Mg |
| Atomic number | 12 |
| Common ionic charge | +2 |
| Common ions | Mg2+ |
Images are used as visual references; charge rules still depend on the compound.


Magnesium is [Ne]3s2. Both 3s electrons sit outside a neon core and leave as a pair — the second ionization energy is modest, but the third (which would break into the core) jumps to 7,733 kJ/mol. Nature never breaks the core, so magnesium is 2+ without exception.
Writing MgCl instead of MgCl2. A single chloride only cancels half of magnesium's charge. If your formula for a magnesium compound has equal subscripts with a 1- anion, recheck it.
Mg2+ and OH-. Two hydroxides balance one magnesium: Mg(OH)2. Parentheses are required because the polyatomic hydroxide is taken twice.
Magnesium chloride
Mg2+ balances chloride ions.
Magnesium oxide
Magnesium can form oxides where total positive and negative charge balances.
Still 2+. A single Mg2+ sits caged in the center of the chlorophyll ring, holding the structure that captures light. Plants cannot photosynthesize without it.
The reaction 2Mg + O2 → 2MgO releases enormous energy as magnesium hands two electrons to oxygen. The brightness is the energy of ion formation made visible.
Much smaller — losing the entire outer shell shrinks the radius from 160 pm to 72 pm. Cations are always smaller than their parent atoms.
Combine positive and negative ions so the total charge is zero — or let the ionic compound calculator do the crossing for you. The full chart lives on the periodic table with charges.
Charges and element facts on this page are checked against the primary references below. Found an error? Email hello@periodictablewithcharges.com — corrections ship in the next content update. See how this site is edited.