Skip to content

How to draw Lewis structures

A Lewis structure shows how the valence electrons in a molecule are arranged: shared pairs as bonds, drawn as lines, and unshared pairs as dots. To draw one, count the total valence electrons, connect the atoms with single bonds, give the outer atoms full octets, place any leftovers on the central atom, and form double or triple bonds if the central atom still lacks eight electrons.

Valence electrons and the octet rule

Valence electrons are the electrons in an atom's outermost shell, the ones that take part in bonding. For main-group elements, you can read the number from the periodic table: it matches the last digit of the group number in the 1 to 18 numbering.

Atoms tend to bond so that each one ends up with eight electrons around it, counting both shared and unshared pairs, the same as a noble gas. This is the octet rule. Hydrogen is the main exception: it needs only two electrons, a duet, so it always forms exactly one bond and never sits in the middle of a structure.

The step method

Follow these steps in order for any small molecule or ion:

Worked example: water, H₂O

Water is the simplest case with lone pairs on the central atom. Hydrogen cannot be central, so oxygen goes in the middle.

ProblemDraw the Lewis structure of H2O.

  1. 2×1+6=8 electrons

    Two hydrogens with 1 valence electron each, and one oxygen with 6.

  2. H-O-H:8−4=4 left

    Two single bonds use 2 electrons each. Each hydrogen now has its duet.

  3. O:2 lone pairs

    The 4 leftover electrons go on oxygen as two lone pairs. Oxygen has 2 bonds plus 2 lone pairs, 8 electrons in all.

Answer2 bonds, 2 lone pairs

Worked example: ammonia, NH₃

Nitrogen has 5 valence electrons and needs 3 more for an octet, so it typically forms three bonds and keeps one lone pair.

ProblemDraw the Lewis structure of NH3.

  1. 5+3×1=8 electrons

    Nitrogen has 5 valence electrons and each of the three hydrogens has 1.

  2. 3 bonds=6,8−6=2 left

    Connect each hydrogen to the central nitrogen with a single bond.

  3. N:1 lone pair

    The last 2 electrons go on nitrogen as a lone pair, giving it 3 bonds plus 1 lone pair, an octet.

Answer3 bonds, 1 lone pair

Worked example: carbon dioxide, CO₂

Carbon dioxide shows why step 6 matters. After the first pass, carbon is short of an octet, so lone pairs have to become double bonds.

ProblemDraw the Lewis structure of CO2.

  1. 4+2×6=16 electrons

    Carbon has 4 valence electrons and each oxygen has 6.

  2. O-C-O:16−4=12 left

    Carbon goes in the centre because it can form the most bonds. Two single bonds use 4 electrons.

  3. each O:3 lone pairs=6,12−12=0

    Give each oxygen three lone pairs to complete its octet. That uses all 12 electrons, but carbon has only 4 electrons around it, its two bonds.

  4. O=C=O

    Move one lone pair from each oxygen into a bond with carbon. Now there are two double bonds, each oxygen keeps 2 lone pairs, and every atom has 8 electrons. Total drawn: 8 bonding plus 8 lone, 16.

AnswerO=C=O

Formal charge: choosing the best structure

Sometimes more than one structure satisfies the octet rule. Formal charge helps you choose. For each atom, formal charge equals its valence electrons, minus the electrons in its lone pairs, minus the number of bonds it forms (each bond counts once, as half of its two shared electrons).

The best structure has formal charges as close to zero as possible, and any negative formal charge on the more electronegative atom. The formal charges in a molecule add up to zero, and in an ion they add up to the ion's charge.

For CO₂ drawn as O=C=O, each oxygen has 6 − 4 − 2 = 0 and carbon has 4 − 0 − 4 = 0. An alternative with one triple and one single bond also gives every atom an octet, but the triple-bonded oxygen has 6 − 2 − 3 = +1 and the single-bonded oxygen has 6 − 6 − 1 = −1. All zeros beats +1 and −1, so O=C=O is the better structure.

Ions and exceptions to the octet rule

For a polyatomic ion, adjust the electron count for the charge and draw the finished structure in square brackets with the charge outside. The ammonium ion, NH₄⁺, has 5 + 4 − 1 = 8 electrons: four N-H bonds and no lone pairs. The carbonate ion, CO₃²⁻, has 4 + 3 × 6 + 2 = 24 electrons, and its structure has one C=O double bond and two C-O single bonds. The double bond could sit on any of the three oxygens, so carbonate has three equivalent resonance structures; the real ion is a blend of all three, with every C-O bond the same length.

Some molecules break the octet rule:

Common mistakes

Check your structure against this list:

How to practise and check your work

Work through a sequence that adds one new idea at a time: CH₄ (four single bonds), H₂O and NH₃ (lone pairs), CO₂ (double bonds), N₂ (a triple bond, 10 electrons), then ions such as NH₄⁺ and OH⁻.

After each one, run three checks. Count the electrons drawn and compare with your step 1 total. Count the electrons around every atom: 8, or 2 for hydrogen. Work out the formal charges and make sure they add up to the overall charge. If all three pass, your structure is almost certainly right.

Questions

How do you find the number of valence electrons?

For main-group elements, use the group number: groups 1 and 2 have 1 and 2, and groups 13 to 18 have 3 to 8. Add the values for every atom in the molecule, then adjust for any charge.

How do you know which atom goes in the centre?

Choose the atom that can form the most bonds and is least electronegative, often the one that appears only once in the formula. Hydrogen is never central.

When do you use double or triple bonds in a Lewis structure?

When you have placed every electron and the central atom still has fewer than eight. Move lone pairs from outer atoms into bonds until it reaches an octet.

What is formal charge?

A bookkeeping charge for each atom: valence electrons minus lone-pair electrons minus bonds. The best Lewis structure keeps formal charges as close to zero as possible.

What is the Lewis structure of CO2?

O=C=O, with two double bonds and two lone pairs on each oxygen. It uses all 16 valence electrons, and every atom has a formal charge of zero.