Foundations

Atomic Structure, Lewis Structures & Formal Charge

The electron-bookkeeping skills behind every mechanism: valence electrons, the octet rule, Lewis structures, formal charge shortcuts, bond-line drawings, and degrees of unsaturation.

Last updated: November 9, 2026

Advertisement

Quick Answer

To draw a Lewis structure, count total valence electrons, connect atoms with single bonds, add lone pairs to complete octets, then convert lone pairs into double or triple bonds where needed. Formal charge equals valence electrons minus nonbonding electrons minus bonds, and all formal charges must sum to the overall charge.

What are valence electrons and the octet rule?

Valence electrons are the outermost electrons of an atom, and they are the only ones involved in bonding. For main-group elements, the group number tells you the count: carbon has 4, nitrogen 5, oxygen 6, and the halogens 7.

The octet rule says second-row atoms (C, N, O, F) are most stable with eight electrons around them. That single idea predicts how many bonds each atom normally forms.

AtomValence e⁻Usual bondsUsual lone pairs
H110
C440
N531
O622
F, Cl, Br, I713
B330 (incomplete octet)

What are the exceptions to the octet rule?

Exam trap: carbon, nitrogen, oxygen, and fluorine can never exceed eight electrons. If your structure shows five bonds to carbon, it is wrong.

How do you draw a Lewis structure step by step?

  1. Count valence electrons for every atom. Add one per negative charge; subtract one per positive charge.
  2. Build the skeleton. Put the least electronegative atom (never H) in the center and connect atoms with single bonds.
  3. Place lone pairs on outer atoms first until each has an octet.
  4. Check the central atom. If it has fewer than eight electrons, convert lone pairs from neighbors into double or triple bonds.
  5. Assign formal charges and confirm they sum to the total charge.

Worked example: formaldehyde, CH₂O

Electrons: 4 (C) + 2 × 1 (H) + 6 (O) = 12.

Skeleton: C in the center bonded to two H and one O uses 3 bonds = 6 electrons. The remaining 6 go to oxygen as three lone pairs.

Check: oxygen has an octet, but carbon has only 6 electrons. Move one oxygen lone pair into a C=O π bond. Now carbon has 8, oxygen still has 8 (two lone pairs plus a double bond), and every formal charge is zero.

    H
     \
      C = O:    (O carries two lone pairs)
     /
    H

Try it: hydrogen cyanide, HCN

Electrons: 1 + 4 + 5 = 10. Skeleton H–C–N uses 4; the other 6 go to N, leaving carbon with only 4. Convert two nitrogen lone pairs into two more C–N bonds and you get H–C≡N with one lone pair on N. Carbon has 8 electrons and every formal charge is zero.

How do you calculate formal charge?

Formal charge = (valence electrons) − (nonbonding electrons) − (number of bonds)

Formal charge is bookkeeping: it tells you which atom would hold a charge if every bond were shared perfectly equally. It is the quickest way to find the charged atom in a mechanism.

SpeciesAtomValence − nonbonding − bondsFormal charge
NH₄⁺N5 − 0 − 4+1
H₃O⁺O6 − 2 − 3+1
OH⁻O6 − 6 − 1−1
NH₂⁻N5 − 4 − 2−1
CH₃⁺C4 − 0 − 3+1
CH₃⁻C4 − 2 − 3−1
BH₄⁻B3 − 0 − 4−1

What are the formal charge shortcuts?

Memorize these patterns and you will rarely need the formula. Each atom has a "normal" bond count; one more bond than normal means +1, and one fewer means −1 (when the lone pairs make up the difference).

Atom patternFormal charge
N with 4 bonds+1
N with 2 bonds and 2 lone pairs−1
O with 3 bonds and 1 lone pair+1
O with 1 bond and 3 lone pairs−1
C with 3 bonds and no lone pair+1 (carbocation)
C with 3 bonds and 1 lone pair−1 (carbanion)

Worked example: nitromethane, CH₃NO₂

  • Nitrogen: 4 bonds (one to C, a double bond to O, one to the other O) → 5 − 0 − 4 = +1
  • Single-bonded oxygen: 6 − 6 − 1 = −1
  • Double-bonded oxygen: 6 − 4 − 2 = 0

The charges sum to 0, matching the neutral molecule. Nitro groups always look "charged" on paper even though the compound is neutral.

Formal charge is not real charge. Real charge distribution depends on electronegativity and is covered in Hybridization, Geometry & Polarity. Formal charges also drive resonance, covered in the Resonance guide.

How do you read and draw bond-line structures?

Bond-line (skeletal) structures are the shorthand of organic chemistry. Every line is a bond, every corner or line end is a carbon, and hydrogens on carbon are left out.

Carbon type in drawingBonds shownImplied H
Chain end (CH₃)13
Chain vertex (CH₂)22
Branch point (CH)31
Quaternary carbon (C)40
Alkene carbon with one substituent beyond the double bond3 (counting the double bond as 2)1

Worked example: count atoms in a skeletal drawing

Cyclohexanone is a six-membered ring with a C=O. The ring has six carbons: five CH₂ (10 H) and one C=O carbon (0 H). The formula is C₆H₁₀O. To find the formula from any drawing, count carbons first, then add up the implied H on each one.

What are degrees of unsaturation?

Degrees of unsaturation (DoU), also called the index of hydrogen deficiency, count the rings plus π bonds in a molecule. It is the fastest way to turn a molecular formula into structural clues.

DoU = (2C + 2 + N − H − X) / 2

C is carbons, N is nitrogens, H is hydrogens, and X is halogens. Oxygen and sulfur are ignored.

FeatureDoU
Ring1
Double bond (C=C or C=O)1
Triple bond2
Benzene ring4 (one ring + three π bonds)

Worked examples

  • C₆H₁₂O: (14 − 12)/2 = 1. One ring or one double bond, such as cyclohexanol or hexanal.
  • C₆H₆: (14 − 6)/2 = 4. Consistent with benzene.
  • C₃H₉N: (6 + 2 + 1 − 9)/2 = 0. A saturated amine with no rings or π bonds.

DoU appears again when you identify alkenes and interpret IR and NMR spectra. See the Alkenes Structure & Naming guide.

Foundations recap: what to remember

  • C forms 4 bonds, N 3, O 2, halogens 1, and none of C, N, O, F may exceed an octet.
  • Lewis structures: count electrons, build the skeleton, fill octets, then make multiple bonds if the central atom is short.
  • Formal charge = valence − nonbonding − bonds. Charges must sum to the overall charge.
  • N with 4 bonds is +1, O with 3 bonds is +1, O with 1 bond is −1, and C with 3 bonds is +1 (no lone pair) or −1 (lone pair).
  • In bond-line structures, carbon sits at every vertex and end, and each carbon gets hydrogens to reach four bonds.
  • DoU = (2C + 2 + N − H − X)/2 counts rings plus π bonds.

Common Questions

How do you draw a Lewis structure?
Count the total valence electrons, connect the atoms with single bonds (least electronegative atom in the center, never hydrogen), place lone pairs on outer atoms to complete octets, and convert lone pairs into double or triple bonds if the central atom is short of an octet. Finish by checking formal charges.
What is the formula for formal charge?
Formal charge = valence electrons minus nonbonding electrons minus the number of bonds. For example, nitrogen in NH4+ has 5 valence electrons, 0 nonbonding electrons, and 4 bonds, so its formal charge is +1.
Why can't carbon have five bonds?
Carbon only has 2s and 2p orbitals available (four orbitals, eight electrons). It has no low-energy d orbitals, so it cannot hold more than an octet. Any structure showing five bonds to carbon is incorrect.
How do you count hydrogens in a bond-line structure?
Each carbon needs four bonds in total. Count the bonds drawn to that carbon (a double bond counts as two) and subtract from four. The difference is the number of implied hydrogens.
What do degrees of unsaturation tell you?
Degrees of unsaturation equal the number of rings plus pi bonds. A double bond or ring counts as one, a triple bond counts as two, and a benzene ring counts as four. Calculate it from the molecular formula to narrow down possible structures.

References & Further Reading

McMurry, J. Organic Chemistry (Cengage), Chapter 1: Structure and Bonding.
Clayden, J., Greeves, N., Warren, S. Organic Chemistry, 2nd ed. (Oxford University Press), chapters on bonding and structure.
Wade, L. G. Organic Chemistry (Pearson), introduction and structure and bonding.
Klein, D. Organic Chemistry (Wiley), Lewis structures and formal charge.
Chemistry LibreTexts — Lewis structures and formal charge.

Download: Atomic Structure, Lewis Structures & Formal Charge (PDF) The full lesson with every worked example — free to download and print
Download PDF

Advertisement

Struggling to draw structures fast on exams?

Book a 1-on-1 session with Hassan — Immunology PhD student at Northwestern, BS Biochemistry from UF, O-Chem & Mol. Bio. TA. Visual, mechanism-first teaching that actually sticks.

Book a Session →

Advertisement