How to draw Lewis structures
A Lewis structure is a drawing of a molecule that shows all of its valence electrons.
CO₂: O=C=O. 16 valence electrons, and every atom has eight.Why it works. Atoms bond so that each ends up with a full outer shell, usually eight electrons, or two for hydrogen. A Lewis structure is the bookkeeping: every valence electron is either in a bond, drawn as a line, or in a lone pair, drawn as two dots.
Your turn
How many lone pairs are on the nitrogen atom in hydrogen cyanide, HCN?
Or just show the answer
1
Valence electrons: . H-C≡N uses 8 of them in bonds (one single, one triple), and the last 2 sit on N as one lone pair.
Watch out for
Giving hydrogen eight electrons.
Hydrogen's shell holds only 2: one bond and no lone pairs.
Forgetting an ion's charge when you count.
has valence electrons, one fewer than its atoms bring.
Stopping while the central atom has fewer than eight.
Turn lone pairs into double bonds until every atom has an octet: O=C=O.

Stuck on your own homework?
Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.
“Can you check the Lewis structures I drew for my homework?”
Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.
Read the whole guide as text
A Lewis structure is a drawing of a molecule that shows all of its valence electrons. Each line is a shared pair of electrons (a bond), and each pair of dots is a lone pair. To draw one, count the valence electrons, connect the atoms with single bonds, fill the outer atoms' octets, put leftover electrons on the central atom, and make double or triple bonds if the central atom still lacks an octet.
Worked example
Draw the Lewis structure of carbon dioxide, .
- Count valence electrons: C has 4 and each O has 6.
- Join the atoms with single bonds, carbon in the middle: O-C-O uses 4.
- Give each O three lone pairs. That uses the last 12, but carbon has only 4 electrons around it.
- Turn one lone pair on each O into a second bond. Now every atom has 8.
Answer: O=C=O: two double bonds, two lone pairs on each O, none on C
Sources
- OpenStax Chemistry 2e, 7.3 Lewis Symbols and Structures, accessed 2026-10-01
- OpenStax Chemistry 2e, 7.4 Formal Charges and Resonance, accessed 2026-10-01