Where Exploration Meets Excellence
Jupiter Academy · Lesson

Writing Lewis Structures: A Systematic Method

writing Lewis structures systematic method
writing Lewis structures systematic methodAI-generated representative image

Lewis structures remain the most widely used pencil-and-paper tool in chemistry, and for good reason: they translate an abstract electron configuration into a compact picture of shared and unshared pairs that predicts bonding, charge distribution, and reactivity. Building on the octet rule and covalent sharing established in the previous lesson, this fourth instalment of the Chemical Bonding and Molecular Structure course converts that conceptual foundation into a disciplined, repeatable procedure. The goal is not merely to draw plausible dots but to construct the single most defensible structure for any molecule or polyatomic ion, including awkward cases such as odd-electron species and charged ions.

A vertical flowchart of five numbered steps: count valence electrons with charge adjustment, choose the skeleton with the least electronegative atom central, distribute electron pairs as bonds and lone pairs, complete octets using multiple bonds, and verify with formal charge; a feedback arrow retur
The five-step algorithm this page teaches for turning a molecular formula into a valid Lewis structure.Digital illustration created with Zartom Composer · Rahul Anand

A systematic method matters because intuition alone fails quickly. Carbon monoxide, the nitrite ion, and the sulfate ion each punish careless counting, and students who improvise often produce structures that violate the octet rule, misplace formal charges, or exceed the capacity of second-period elements. The five-step algorithm presented here removes guesswork: count valence electrons, choose a skeleton, distribute pairs, complete octets, and verify with formal charge. Each step carries its own logic and its own common errors, and mastering the sequence gives learners a reliable route to correct structures under examination conditions and in later work on VSEPR, hybridisation, and molecular orbital theory.

Beyond the mechanics, this lesson develops chemical judgement. Formal charge is introduced as a tie-breaker between competing skeletons, and the octet-expansion rule for period 3 elements is treated with the precision it deserves. Worked examples for carbon monoxide, nitrite, carbon dioxide, and sulfate illustrate the algorithm under pressure, while a closing discussion clarifies what Lewis structures do not tell us, namely molecular shape. The material prepares directly for the next lesson, where formal charge becomes the central criterion for selecting the best among several valid resonance forms.

The Five-Step Algorithm for Writing Lewis Structures

The Five-Step Algorithm for Writing Lewis Structures
The Five-Step Algorithm for Writing Lewis StructuresAI-generated representative image

The Lewis dot structure, as the reference material notes, provides a picture of bonding in molecules and ions in terms of shared pairs of electrons and the octet rule. While such a picture may not explain the bonding and behaviour of a molecule completely, it helps enormously in understanding formation and properties, which is why writing these structures is so useful. The algorithm below generalises the textbook steps into a form that handles neutral molecules, cations, anions, and odd-electron species with equal confidence, and it should be rehearsed until it becomes automatic.

Counting valence electrons and adjusting for charge

The first step is to sum the valence electrons of all combining atoms. For methane, CH₄, carbon contributes four and the four hydrogen atoms contribute four more, giving eight valence electrons available for bonding. For anions, each negative charge means the addition of one electron; for cations, each positive charge means subtraction of one electron from the total. The carbonate ion, CO₃²⁻, therefore has ##4 + 3(6) + 2 = 24## electrons, while the ammonium ion, NH₄⁺, has ##5 + 4(1) - 1 = 8##. Getting this count right is non-negotiable, because every later step depends on it.

Stacked bars showing carbon 4 plus hydrogen 4 for methane totalling 8, and nitrogen 5 plus oxygen 12 plus 1 for the negative charge totalling 18 for nitrite.
Stacked atomic contributions plus the charge adjustment give the total valence electron count for methane and the nitrite ion.Digital illustration created with Zartom Composer · Rahul Anand

A useful discipline is to write the count explicitly before drawing anything, showing the atomic contributions and the charge adjustment on separate lines. Learners who skip this step frequently lose or invent an electron pair, and the resulting structure then fails the octet check in a way that is hard to diagnose. The count also fixes the total number of electron pairs, since each pair consumes two electrons; for CO₃²⁻ that is twelve pairs, a number that must be accounted for exactly, whether as bonding pairs or lone pairs, when the structure is finished.

Choosing the skeleton and distributing electron pairs

Knowing the chemical symbols and the skeletal structure of the compound, whether known or intelligently guessed, it is easy to distribute the total number of electrons as bonding shared pairs between atoms in proportion to the total bonds. In general the least electronegative atom occupies the central position in the molecule or ion. In NF₃ and CO₃²⁻, nitrogen and carbon are the central atoms, whereas fluorine and oxygen occupy terminal positions. Hydrogen can never be central because it forms only one bond, and oxygen is almost always terminal except in unusual species such as water.

After drawing single bonds between the central atom and each terminal atom, the remaining electron pairs are used either for multiple bonding or as lone pairs, with the basic requirement that each bonded atom attains an octet. A practical order is to complete the octets of the terminal atoms first, since they are usually more electronegative and hold lone pairs readily, then place any surplus on the central atom. If the central atom remains electron-deficient, lone pairs from a terminal atom are converted into a second or third bond until the octet is satisfied.

Step 1 Reference

Valence Electron Bookkeeping for Common Species

Total valence electrons after charge adjustment, with the resulting number of electron pairs.

Species Total Valence Electrons
CH₄ 8 (4 + 4)
CO₂ 16 (4 + 12)
NO₂⁻ 18 (5 + 12 + 1)
NH₄⁺ 8 (5 + 4 − 1)
SO₄²⁻ 32 (6 + 24 + 2)
NO 11 (5 + 6)
Note:
  • Negative charges add electrons; positive charges remove them.
  • An odd total, as in NO, signals an odd-electron species with one unpaired electron.

Worked Example: Carbon Monoxide and the Triple Bond

Worked Example: Carbon Monoxide and the Triple Bond
Worked Example: Carbon Monoxide and the Triple BondAI-generated representative image

Carbon monoxide is the cleanest test of the algorithm because it is small, neutral, and yet impossible to draw correctly with single bonds alone. The outer valence shell configurations of carbon and oxygen are 2s²2p² and 2s²2p⁴ respectively, so the valence electrons available are ##4 + 6 = 10##. The skeletal structure is written simply as C–O, and the first attempt draws a single shared pair between carbon and oxygen, completes the octet on oxygen with three lone pairs, and leaves the remaining two electrons as a lone pair on carbon. This does not complete the octet on carbon, so multiple bonding must be invoked.

A carbon atom bonded by a single line to an oxygen atom, with the valence electron count 4 + 6 = 10 written above and the number of electron pairs to place marked with a question mark.
Situation of the problem: the C–O skeleton of carbon monoxide with its ten valence electrons to distribute.Digital illustration created with Zartom Composer · Rahul Anand

From single to triple bond

Converting lone pairs into shared pairs, a triple bond between carbon and oxygen satisfies the octet rule for both atoms, giving the structure :C≡O: with one lone pair on each atom. The molecule is isoelectronic with N₂, which also carries a triple bond and one lone pair on each nitrogen, and this parallel is a useful memory anchor. The carbon–oxygen bond in CO is consequently very short and very strong, with a bond dissociation energy near 1072 kJ mol⁻¹, which explains why carbon monoxide is such a stable and persistent ligand in organometallic chemistry.

Students often ask why the triple bond is preferred over a structure with a double bond and a radical. The answer lies in the octet check: a double bond leaves carbon with only six electrons, whereas the triple bond gives both atoms eight. Formal charge, examined in the next section, confirms the same conclusion, since the triple-bonded structure assigns a formal negative charge to carbon and a formal positive charge to oxygen, a polarity that matches oxygen's greater electronegativity and is therefore chemically sensible.

Two Lewis structures of carbon monoxide side by side: one with a C=O double bond showing carbon with only six electrons, and one with a C≡O triple bond showing both atoms with eight electrons and one lone pair each.
A double bond leaves carbon with six electrons, while the triple bond gives both carbon and oxygen a full octet.Digital illustration created with Zartom Composer · Rahul Anand

Applying the same logic to the nitrite ion

The nitrite ion, NO₂⁻, extends the method to a charged, odd-electron-count species. Nitrogen has the configuration 2s²2p³ and oxygen 2s²2p⁴, so the total is ##5 + 2(6) + 1 = 18## electrons, the extra electron coming from the single negative charge. The skeleton is written O–N–O. Drawing a single bond from nitrogen to each oxygen and completing the octets on both oxygen atoms consumes four bonding electrons and twelve lone-pair electrons, leaving two electrons as a lone pair on nitrogen, which still has only six electrons around it.

A central nitrogen atom singly bonded to two oxygen atoms, labelled with the total valence electron count 5 + 2(6) + 1 = 18 and the overall charge 1−.
Situation of the problem: the O–N–O skeleton of the nitrite ion with its eighteen valence electrons.Digital illustration created with Zartom Composer · Rahul Anand

Multiple bonding between nitrogen and one of the oxygen atoms, in this case a double bond, resolves the deficiency and yields two equivalent resonance structures in which the double bond alternates between the two oxygens. Each structure places a formal positive charge on nitrogen and a formal negative charge on the singly bonded oxygen, and the true ion is a resonance hybrid of the two. The lesson to carry forward is that the algorithm does not always produce a unique structure; when two or more skeletons satisfy the octet rule, formal charge decides between them.

Formal Charge as a Decision Tool

Formal Charge as a Decision Tool
Formal Charge as a Decision ToolAI-generated representative image

Lewis dot structures, in general, do not represent the actual shapes of molecules, and in the case of polyatomic ions the net charge is possessed by the ion as a whole rather than by any particular atom. It is nevertheless feasible, and highly useful, to assign a formal charge to each atom. The formal charge of an atom in a polyatomic molecule or ion is defined as the difference between the number of valence electrons of that atom in its isolated or free state and the number of electrons assigned to that atom in the Lewis structure. It is expressed as follows:

###\text{Formal Charge (F.C.)} = \left(\text{valence electrons in free atom}\right) - \left(\text{non-bonding lone pair electrons}\right) - \tfrac{1}{2}\left(\text{bonding shared electrons}\right)###

The half-share convention reflects the assumption that bonding electrons are shared equally between the two bonded atoms, regardless of electronegativity difference. Formal charge is therefore a bookkeeping device rather than a measure of real charge separation, and it should not be confused with partial charge or oxidation state. Its power lies in comparison: among several valid Lewis structures, the one in which formal charges are smallest in magnitude, and in which any negative formal charge resides on the more electronegative atom, is generally the most important contributor to the true structure.

Choosing between competing skeletons in carbon dioxide

Carbon dioxide offers a transparent demonstration. The molecule has ##4 + 2(6) = 16## valence electrons. A hypothetical structure with two single C–O bonds would place three lone pairs on each oxygen and two lone pairs on carbon, giving carbon a formal charge of ##4 - 4 - \tfrac{1}{2}(4) = -2## and each oxygen ##6 - 6 - \tfrac{1}{2}(2) = -1##. The sum, −4, does not even match the neutral molecule, and the charges are large and placed on the wrong atoms, so this skeleton is discarded immediately.

Two Lewis structures of carbon dioxide: one with two C–O single bonds and formal charges of +2 on carbon and −1 on each oxygen, and one with two C=O double bonds and zero formal charge on all atoms.
The single-bonded skeleton of CO₂ forces large formal charges on carbon and oxygen, while the double-bonded structure gives zero formal charge everywhere.Digital illustration created with Zartom Composer · Rahul Anand

The accepted structure, O=C=O, uses two double bonds and two lone pairs on each oxygen. Each oxygen then carries ##6 - 4 - \tfrac{1}{2}(4) = 0## and carbon carries ##4 - 0 - \tfrac{1}{2}(8) = 0##, so every formal charge is zero. This is the best possible outcome, and it explains why carbon dioxide is a linear, non-polar molecule with two equivalent short bonds rather than a bent species with single bonds. The comparison also illustrates a general principle: skeletons that force large formal charges are almost always wrong.

Comparison

Formal Charges in Competing CO₂ Skeletons

Two candidate structures for carbon dioxide, evaluated atom by atom.

Structure Formal Charges (C, O, O)
O–C–O (single bonds) −2, −1, −1 (sum −4)
O=C=O (double bonds) 0, 0, 0 (sum 0)
Note:
  • The single-bonded skeleton fails both the octet rule and the formal-charge test.
  • Zero formal charges on all atoms mark the dominant contributor.

Odd-electron species and the incomplete octet

Nitric oxide, NO, contains ##5 + 6 = 11## valence electrons, an odd total that guarantees at least one unpaired electron. The skeleton N–O with a double bond uses four bonding electrons and leaves seven to distribute as lone pairs, giving nitrogen one lone pair and oxygen two lone pairs plus a single unpaired electron. Nitrogen then has seven electrons around it and oxygen has eight. This is perfectly acceptable: for odd-electron species, one atom will not have a complete octet, and the molecule as a whole cannot satisfy the octet rule for every atom.

Such species are called radicals, and they are genuinely important rather than mere curiosities. Nitric oxide is a biological signalling molecule, a component of vehicle exhaust, and a ligand in coordination chemistry, and its unpaired electron makes it paramagnetic. The lesson for the algorithm is that the octet check should be applied with judgement: an odd electron count signals a radical, and the structure should be drawn with the unpaired electron placed on the less electronegative atom where possible, consistent with the formal charges that result.

The Octet Rule and Its Limits for Second-Period Elements

The octet rule is a powerful guide, but it is not a law of nature, and one of the most common errors in student work is exceeding it for elements that cannot support more than eight valence electrons. Carbon, nitrogen, oxygen, and fluorine have valence shells built from 2s and 2p orbitals only, which together accommodate a maximum of eight electrons. A structure that places ten or twelve electrons around a second-period atom is therefore invalid, no matter how neatly it balances formal charges, and it must be redrawn with multiple bonding instead.

Why period 3 elements can expand their octet

Elements from period 3 onward, such as phosphorus, sulfur, and chlorine, have accessible 3d orbitals and can accommodate more than eight electrons in their valence shell. This is why phosphorus forms PCl₅ with five bonds and sulfur forms SF₆ with six, structures that would be impossible for nitrogen or oxygen. The expanded octet is not a licence to add electrons arbitrarily; it is invoked only when the electron count demands it and when the resulting formal charges are improved, and it should always be justified explicitly rather than assumed.

A useful diagnostic is to check the period of every atom in the skeleton before drawing multiple bonds. If the central atom is in period 2, the octet is a hard ceiling and the algorithm must resolve electron deficiency through multiple bonding. If the central atom is in period 3 or below, an expanded octet becomes a legitimate option, and the choice between expanded and multiple-bonded structures is then settled by formal charge and by experimental evidence such as bond lengths and magnetic behaviour.

Rule Check

Octet Capacity by Period

Which central atoms may exceed eight valence electrons in a Lewis structure.

Element Maximum Electrons
Carbon (period 2) 8 (hard ceiling)
Nitrogen (period 2) 8 (hard ceiling)
Oxygen (period 2) 8 (hard ceiling)
Phosphorus (period 3) Up to 10 or 12
Sulfur (period 3) Up to 12
Note:
  • Never place more than eight electrons around C, N, O, or F.
  • Expanded octets must be justified by electron count and formal charge.

Worked Example: The Sulfate Ion and Expanded Octets

The sulfate ion, SO₄²⁻, is the standard illustration of octet expansion and of resonance. Sulfur contributes six valence electrons, the four oxygen atoms contribute twenty-four, and the two negative charges add two more, giving ##6 + 24 + 2 = 32## electrons, or sixteen pairs. The skeleton places sulfur at the centre, since it is the least electronegative atom, with four oxygen atoms around it. Drawing four single S–O bonds consumes eight electrons, and completing the octets of the four oxygens consumes the remaining twenty-four, leaving sulfur with only eight electrons around it and a formal charge of ##6 - 0 - \tfrac{1}{2}(8) = +2##.

A central sulfur atom singly bonded to four oxygen atoms arranged around it, labelled with the valence count 6 + 24 + 2 = 32 and the charge 2−.
Situation of the problem: sulfur at the centre of four oxygens with thirty-two valence electrons and a 2− charge.Digital illustration created with Zartom Composer · Rahul Anand

Two resonance structures with an expanded octet

Because sulfur is a period 3 element, it can accommodate more than eight electrons, so lone pairs from two of the oxygen atoms can be converted into double bonds. The result is a structure with two S=O double bonds and two S–O single bonds, in which sulfur has twelve electrons around it and a formal charge of zero, while the two singly bonded oxygens each carry a formal charge of −1. The two double bonds can be placed on any two of the four oxygens, generating six equivalent resonance structures that together describe the true ion.

An alternative description keeps four single bonds and assigns sulfur a formal charge of +2, with each oxygen at −1. Both descriptions appear in textbooks, and the expanded-octet form is generally preferred because it minimises formal charge. Experimental bond lengths support the resonance picture: all four sulfur–oxygen bonds in sulfate are equal, intermediate between single and double bond lengths, exactly as a resonance hybrid of equivalent structures would predict. The ion is tetrahedral, a shape that VSEPR theory will explain in a later lesson.

Common pitfalls and how to avoid them

The most frequent error is forgetting to add or subtract electrons for charge, which throws off every subsequent step. The second is placing the wrong atom at the centre, usually because electronegativity was ignored; hydrogen is never central, and oxygen is almost always terminal. The third is exceeding the octet on a second-period element, a mistake that produces structures which look tidy but are chemically impossible. The fourth is failing to check formal charges, which allows poor skeletons to survive when a better one exists.

A disciplined routine prevents all four. Write the electron count explicitly, choose the central atom by electronegativity, complete terminal octets first, convert lone pairs to multiple bonds only when the central atom is deficient, and finish by computing formal charges for every atom. If the charges are large or placed against electronegativity, redraw. This habit, practised on molecules such as CO, NO₂⁻, CO₂, and SO₄²⁻, builds the judgement needed for the next lesson, where formal charge becomes the formal criterion for selecting the best Lewis structure among competing candidates.

Diagnostics

Common Errors in Lewis Structures

Frequent mistakes, their symptoms, and the corrective step in the algorithm.

Error Correction
Ignoring charge adjustment Recount electrons in step 1
Wrong central atom Place least electronegative atom centrally
Expanded octet on C, N, O, F Use multiple bonds instead
Unchecked formal charges Compute F.C. for every atom
Note:
  • Each error maps to a specific step, so the algorithm itself is the remedy.
  • Radicals legitimately leave one atom short of an octet.

What Lewis Structures Do Not Tell Us

It is essential to state plainly what a Lewis structure is not. These diagrams are two-dimensional bookkeeping devices that record the connectivity of atoms and the distribution of electron pairs; they do not imply molecular shape. A Lewis structure of methane shows four equivalent C–H bonds arranged around carbon, but it says nothing about the tetrahedral angle of 109.5°, and a Lewis structure of water shows two O–H bonds without indicating the bent geometry. Shape emerges only when valence shell electron pair repulsion theory is applied in a later lesson.

From electron bookkeeping to three-dimensional chemistry

Lewis structures also say nothing directly about bond energies, spectroscopic transitions, or magnetic behaviour beyond the presence of unpaired electrons. They are a starting point, not an endpoint. The bond order implied by single, double, and triple bonds correlates with bond length and strength, and the presence of unpaired electrons signals paramagnetism, but quantitative predictions require the molecular orbital theory developed later in the course. Treating the Lewis structure as a scaffold on which later theories build is the correct mental model.

This limitation is not a weakness but a division of labour. The algorithm taught here delivers connectivity, electron pairing, formal charge, and resonance, which are precisely the inputs that VSEPR, valence bond theory, and molecular orbital theory require. Learners who master the systematic method now will find that later theories slot neatly into place, because each of them begins with the same question the Lewis structure answers: which atoms are bonded to which, and where are the electrons?

Scope

What Each Bonding Model Supplies

Lewis structures answer connectivity; later theories answer shape and energy.

Model Primary Output
Lewis structure Connectivity, lone pairs, formal charge
VSEPR Molecular shape and bond angles
Valence bond theory Hybridisation and orbital overlap
Molecular orbital theory Bond order, magnetism, spectra
Note:
  • Lewis structures are two-dimensional and do not imply shape.
  • Each later model consumes the Lewis structure as its input.

Practice, Verification, and the Road Ahead

Fluency in Lewis structures comes from deliberate practice on a graded set of species. Begin with simple neutral molecules such as H₂O, NH₃, and CH₄, where the octet rule is satisfied without multiple bonding. Progress to molecules requiring double and triple bonds, including CO₂, HCN, and C₂H₂, then to polyatomic ions such as NO₂⁻, CO₃²⁻, and SO₄²⁻, where charge adjustment and resonance enter. Finally, attempt odd-electron species such as NO and NO₂, where the incomplete octet must be accepted rather than forced.

A verification checklist for every structure

Before accepting any structure, run four checks. First, confirm that the total number of electrons drawn equals the valence count adjusted for charge. Second, confirm that every atom has an octet, except hydrogen, which needs a duplet, and except the single atom in a radical species. Third, confirm that no second-period element exceeds eight electrons. Fourth, compute the formal charge on every atom and confirm that the charges sum to the overall charge of the species and that negative charges sit on the more electronegative atoms.

A short script can automate the arithmetic, which is useful when checking large problem sets. The function below counts valence electrons for a formula with a charge, the first step of the algorithm, and returns the number of electron pairs to distribute. It is deliberately simple, but it removes the most common source of error and lets the learner concentrate on the chemistry of skeleton choice and multiple bonding.


def valence_electrons(symbols, charge=0):
    """Total valence electrons for a species, adjusted for charge."""
    valence = {"H": 1, "C": 4, "N": 5, "O": 6, "F": 7,
               "P": 5, "S": 6, "Cl": 7}
    total = sum(valence[s] for s in symbols) - charge
    return total, total // 2

# Carbonate ion CO3^2-
electrons, pairs = valence_electrons(["C", "O", "O", "O"], charge=-2)
print(electrons, pairs)   # 24 12

# Nitrite ion NO2^-
electrons, pairs = valence_electrons(["N", "O", "O"], charge=-1)
print(electrons, pairs)   # 18 9

The next lesson takes up formal charge in full, treating it as the formal criterion for choosing the best Lewis structure when several valid candidates exist. The structures drawn here, including the resonance forms of nitrite and sulfate, will be revisited and ranked, and the principles of charge minimisation and electronegativity matching will be stated as explicit rules. Learners who have practised the five-step algorithm will find that the next lesson extends rather than replaces what they have learned, and that the two lessons together provide a complete method for representing bonding in molecules and ions.

Progression

Lesson 4 Practice Ladder

A graded sequence of species for building fluency with the algorithm.

Tier Species
Tier 1 H₂O, NH₃, CH₄
Tier 2 CO₂, HCN, C₂H₂
Tier 3 NO₂⁻, CO₃²⁻, SO₄²⁻
Tier 4 NO, NO₂ (radicals)
Note:
  • Work each tier until the four verification checks pass without hesitation.
  • Radicals in Tier 4 are expected to leave one atom short of an octet.

RESOURCES