How a Lewis structure is drawn
The generator follows the classroom method, so its drawings match what a teacher marks as correct:
- Add up the valence electrons of every atom, then adjust for the charge.
- Put the least electronegative non-hydrogen atom in the middle.
- Join each outer atom to it with a single bond.
- Give each outer atom lone pairs until it has 8 electrons (hydrogen stops at 2).
- Put any electrons left over on the central atom.
- If the central atom is still short of 8, turn outer lone pairs into double or triple bonds.
Octet form or lowest formal charge?
For ions such as sulfate, two drawings are in common use. The generator shows both and lets you switch:
The octet form keeps every atom at 8 electrons. The second form uses double bonds to bring the formal charges closer to zero, which needs sulfur to hold more than 8. Many general chemistry courses accept the first; courses that grade by formal charge expect the second. The formal charge calculator gives the charge on every atom for both.
Molecules that break the octet rule
| Molecule | Valence e⁻ | Exception | What the drawing shows |
|---|---|---|---|
| BF3 | 24 | too few electrons | boron keeps 6 |
| NO2 | 17 | odd electron count | one unpaired electron on N |
| SF6 | 48 | expanded octet | sulfur holds 12 |
| XeF4 | 36 | expanded octet with lone pairs | xenon holds 12 |
Resonance
When a double bond could sit on more than one outer atom, the generator draws one form and tells you how many equivalent forms exist. Nitrate has 3, carbonate has 3, ozone has 2. The real ion is a blend of all of them, which is why all three N–O bonds in nitrate have the same length.
Using the drawings
Download PNG saves a high-resolution image with a white background for worksheets and slides. Copy image puts it on the clipboard. Each molecule we cover in depth also has its own page, for example the CO2 Lewis structure.
Sources: OpenStax Chemistry 2e, §7.4 Formal Charges and Resonance; OpenStax Chemistry 2e, §7.6 Molecular Structure and Polarity.