In short
A Lewis diagram shows how the valence electrons of a molecule or ion are arranged: shared pairs as bonds and unshared pairs as lone pairs. Count the total valence electrons, connect the atoms with single bonds, complete the octets of the outer atoms, put any leftover electrons on the central atom, and form double or triple bonds if the central atom still lacks an octet. Hydrogen needs only 2 electrons, boron is often stable with 6, and elements in period 3 and below can hold more than 8.
What you need to know
- Count the total valence electrons in a molecule or polyatomic ion.
- Draw Lewis diagrams with single and multiple bonds that satisfy the octet rule.
- Recognise molecules that are exceptions to the octet rule.
- Use a Lewis diagram to identify bonding pairs and lone pairs.
Drawing a Lewis diagram step by step
- Count valence electrons. Add the valence electrons of every atom. For an anion add one electron per negative charge; for a cation subtract one per positive charge.
- Choose the central atom. It is usually the least electronegative atom that can form the most bonds (never hydrogen, rarely a halogen). Arrange the other atoms around it and join each with a single bond (2 electrons).
- Complete the outer atoms' octets with lone pairs (hydrogen gets only its bonding pair).
- Place any remaining electrons on the central atom.
- If the central atom has fewer than 8 electrons, move lone pairs from outer atoms to make double or triple bonds until it has an octet.
Worked examples
| Species | Valence electrons | Structure in words |
|---|---|---|
| H₂O | 2(1) + 6 = 8 | O in the middle, two O–H single bonds, two lone pairs on O |
| NH₃ | 5 + 3(1) = 8 | N with three N–H bonds and one lone pair |
| CO₂ | 4 + 2(6) = 16 | O=C=O, two lone pairs on each O, none on C |
| HCN | 1 + 4 + 5 = 10 | H–C≡N, one lone pair on N |
| NH₄⁺ | 5 + 4(1) − 1 = 8 | N with four N–H bonds, no lone pairs; whole ion in brackets with charge |
For CO₂, single bonds alone (O–C–O with full octets on both oxygens) use all 16 electrons but leave carbon with only 4. Moving one lone pair from each oxygen into a bond gives two double bonds, and now every atom has an octet.
Write polyatomic ions inside square brackets with the overall charge outside, for example [NH₄]⁺ or [OH]⁻.
Exceptions to the octet rule
| Exception | Example | Why it happens |
|---|---|---|
| Fewer than 8 (incomplete octet) | BF₃ (6 around B), BeCl₂ (4 around Be) | Boron and beryllium have few valence electrons; double bonds to fluorine are not favoured |
| More than 8 (expanded octet) | PCl₅ (10 around P), SF₆ (12 around S) | Atoms in period 3 and beyond are large enough to bond to more than four atoms |
| Odd number of electrons | NO (11 valence electrons), NO₂ (17) | With an odd total, one atom must have an unpaired electron |
Key terms
- Lewis diagram
- A drawing of the valence electrons in a molecule or ion, with bonds as lines and lone pairs as dots.
- Lone pair
- A pair of valence electrons not shared in a bond.
- Bonding pair
- A pair of electrons shared between two atoms.
- Octet rule
- Main-group atoms tend to bond until they have eight valence electrons (two for hydrogen).
- Expanded octet
- More than eight electrons around a central atom from period 3 or below, such as P in PCl₅.
Common mistakes
The valence electrons for SO₄²⁻ are 6 + 4(6) = 30.
Add two for the 2− charge: 32 electrons.
Hydrogen can be the central atom if it is listed first, as in HCN.
Hydrogen forms only one bond, so it is always an outer atom; C is central in HCN.
Every atom must always end up with exactly eight electrons.
H needs 2, B is often stable with 6, and period 3+ central atoms can exceed 8.
Leftover electrons go on the outer atoms.
After the outer atoms' octets are complete, leftover electrons go on the central atom.
How this topic is tested
- Write the electron count beside your diagram; if a structure is wrong, the grader can still see your method.
- Show every lone pair, including those on outer atoms such as halogens; missing lone pairs lose the point.
- Put brackets and the charge around polyatomic ions.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 5 · Mathematical Routines
How many valence electrons are in the nitrate ion, NO₃⁻?
Question 2 · SP 1 · Models and Representations
How many lone pairs are on the central atom in the Lewis diagram of NH₃?
Question 3 · SP 1 · Models and Representations
Which molecule has a central atom with fewer than eight electrons in its Lewis diagram?
Question 4 · SP 1 · Models and Representations
In the best Lewis diagram of formaldehyde, H₂CO, how are carbon and oxygen bonded?
Question 5 · SP 6 · Argumentation
A student draws a Lewis diagram of NF₅ with five N–F bonds. Which statement explains why this molecule does not exist?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Short answer (4 points) · 4 points
Hydrogen cyanide, HCN, and the chlorate ion, ClO₃⁻, are both studied in an AP Chemistry lab.
- (a) Determine the total number of valence electrons in HCN.
- (b) Draw a complete Lewis diagram of HCN.
- (c) Draw a Lewis diagram of ClO₃⁻ in which every atom obeys the octet rule.
Scoring guide: one point for each of the following
Part (a)
- 1 + 4 + 5 = 10.
Part (b)
- H–C≡N with one lone pair on N (all 10 electrons shown; C has an octet).
Part (c)
- 26 electrons: Cl central with three Cl–O single bonds and one lone pair on Cl.
- Three lone pairs on each O; structure in brackets with a 1− charge.
Connected topics
Frequently asked questions
How do I choose the central atom?
Usually it is the atom with the lowest electronegativity that can make the most bonds, often the one written first in the formula (except hydrogen). In H₂O, O is central; in CO₂, C is central.
Does the AP exam require dots or lines for bonds?
Either is accepted, as long as every electron is shown clearly. Most students use lines for bonds and dots for lone pairs.
When should I draw an expanded octet?
Only for central atoms from period 3 or below, and only when needed to bond to all the outer atoms (as in PCl₅ and SF₆) or when it gives better formal charges (topic 2.6).