In this lesson
Take it with you
- Lesson slides (PDF)
- Practice worksheet (PDF)
- Answer key (PDF)
- Lewis and VSEPR Builder (activity)
- AP Chemistry Unit 2 Practice (activity)
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.

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.

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−

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.

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)

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
- Count the total valence electrons. For an ion, add one electron per negative charge or subtract one per positive charge.
- Pick the central atom. It is usually the least electronegative atom, often the one that appears only once. Hydrogen is never central.
- Connect each outer atom to the central atom with a single bond. Subtract 2 e− per bond.
- Complete the octets of the outer atoms with lone pairs. Hydrogen already has its 2.
- Place leftover electrons on the central atom as lone pairs.
- 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.

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.

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.
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
- Sulfur: group 16, so 1 × 6 = 6
- Oxygen: group 16, so 4 × 6 = 24
- Charge: 2− means 2 extra electrons, so + 2
- Answer: 6 + 24 + 2 = 32 valence electrons
- 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
- Count: N = 5, H = 3 × 1 = 3, total = 5 + 3 = 8 e−
- Central atom: hydrogen can’t be central, so N goes in the middle with three H around it.
- Single bonds: three N-H bonds use 6 e−. 8 − 6 = 2 left.
- Outer atoms: each H already has 2 from its bond, so nothing is added.
- Leftovers: the last 2 electrons go on N as a lone pair.
- Check: N has 6 (bonds) + 2 (lone pair) = 8. Electrons drawn: 6 + 2 = 8 ✓

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
- Count: C = 4, O = 2 × 6 = 12, total = 4 + 12 = 16 e−
- Central atom: carbon is less electronegative than oxygen and appears once, so C goes in the center.
- Single bonds: O-C-O uses 4 e−. 16 − 4 = 12 left.
- Outer atoms: each O gets three lone pairs (6 each, 12 total). 12 − 12 = 0 left.
- Leftovers: none, so carbon gets no lone pairs.
- Check the central atom: C has only 4 e− ✗. Move one lone pair from each O into its bond, making two double bonds.
- Final check: C: 4 + 4 = 8 ✓, each O: 4 (lone) + 4 (bond) = 8 ✓, total: 8 (bonding) + 8 (lone) = 16 ✓

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
- Count: H = 1, C = 4, N = 5, total = 1 + 4 + 5 = 10 e−
- Central atom: C, with H on one side and N on the other.
- Single bonds: H-C-N uses 4 e−. 10 − 4 = 6 left.
- Outer atoms: H is full. N gets three lone pairs (6). 6 − 6 = 0 left.
- Leftovers: none for carbon.
- 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.
- Final check: C: 2 + 6 = 8 ✓, N: 6 + 2 = 8 ✓, H: 2 ✓, total: 8 (bonding) + 2 (lone) = 10 ✓

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
- Count: N = 5, H = 4 × 1 = 4, 1+ charge = − 1, total = 5 + 4 − 1 = 8 e−
- Central atom: N, with four H atoms around it.
- Single bonds: four N-H bonds use 8 e−. 8 − 8 = 0 left.
- Outer atoms and leftovers: each H is full, and no electrons remain for lone pairs.
- Check: N has 4 × 2 = 8 ✓
- Ion: put the diagram in square brackets with a + 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
- Count: S = 6, F = 4 × 7 = 28, total = 6 + 28 = 34 e−
- Central atom: sulfur is less electronegative than fluorine, so S is central.
- Single bonds: four S-F bonds use 8 e−. 34 − 8 = 26 left.
- Outer atoms: each F gets three lone pairs: 4 × 6 = 24. 26 − 24 = 2 left.
- Leftovers: the last 2 electrons go on S as a lone pair.
- 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 ✓

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.
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.
Lesson Slides
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.
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).