Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 39 · Ionic and Covalent Bonding

Covalent Bonds and Lewis Structures

Learn how atoms share electrons in covalent bonds, how to draw Lewis structures with single, double and triple bonds, and how to name simple molecules.

Nonmetal atoms rarely lose electrons completely, because the energy cost is too high. Instead they share electrons. A shared pair of electrons held between two nuclei is a covalent bond. Water, oxygen, carbon dioxide, sugar and DNA are all built from covalent bonds.

This lesson covers the sharing idea and shows a reliable method for drawing Lewis structures, diagrams that show every valence electron as dots or lines.

Sharing electrons

A hydrogen atom has one electron and needs two to fill its first shell. Two hydrogen atoms can each contribute one electron to a shared pair, so both effectively have two: that is the molecule H₂.

In a Lewis structure a bonding pair is drawn as a line, and a non-bonding pair (a lone pair) as two dots. For hydrogen: H–H.

For atoms in period 2 and beyond, the usual target is eight valence electrons around each atom (the octet rule), with hydrogen as the exception at two. The rule has exceptions: boron compounds often have fewer than eight, and period 3 atoms like sulfur and phosphorus sometimes have more.

Bond order: single, double, triple

  • A single bond shares one pair (2 electrons): H–H, C–H.
  • A double bond shares two pairs (4 electrons): O=C=O.
  • A triple bond shares three pairs (6 electrons): N≡N.

More shared pairs mean a shorter, stronger bond. The carbon-carbon bond lengths are roughly 154 pm (single), 134 pm (double) and 120 pm (triple).

Drawing Lewis structures: a method

  1. Count the total valence electrons. Add one per unit of negative charge, subtract one per unit of positive charge.
  2. Draw the skeleton: the least electronegative atom (not hydrogen) goes in the center, and other atoms bond to it with single bonds.
  3. Give each outer atom an octet using lone pairs (hydrogen only needs 2).
  4. Put any remaining electrons on the central atom.
  5. If the central atom lacks an octet, convert lone pairs from outer atoms into double or triple bonds.

Worked example: water, H₂O

Valence electrons: O has 6, each H has 1, total 6 + 1 + 1 = 8. Skeleton: H–O–H uses 4 electrons. The 4 left over go on oxygen as two lone pairs. Oxygen now has 2 bonds (4 electrons) plus 4 in lone pairs, so 8. Hydrogen has 2. Done.

Worked example: carbon dioxide, CO₂

Valence electrons: C has 4, each O has 6, total 16. Skeleton O–C–O uses 4. Complete the oxygens' octets with 6 electrons each: that uses 12 more, totaling 16, but carbon has only 4 electrons (two single bonds). Move one lone pair from each oxygen into a bond: O=C=O. Every atom now has an octet.

Worked example: nitrogen, N₂

Valence electrons: 10. Single bond N–N leaves each N with 6, so share more: N≡N, with one lone pair on each nitrogen. Each N has 6 shared + 2 lone = 8. The triple bond makes N₂ very stable, which is why nitrogen gas is so unreactive.

flowchart LR
    A["Count valence electrons"] --> B["Draw skeleton<br/>single bonds"]
    B --> C["Complete outer octets"]
    C --> D["Put leftovers on center"]
    D --> E{"Center has an octet?"}
    E -->|"No"| F["Make double or triple bonds"]
    E -->|"Yes"| G["Done"]
    F --> G

The Lewis-structure routine.

Naming simple covalent compounds

For two nonmetals, use prefixes for the number of atoms: mono (1), di (2), tri (3), tetra (4), penta (5), hexa (6). Drop "mono" for the first element. The second element ends in -ide.

Formula Name
CO carbon monoxide
CO₂ carbon dioxide
N₂O₄ dinitrogen tetroxide
PCl₅ phosphorus pentachloride

Many common compounds, such as water (H₂O) and ammonia (NH₃), keep their traditional names.

Python Count valence electrons for a molecule

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Python Bonds versus lone pairs

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. How many valence electrons must be drawn in the Lewis structure of CO₂?

    Carbon contributes 4 and each of two oxygens contributes 6, a total of 16.
  2. 2. Which bond is shortest and strongest?

    More shared pairs pull the nuclei closer and make the bond harder to break.
  3. 3. How many lone pairs does the oxygen atom in water have?

    Oxygen has 6 valence electrons, uses 2 in bonds to hydrogen, and holds the other 4 as two lone pairs.
  4. 4. What is the name of N₂O₄?

    Prefixes show the number of atoms: di for two nitrogens and tetra for four oxygens.

Summary

  • A covalent bond is a shared pair of electrons between nonmetal atoms.
  • Single, double and triple bonds share 1, 2 or 3 pairs; more pairs mean shorter, stronger bonds.
  • Lewis structures: count electrons, draw the skeleton, complete octets, adjust with multiple bonds.
  • Covalent compounds use numerical prefixes in their names.

Next: Comparing Bonding Types: Ionic, Covalent and Metallic