Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Chemistry · Unit 1 · Step-Through Animation

Valence Electrons and Ionic Compounds

Who Decided the Two

You'll learnhow electron transfer sets each ion's charge and why that fixes the formula.

A magnesium atom and two chlorine atoms always give MgCl2, and the two is not there because you happened to put two chlorines in. Watch the electrons change owner, count what is left on each atom, and the subscript writes itself. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · MAIN-GROUP IONS · v3

who gives · who takes · what the charges force
Before you start
What you're looking at
One magnesium atom and two chlorine atoms, all neutral, and an empty panel for what they become.
The question
What happens to the electrons, and why exactly two chlorines?
Step 1 / 12

Read all 12 steps as text
Step 1

One magnesium, two chlorines, every time

Three neutral atoms sit on the bench — one magnesium and two chlorines — and running the reaction always gives MgCl2, whether you started with two chlorines or five.

Step 2

Only the outermost electrons take part

Nothing buried inside an atom ever gets involved in bonding, so ring the outermost shell on each of the three and everything that matters is inside those rings.

Step 3

Valence is the whole outermost shell

Write the configuration, find the highest value of n, and count everything in that shell — s and p together, not just the last subshell you wrote down.

\(\mathrm{Mg}:\;\ldots\underbrace{3s^2}_{n=3} \Rightarrow 2\,e^- \qquad \mathrm{Cl}:\;\ldots\underbrace{3s^2\,3p^5}_{n=3} \Rightarrow 7\,e^-\)
Step 4

Watch the electrons change owner

Magnesium’s two valence electrons leave, and each one lands in the open slot on a chlorine and belongs to that chlorine afterwards.

Step 5

Handed over, never shared

They never hover between the atoms: one atom gives outright and the other takes outright, which is what makes this an ionic bond rather than a covalent one.

Step 6

Both sides end with a full outer shell

Magnesium drops its two outer electrons and the filled shell underneath becomes its outermost, while each chlorine slots one electron into its vacancy and completes an octet.

Step 7

Charge is protons minus electrons

Charge is arithmetic on two counts, and the nucleus takes no part in any of this: the protons stay exactly where they were.

\(\mathrm{Mg}:\;12 - 10 = \mathbf{+2}\qquad\quad \mathrm{Cl}:\;17 - 18 = \mathbf{-1}\)
Step 8

Losing electrons makes a positive ion

This is the single most common error in the topic and it comes from language rather than chemistry: losing sounds like a minus sign, so students write Mg2−.

Step 9

A compound carries no charge at all

Whatever ions you end up with, their charges have to add to exactly zero, because the compound as a whole is neutral.

Step 10

The counts that cancel are the subscripts

One Mg2+ brings +2 and one Cl− brings only −1, so it takes two chlorides — and that ratio of one to two is the formula.

\(1(+2) + 2(-1) = 0 \quad\Longrightarrow\quad \mathrm{MgCl_2}\)
Step 11

Same rule, new pair, and then reduce

Potassium gives up one and sulfur takes two, so it takes two potassiums to cancel one sulfide and the ratio flips to K2S without any rule changing.

One caution: crossing Ca2+ with O2− gives "Ca2O2", which is neutral but is not the formula, because a formula reports the lowest whole-number ratio and 2:2 reduces to CaO.

Step 12

Transfer, then charges, then balance

The whole topic in one replay: two electrons cross the gutter, three ions appear, the charges cancel, and the formula falls out of the canceling.

Valence electronseverything in the highest n shell
Ionic bonding istransfer — never equal sharing
Metal / nonmetalloses → cation · gains → anion
Charge of an ionprotons − electrons
Group 2 ceiling2 valence e⁻ → 2+, never 6+
What sets the subscriptstotal (+) + total (−) = 0
Thenreduce to the lowest whole-number ratio

That closes Unit 1. Unit 2 picks it up from here: what happens when neither atom will let go, why lattices and molecules behave nothing alike, and what the geometry of a bond actually looks like.