AP Chemistry · Unit 1 · Topic 1.8

1.8 Valence Electrons and Ionic Compounds

6-minute read1 picture1 sim1 step-by-step problem3 practice questions

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.

The whole topic in one picture

Sodium hands its one valence electron to chlorine, making a small Na plus and a large Cl minus; a ladder of ion charges by group; and the criss-cross that turns Mg 2+ and N 3- into Mg3N2Electron hand-offNaCle⁻Na 186 pm1 valence e⁻Cl 99 pm7 valence e⁻loses 1gains 1Na⁺Cl⁻Na⁺ 102 pmCl⁻ 181 pmIon charge1Na+12Mg+213Al+315N−316O−217Cl−1Criss-crossMg2+N3−Mg3N23(+2) + 2(−3) = 0NNNN6 Mg²⁺ : 4 N³⁻ = 3 : 21234
Sodium hands its one valence electron to chlorine, the group number sets each ion's charge, and the criss-cross turns Mg²⁺ and N³⁻ into Mg₃N₂. Original diagram, Green Flask Science.
  1. 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.
  2. 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.
  3. 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³⁻.
  4. 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.

In the full Unit 1 review: the full Unit 1 lesson has Lewis-dot and ion-charge questions, plus formula questions for ions that come in groups.

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.

Practice: 3 questions

Original AP-style questions. Every wrong choice is a real trap, and the explanation names it.

1

What is the most stable ion that sulfur (group 16) forms?

2

What is the formula of the ionic compound made from Ca²⁺ and Cl⁻?

3

Which ionic compound should have the strongest attraction between its ions?

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.