Lewis Structures

How do you draw Lewis structures?

IntermediateBonding & Molecular StructureLast reviewed 3 October 2026

What is it?

A Lewis structure (or electron-dot structure) shows how the valence electrons are arranged in a molecule or ion:

  • a line (or a pair of dots) between two atoms is a shared pair, i.e. a covalent bond;
  • pairs of dots on a single atom are lone pairs (non-bonding pairs).

Water, for example, is drawn as H–O–H with two lone pairs on oxygen.

Key idea

Most atoms in a stable Lewis structure have a full outer shell: 8 electrons (an octet) for second-period atoms such as C, N, O and F, but only 2 for hydrogen. Count every bond electron and lone-pair electron around the atom.

Why does it matter?

  • It shows bonding at a glance: which atoms are joined, by single, double or triple bonds.
  • It is the first step in predicting shape. VSEPR theory uses the bonds and lone pairs around the central atom to predict the 3D shape.
  • It helps explain reactivity: lone pairs and partial charges show where a molecule is likely to react.

How does it work?

The step-by-step method

  1. Count the valence electrons of all atoms. Add one for each negative charge; subtract one for each positive charge.
  2. Draw the skeleton. The least electronegative atom (never H) usually goes in the centre. Join atoms with single bonds (2 electrons each).
  3. Complete the octets of the outer atoms with lone pairs (hydrogen needs only its one bond).
  4. Put any remaining electrons on the central atom as lone pairs.
  5. If the central atom has fewer than 8 electrons, turn lone pairs on outer atoms into shared pairs to make double or triple bonds.
Group12131415161718
Valence electrons12345678

Formal charge

When more than one structure seems possible, formal charge helps choose the best one:

FC=V−L−12B\text{FC} = V - L - \tfrac{1}{2}B

where VV = valence electrons of the free atom, LL = electrons in its lone pairs, and BB = electrons in its bonds.

The best structure has formal charges as close to zero as possible, with any negative formal charge on the more electronegative atom. The formal charges always add up to the overall charge of the species.

Resonance

Sometimes two or more equally good structures differ only in where the double bond is placed. Ozone, OX3\ce{O3}, can be drawn as O=O–O or O–O=O. Neither picture is correct on its own: the real molecule is a resonance hybrid, an average of the two, and both O–O bonds are identical, between a single and a double bond in length.

Think of it like this

Building a Lewis structure is like sharing a fixed number of coins (electrons) among people (atoms) so that everyone ends up with eight. If there aren’t enough coins for everyone to have their own, neighbours share more pairs between them: that’s a double or triple bond.

More precisely

The octet rule has exceptions:

  • Incomplete octets: boron and beryllium compounds such as BFX3\ce{BF3} (boron has only 6 electrons).
  • Odd-electron molecules: NO\ce{NO} has 11 valence electrons, so one atom must have an unpaired electron.
  • Expanded octets: elements in period 3 and below can have more than 8 electrons around them, e.g. phosphorus in PClX5\ce{PCl5} (10) and sulfur in SFX6\ce{SF6} (12).

Visualise it

Lewis structures of four molecules. Water: H–O–H with two lone pairs on oxygen. Carbon dioxide: O=C=O with two lone pairs on each oxygen. Ammonia: nitrogen bonded to three hydrogens with one lone pair on nitrogen. Nitrogen: N≡N with one lone pair on each nitrogen.
Lines are shared pairs; pairs of dots are lone pairs.

Worked example

Worked example: Carbon dioxide, CO₂

  1. Valence electrons: C 4 + O 2 × 6 = 16
  2. Skeleton O–C–O uses 4 electrons; 12 remain.
  3. Give each O three lone pairs (12 electrons). None remain.
  4. Carbon has only 4 electrons around it. Move one lone pair from each O into a bond.
  5. Result: O=C=O, two lone pairs on each O. Every atom has an octet; all formal charges are 0.

Worked example: Hydrogen cyanide, HCN

  1. Valence electrons: H 1 + C 4 + N 5 = 10
  2. Skeleton H–C–N uses 4; 6 remain. Put 3 lone pairs on N.
  3. Carbon has only 4 electrons. Move two lone pairs from N into bonds: a triple bond.
  4. Result: H–C≡N: with one lone pair on N. Formal charges: H 0, C 4 − 0 − 4 = 0, N 5 − 2 − 3 = 0.

Common mistake

Common mistake: Forgetting the ion's charge

For NHX4X+\ce{NH4+} the count is 5 + 4 × 1 − 1 = 8, not 9. For COX3X2−\ce{CO3^2-} it is 4 + 3 × 6 + 2 = 24.

Common mistake: Putting hydrogen in the centre

Hydrogen forms only one bond, so it is always a terminal (outer) atom.

Common mistake: Drawing resonance as a back-and-forth flip

Resonance structures are not switching between forms. The real molecule is always the single averaged hybrid.

Notation note

  • Brackets and a charge, e.g. [ … ]⁻, are drawn around Lewis structures of ions.
  • Resonance structures are linked by a double-headed arrow, ↔.
  • Lone pairs are sometimes left off simplified structures. In a full Lewis structure, always include them.

Remember this

Remember this

  • Count valence electrons (adjust for charge), build a skeleton, complete outer octets, then the centre.
  • Not enough electrons for octets? Make double or triple bonds.
  • Formal charge = valence − lone-pair electrons − ½ bonding electrons; aim for zeros.
  • Exceptions: B and Be (fewer than 8), odd-electron molecules, period 3+ elements (more than 8).

Test yourself

Check your understanding before moving on.

Flashcards

Lewis Structures: Flashcards

10 cards

  1. Question
    In a Lewis structure, what does a line between two atoms represent?
    Answer

    A shared pair of electrons (a single covalent bond).

  2. Question
    What is a lone pair?
    Answer

    A pair of valence electrons on one atom that is not shared in a bond.

  3. Question
    What is the octet rule?
    Answer

    Atoms tend to bond until they have 8 electrons in their outer shell (hydrogen: 2).

  4. Question
    How many valence electrons are in COX3X2−\ce{CO3^2-}?
    Answer

    4 + 3 × 6 + 2 = 24

  5. Question
    How many valence electrons are in NHX4X+\ce{NH4+}?
    Answer

    5 + 4 × 1 − 1 = 8

  6. Question
    Which atom usually goes in the centre of a Lewis structure?
    Answer

    The least electronegative atom, never hydrogen.

  7. Question
    What is the formula for formal charge?
    Answer

    Valence electrons − lone-pair electrons − ½ × bonding electrons

  8. Question
    What is resonance?
    Answer

    When two or more valid Lewis structures differ only in electron placement; the real species is an average (hybrid) of them.

  9. Question
    Draw the Lewis structure of NX2\ce{N2} in words.
    Answer

    N≡N, a triple bond, with one lone pair on each nitrogen (10 valence electrons).

  10. Question
    Give an example of a molecule with an incomplete octet.
    Answer

    BFX3\ce{BF3}: boron has only 6 electrons around it.

Quiz

Lewis Structures: Quiz

7 questions

  1. Question 1EasyHow many valence electrons are used in the Lewis structure of HX2O\ce{H2O}?
    Show answer

    Answer: 8

    2 × 1 (H) + 6 (O) = 8: two bonding pairs and two lone pairs.

  2. Question 2EasyHow many lone pairs are on the nitrogen atom in ammonia, NHX3\ce{NH3}?
    Show answer

    Answer: 1

    8 valence electrons: three N–H bonds use 6, leaving one lone pair on N.

  3. Question 3MediumWhich bond is found in the Lewis structure of COX2\ce{CO2}?
    Show answer

    Answer: Two C=O double bonds

    With 16 electrons, O=C=O gives every atom an octet and all formal charges are zero.

  4. Question 4MediumHow many valence electrons are in the nitrate ion, NOX3X−\ce{NO3-}?
    Show answer

    Answer: 24

    5 (N) + 3 × 6 (O) + 1 for the negative charge = 24.

  5. Question 5MediumIn O=C=O, what is the formal charge on carbon?
    Show answer

    Answer: 0

    Carbon: 4 valence − 0 lone-pair electrons − ½ × 8 bonding electrons = 0.

  6. Question 6HardWhy are both O–O bonds in ozone, OX3\ce{O3}, the same length?
    Show answer

    Answer: The molecule is a resonance hybrid of two structures

    The real molecule is an average of O=O–O and O–O=O, so each bond is between a single and a double bond.

  7. Question 7MediumWhich molecule has a central atom with fewer than 8 electrons?
    Show answer

    Answer: BFX3\ce{BF3}

    Boron forms three single bonds and has no lone pairs: only 6 electrons around it.

Notes and downloads

  • Worksheet

    Lewis Structures Worksheet

    9 questions on counting valence electrons, drawing Lewis structures, formal charge and resonance. Answer key included.

    IntermediateFree

References

  1. Brown, T. L.; LeMay, H. E., Jr.; Bursten, B. E.; Murphy, C. J.; Woodward, P. M.; Stoltzfus, M. W. Chemistry: The Central Science, 15th ed.; Pearson, 2022.

Spotted a mistake? Let us know and we'll fix it.