Organic ChemistryAll courses

Chapter 1: Structure and Bonding, lesson 1

Lewis structures and formal charge

You drew Lewis structures in AP Chemistry. Organic chemists draw them all day, so this lesson is about getting fast, and about reading charges without doing arithmetic.

  • About 20 minutes
  • 7 sections
  • 8 practice questions
  • Narrated

After this lesson you can

  • Draw a Lewis structure for a small organic molecule or ion.
  • Find the formal charge on any atom in a structure.
  • Recognize the usual bonding patterns of carbon, nitrogen, oxygen and the halogens, with and without a charge.
  • Spot the octet-rule exceptions that show up in organic chemistry.

Warm-up check

Five quick questions on what you already know. Your score tells you how fast to read the first two sections.

  1. 1.How many valence electrons does a carbon atom have?

    See the answer

    Carbon is in group 14, so it has 4 valence electrons.

  2. 2.How many valence electrons are there in one molecule of hydrogen cyanide, HCN?

    See the answer

    Hydrogen brings 1, carbon brings 4 and nitrogen brings 5. The total is 10.

  3. 3.How many lone pairs are on the oxygen atom in a water molecule?

    See the answer

    Oxygen has 6 valence electrons. Two of them go into the two O–H bonds, and the other four make two lone pairs.

  4. 4.Which of these molecules has a double bond in its Lewis structure?

    Question 4: choose one
    See the answer

    Carbon dioxide has two carbon–oxygen double bonds. N2 has a triple bond, and water and ammonia have only single bonds.

  5. 5.In which of these molecules does the central atom have fewer than eight electrons?

    Question 5: choose one
    See the answer

    Boron has only 3 valence electrons. Its three bonds in BF3 give it 6 electrons, two short of an octet.

Why carbon gets its own course

Organic chemistry is the chemistry of carbon compounds. One element gets a whole course because of three things carbon does better than any other element.

  • A carbon atom has four valence electrons, so it makes four bonds.
  • Carbon bonds strongly to other carbon atoms, which lets it build chains and rings of almost any size.
  • Carbon also bonds strongly to hydrogen, oxygen, nitrogen and the halogens, so those chains can carry many different groups.

Put those together and you get millions of possible molecules from a handful of elements. To tell them apart you need a drawing that shows which atom is bonded to which, and where every valence electron is. That drawing is the Lewis structure.

Drawing a Lewis structure: the four moves

You have done this before, so here is the short version. Count the electrons, connect the atoms, hand out what is left, then share until every atom is satisfied. Step through formaldehyde, CH2O, to see all four moves.

Formaldehyde, CH2O

  1. COHH

    Step 1. Count the valence electrons. Carbon brings 4, oxygen brings 6, and each hydrogen brings 1. That makes 12 electrons, and the finished drawing has to show exactly 12.

  2. COHH

    Step 2. Connect the atoms with single bonds. Carbon goes in the middle because it makes the most bonds. Hydrogen always sits on the outside, because it can only make one. Three bonds use 6 electrons, so 6 are left.

  3. COHH

    Step 3. Hand out the leftover electrons as lone pairs, outer atoms first. Oxygen takes all 6 as three lone pairs and now has an octet. The highlighted carbon is short: three bonds give it only 6 electrons.

  4. COHH

    Step 4. Share until every atom is satisfied. Oxygen turns one of its lone pairs into a second bond to carbon. Now carbon has 8 electrons, oxygen has 8, and the total is still 12. This is formaldehyde: a carbon–oxygen double bond and two lone pairs on oxygen.

Key idea

A correct Lewis structure accounts for every valence electron, no more and no fewer. If your count is off by even one electron, stop and recount before doing anything else.

A Lewis structure is a map, not a model

A Lewis structure tells you what is connected to what and where the electrons are. It does not try to show the real shape. Here is the molecule you just drew, as a model you can turn.

Loading 3D model of formaldehyde…

Formaldehyde. Drag to rotate it, then switch to space filling to see how much room each atom really takes up.
Describe this model

Formaldehyde is flat. The carbon atom sits in the middle, with the oxygen atom and the two hydrogen atoms around it at the corners of a triangle. The oxygen is larger than the hydrogens, and its bond to carbon is shorter and thicker than a single bond would be.

Turn the model edge-on and it nearly disappears, because all four atoms lie in one plane. The Lewis structure could not have told you that. Lessons 2 and 4 explain where the shape comes from.

Formal charge: whose electrons are whose

Formal charge is a way of keeping score. Pretend each bond is shared exactly evenly, so each atom owns one electron from every bond it makes, plus all of its own lone-pair electrons. Then compare that with the number of valence electrons the atom has when it is neutral and alone.[IUPAC]

formal charge = valence electrons − nonbonding electrons − bonds

Count a double bond as two bonds and a triple bond as three. Nonbonding electrons are the dots: two for each lone pair.

N+HHHH
Ammonium, NH4+. Nitrogen has four bonds and no lone pairs.
Describe this figure

Lewis structure of the ammonium ion. Nitrogen has four hydrogens and a formal charge of plus 1.

Try it on the nitrogen in ammonium. Nitrogen has 5 valence electrons. In the drawing it has no nonbonding electrons and four bonds. So its formal charge is 5 − 0 − 4 = +1. Each hydrogen comes out as 1 − 0 − 1 = 0. The formal charges add up to +1, which is the charge on the whole ion. They always add up to the overall charge, and that makes a good final check.

Now you try. Find the formal charge on each labeled atom.

Try it: the hydronium ion, H3O+

OaHHH
Describe this figure

Lewis structure of the hydronium ion, H3O+, with formal charges left off. Oxygen a has three hydrogens and one lone pair.

Formal charge on oxygen a
Show the count

Valence electrons, minus nonbonding electrons, minus bonds:

  • Oxygen a: 6 − 2 − 3 = +1

Try it: nitromethane, CH3NO2

CHHHNaObOc
Describe this figure

Lewis structure of nitromethane, CH3NO2, with formal charges left off. Carbon has three hydrogens and a single bond to nitrogen. Nitrogen a has a single bond to carbon, a double bond to oxygen, and a single bond to oxygen. Oxygen b has a double bond to nitrogen and two lone pairs. Oxygen c has a single bond to nitrogen and three lone pairs.

Formal charge on nitrogen a
Formal charge on oxygen b
Formal charge on oxygen c
Show the count

Valence electrons, minus nonbonding electrons, minus bonds:

  • Nitrogen a: 5 − 0 − 4 = +1
  • Oxygen b: 6 − 4 − 2 = 0
  • Oxygen c: 6 − 6 − 1 = −1

Try it: the acetate ion, CH3CO2−

CHHHCaObOc
Describe this figure

Lewis structure of the acetate ion, CH3CO2−, with formal charges left off. Carbon has three hydrogens and a single bond to carbon. Carbon a has a single bond to carbon, a double bond to oxygen, and a single bond to oxygen. Oxygen b has a double bond to carbon and two lone pairs. Oxygen c has a single bond to carbon and three lone pairs.

Formal charge on carbon a
Formal charge on oxygen b
Formal charge on oxygen c
Show the count

Valence electrons, minus nonbonding electrons, minus bonds:

  • Carbon a: 4 − 0 − 4 = 0
  • Oxygen b: 6 − 4 − 2 = 0
  • Oxygen c: 6 − 6 − 1 = −1

Key idea

Formal charge is bookkeeping, not a measurement. It assumes every bond is shared evenly, which is rarely true. In ammonium the +1 is written on nitrogen, but nitrogen pulls electrons harder than hydrogen does, so much of the real positive charge sits out on the hydrogens.

Atoms have habits

Nobody who does organic chemistry for a living works out formal charges with the formula. They recognize patterns. Each common atom has one usual way of bonding when it is neutral, and a charge shows up as a specific change to that pattern.

CHHHH

Carbon, neutral

Four bonds, no lone pairs.

NHHH

Nitrogen, neutral

Three bonds, one lone pair.

OHH

Oxygen, neutral

Two bonds, two lone pairs.

C+HHH

Carbon, +1

Three bonds, no lone pairs. Only six electrons.

N+HHHH

Nitrogen, +1

Four bonds, no lone pairs.

O+HHH

Oxygen, +1

Three bonds, one lone pair.

C−HHH

Carbon, −1

Three bonds, one lone pair.

N−HH

Nitrogen, −1

Two bonds, two lone pairs.

O−H

Oxygen, −1

One bond, three lone pairs.

Read down a column for nitrogen or oxygen and the rule appears. One more bond than usual, with one fewer lone pair, means +1. One fewer bond than usual, with one more lone pair, means −1. Halogens follow the same rule: one bond and three lone pairs when neutral, no bonds and four lone pairs as a halide ion with a charge of −1.

Carbon has no lone pair to give up, so it is the odd one out. A carbon with three bonds is charged either way. With a lone pair it is −1. With nothing, it is +1 and has only six electrons.

Key idea

Learn the neutral patterns cold: carbon 4 bonds, nitrogen 3, oxygen 2, halogens and hydrogen 1. Then any atom that breaks its pattern jumps out at you, and you know it carries a charge before you count anything.

These patterns are also why organic chemists often leave lone pairs out of drawings. If you see a neutral oxygen with two bonds, you know its two lone pairs are there even when nobody drew them.

When the octet rule bends

Most atoms in organic molecules have exactly eight electrons around them. Three kinds of exception come up often enough that you should recognize them on sight.

C+HHH

Carbocation

Six electrons on carbon and a +1 charge. Very reactive.

CHHH

Radical

Seven electrons on carbon, one of them unpaired. No charge.

BFFF

Boron compound

Six electrons on boron. No charge, but hungry for a lone pair.

All three are short of electrons, and all three react by finding more. That idea will explain a large share of the reactions in this course.

Going over eight is a different story. Sulfur and phosphorus are in the third row, and you will often see them drawn with five or six bonds, as in sulfuric acid or a phosphate. Carbon, nitrogen, oxygen and fluorine are in the second row. They have only four valence orbitals, which hold eight electrons at most.

Key idea

A second-row atom never has more than eight electrons. A carbon with five bonds, or a nitrogen with four bonds and a lone pair, is always a mistake. When you start pushing electrons around in lesson 6, this is the error to check for first.

Worked example: acetonitrile

Acetonitrile, CH3CN, is a common laboratory solvent. Its formula tells you the connections: three hydrogens on the first carbon, then the second carbon, then nitrogen. Step through the drawing, or try it on paper first and use the steps to check yourself.

Acetonitrile, CH3CN

  1. CHHHCN

    Step 1. Count. Two carbons bring 8 electrons, three hydrogens bring 3, and nitrogen brings 5. The total is 16. The five single bonds in this skeleton use 10, so 6 are left over.

  2. CHHHCN

    Step 2. Hand out the 6 leftover electrons to the outer atom that can take them, nitrogen, as three lone pairs. Nitrogen has its octet. The highlighted carbon has only two bonds, so it has 4 electrons and needs 4 more.

  3. CHHHCN

    Step 3. Share. Nitrogen turns two of its lone pairs into two more bonds to carbon, which makes a triple bond. Now the second carbon has four bonds and 8 electrons. Nitrogen keeps one lone pair and also has 8.

  4. CHHHCN

    Step 4. Check with the patterns instead of the formula. Both carbons have four bonds. Nitrogen has three bonds and one lone pair. Every atom matches its neutral pattern, so there are no formal charges, and the 16 electrons are all accounted for.

Loading 3D model of acetonitrile…

Acetonitrile. The carbon, carbon and nitrogen atoms sit in a straight line.
Describe this model

Acetonitrile is shaped like a short rod with a tripod on one end. The two carbon atoms and the nitrogen atom lie in a straight line. The three hydrogens fan out from the first carbon like the legs of a tripod, pointing away from the rest of the molecule.

Key concepts

Count every electron

Add up the valence electrons of all the atoms. Subtract one for each positive charge and add one for each negative charge. The finished structure must show exactly that many.

Formal charge

valence − nonbonding − bonds

The formal charges in a structure add up to its overall charge.

Neutral patterns

Carbon makes 4 bonds. Nitrogen makes 3 and keeps 1 lone pair. Oxygen makes 2 and keeps 2. Halogens make 1 and keep 3. Hydrogen makes 1.

Charged patterns

One more bond and one fewer lone pair than usual means +1. One fewer bond and one more lone pair means −1.

Octet limits

Carbocations, radicals and boron compounds have fewer than eight electrons and react to get more. Carbon, nitrogen, oxygen and fluorine never have more than eight.

Practice

0 of 8 solved

Check each answer as you go. If you get stuck, open the hint first, then the text solution.

  1. Q1electron countOpen

    How many valence electrons must the Lewis structure of methanol, CH3OH, show?

    Hint

    Add the valence electrons of one carbon, four hydrogens and one oxygen.

    Text solution
    1. Carbon brings 4.
    2. Four hydrogens bring 4.
    3. Oxygen brings 6.
    4. The total is 4 + 4 + 6 = 14 electrons.
  2. Q2electron count, ionsOpen

    How many valence electrons must the Lewis structure of the ammonium ion, NH4+, show?

    Hint

    Count the electrons the neutral atoms bring, then adjust for the charge. A positive charge means an electron is missing.

    Text solution
    1. Nitrogen brings 5 and four hydrogens bring 4, which makes 9.
    2. The ion has a charge of +1, so take one electron away.
    3. The structure shows 8 electrons: four N–H bonds and nothing else.
  3. Q3formal chargeOpen

    Carbon monoxide has a triple bond between carbon and oxygen, and each atom has one lone pair. What is the formal charge on each atom?

    (a) Formal charge on carbon

    (b) Formal charge on oxygen

    Hint

    Use valence electrons, minus nonbonding electrons, minus bonds. A triple bond counts as three bonds, and one lone pair is two nonbonding electrons.

    Text solution
    1. Carbon: 4 − 2 − 3 = −1.
    2. Oxygen: 6 − 2 − 3 = +1.
    3. The two charges add up to zero, which matches a neutral molecule. Carbon monoxide is unusual: it puts the negative formal charge on the less electronegative atom.
  4. Q4formal chargeOpen

    Ammonia borane, H3N–BH3, has been studied as a way to store hydrogen. Its structure is shown without formal charges. What is the formal charge on each labeled atom?

    NaBbHHHHHH
    Describe this figure

    Lewis structure of ammonia borane, with formal charges left off. Nitrogen a has three hydrogens and a single bond to boron. Boron b has three hydrogens and a single bond to nitrogen.

    (a) Formal charge on nitrogen a

    (b) Formal charge on boron b

    Hint

    Each atom has four bonds and no lone pairs. Compare that with how many valence electrons nitrogen and boron start with.

    Text solution
    1. Nitrogen: 5 − 0 − 4 = +1.
    2. Boron: 3 − 0 − 4 = −1.
    3. The charges cancel, so the molecule is neutral overall. You could also use the patterns: nitrogen has one more bond than its usual three, so it is +1.
  5. Q5patternsOpen

    A carbon atom in a structure has three bonds and one lone pair. What is its formal charge?

    Question 5: choose one
    Hint

    Neutral carbon has four bonds. Here one bond has been swapped for a lone pair.

    Text solution

    4 − 2 − 3 = −1. One fewer bond and one more lone pair than the neutral pattern means a charge of −1. A carbon like this is called a carbanion.

  6. Q6patterns, lone pairsOpen

    Here is glycine, the simplest amino acid, drawn the way organic chemists usually draw: all the bonds, but no lone pairs. Every atom is neutral. How many lone pairs are missing from the drawing?

    NHHCHHCOOH
    Describe this figure

    Structure of glycine with the lone pairs left out. Nitrogen has two hydrogens and a single bond to carbon. Carbon has two hydrogens, a single bond to nitrogen, and a single bond to carbon. Carbon has a single bond to carbon, a double bond to oxygen, and a single bond to oxygen. Oxygen has a double bond to carbon. Oxygen has one hydrogen and a single bond to carbon.

    Hint

    Carbon and hydrogen never have lone pairs when neutral. Use the neutral patterns for the nitrogen and for each of the two oxygens.

    Text solution
    1. The nitrogen has three bonds, so it has 1 lone pair.
    2. The oxygen in the double bond has two bonds, so it has 2 lone pairs.
    3. The oxygen bonded to hydrogen has two bonds, so it has 2 lone pairs.
    4. That makes 1 + 2 + 2 = 5 lone pairs.
  7. Q7octetOpen

    A classmate shows you four drawings. Which one cannot be a correct Lewis structure, no matter what else is in the molecule?

    Question 7: choose one
    Hint

    Look for a second-row atom with more than eight electrons around it.

    Text solution
    1. Five bonds would put 10 electrons around carbon. Carbon is in the second row, so it can never hold more than 8.
    2. The nitrogen is the ammonium pattern, the oxygen is the hydronium pattern, and the boron simply has an incomplete octet. All three are fine.
  8. Q8formal charge, patternsOpen

    Diazomethane, CH2N2, is a reactive yellow gas. One way to draw it is shown, with formal charges left off. What is the formal charge on each labeled nitrogen?

    CHHNaNb
    Describe this figure

    Lewis structure of diazomethane, with formal charges left off. Carbon has two hydrogens and a double bond to nitrogen. Nitrogen a has a double bond to carbon and a double bond to nitrogen. Nitrogen b has a double bond to nitrogen and two lone pairs.

    (a) Formal charge on nitrogen a, in the middle

    (b) Formal charge on nitrogen b, at the end

    Hint

    Count bonds first. The middle nitrogen has two double bonds. The end nitrogen has one double bond and two lone pairs.

    Text solution
    1. Nitrogen a has four bonds and no lone pairs: 5 − 0 − 4 = +1. That is the ammonium pattern.
    2. Nitrogen b has two bonds and two lone pairs: 5 − 4 − 2 = −1. That is the amide pattern.
    3. The carbon has four bonds, so it is neutral. The charges add up to zero, as they must for a neutral molecule.

Sources

  • OpenStax Chemistry 7.3. Flowers, P.; Theopold, K.; Langley, R.; Robinson, W. R. Chemistry 2e, section 7.3, Lewis Symbols and Structures. OpenStax, 2019. https://openstax.org/books/chemistry-2e/pages/7-3-lewis-symbols-and-structures
  • OpenStax Chemistry 7.4. Flowers, P.; Theopold, K.; Langley, R.; Robinson, W. R. Chemistry 2e, section 7.4, Formal Charges and Resonance. OpenStax, 2019. https://openstax.org/books/chemistry-2e/pages/7-4-formal-charges-and-resonance
  • IUPAC. “Formal charge”, in IUPAC Compendium of Chemical Terminology (the Gold Book), 5th ed., online version 5.0.0, 2025. https://doi.org/10.1351/goldbook.08169

How did it go?

Sections read: 0%. Practice: 0 answered.

How was this lesson?