AP Chemistry · Unit 1 · Topic 1.8
1.8 Valence Electrons and Ionic Compounds
TLDR
Valence electrons are the outer electrons that take part in bonding; for main-group atoms they match the group number. Metals lose them to make positive ions, and nonmetals gain enough to reach an octet. An ionic formula balances total positive and negative charge, so it is always neutral.
Guess firstHow many valence electrons does a neutral chlorine atom have?
Pick one now. The page tells you if you were right at the end, after the picture and the sim show you why.
A is correct. Chlorine is in group 17, so it has seven electrons in its outer shell. It gains one to reach an octet, which makes Cl⁻.
B is wrong. Trap: 17 is the total number of electrons. Valence electrons are only the outer ones.
C is wrong. Trap: that is how many it gains, not how many it has. Chlorine starts with seven.
D is wrong. Trap: a full octet is the goal, not the starting count. Chlorine has seven before it reacts.
Locked in. Keep reading, the answer is at the end of the page.
The whole topic in one picture
- Valence electrons. For main-group atoms, the group number is the valence count: Na in group 1 has 1, Cl in group 17 has 7. Na hands its one outer electron to Cl.
- Metals lose, nonmetals gain. Na loses its one valence electron to form Na⁺, and Cl gains one to form Cl⁻. Both end with eight outer electrons, like a noble gas. Losing a whole shell makes Na⁺ much smaller than Na; the extra electron makes Cl⁻ larger than Cl.
- The charge sets the count. The charge equals the valence electrons lost (positive) or gained (negative): groups 1, 2, 13 give +1, +2, +3, and groups 15, 16, 17 give −3, −2, −1. Mg loses 2 to make Mg²⁺. N gains 3 to make N³⁻.
- Balance the charges. Use the smallest number both charges divide into. Mg²⁺ and N³⁻ give Mg3N2: 3(+2) + 2(−3) = 0. The shortcut crosses each charge down to the other ion's subscript, then reduces: Mg²⁺ and O²⁻ give MgO, not Mg2O2.
- Valence electrons
- Electrons in the outer shell that take part in bonding. For main-group atoms, the group number.
- Octet rule
- Main-group atoms tend to have eight valence electrons, like a noble gas, when they bond.
- Ion
- An atom or group with a net charge after losing or gaining electrons.
- Ionic compound
- A compound of cations and anions. It is neutral, with the total positive charge equal to the total negative charge.
- Formula unit
- The smallest neutral ratio of ions in an ionic compound, such as one Na⁺ and one Cl⁻ in NaCl.
What the exam hands you, and what it doesn't
On the exam already
- The periodic table, with group numbers and atomic numbers
- Most ion charges are not given: know the main-group pattern
- The charges in a formula must sum to zero
- A calculator for any counting
You bring
- Valence electrons: the group number, for main-group atoms
- Ion charge: lose the valence electrons (metals) or gain enough to reach an octet (nonmetals)
- Balance: the smallest number both charges divide into
- Check: total positive charge = total negative charge
Try it: Balance the charges
Pick a cation and an anion, drawn at their real relative sizes, then choose how many of each. The see-saw tips toward the side with more charge. When it is level, the formula unit appears with the criss-cross shortcut.
Work it: Write an ionic formula from the charges
Find the smallest number both charges divide into, count each ion, then pick the formula. A wrong answer gets a reason, and a second miss shows the line.
How it shows up on the exam
- Finding valence electrons and predicting the charge of a main-group ion, often in a short answer.
- Writing an ionic formula with balanced charges, including the ratio of cations to anions.
- Comparing ionic compounds: higher charges and smaller ions give a stronger attraction.
- On free response, state the charge of each ion, then the balanced formula. The charge balance is the proof.
Find the wrong step
A student writes the formula for aluminum oxide from Al³⁺ and O²⁻ as AlO. Click the line with the mistake.
The mistake: The formula must be neutral. One Al and one O give +3 − 2 = +1, which is not zero. The common multiple method gives 2 Al³⁺ (+6) and 3 O²⁻ (−6).
2 Al³⁺ (+6) and 3 O²⁻ (−6) give Al₂O₃.
Practice: 3 questions
Original AP-style questions. Every wrong choice is a real trap, and the explanation names it.
What is the most stable ion that sulfur (group 16) forms?
A is wrong. Trap: sulfur is a nonmetal, so it gains electrons. Losing two would leave it short of an octet.
B is correct. Sulfur has six valence electrons. It gains two to reach an octet, so the ion is S²⁻.
C is wrong. Trap: that would need four electrons removed. Sulfur gains two instead.
D is wrong. Trap: that counts all six valence electrons. Sulfur gains only enough to reach an octet, which is two.
What is the formula of the ionic compound made from Ca²⁺ and Cl⁻?
A is wrong. Trap: that gives a net charge of +1. The total charge must be zero.
B is wrong. Trap: that gives +4 and −1, a net charge of +3. Balance the charges, not the symbols.
C is wrong. Trap: that gives +2 and −3, a net charge of −1. Each Ca²⁺ needs two Cl⁻, not three.
D is correct. Two Cl⁻ (−2) balance one Ca²⁺ (+2), so the total charge is zero.
Which ionic compound should have the strongest attraction between its ions?
A is wrong. Trap: the charges are only 1+ and 1−, so the pull is much weaker than for 2+ and 2−.
B is wrong. Trap: larger ions sit farther apart, which weakens the attraction.
C is correct. Higher charges and smaller ions pull harder. Mg²⁺ and O²⁻ are both doubly charged and small, so MgO has the strongest attraction of these choices.
D is wrong. Trap: large, far-apart ions with 1+ and 1− charges give the weakest attraction of these.
How it connects
Ideas from this topic show up again in other topics. These are the links the exam uses most.
Back to your guessHow many valence electrons does a neutral chlorine atom have?
Answer: A. Seven, from its group 17 position. Chlorine is in group 17, so it has seven electrons in its outer shell. It gains one to reach an octet, which makes Cl⁻.
Quick questions
What is a valence electron?
An electron in the outer shell that takes part in bonding. For main-group atoms, the group number gives the count.
How do you know the charge of an ion?
Metals in groups 1, 2 and 13 lose their valence electrons. Nonmetals gain enough electrons to reach an octet. The group number gives the pattern.
Why is an ionic formula not a molecule?
An ionic solid is a repeating lattice of alternating ions. The formula gives the simplest ratio, and there is no separate molecule.
Go deeper
Periodic Trends and Ions: the full Unit 1 lesson
About 14 minutes of interactive slides on topics 1.7 to 1.8, with step-by-step math, particle drawings, a diagnostic that finds your weak spots, a 50-question bank and AI-scored free response.