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.
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
A Lewis structure is an electron-accounting diagram. Every dot or line represents electrons that must be included in the total count.
Count electrons → choose the skeleton → add single bonds → complete terminal octets → fix the central atom → verify formal charges and geometry.
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⁻Put the least electronegative suitable atom in the center. Hydrogen is always terminal, and halogens are usually terminal.
O — C — OConnect 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 pairsCount 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 carbonConvert 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=ORun the final checks instead of trusting how the drawing looks. For CO₂, every atom has formal charge zero.
Formal charge = valence − nonbonding − ½(bonding electrons)Try NH₃ or H₂O using the same sequence. Generate the answer only after you finish your own electron count and skeleton.
Count every bond as two electrons and every dot as one. The total must match your original budget.
Second-period atoms normally need eight electrons. Remember hydrogen needs two, while BF₃, radicals, PCl₅ and SF₆ require exception rules.
Prefer reasonable charge placement, minimize unnecessary charge separation and verify that all formal charges add to the overall charge.
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 →H₂O has 8 valence electrons. Two O–H bonds use four electrons and two lone pairs remain on oxygen, producing bent geometry.
Open the illustrated H₂O guide →O₃, NO₃⁻ and SO₂ can require multiple contributors with unchanged atom connectivity.
BF₃ may have an incomplete octet; radicals have odd electrons; PCl₅ and SF₆ use expanded-valence classroom models.
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.