Illustrated Lewis structure generator with steps

How to Draw Lewis Structures Step by Step with Pictures

Learn the method with pictures instead of memorizing a finished answer. The CO₂ example below shows what changes at every step, why the change is needed and how to check the final structure.

Prepared by the LewisStructureGenerator.org editorial team · Reviewed July 16, 2026 · Methodology · Limitations

First, understand the drawing language

A Lewis structure is an electron-accounting diagram. Every dot or line represents electrons that must be included in the total count.

The rule that prevents most mistakes: keep a running electron total. Never add a dot or bond without knowing where those electrons came from.
• •
Lone pairTwo nonbonding electrons on one atom
Single bondOne shared pair, or two electrons
=
Double bondTwo shared pairs, or four electrons
[ ]⁻
Ion bracketsShow the charge of the complete structure

The six-step method in one sentence

Count electrons → choose the skeleton → add single bonds → complete terminal octets → fix the central atom → verify formal charges and geometry.

Electron totalCorrect connectivityTerminal octetsCentral atomFormal chargesResonance
Carbon contributes four valence electrons and two oxygen atoms contribute six each, for sixteen total electrons
Start with a fixed electron budget: CO₂ has 16 valence electrons.
1

Count all valence electrons

Use periodic-table group numbers for main-group elements. Add the contribution from every atom before drawing any bonds.

C: 4 + O: 6 + O: 6 = 16 e⁻
Why this matters: the final drawing must contain exactly 16 electrons—no more and no fewer.
For ions: add one electron for each negative charge and subtract one for each positive charge.
Oxygen carbon oxygen skeleton with carbon in the center
Carbon is less electronegative than oxygen and can form several bonds, so it belongs in the center.
2

Choose the atom arrangement

Put the least electronegative suitable atom in the center. Hydrogen is always terminal, and halogens are usually terminal.

O — C — O
Why carbon is central: it can bond to both oxygen atoms and normally forms four bonds.
Single bonded oxygen carbon oxygen structure with three lone pairs on each oxygen
Two single bonds use 4 electrons. Completing both oxygen octets uses the remaining 12.
3

Add single bonds and fill terminal octets

Connect the skeleton with single bonds first. Then give terminal atoms enough lone pairs to complete their octets.

16 total − 4 in bonds = 12 electrons for lone pairs
Work outside in: finish terminal atoms before placing leftover electrons on the central atom.
Carbon highlighted because the two single bonds give it only four surrounding electrons
The electron total is correct, but carbon still does not have an octet.
4

Inspect the central atom

Count the electrons surrounding carbon. Two single bonds provide only four electrons, so carbon is short of an octet.

2 bonds × 2 electrons = 4 electrons around carbon
Common mistake: stopping because all available electrons were used. Electron count alone is not enough; check octets too.
Final oxygen carbon oxygen structure with two carbon oxygen double bonds and two lone pairs on each oxygen
One lone pair from each oxygen becomes a second shared pair, creating O=C=O.
5

Form multiple bonds when needed

Convert one lone pair from each oxygen into a bonding pair. This does not change the total number of electrons—it only changes where they are located.

O–C–O → O=C=O
Result: carbon now has eight surrounding electrons, and each oxygen still has an octet.
Carbon dioxide Lewis structure showing zero formal charge on each atom and a linear 180 degree geometry
The final structure satisfies the electron total, octets, formal charges and VSEPR geometry.
6

Verify formal charges and geometry

Run the final checks instead of trusting how the drawing looks. For CO₂, every atom has formal charge zero.

Formal charge = valence − nonbonding − ½(bonding electrons)
16 electrons ✓All octets ✓Formal charges 0 ✓Linear, 180° ✓
Final answer: CO₂ is O=C=O with two lone pairs on each oxygen and a linear molecular geometry.

Now draw one without copying

Try NH₃ or H₂O using the same sequence. Generate the answer only after you finish your own electron count and skeleton.

Three checks that catch most wrong answers

1. Electron total

Count every bond as two electrons and every dot as one. The total must match your original budget.

2. Octets and exceptions

Second-period atoms normally need eight electrons. Remember hydrogen needs two, while BF₃, radicals, PCl₅ and SF₆ require exception rules.

3. Formal charges

Prefer reasonable charge placement, minimize unnecessary charge separation and verify that all formal charges add to the overall charge.

Example: NH₃

NH₃ has 8 valence electrons. Three N–H bonds use six electrons and the last pair stays on nitrogen, producing trigonal pyramidal geometry.

Open the illustrated NH₃ guide →

When this six-step method needs extra care

Resonance

O₃, NO₃⁻ and SO₂ can require multiple contributors with unchanged atom connectivity.

Octet exceptions

BF₃ may have an incomplete octet; radicals have odd electrons; PCl₅ and SF₆ use expanded-valence classroom models.

Formula ambiguity

Organic formulas can represent multiple isomers, so a formula alone may not determine connectivity.

Last reviewed: July 16, 2026. Educational reference only; verify graded work with course materials.