Skip to main content

Mg

Mg is the chemical symbol for magnesium, a metal that usually forms the Mg2+ ion in Intro to Chemistry. You’ll see it as a model for electron loss, cations, and ionic bonding.

Last updated July 2026•Fiveable Content Team

What is Mg?

Mg is the chemical symbol for magnesium, an alkaline earth metal in Intro to Chemistry that usually loses two valence electrons to form Mg2+. That makes it a classic example of a metal cation, especially when you are practicing ionic bonding.

Magnesium sits on the left side of the periodic table, where metals tend to have low electronegativity. In plain terms, Mg does not hang onto its outer electrons very tightly, so it can give them up and become positively charged. When magnesium loses two electrons, the result is Mg2+, which has a stable noble-gas-like electron arrangement.

That electron loss is the whole story behind how Mg shows up in ionic compounds. The Mg2+ ion does not exist alone for long in a compound. It is paired with negative ions, called anions, through electrostatic attraction. For example, Mg2+ can combine with Cl- to make MgCl2, or with O2- to make MgO. The charges have to balance, so one magnesium ion is often matched with two chloride ions, but only one oxide ion.

This charge balancing is one place where Mg becomes more than just a symbol on the periodic table. If you know magnesium is 2+, you can predict a formula, check whether a compound is neutral, and explain why the ions come together in that ratio. That is the kind of reasoning chemistry asks for again and again.

Mg also shows up as a bridge between atomic structure and real-world compounds. In a lab or problem set, you might identify it as a metal that forms a cation, write the ion symbol correctly, or use it to build an ionic formula. If the question moves into biology, magnesium can also appear in discussions of energy use, muscles, and bones, but in Intro to Chemistry the main focus is usually its ionic behavior and charge.

Why Mg matters in Intro to Chemistry

Mg matters because it gives you a clean example of how a metal becomes an ion and how that ion fits into ionic formulas. If you can explain magnesium, you can usually explain other alkaline earth metals too, since they behave in a similar way by losing two electrons.

It also helps you practice one of the most common chemistry skills: turning element knowledge into compound formulas. Knowing that Mg forms Mg2+ lets you figure out why it pairs with Cl- as MgCl2, why it pairs with O2- as MgO, and how to check that the final compound is electrically neutral.

This comes up constantly in class when you are classifying elements, writing ion charges, or naming simple ionic compounds. Magnesium is a good checkpoint for whether you really understand charge transfer instead of just memorizing formulas. If you can explain what Mg does with its electrons, you are already thinking like a chemist.

Keep studying Intro to Chemistry Unit 7

Official unit cheatsheet

open one-pager

How Mg connects across the course

Ionic Bond

Mg is a common metal ion in ionic bonds because it forms Mg2+ and then attracts anions like Cl- or O2-. The bond is not about sharing electrons evenly. It is the electrostatic pull between opposite charges after electron transfer has happened.

Cation

Magnesium becomes a cation when it loses two electrons. That positive charge is why you write it as Mg2+, not Mg or Mg-. If you are identifying ions in a formula, magnesium is a straightforward example of a metal cation.

Electronegativity

Mg has low electronegativity, so it does not attract its own valence electrons very strongly. That is why it tends to lose electrons instead of gain them. This is the periodic table pattern that helps explain why metals form cations.

Electrical Neutrality

Any compound containing Mg2+ has to balance that +2 charge with enough negative charge from anions. That is why formulas like MgCl2 and MgO work. The compound is only stable on paper if the total charge adds up to zero.

Is Mg on the Intro to Chemistry exam?

A quiz question might give you Mg and ask for its ion charge, compound formula, or bonding type. The move is simple: recognize that magnesium is a metal with two valence electrons, so it forms Mg2+ and usually makes ionic compounds. If you see Mg paired with a nonmetal, check the charges and build a neutral formula by balancing them.

In a problem set, you may be asked to compare Mg with other metals on the periodic table or explain why it loses two electrons instead of one. In a lab or discussion question, Mg might appear in the context of burning magnesium ribbon, where you observe a bright flame and the formation of MgO. The key skill is connecting the symbol to electron transfer, ion charge, and the final compound you can write or identify.

Key things to remember about Mg

  • Mg is the symbol for magnesium, a metal that commonly forms the Mg2+ ion in Intro to Chemistry.

  • Magnesium loses two valence electrons because it has low electronegativity and sits on the metal side of the periodic table.

  • Mg2+ combines with negative ions in ionic compounds, so you use its charge to write formulas like MgCl2 and MgO.

  • The total charge in any compound containing Mg has to add up to zero, which is electrical neutrality.

  • If you understand Mg, you can also reason through other alkaline earth metals and their ionic formulas.

Frequently asked questions about Mg

What is Mg in Intro to Chemistry?

Mg is the chemical symbol for magnesium. In chemistry, it usually refers to the element as a metal that forms the Mg2+ cation by losing two electrons.

Why does Mg form Mg2+?

Magnesium has two valence electrons, and it loses them to reach a more stable electron arrangement. That gives it a +2 charge, which is why Mg2+ is the common ion you see in ionic compounds.

How do you write a compound with Mg?

Start with Mg2+ and balance it with the charge of the anion. For chloride, two Cl- ions are needed, so the formula is MgCl2. For oxide, one O2- ion balances the +2 charge, so the formula is MgO.

Is Mg a cation or an anion?

Mg is not usually written as an ion by itself unless the problem is about bonding, but when it does form an ion, it is a cation. That is because magnesium loses electrons and becomes positively charged.