Dove's LibraryDove's Library

2.5 - Lewis Diagrams

Overview

A Lewis diagram (also called a Lewis structure or Lewis electron-dot diagram) shows every valence electron in a molecule or polyatomic ion: which atoms are bonded, how many electron pairs each bond shares, and where the lone pairs sit. Almost everything else in Unit 2 starts here: resonance and formal charge (Topic 2.6), shapes, polarity, and hybridization (Topic 2.7), and later the intermolecular forces in Unit 3. Lewis diagrams are built from a fixed set of rules, and this page walks through them one step at a time. When a free-response question asks for a "complete" Lewis diagram, it means every lone pair, including the ones on outer atoms, plus brackets and the charge for an ion.

Valence electrons and Lewis symbols

Only valence electrons appear in a Lewis diagram. These are the electrons in the outermost shell, the ones atoms share or transfer when they bond. Core electrons are held tightly by the nucleus and don't take part, so they're left out. For main-group elements, read the count from the periodic table:
  • Groups 1 and 2: 1 and 2 valence electrons.
  • Groups 13 to 18: the group number minus 10. Nitrogen (group 15) has 5, chlorine (group 17) has 7. Helium is the exception, with 2.
A Lewis symbol (or electron-dot symbol) is the element's symbol with one dot for each valence electron, spread around four sides. Put one dot on each side before you start pairing them up.
2.5 - Lewis Diagrams
The unpaired dots hint at how many bonds an atom usually forms: carbon has four unpaired electrons and usually forms four bonds, nitrogen forms three, oxygen two, and fluorine one.

Bonding pairs, lone pairs, and the octet rule

  • Bonding pair: two electrons shared between two atoms, drawn as a line. One line always means 2 electrons.
  • Lone pair (nonbonding pair): two electrons that belong to one atom only, drawn as two dots.
  • Single, double, and triple bonds share one, two, and three pairs (2, 4, and 6 electrons).
The octet rule says main-group atoms tend to bond until they're surrounded by eight valence electrons. That fills the ss and pp subshells of the valence shell (ns2np6ns^2np^6), the same arrangement a noble gas has. Hydrogen only needs two electrons (a duet), since its 1s1s orbital holds two.
To count the electrons around an atom, count both electrons of every bond that touches it, plus its own lone-pair electrons. Shared electrons count for both atoms.
These bonding patterns for neutral atoms come up constantly, and they're a fast way to check a diagram:
Atom
Valence electrons
Usual bonds
Lone pairs
Electrons around it
H
1
1
0
2
C
4
4
0
8
N
5
3
1
8
O
6
2
2
8
F, Cl, Br, I
7
1
3
8
If you draw nitrogen with four bonds and no lone pair, either the species is an ion (like NH4+\mathrm{NH_4^+} below) or something is off. Topic 2.6 explains why with formal charge.

How to draw a Lewis diagram

  1. Count the valence electrons. Add them up for every atom. For a negative ion, add one electron for each negative charge. For a positive ion, subtract one for each positive charge.
  1. Pick the central atom and draw the skeleton. Connect each outer atom to the central atom with a single bond. The central atom is usually the least electronegative atom (not counting H), and often the one there's only one of. H and F are always on the outside, because they form only one bond.
  1. Subtract the electrons in the skeleton. Each single bond uses 2 electrons.
  1. Complete the octets of the outer atoms with lone pairs. H gets none, since its bond already gives it 2.
  1. Put any leftover electrons on the central atom as lone pairs.
  1. Check the central atom. If it has fewer than 8 electrons, turn a lone pair on an outer atom into a shared pair, making a double bond. Repeat (a double can become a triple) until the central atom has 8. The lone pairs that move are usually on C, N, O, or S. Outer halogens almost never form double bonds.
  1. Check your work. The electrons you drew must equal the count from step 1, and every atom should have an octet (2 for H) unless it's one of the exceptions below. An ion goes in square brackets with its charge at the upper right.
When a formula is written to show connections, like CH3OH\mathrm{CH_3OH} or HCN\mathrm{HCN}, the atoms are usually bonded in the order written.

Example 1: Nitrogen trifluoride

Draw the Lewis diagram for NF3\mathrm{NF_3}.
Step 1: Count valence electrons. N is in group 15 and F is in group 17.
5+3(7)=26 valence electrons5 + 3(7) = 26 \text{ valence electrons}
Step 2: N is less electronegative than F, and F is always on the outside, so N goes in the center with a single bond to each F.
Step 3: Three single bonds use 6 electrons.
26−3(2)=20 electrons left26 - 3(2) = 20 \text{ electrons left}
Step 4: Each F needs three lone pairs (6 electrons) to reach 8.
20−3(6)=2 electrons left20 - 3(6) = 2 \text{ electrons left}
Step 5: The last 2 electrons go on N as a lone pair.
Step 6: N now has 3 bonds (6 electrons) plus 1 lone pair (2 electrons), so it has 8. No multiple bonds are needed.
2.5 - Lewis Diagrams
Answer: N in the center with single bonds to three F atoms, one lone pair on N, and three lone pairs on each F. Check: 3 bonding pairs + 10 lone pairs = 13 pairs = 26 electrons.

Example 2: Formaldehyde (a double bond)

Draw the Lewis diagram for formaldehyde, CH2O\mathrm{CH_2O}.
Step 1: 4+2(1)+6=124 + 2(1) + 6 = 12 valence electrons.
Step 2: H can't be central, and C is less electronegative than O, so C goes in the middle, bonded to two H atoms and the O.
Steps 3 to 5: Three single bonds use 6 electrons, leaving 6. Those go on O as three lone pairs, leaving nothing for C.
Step 6: C has only 3 bonds, which is 6 electrons. Move one lone pair from O into the C-O bond to make a C=O double bond (red below).
2.5 - Lewis Diagrams
Answer: a C=O double bond, two C-H single bonds, and two lone pairs on O. C has 2+2+4=82 + 2 + 4 = 8 electrons and O has 4+4=84 + 4 = 8. Check: 4 bonding pairs + 2 lone pairs = 6 pairs = 12 electrons.

Example 3: Hydrogen cyanide (a triple bond)

Draw the Lewis diagram for HCN\mathrm{HCN}.
Step 1: 1+4+5=101 + 4 + 5 = 10 valence electrons.
Steps 2 to 5: The skeleton is H-C-N (H on the outside, C in the middle, in the order written). Two single bonds use 4 electrons, leaving 6, which go on N as three lone pairs.
Step 6: C has only 2 bonds (4 electrons) and needs 4 more, so two lone pairs from N move into the C-N bond, making a triple bond.
2.5 - Lewis Diagrams
Answer: H-C≡N with one lone pair on N. C has 2+6=82 + 6 = 8 electrons and N has 6+2=86 + 2 = 8. Check: 4 bonding pairs + 1 lone pair = 5 pairs = 10 electrons.

Lewis diagrams for polyatomic ions

Ions follow the same steps. The only differences: the charge changes the electron count in step 1, and the finished diagram goes in square brackets with the charge outside.

Example 4: The ammonium ion

Draw the Lewis diagram for NH4+\mathrm{NH_4^+}.
Step 1: The +1+1 charge means one electron is missing.
5+4(1)−1=8 valence electrons5 + 4(1) - 1 = 8 \text{ valence electrons}
Steps 2 to 6: N goes in the center with four single bonds to H. That uses all 8 electrons, so there's no lone pair left for N. N has 8 electrons and each H has 2.
2.5 - Lewis Diagrams
Answer: four N-H bonds, no lone pairs, in brackets with a ++ charge. Check: 4 bonding pairs = 8 electrons. Nitrogen breaks its usual pattern here (four bonds, no lone pair), which is the sign of the positive charge. Topic 2.6 shows that this N has a formal charge of +1+1.

When the octet rule doesn't hold

Fewer than eight electrons

Boron and beryllium are stable with fewer than eight electrons. In BF3\mathrm{BF_3} there are 3+3(7)=243 + 3(7) = 24 valence electrons. The three B-F bonds and the octets on the three F atoms use all 24, which leaves B with only 6. Don't fix it with a B=F double bond: fluorine almost never shares a second pair, and Topic 2.6 shows formal charge agrees. Beryllium can end up with only 4.
2.5 - Lewis Diagrams
Check: 3 bonding pairs + 9 lone pairs = 12 pairs = 24 electrons.

More than eight electrons

Central atoms from period 3 and below (P, S, Cl, Br, I, Xe) can hold more than eight electrons. These bigger atoms have room for more electron pairs around them. Period 2 atoms (C, N, O, F) never go past eight. Examples: P has 10 electrons around it in PCl5\mathrm{PCl_5}, and S has 12 in SF6\mathrm{SF_6}.
In practice: if electrons are left over after step 4, put them on the central atom as lone pairs, even if that takes it past eight. That's only allowed when the central atom is in period 3 or below.

Odd numbers of electrons

If the total is odd, as in NO\mathrm{NO} (11 electrons) or NO2\mathrm{NO_2} (17), one electron has to stay unpaired, so at least one atom ends up with fewer than eight. Topic 2.6 treats these as a limitation of the Lewis model.

Example 5: Sulfur tetrafluoride (AP-style)

Draw the complete Lewis diagram for SF4\mathrm{SF_4}. How many electrons surround the sulfur atom?
Step 1: S is in group 16 and F is in group 17.
6+4(7)=34 valence electrons6 + 4(7) = 34 \text{ valence electrons}
Steps 2 and 3: S goes in the center with four single bonds, which use 8 electrons: 34−8=2634 - 8 = 26 left.
Step 4: Each F gets three lone pairs: 26−4(6)=226 - 4(6) = 2 left.
Step 5: The last 2 electrons go on S as a lone pair, even though S now has more than eight. That's allowed because S is in period 3.
2.5 - Lewis Diagrams
Answer: S has four bonds and one lone pair, so 10 electrons surround it. Check: 4 bonding pairs + 13 lone pairs = 17 pairs = 34 electrons. A common wrong answer leaves off the lone pair on S (only 32 electrons drawn). That mistake carries forward: in Topic 2.7 it gives a tetrahedral shape instead of the correct seesaw.

Common mistakes

  • Forgetting the charge in the electron count: NH4+\mathrm{NH_4^+} has 8 valence electrons, not 9, and OH−\mathrm{OH^-} has 8, not 7.
  • Leaving off the lone pairs on outer atoms, especially halogens.
  • Putting H in the middle, or giving it two bonds.
  • Giving C, N, O, or F more than eight electrons.
  • Counting a bond line as one electron instead of two.
  • Making a double bond when leftover electrons should have gone on a period 3 central atom.
  • Forgetting the brackets and charge on an ion.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.