Professor Turing

Study guides

How to draw Lewis structures

Last updated: 2026-11-26

To draw a Lewis structure, count the valence electrons, join the atoms with single bonds, place the remaining electrons as lone pairs, and then check each atom. A Lewis structure is a diagram that shows the bonds between atoms and the unshared valence electrons. The check at the end is where a missing double bond shows up.

Start learning No account needed

1. The steps

  1. Count valence electrons. Add them up for the atoms in a neutral molecule. For a negative ion add one electron per negative charge, and for a positive ion subtract one per positive charge.
  2. Choose a skeleton. In a formula such as CH2O, the central atom is usually the least electronegative of the atoms that appear once, leaving hydrogen out. Hydrogen forms one bond, so it sits on the outside. Larger formulas need you to know which atoms are connected.
  3. Draw single bonds. Each bond uses 2 electrons. Subtract those from your count.
  4. Place the rest as lone pairs, on the outer atoms first. Hydrogen is full with 2.
  5. Check octets. Count lone pair electrons plus both electrons of each bond around an atom. If a central atom is short, move a lone pair from a neighbor into a second bond.
  6. Check formal charges and the total. Formal charge is the atom's valence electrons, minus its unshared electrons, minus its number of bonds. The formal charges add up to the charge of the molecule or ion, which is zero for a neutral molecule.

2. A worked example: formaldehyde, CH2O

The molecule has 1 carbon, 2 hydrogens and 1 oxygen. Carbon brings 4 valence electrons, each hydrogen 1 and oxygen 6, for a total of 4 + 2 + 6 = 12. Carbon is less electronegative than oxygen (2.55 and 3.44 in PubChem's periodic table), so carbon goes in the middle with the other three atoms around it.

Three single bonds use 6 electrons and leave 6. The hydrogens are already full, so the 6 go on oxygen as three lone pairs.

StructureAround CAround OAround each HFormal charge on C, O
Draft: C–O single bond, 3 lone pairs on O682+1, −1
Final: C=O double bond, 2 lone pairs on O8820, 0

The draft uses 12 electrons, so the total is right, but carbon has 6 around it and is 2 short. Move one lone pair from oxygen into a second C=O bond. Oxygen keeps 8, because a shared pair still counts for it, and carbon now has 8. The final structure still uses 12 electrons, and the formal charges are 0.

3. A common mistake: stopping when the electrons run out

When the last electron is placed, the drawing can look finished. Go around the atoms one at a time, including the central one. If it is short, do not add new electrons, since that changes the count from step 1. Move a pair that is already there.

The octet rule is a rule of thumb for main-group atoms, and it has exceptions. Boron in compounds such as BF3 has fewer than eight electrons, molecules with an odd electron count leave one unpaired, and textbooks often draw more than eight around atoms such as phosphorus or sulfur. If your course covers these, check which convention it uses.

4. The script check

A short script, scripts/how-to-draw-lewis-structures-worked-example.py, counts the atoms and electrons, checks each atom in both drawings and checks the practice structures without printing them:

CH2O atoms: {'C': 1, 'O': 1, 'H': 2}
CH2O valence electrons: C 4 + H 2 x 1 + O 6 = 12
three single bonds use 6, left to place 6
draft: electrons drawn 12
  C0: around 6 of 8 (short by 2), formal charge 1
  O1: around 8 of 8 (ok), formal charge -1
  H2: around 2 of 2 (ok), formal charge 0
  H3: around 2 of 2 (ok), formal charge 0
final: electrons drawn 12
  C0: around 8 of 8 (ok), formal charge 0
  O1: around 8 of 8 (ok), formal charge 0
  H2: around 2 of 2 (ok), formal charge 0
  H3: around 2 of 2 (ok), formal charge 0
practice totals:
  CO2: 16
  NH4+: 8
  OH-: 8

5. Test yourself

Close this page and draw CO2, NH4+ and OH−. Their totals should come to 16, 8 and 8 electrons. Check those first, then check each atom. For an ion, put brackets around the structure and write the charge outside them.

When more than one arrangement of double bonds works, see what is a resonance structure. For the general method, see how to test yourself.

What the sources found, and their limits

Wikipedia, Lewis structure. It gives the electron count for molecules and ions, the order of placing bonds and dots, the conversion of lone pairs into bonding pairs, formal charge, and exceptions to the octet. Source: Lewis structure, read in part on 2026-11-25.

Wikibooks, Lewis Dot Structures. It states the central atom rule for formulas with a single atom of an element, excluding hydrogen, and says other cases need known or tested connections. It also describes lone pair placement, double bonds and incomplete octets such as boron's. Source: Inorganic Chemistry, Lewis Dot Structures, read in part on 2026-11-25.

Stephen Lower, Chem1 Virtual Textbook. It explains electron counts for ions, the formal charge calculation, expanded octets and odd-electron molecules. Sources: Lewis dot structures and the octet rule and formal charge, read in part on 2026-11-25.

Wikipedia, Octet rule. It describes the rule as a rule of thumb for main-group elements and discusses cases drawn with more than eight electrons. Source: Octet rule, read in part on 2026-11-25.

PubChem, National Institutes of Health. The source of the two electronegativity values. Source: Periodic table, data read on 2026-11-25. Limits: this page does not cover molecular shape. The grouping into numbered steps is ours.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.

Bring a molecule or ion you are trying to draw. Its first reply asks what you already know before it teaches anything. If you answer with a bare guess, it asks how you got there instead of saying right or wrong, and when you stay stuck it changes its approach and makes the next step smaller, so you work it out yourself. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Which atom goes in the center? In a formula such as CH2O, usually the least electronegative of the atoms that appear once, leaving hydrogen out. Hydrogen forms one bond, so it goes on the outside.

What if there are too few electrons for the octets? Move a lone pair from a neighboring atom into another bond. The total stays the same. Some molecules are exceptions to the octet rule.

Start with what you're working on

Tell the tutor which molecule you are drawing and let it ask you the questions.

Start learning No account needed

See also: all study guides