Skip to content
vseprchart

Lewis Structure Generator

Type a molecule or ion to draw its Lewis dot structure, with lone pairs, formal charges and resonance. Download it as a PNG or copy it into your notes.

Try:

How a Lewis structure is drawn

The generator follows the classroom method, so its drawings match what a teacher marks as correct:

  1. Add up the valence electrons of every atom, then adjust for the charge.
  2. Put the least electronegative non-hydrogen atom in the middle.
  3. Join each outer atom to it with a single bond.
  4. Give each outer atom lone pairs until it has 8 electrons (hydrogen stops at 2).
  5. Put any electrons left over on the central atom.
  6. 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:

S+2O−O−O−O−2−
SO42−, octet formS +2, each O −1
SO−O−OO2−
SO42−, lowest formal chargeS 0, two O −1; 6 resonance forms

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

MoleculeValence e⁻ExceptionWhat the drawing shows
BF324too few electronsboron keeps 6
NO217odd electron countone unpaired electron on N
SF648expanded octetsulfur holds 12
XeF436expanded octet with lone pairsxenon 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.

N+O−O−O−
NO3−3 resonance forms
O+O−O
O32 resonance forms

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.

Lewis structure generator questions

How do you draw a Lewis structure?

Count valence electrons, put the least electronegative atom in the middle, connect the outer atoms with single bonds, complete their octets, place leftover electrons on the centre, and form multiple bonds if the centre is short of 8.

Can the generator draw ions?

Yes. Type the charge after the formula, such as NH4+ or CO3 2-. The charge changes the electron count before anything is drawn.

Does it show resonance structures?

It draws one resonance form and states how many equivalent forms there are, for example 3 for nitrate and 2 for ozone.

Can it draw organic molecules like ethanol?

Not yet. It draws molecules and ions with one central atom, plus diatomics. Molecules with several central atoms, such as ethanol or C2H4, need a different method and are refused rather than drawn wrong.