A Lewis diagram shows every valence electron in a molecule or ion: shared pairs as bonds, unshared pairs as lone pairs. Count the valence electrons, join outer atoms to a central atom, and place the rest to give each atom an octet, adding multiple bonds where the central atom falls short. Boron can have six electrons, and atoms from period 3 onward can hold more than eight.
Quick check
How many valence electrons does an atom of nitrogen, oxygen or chlorine have?Show answerHide answer
Nitrogen has 5, oxygen has 6 and chlorine has 7. For groups 13 to 18, subtract 10 from the group number.
A water molecule has two O–H bonds. How many lone pairs does the oxygen atom carry?Show answerHide answer
Two. Water has valence electrons; the two bonds use 4, and the other 4 sit on oxygen as two lone pairs.
Know these already? Jump to the practice questions
What you'll be able to do
- Calculate the total number of valence electrons in a molecule or polyatomic ion.
- Draw a Lewis diagram, with multiple bonds where needed, and describe it in words.
- Determine the number of bonding pairs and lone pairs in a Lewis diagram.
- Identify atoms with fewer or more than eight electrons, and explain which atoms can do this.
Key terms
Bonding pair
A pair of electrons shared between two atoms. A single bond is one bonding pair, a double bond two and a triple bond three.
- In plain English
- The electrons that make up a bond line.
- Don't write
- "A double bond is one bonding pair."
Lone pair
A pair of valence electrons that belongs to one atom and is not shared in a bond.
- In plain English
- A pair of dots sitting on one atom.
- Don't write
- "A single unpaired electron."
Octet rule
Main-group atoms in molecules tend to have eight electrons around them, counting bonding pairs and lone pairs; hydrogen needs only two.
- In plain English
- Most atoms end up surrounded by four pairs.
- Don't write
- "Every atom always has exactly eight electrons."
What does a Lewis diagram show?
A Lewis diagram shows only valence electrons, because they form the bonds. Each line is a bonding pair and each pair of dots is a lone pair.
To count the electrons around an atom, add 2 per bonding pair and 2 per lone pair. In ammonia, NH₃, nitrogen has three bonding pairs and one lone pair, so : an octet. Each hydrogen has 2. A shared pair counts for both atoms, which is how atoms reach an octet.
Key idea
Electrons around an atom = 2 per bonding pair + 2 per lone pair; most atoms reach 8, hydrogen 2.
Check yourself
Show answerHide answer
Eight electrons, from four bonding pairs. Carbon has no lone pairs.
How do you draw a Lewis diagram?
Use the same steps every time (Learn this):
- Count the valence electrons. Add one per negative charge; subtract one per positive charge.
- Choose the central atom, usually the one that forms the most bonds or is least electronegative. Hydrogen and fluorine are always outer atoms.
- Join each outer atom to the central atom with a single bond (2 electrons each).
- Complete the outer atoms' octets with lone pairs (hydrogen needs none).
- Put any remaining electrons on the central atom as lone pairs.
- If the central atom has fewer than eight, move an outer lone pair into a double bond, and repeat as needed.
Put an ion's diagram in square brackets with the charge outside. Then check that the bonding and lone-pair electrons add up to the step 1 count. When several diagrams pass, formal charge picks the best: see the note on resonance and formal charge.
Check yourself
Show answerHide answer
Eight: from the atoms, plus 1 for the negative charge.
Which atoms break the octet rule?
Fewer than eight. Boron has three valence electrons. In boron trifluoride, BF₃, boron forms three single bonds and has no lone pairs, so it has six electrons around it, and that is the accepted diagram.
More than eight (an expanded octet). Period 2 atoms (C, N, O, F) bond using only their 2s and 2p orbitals, which hold at most eight electrons, so they never exceed an octet. Atoms from period 3 onward, such as P, S, Cl and Xe, are larger and can bond to more atoms, so they can show 10 or 12 electrons.
| Molecule | Bonding pairs on central atom | Lone pairs on central atom | Electrons around central atom |
|---|---|---|---|
| PCl₅ | 5 | 0 | 10 |
| SF₆ | 6 | 0 | 12 |
| XeF₄ | 4 | 2 | 12 |
Examiner's eye
Marks are lost for giving C, N, O or F more than eight electrons. Only atoms from period 3 onward can expand their octets.
Check yourself
Show answerHide answer
No. Five bonds would put ten electrons around nitrogen, and a period 2 atom cannot hold more than eight.
Worked example 1: Formaldehyde, CH₂O
Question: Formaldehyde, CH₂O, has carbon as its central atom. (a) Calculate the total number of valence electrons. Determine (b) the number of bonding pairs and (c) the number of lone pairs in its Lewis diagram.
What tells you the method
A neutral molecule with a named central atom: count, connect, fill, then fix the central atom.
Step 1: Count.
C 4, H , O 6: .
WhyEvery valence electron must appear in the diagram.
Step 2: Connect and fill.
Bonds C–H, C–H and C–O use 6; oxygen takes three lone pairs (6), so all 12 are placed.
WhyOuter atoms get their octets first.
Step 3: Fix the central atom.
Carbon has only 6 electrons, so move one oxygen lone pair into a C=O double bond.
WhyA short central atom shares a neighbor's lone pair.
Atom Bonds Lone pairs Electrons around it C two single (to H), one double (to O) 0 8 O one double 2 8
Check it
Four bonding pairs and two lone pairs give electrons.
Answer
(a) valence electrons. (b) bonding pairs. (c) lone pairs.
Worked example 2: The cyanide ion, CN⁻
Question: Determine (a) the total number of valence electrons in the cyanide ion, CN⁻, and (b) the number of bonding pairs between C and N in its Lewis diagram.
What tells you the method
A charge on the formula: adjust the electron count first.
Step 1: Count.
C 4, N 5, plus 1 for the 1− charge: .
WhyA negative charge means one extra electron.
Step 2: Connect and fill.
A single C–N bond uses 2; nitrogen takes three lone pairs (6) and carbon one (2). Carbon has only 4 electrons.
WhyLeftover electrons go on the remaining atom.
Step 3: Form multiple bonds.
Move two nitrogen lone pairs into the bond, making a triple bond, so each atom has three shared pairs and one lone pair: 8 electrons.
WhyOne extra shared pair still leaves carbon at 6.
Check it
Three bonding pairs and two lone pairs give 10 electrons. Add brackets and the 1− charge.
Answer
(a) valence electrons. (b) bonding pairs: a triple bond.
Worked example 3: An expanded octet in a class activity
Question: In a class activity, students recorded the electrons around the central atom in three fluorides.
| Molecule | Electrons around central atom |
|---|---|
| BF₃ | 6 |
| NF₃ | 8 |
| SF₄ | not yet recorded |
(a) Calculate the total number of valence electrons in SF₄. (b) Determine the number of lone pairs on sulfur. (c) Identify the molecule in the table whose central atom has fewer than eight electrons.
What tells you the method
Sulfur is in period 3, so expect leftover electrons on the central atom.
Step 1: Count.
S 6, F : total 34.
WhyEvery valence electron must be placed.
Step 2: Connect and fill.
Four S–F bonds use 8, and the fluorines' lone pairs use 24: 32 placed.
WhyEach fluorine is an outer atom with three lone pairs.
Step 3: Place the leftovers.
electrons go on sulfur as one lone pair, so sulfur has 10 electrons.
WhySulfur is in period 3, so it can exceed eight.
Step 4: Read the table.
Only BF₃ is below eight.
WhyBoron shares its three valence electrons in three bonds and has no lone pairs.
Check it
Four bonding pairs and 13 lone pairs give electrons.
Answer
(a) valence electrons. (b) lone pair on sulfur. (c) BF₃.
Your turn
Question: Determine the total number of lone pairs in the Lewis diagram of nitrogen trifluoride, NF₃, with nitrogen as the central atom.
Step 1: Count.
N 5, F : total 26 valence electrons.
Step 2: Connect and fill.
Three N–F bonds use 6, and each F takes three lone pairs (18), placing 24.
Step 3: Your go: place the leftover electrons and count every lone pair.
Show the full solutionHide the solution
Step 3. electrons go on nitrogen as one lone pair, giving nitrogen 8 electrons. Lone pairs: 9 on the fluorines plus 1 on nitrogen.
Answer: NF₃ has lone pairs in total.
Traps
Trap
A double bond counts as one bonding pair.
It seems right because a double bond joins just one pair of atoms. But it holds two shared pairs (four electrons), and a triple bond three; count each pair when you total electrons or bonding pairs.
How many bonding pairs does carbon dioxide, O=C=O, contain?
Four: two in each C=O double bond.
Trap
The charge on an ion can be ignored when counting electrons.
It seems right because the charge sits outside the formula. But a 2− charge means two extra electrons and a 1+ charge one fewer.
How many valence electrons does the ammonium ion, NH₄⁺, have?
Eight: from the atoms, minus 1 for the 1+ charge.
What's examined
On the AP® Chemistry exam (Unit 2: Compound Structure and Properties), Lewis diagrams appear in multiple-choice and free-response questions, often as the first step before shape or polarity. Expect to draw a diagram, count lone pairs, or justify whether an atom can exceed an octet. Show every lone pair, including those on outer atoms.
Practice questions
- Recall How many valence electrons are in the sulfite ion, SO₃²⁻?
- A) 22
- B) 24
- C) 26
- D) 28
Show answer
Answer: C. .
Why the others are wrong:
- A subtracts the two charge electrons instead of adding them.
- B ignores the 2− charge.
- D counts the charge twice.
- Apply In the Lewis diagram of the ion ICl₄⁻, iodine is the central atom. Determine the number of lone pairs on the iodine atom.
Show answer
Answer: Iodine carries lone pairs.
Marking points:
- Total: valence electrons.
- Four I–Cl bonds use 8 and the chlorines' lone pairs use 24, leaving 4 on iodine: 2 lone pairs, 12 electrons in all.
- Apply In which molecule does the central atom have fewer than eight electrons around it?
- A) BF₃
- B) NF₃
- C) PF₃
- D) CF₄
Show answer
Answer: A. Boron forms three bonds and has no lone pairs, so it has 6 electrons.
Why the others are wrong:
- B: nitrogen has three bonding pairs and one lone pair, 8 electrons.
- C: phosphorus also has three bonding pairs and one lone pair, 8 electrons.
- D: carbon has four bonding pairs, 8 electrons.
- Exam-style In a class activity, a student recorded these counts from Lewis diagrams.
| Species | Bonding pairs on central atom | Lone pairs on central atom |
|---|---|---|
| H₂O | 2 | 2 |
| PCl₃ | 3 | 1 |
| XeF₄ | 4 | 2 |
| ClF₃ | 3 | 1 |
Which row contains an error?
- A) H₂O
- B) PCl₃
- C) XeF₄
- D) ClF₃
Show answer
Answer: D. ClF₃ has valence electrons; three bonds and the fluorines' lone pairs place 24, so 4 remain on chlorine as 2 lone pairs, not 1.
Why the others are wrong:
- A is correct: 8 electrons, two bonds and two lone pairs on oxygen.
- B is correct: 26 electrons leave one lone pair on phosphorus.
- C is correct: 36 electrons leave two lone pairs on xenon.
- Exam-style Hydrazine, N₂H₄, has an N–N bond, and each nitrogen is bonded to two hydrogens. Calculate (a) the total number of valence electrons and (b) the total number of lone pairs in its Lewis diagram.
Show answer
Answer: (a) valence electrons. (b) lone pairs.
Marking points:
- (a) .
- (b) Five single bonds use 10, leaving 4: one lone pair on each nitrogen, which gives each an octet.
- Exam-style A student draws a Lewis diagram for a hypothetical molecule NF₅, with five N–F single bonds. Which statement best explains why the diagram cannot be correct?
- A) Fluorine cannot form single bonds.
- B) Nitrogen is in period 2, so it cannot have more than eight electrons around it.
- C) Nitrogen has only three valence electrons.
- D) The molecule would have an odd number of valence electrons.
Show answer
Answer: B. Five bonds would put 10 electrons around nitrogen, and period 2 atoms hold at most eight.
Why the others are wrong:
- A is wrong because fluorine forms one single bond in almost all its compounds.
- C is wrong because nitrogen has five valence electrons.
- D is wrong because , an even number.
Key points
Recall, then reveal
Say the main points from memory first, then check them.
Show key pointsHide key points
- Count valence electrons first: add one per negative charge, subtract one per positive charge.
- Join outer atoms with single bonds, complete their octets, then put leftovers on the central atom.
- If the central atom is short of eight, turn outer lone pairs into double or triple bonds.
- Boron can have six electrons; atoms from period 3 onward can have 10 or 12; period 2 atoms never exceed eight.
- Check the diagram: bonding-pair and lone-pair electrons must add up to the total count.