AP Chemistry · Unit 2: Compound Structure and Properties

2.5 Lewis Diagrams

Essential Question

How do we draw the electrons in a molecule?

Electrons are far too small to see, but chemists still need a quick way to show where they are and how atoms share them. A Lewis diagram is that tool. By the end of this lesson, you should be able to draw a Lewis diagram for a molecule or a polyatomic ion, one step at a time.

Video not loading? Watch it on YouTube.

Valence Electrons

  • Valence electrons are the outermost s and p electrons, the ones that take part in bonding.
  • They are the only electrons shown in a Lewis diagram. Core electrons are left out.
Table of main group elements. Groups 1, 2, 13, 14, 15, 16, 17, and 18 have 1 through 8 valence electrons. Examples from period 3: Na, Mg, Al, Si, P, S, Cl, Ar.

For main group elements, the group number gives the count. For groups 13 through 18, use the last digit. Chlorine ends in 3s2 3p5, and 2 + 5 = 7 valence electrons, which matches group 17. One exception: helium is in group 18 but has only 2 valence electrons.

Lewis Symbols for Atoms

  • The element symbol stands for the nucleus plus the core electrons.
  • Each dot is one valence electron.
  • Place one dot on each of the four sides before pairing them up.
Lewis symbols for Li, Be, B, C, N, O, F, and Ne with 1 through 8 valence electron dots. Dots go one per side before pairing, so pairs start at nitrogen.

Pairing starts with nitrogen’s fifth electron. The unpaired dots are the electrons available to form bonds, so oxygen, with two unpaired electrons, usually forms two bonds. A full set of 8, like neon’s, is called an octet.

Bonding Pairs and Lone Pairs

  • Bonding pair: a pair of electrons shared by two atoms. It holds the atoms together.
  • Lone pair: a pair that belongs to just one atom (also called a nonbonding pair).
  • One line = one bonding pair = 2 e−
Lewis diagram of Cl2: two Cl atoms joined by a single line labeled bonding pair, each Cl with three lone pairs, one labeled lone pair.

Check Cl2: 2 (bond) + 6 + 6 (lone pairs) = 14 e−, which matches 7 × 2 = 14. Always draw lone pairs. They become important when you predict molecular shapes in Topic 2.7.

The Octet Rule

  • Most atoms share electrons until they are surrounded by 8 valence electrons, like a noble gas.
  • Hydrogen only needs 2 (a duet), so it forms one bond and never has lone pairs.
  • Shared electrons count toward the total for both atoms.
Lewis diagram of HCl with a dashed circle around H showing 2 electrons and a dashed circle around Cl showing 8 electrons. The circles overlap at the shared bond.

In HCl, chlorine has three lone pairs (6 e−) plus the bond (2 e−) for 8. Hydrogen has just the bond, 2 e−. The bond sits inside both circles because it counts for both atoms.

Single, Double, and Triple Bonds

  • Single bond: one shared pair, 2 e− (H2)
  • Double bond: two shared pairs, 4 e− (O2)
  • Triple bond: three shared pairs, 6 e− (N2)
Three cards: single bond H-H with 2 shared electrons, double bond O=O with 4 shared electrons and two lone pairs on each O, triple bond N triple-bonded to N with 6 shared electrons and one lone pair on each N.

Each O in O2 has 4 (lone) + 4 (bond) = 8. Each N in N2 has 2 (lone) + 6 (bond) = 8. No matter how many lines there are, every line counts as 2 electrons.

Steps for Drawing Lewis Diagrams

  1. Count the total valence electrons. For an ion, add one electron per negative charge or subtract one per positive charge.
  2. Pick the central atom. It is usually the least electronegative atom, often the one that appears only once. Hydrogen is never central.
  3. Connect each outer atom to the central atom with a single bond. Subtract 2 e− per bond.
  4. Complete the octets of the outer atoms with lone pairs. Hydrogen already has its 2.
  5. Place leftover electrons on the central atom as lone pairs.
  6. Check the central atom. If it has fewer than 8, move a lone pair from an outer atom into a double bond (or a triple bond if needed).

Final check: the electrons in your drawing must equal the total from step 1, and every atom should have an octet (a duet for hydrogen).

Polyatomic Ions

  • Negative charge: add electrons (one per negative charge).
  • Positive charge: subtract electrons (one per positive charge).
  • Put the whole diagram in square brackets and write the charge at the top right.
Lewis diagram of the hydroxide ion: O with three lone pairs single-bonded to H, inside square brackets with a negative charge at the top right. Caption: OH minus, 6 + 1 + 1 = 8 electrons.

Hydroxide, OH−, has 6 + 1 + 1 = 8 e−, where the last 1 comes from the 1− charge. One bond uses 2, and oxygen’s three lone pairs use the other 6. The charge belongs to the whole ion, so leaving off the brackets is a common mistake.

Exceptions to the Octet Rule

  • Fewer than 8: boron commonly has 6 and beryllium commonly has 4.
  • More than 8 (expanded octet): only central atoms in period 3 or below, like P, S, Cl, and Xe.
  • Period 2 elements (C, N, O, F) never have more than 8.
Two cards. Fewer than 8: BF3, with boron bonded to three F atoms and only 6 electrons around B, common for B and Be. More than 8: SF6, with sulfur bonded to six F atoms and 12 electrons around S, only for central atoms in period 3 or below.

In BF3, boron has three bonds, so 6 e−. In SF6, sulfur has six bonds, so 12 e−. The outer fluorine atoms still have normal octets. Expanded octets only happen on the central atom.

↑ Back to top


Worked Examples

Try each problem on your own first, then open the solution to check your work.

Example 1: Counting Valence Electrons

How many total valence electrons are in the sulfate ion, SO42−?

Show the solution
  1. Sulfur: group 16, so 1 × 6 = 6
  2. Oxygen: group 16, so 4 × 6 = 24
  3. Charge: 2− means 2 extra electrons, so + 2
  4. Answer: 6 + 24 + 2 = 32 valence electrons
  5. The trap: subtracting for the negative charge gives 6 + 24 − 2 = 28, which is wrong. Negative means extra electrons, so you add.

Example 2: Ammonia

Draw the Lewis diagram for ammonia, NH3.

Show the solution
  1. Count: N = 5, H = 3 × 1 = 3, total = 5 + 3 = 8 e−
  2. Central atom: hydrogen can’t be central, so N goes in the middle with three H around it.
  3. Single bonds: three N-H bonds use 6 e−. 8 − 6 = 2 left.
  4. Outer atoms: each H already has 2 from its bond, so nothing is added.
  5. Leftovers: the last 2 electrons go on N as a lone pair.
  6. Check: N has 6 (bonds) + 2 (lone pair) = 8. Electrons drawn: 6 + 2 = 8 ✓
Lewis diagram of NH3: N in the center with single bonds to three H atoms and one lone pair on N.

Answer: N in the center, single bonds to three H atoms, and one lone pair on N. That lone pair shapes the molecule in Topic 2.7.

Example 3: Carbon Dioxide

Draw the Lewis diagram for carbon dioxide, CO2.

Show the solution
  1. Count: C = 4, O = 2 × 6 = 12, total = 4 + 12 = 16 e−
  2. Central atom: carbon is less electronegative than oxygen and appears once, so C goes in the center.
  3. Single bonds: O-C-O uses 4 e−. 16 − 4 = 12 left.
  4. Outer atoms: each O gets three lone pairs (6 each, 12 total). 12 − 12 = 0 left.
  5. Leftovers: none, so carbon gets no lone pairs.
  6. Check the central atom: C has only 4 e− ✗. Move one lone pair from each O into its bond, making two double bonds.
  7. Final check: C: 4 + 4 = 8 ✓, each O: 4 (lone) + 4 (bond) = 8 ✓, total: 8 (bonding) + 8 (lone) = 16 ✓
Left: O-C-O with single bonds and three lone pairs on each O, labeled C has only 4 electrons. Arrow to right: O=C=O with two double bonds and two lone pairs on each O, labeled every atom has 8 electrons.

Answer: O=C=O with two lone pairs on each oxygen.

Example 4: Hydrogen Cyanide

Draw the Lewis diagram for hydrogen cyanide, HCN. Carbon is the central atom.

Show the solution
  1. Count: H = 1, C = 4, N = 5, total = 1 + 4 + 5 = 10 e−
  2. Central atom: C, with H on one side and N on the other.
  3. Single bonds: H-C-N uses 4 e−. 10 − 4 = 6 left.
  4. Outer atoms: H is full. N gets three lone pairs (6). 6 − 6 = 0 left.
  5. Leftovers: none for carbon.
  6. Check the central atom: C has only 4 e− ✗. It needs two more bonds, so move two lone pairs from N into the C-N bond to make a triple bond. Hydrogen can only ever have one bond, so it doesn’t change.
  7. Final check: C: 2 + 6 = 8 ✓, N: 6 + 2 = 8 ✓, H: 2 ✓, total: 8 (bonding) + 2 (lone) = 10 ✓
Left: H-C-N with single bonds and three lone pairs on N, labeled C has only 4 electrons. Arrow to right: H-C triple-bonded to N with one lone pair on N, labeled C and N have 8 electrons.

Answer: H-C≡N with one lone pair on nitrogen.

Example 5: Ammonium Ion

Draw the Lewis diagram for the ammonium ion, NH4+.

Show the solution
  1. Count: N = 5, H = 4 × 1 = 4, 1+ charge = − 1, total = 5 + 4 − 1 = 8 e−
  2. Central atom: N, with four H atoms around it.
  3. Single bonds: four N-H bonds use 8 e−. 8 − 8 = 0 left.
  4. Outer atoms and leftovers: each H is full, and no electrons remain for lone pairs.
  5. Check: N has 4 × 2 = 8 ✓
  6. Ion: put the diagram in square brackets with a + at the top right.
Lewis diagram of the ammonium ion: N in the center single-bonded to four H atoms, no lone pairs, inside square brackets with a plus charge at the top right.

Answer: [NH4]+ with N bonded to four H atoms, no lone pairs, in brackets with a + charge. Compare it to ammonia: ammonia’s lone pair became a fourth bond to an H+ ion.

Example 6: Sulfur Tetrafluoride

Draw the Lewis diagram for sulfur tetrafluoride, SF4.

Show the solution
  1. Count: S = 6, F = 4 × 7 = 28, total = 6 + 28 = 34 e−
  2. Central atom: sulfur is less electronegative than fluorine, so S is central.
  3. Single bonds: four S-F bonds use 8 e−. 34 − 8 = 26 left.
  4. Outer atoms: each F gets three lone pairs: 4 × 6 = 24. 26 − 24 = 2 left.
  5. Leftovers: the last 2 electrons go on S as a lone pair.
  6. Check: S has 8 (bonds) + 2 (lone pair) = 10. That’s an expanded octet, which is allowed because sulfur is in period 3 ✓. Total: 8 + 24 + 2 = 34 ✓
Lewis diagram of SF4: S in the center single-bonded to four F atoms, each F with three lone pairs, and one lone pair on S.

Answer: S bonded to four F atoms, three lone pairs on each F, and one lone pair on S. Students often leave off the lone pair on sulfur, and it changes the shape of the molecule.

↑ Back to top


Practice

Practice Lewis structures and shapes

Count valence electrons, build each Lewis structure, then predict its shape, bond angle and polarity.

Practice with instant feedback

Answer original AP-style questions for Unit 2 and see an explanation right after each one. Choose Topic 2.5 or mix topics. No login needed.

↑ Back to top


Lesson Slides

↑ Back to top


Big Ideas

  • Dots show valence electrons.
  • Each line is a shared pair (2 electrons).
  • Most atoms reach 8 electrons; hydrogen reaches 2.
  • Count first, then draw, then check.

Back to the essential question: we draw the electrons in a molecule with a Lewis diagram. Count the valence electrons, connect the atoms, fill the octets, and check your total. Next up, Topic 2.6 looks at resonance and formal charge.

↑ Back to top


AP Alignment

This lesson covers Topic 2.5, Lewis Diagrams, in Unit 2 (Compound Structure and Properties) of the College Board AP Chemistry Course and Exam Description (CED). Learning objective:

  • 2.5.A: Represent a molecule with a Lewis diagram.

Essential knowledge: 2.5.A.1

Suggested skill: 3.B Representing Data and Phenomena. Represent chemical substances or phenomena with appropriate diagrams or models (e.g., electron configuration).

↑ Back to top