In this lesson
Take it with you
- Lesson slides (PDF)
- Practice worksheet (PDF)
- Answer key (PDF)
- AP Chemistry Unit 1 Practice (activity)
Essential Question
Why do elements form the ions they do?
Why is sodium always +1 and oxygen always −2? By the end of this lesson, you should be able to predict ion charges and write formulas for ionic compounds.
Video not loading? Watch it on YouTube.
Valence Electrons
- Electrons in the outermost shell
- They take part in bonding.
- Main groups: use the group number.

Groups 1 and 2 have 1 and 2 valence electrons. For groups 13 through 18, drop the 1: group 13 has 3, group 17 has 7. Helium is the exception, with only 2.
Gaining and Losing Electrons
- Metals lose electrons → cations (+)
- Nonmetals gain electrons → anions (−)
- Both end with a noble gas configuration.
![Na, [Ne] 3s¹, loses 1 electron to become Na⁺, [Ne]. Cl, [Ne] 3s² 3p⁵, gains 1 electron to become Cl⁻, [Ne] 3s² 3p⁶ = [Ar].](https://i0.wp.com/zornscience.org/wp-content/uploads/2026/10/1-8-valence-electrons-and-ionic-compounds-03.png?resize=1200%2C257&ssl=1)
Sodium loses its one 3s electron and ends up with neon’s configuration. Chlorine gains one electron and ends up with argon’s configuration.
Predicting Ion Charges
- Charge comes from position on the periodic table.
- Atoms lose or gain the fewest electrons needed to look like a noble gas.

Groups 1, 2, and 13 lose 1, 2, and 3 electrons. Groups 15, 16, and 17 gain 3, 2, and 1 electrons, because gaining a few is easier than losing many.
Why Sodium Stays +1
- Removing the one 3s electron is easy.
- The next electron is a core electron.
- Removing it takes far too much energy.

Sodium’s first ionization energy is 496 kJ/mol, but the second is 4,562 kJ/mol, about 9 times more. The second electron is a core electron in the second shell, much closer to the nucleus, so sodium stops at +1. Successive ionization energies are the evidence for ion charges.
Forming an Ionic Compound
- Metal + nonmetal: electrons transfer.
- Opposite charges attract (Coulomb’s law).
- The result is an ionic compound.

Sodium gave its one valence electron (orange) to chlorine. Now Na+ has 2 and 8 electrons, and Cl− has 2, 8, and 8. The attraction between the opposite charges holds them together as NaCl.
Same Group, Same Pattern
- Elements in the same group form similar compounds.

Elements in the same group have the same number of valence electrons, so they form ions with the same charge. If you know one compound in a group, you can predict the others.
Writing Ionic Formulas
- Total charge must equal zero.
- Use the lowest whole-number ratio.

With the crisscross shortcut, the 3 from Al3+ becomes oxygen’s subscript and the 2 from O2− becomes aluminum’s subscript, giving Al2O3. Check: 2(+3) + 3(−2) = 0. Always reduce to the lowest ratio, so Mg2+ and O2− make MgO, not Mg2O2.
Worked Examples
Try each problem on your own first, then open the solution to check your work.
Example 1: Predicting an Ion
Predict the charge on the most common ion of selenium, Se. Write the ion’s electron configuration.
Show the solution
- Group: Se is in group 16, so it has 6 valence electrons.
- Charge: gaining 2 is easier than losing 6, so it forms Se2−.
- Neutral atom: Se has 34 electrons: [Ar] 4s2 3d10 4p4
- Add 2 electrons: [Ar] 4s2 3d10 4p6
- Answer: Se2−: [Ar] 4s2 3d10 4p6 = [Kr]
- Check: 34 + 2 = 36 electrons, the same as krypton.
Example 2: Writing a Formula
Write the formula of the ionic compound formed from calcium and nitrogen.
Show the solution
- Calcium: group 2 → Ca2+
- Nitrogen: group 15 → N3−
- Crisscross: the 2 becomes nitrogen’s subscript and the 3 becomes calcium’s.
- Answer: Ca3N2
- Check: 3(+2) + 2(−3) = +6 − 6 = 0
Example 3: Analogous Compounds
Magnesium and chlorine form MgCl2. Predict the formula of the compound formed from barium and bromine. Justify your answer.
Show the solution
- Metals: Mg and Ba are both in group 2, so both form 2+ ions.
- Nonmetals: Cl and Br are both in group 17, so both form 1− ions.
- Answer: BaBr2
- Check: +2 + 2(−1) = 0
Sample exam justification: Elements in the same group have the same number of valence electrons and form ions with the same charge, so barium and bromine combine in the same 1 to 2 ratio as magnesium and chlorine.
Example 4: Using Ionization Energy Data
Element X forms an ionic compound with oxygen. Use the ionization energies of X to predict the formula of the compound, using X as the symbol.
| Ionization energy | kJ/mol |
|---|---|
| IE1 | 590 |
| IE2 | 1,145 |
| IE3 | 4,912 |
Show the solution
- Compare jumps: 590 → 1,145 is ×1.9, and 1,145 → 4,912 is ×4.3.
- Biggest jump: after the second electron, so X has 2 valence electrons and forms X2+.
- Oxygen: group 16 → O2−
- Answer: XO (+2 and −2 cancel in a 1 to 1 ratio; X is calcium, so the compound is CaO)
Practice
- 1.8 Valence Electrons and Ionic Compounds Practice Worksheet (PDF)
- 1.8 Valence Electrons and Ionic Compounds Practice Answer Key (PDF)
Practice with instant feedback
Answer original AP-style questions for Unit 1 and see an explanation right after each one. Choose Topic 1.8 or mix topics. No login needed.
Lesson Slides
Big Ideas
- Valence electrons decide how atoms bond.
- Metals lose e−, nonmetals gain e−.
- Ion charge comes from group position.
- Ionic formulas have zero total charge.
Back to the essential question: elements form the ions they do because losing or gaining those electrons takes the least energy and leaves a noble gas configuration. That wraps up Unit 1. Next up, Unit 2 starts with Topic 2.1, Types of Chemical Bonds.
AP Alignment
This lesson covers Topic 1.8, Valence Electrons and Ionic Compounds, in Unit 1 (Atomic Structure and Properties) of the College Board AP Chemistry Course and Exam Description (CED). Learning objective:
- 1.8.A: Explain the relationship between trends in the reactivity of elements and periodicity.
Essential knowledge: 1.8.A.1, 1.8.A.2, 1.8.A.3
Suggested skill: 4.C Model Analysis. Explain the connection between particulate-level and macroscopic properties of a substance using models and representations.