AP CHEMISTRY • ATOMIC STRUCTURE AND PROPERTIES

Valence Electrons and Ionic Compounds

How outermost electrons drive the formation of ionic bonds and determine compound stoichiometry.

Historical Context & Motivation

The question of why certain elements combine in fixed ratios while others remain inert puzzled chemists for well over a century. Early observations by Antoine Lavoisier and John Dalton established the law of definite proportions—compounds always contain elements in the same mass ratios—yet neither scientist could explain why those ratios existed. The answer ultimately lay in the electronic structure of atoms, specifically in the behavior of the outermost electrons. Understanding how valence electrons are gained, lost, or shared between atoms provided the conceptual bridge between macroscopic stoichiometry and atomic-level interactions, a bridge that remains central to modern chemistry.

1869
Mendeleev's Periodic Table
Dmitri Mendeleev arranged elements by atomic mass and recurring chemical properties, revealing periodic trends that hinted at an underlying electronic basis for chemical behavior.
1897
Discovery of the Electron
J.J. Thomson's cathode-ray experiments identified the electron as a subatomic particle, laying the groundwork for electron-transfer models of bonding.
1913
Bohr Model of the Atom
Niels Bohr proposed quantized energy levels for electrons, giving chemists a framework for distinguishing inner-shell electrons from those in the outermost shell.
1916
Lewis & Kossel's Electron-Transfer Theory
Gilbert N. Lewis and Walther Kossel independently proposed that atoms achieve noble-gas configurations by transferring or sharing electrons, establishing the modern concept of ionic and covalent bonding.
1927
Quantum Mechanical Model
The Schrödinger equation replaced Bohr's orbits with orbitals, refining our understanding of electron distributions and enabling rigorous predictions of valence behavior.

The central question this lesson addresses is deceptively simple: What determines how many electrons an atom will gain or lose, and how does this electron transfer produce stable ionic compounds with predictable formulas? By connecting electron configurations to periodic trends, we can predict the charges of monatomic ions, write correct empirical formulas for ionic compounds, and rationalize the extraordinary stability conferred by lattice energy. These skills are foundational for Unit 2 of the AP Chemistry curriculum and recur in virtually every subsequent topic.

Core Principles & Definitions

Before analyzing ionic compounds in detail, it is essential to establish the foundational ideas that govern how atoms interact through electron transfer. The principles below connect electron configuration—a topic covered extensively in the quantum model—to the observable chemistry of salt formation, crystal structures, and solubility behavior.

1

Valence Electrons

Electrons in the outermost principal energy level (highest value of n) that participate in chemical bonding. For main-group elements, the number of valence electrons equals the group number (using the 1–18 convention for Groups 1, 2, and 13–18).
2

Octet Rule & Exceptions

Atoms tend to gain, lose, or share electrons to achieve eight electrons in their valence shell, mimicking a noble-gas configuration. Important exceptions include hydrogen (duet), elements in Period 3+ (expanded octets), and certain transition metals.
3

Ionic Bonding via Electron Transfer

When a metal with low ionization energy encounters a nonmetal with high electron affinity, electron transfer produces oppositely charged ions. The resulting electrostatic attraction constitutes the ionic bond.
4

Charge Balance & Empirical Formulas

Ionic compounds are electrically neutral. The ratio of cations to anions in the empirical formula is determined by balancing the total positive and negative charges, yielding the lowest whole-number subscript ratio.
5

Lattice Energy & Stability

The energy released when gaseous ions assemble into a crystalline lattice quantifies the thermodynamic stability of an ionic compound. Lattice energy increases with higher ion charges and smaller ionic radii, consistent with Coulomb's law.
KEY TAKEAWAY
Think of valence electrons as the currency atoms use in chemical transactions. A sodium atom is like a person carrying exactly one extra coin they are eager to spend, while a chlorine atom is like a merchant who needs exactly one coin to complete a transaction. When they meet, the exchange is immediate, both parties reach a stable state, and the "receipt" of that trade is the ionic bond holding NaCl together. The empirical formula is simply the bookkeeping that ensures every coin spent is accounted for by a coin received.

Visual Explanation — Electron Transfer in NaCl

The formation of sodium chloride provides the archetypal illustration of ionic bonding. Sodium (Z = 11) has the electron configuration [Ne] 3s1, possessing a single valence electron in its third energy level. Chlorine (Z = 17) has the configuration [Ne] 3s2 3p5, meaning it requires one additional electron to complete its octet. The following diagram traces the electron transfer process, showing how each atom attains a noble-gas configuration upon forming an ion.

The diagram shows sodium's single valence electron (gold dot, top shell) transferring to chlorine. After transfer, Na+ achieves the [Ne] configuration and Cl achieves the [Ar] configuration. The electrostatic attraction between the resulting oppositely charged ions constitutes the ionic bond.

Several features of this diagram merit close attention. First, note that sodium's valence electron (highlighted in gold) sits in the third principal energy level—far from the nucleus—making it relatively easy to remove. The first ionization energy of sodium is only 496 kJ/mol, reflecting the weak hold the nucleus exerts on this lone 3s electron. Second, chlorine's seven valence electrons (pink dots on the outer shell) leave precisely one vacancy in the 3p subshell. Adding one electron to chlorine releases 349 kJ/mol of energy, its electron affinity. The combination of sodium's low ionization energy and chlorine's highly exothermic electron affinity makes the electron-transfer process energetically favorable even before accounting for lattice energy, the enormous stabilization gained when ions assemble into the crystal lattice.

Mathematical Framework — Lattice Energy & Coulomb's Law

While the AP Chemistry exam does not require calculating lattice energies from first principles, understanding the mathematical relationships governing ionic interactions enables powerful qualitative predictions. Coulomb's law provides the foundation: the electrostatic potential energy between two point charges is proportional to the product of their charges and inversely proportional to the distance between them.

COULOMB'S LAW (ELECTROSTATIC ENERGY)
E = k × (q₁ × q₂) / r
Where E is the electrostatic potential energy, k is Coulomb's constant (8.99 × 10⁹ N·m²/C²), q₁ and q₂ are the ion charges, and r is the interionic distance. For oppositely charged ions, E is negative (attractive).
BORN-LANDÉ APPROXIMATION (LATTICE ENERGY)
U = −(N_A × M × q⁺ × q⁻) / (4πε₀ × r₀) × (1 − 1/n)
Where NA is Avogadro's number, M is the Madelung constant (geometry-dependent), r₀ is the equilibrium interionic distance, and n is the Born exponent related to compressibility. This equation is beyond the AP exam scope but illustrates why lattice energy increases with charge and decreases with ionic radius.
CHARGE BALANCE FOR EMPIRICAL FORMULAS
(cation charge) × (number of cations) + (anion charge) × (number of anions) = 0
This fundamental constraint determines the subscripts in every ionic formula. For example, if the cation is Al3+ and the anion is O2−, the formula must be Al₂O₃ so that (+3)(2) + (−2)(3) = 0.

For the AP exam, the critical qualitative takeaway is that lattice energy increases as ionic charges increase and as ionic radii decrease. This explains why MgO (with +2 and −2 ions) has a much higher melting point (2852 °C) than NaCl (with +1 and −1 ions, melting at 801 °C), even though both adopt the same rock-salt crystal structure. The charge ratio matters more than the size ratio in most comparisons, because the Coulombic energy depends on the product of the charges, which quadruples when each charge doubles.

Valence Electrons Across the Periodic Table

The periodic table is, in essence, organized by valence electron count. For main-group (representative) elements, the group number directly encodes the number of valence electrons: Group 1 elements have one, Group 2 have two, and Groups 13–18 have three through eight, respectively. Transition metals present a more complex picture because their (n−1)d electrons can participate in bonding to varying degrees, leading to multiple common oxidation states. The diagram below maps the relationship between periodic table position, valence electron count, and the most common ion charges formed by main-group elements.

Main-group elements form predictable ions by either losing all valence electrons (metals, red borders) or gaining enough to complete an octet (nonmetals, cyan borders). Each resulting ion has a noble-gas electron configuration. Group 14 elements are a borderline case—they typically form covalent rather than ionic bonds because gaining or losing four electrons would be energetically prohibitive.
Main-group valence electrons, common ions, and isoelectronic noble gases
GroupValence e⁻Electron Config. PatternCommon IonIsoelectronic With
1 (Li, Na, K)1ns¹1+Previous noble gas
2 (Be, Mg, Ca)2ns²2+Previous noble gas
13 (Al, Ga)3ns²np¹3+Previous noble gas
15 (N, P)5ns²np³3−Next noble gas
16 (O, S)6ns²np⁴2−Next noble gas
17 (F, Cl, Br)7ns²np⁵1−Next noble gas
18 (Ne, Ar, Kr)8ns²np⁶0 (no ion)Already a noble gas

Worked Example — Predicting the Formula of Calcium Phosphide

Let us walk through the complete process of predicting the empirical formula of the ionic compound formed between calcium and phosphorus. This example illustrates how valence electron counts dictate ion charges and how charge balance determines stoichiometry.

Determining the Formula of Calcium Phosphide
1
Step 1 — Identify Element Types and Valence ElectronsCalcium (Ca) is in Group 2 of the periodic table, so it is a metal with 2 valence electrons (electron configuration [Ar] 4s²). Phosphorus (P) is in Group 15, a nonmetal with 5 valence electrons (electron configuration [Ne] 3s²3p³). Since one is a metal and the other a nonmetal, we expect ionic bonding.
2
Step 2 — Determine Expected Ion ChargesCalcium will lose its 2 valence electrons to achieve the argon noble-gas configuration, forming Ca²⁺. Phosphorus will gain 3 electrons to complete its octet and achieve the argon configuration, forming P³⁻.
Ca → Ca²⁺ (loses 2 e⁻) | P → P³⁻ (gains 3 e⁻)
3
Step 3 — Apply Charge BalanceThe compound must be electrically neutral. We need the total positive charge to equal the total negative charge in magnitude. The least common multiple of 2 and 3 is 6. Therefore, we need 3 calcium ions (total charge = +6) and 2 phosphide ions (total charge = −6).
3 × (+2) + 2 × (−3) = +6 − 6 = 0 ✓
4
Step 4 — Write the Empirical FormulaThe cation is written first, followed by the anion. The subscripts represent the number of each ion required for charge neutrality.
Ca₃P₂ — calcium phosphide
5
Step 5 — VerifyConfirm that the formula is in lowest whole-number ratio: 3 and 2 share no common factor greater than 1, so Ca₃P₂ is already the empirical formula. The total number of electrons lost (3 × 2 = 6) equals the total number of electrons gained (2 × 3 = 6), confirming electron conservation.
Final answer: Ca₃P₂

Ionic vs. Covalent Bonding — Strengths & Limitations

While the ionic model provides an elegant and often accurate description of compounds formed between metals and nonmetals, it is important to recognize its boundaries. Real chemical bonds exist on a continuum between purely ionic and purely covalent character, and the simple electron-transfer model breaks down for certain compounds. The following comparison highlights where the ionic model excels and where more nuanced approaches are necessary.

Comparison of ionic and covalent bonding models
PropertyIonic CompoundsCovalent Compounds
Bond formationElectron transfer between atoms with large electronegativity differences (ΔEN > 1.7 as a rough guideline)Electron sharing between atoms with small electronegativity differences (ΔEN < 1.7)
Typical participantsMetal + nonmetal (e.g., NaCl, MgO, CaF₂)Nonmetal + nonmetal (e.g., H₂O, CO₂, CH₄)
Melting pointGenerally high (strong Coulombic forces in lattice)Generally low (weak intermolecular forces between discrete molecules)
Electrical conductivityConducts when molten or dissolved (mobile ions); insulator as solidGenerally nonconducting (no mobile charged particles)
StructureExtended 3D crystal lattice; no discrete moleculesDiscrete molecules (exceptions: network covalent solids like SiO₂)
SolubilityOften soluble in polar solvents like waterOften soluble in nonpolar organic solvents
KEY TAKEAWAY
The ionic model is like a simplified circuit diagram in electrical engineering—it captures the essential behavior (current flow, voltage drops) with high accuracy for most practical purposes, even though it ignores quantum tunneling and relativistic effects at the component level. Similarly, the electron-transfer model correctly predicts formulas, charges, and physical properties for the vast majority of metal-nonmetal compounds, but it oversimplifies the partial covalent character present in highly polarizing ions like Al³⁺ or Li⁺. For the AP exam, use the ionic model confidently for main-group metal–nonmetal combinations and be aware of Fajans' rules as the bridge to understanding covalent character in "ionic" compounds.

Connection to Advanced Theory — Beyond the Octet

The valence electron framework developed in this lesson serves as the launching pad for several advanced topics you will encounter throughout the AP Chemistry curriculum and in university-level courses. Understanding how the simple ionic model connects to these more sophisticated treatments will deepen your ability to reason about chemical behavior.

How foundational concepts connect to advanced AP and university topics
This Lesson's ConceptAdvanced Extension
Octet rule drives ion chargeTransition metals form multiple oxidation states because d-orbital electrons have variable participation in bonding (e.g., Fe²⁺ and Fe³⁺)
Lattice energy ∝ q₁q₂/rBorn-Haber cycles use Hess's law to calculate lattice energies indirectly from measurable thermodynamic quantities (ionization energy, electron affinity, enthalpy of formation)
Ionic compounds dissolve in waterDissolution involves ion-dipole interactions and hydration enthalpy; solubility rules emerge from the competition between lattice energy and hydration energy
Charge balance → empirical formulaPolyatomic ions (SO₄²⁻, NO₃⁻, PO₄³⁻) introduce complex charge-balance scenarios with internal covalent bonding and external ionic bonding
Electronegativity difference → bond typePauling's electronegativity scale and percent ionic character calculations provide a quantitative measure of bond polarity beyond the binary ionic/covalent classification

As you progress through AP Chemistry, you will revisit valence electrons repeatedly—in Lewis structures (Unit 2), in VSEPR theory for molecular geometry (Unit 2), in intermolecular forces (Unit 3), and in redox chemistry (Unit 4). The concept of electron transfer that produces ionic compounds is, in a sense, the simplest case of a broader theme: all chemistry is fundamentally about the rearrangement of valence electrons. Master the principles here, and every subsequent topic builds naturally on this foundation.

Practice Problems

1
Sulfur is in Group 16 of the periodic table. When sulfur forms a monatomic ion in an ionic compound, what is the most likely charge on that ion, and which noble gas is it isoelectronic with?
2
What is the correct empirical formula for the ionic compound formed between barium (Ba) and nitrogen (N)?
3
Arrange the following ionic compounds in order of increasing lattice energy: NaF, CaO, KBr.
PROBLEM 4APPLIED
A student investigates two unknown white crystalline solids, Compound X and Compound Y. Both dissolve in water. When the student tests the solutions with a conductivity apparatus, Compound X produces a bright bulb glow while Compound Y produces no glow. The student also determines that Compound X has a melting point of 801 °C, while Compound Y melts at 186 °C. (a) Based on the conductivity data, classify Compound X and Compound Y as ionic or molecular (covalent). Justify your reasoning for each compound. (b) Compound X is determined to be NaCl. Write the electron configurations for the Na⁺ and Cl⁻ ions and identify the noble gas each is isoelectronic with. (c) Compound Y is determined to be glucose (C₆H₁₂O₆). Explain why glucose dissolves in water but does not conduct electricity, referencing the type of bonding present. (d) A third compound, MgO, has a melting point of 2852 °C. Using Coulomb's law principles, explain why MgO has a much higher melting point than NaCl, even though both are ionic compounds.
PROBLEM 5CRITICAL THINKING
The table below shows the lattice energies and melting points for four sodium halides: | Compound | Lattice Energy (kJ/mol) | Melting Point (°C) | Anion Radius (pm) | |----------|------------------------|--------------------|-----------------| | NaF | 923 | 993 | 119 | | NaCl | 786 | 801 | 167 | | NaBr | 747 | 747 | 182 | | NaI | 704 | 661 | 206 | (a) Describe the trend in lattice energy as you move from NaF to NaI. Identify the variable responsible for this trend, given that the cation and its charge remain constant. (b) Using Coulomb's law, explain quantitatively why NaF has a lattice energy approximately 1.31 times that of NaI. Reference specific data from the table. (c) A student predicts that NaAt (sodium astatide, where At is astatine in Group 17) would have a lattice energy less than 704 kJ/mol. Evaluate this prediction and justify whether it is reasonable. (d) The data show that the melting point of NaBr (747 °C) is numerically equal to its lattice energy (747 kJ/mol). A student claims this means melting point and lattice energy are always equal. Critique this claim using evidence from the table.

Lesson Summary

Valence electrons are the electrons in the outermost principal energy level of an atom, and for main-group elements their count equals the group number. These outermost electrons dictate chemical reactivity: metals with low ionization energies readily lose valence electrons to form cations, while nonmetals with high electron affinities readily gain electrons to form anions. The resulting oppositely charged ions attract through Coulombic forces, assembling into extended crystal lattices that characterize ionic compounds. The charge balance principle — total positive charge must equal total negative charge — determines the empirical formula of every ionic compound.

The stability of ionic compounds is quantified by lattice energy, which increases with higher ion charges and smaller ionic radii, consistent with Coulomb's law. Key physical properties — high melting points, brittleness, and electrical conductivity in the molten or dissolved state — follow directly from the extended lattice structure and the strength of interionic attractions. Understanding valence electrons and ionic bonding provides the essential foundation for Lewis structures, molecular geometry, intermolecular forces, and the redox reactions you will encounter throughout AP Chemistry.

Varsity Tutors • AP Chemistry • Valence Electrons and Ionic Compounds