Where Exploration Meets Excellence
Jupiter Academy · Lesson

The Octet Rule and Covalent Bonding: Sharing Electrons

octet rule and covalent bonding Lewis structures
octet rule and covalent bonding Lewis structuresAI-generated representative image

Chemical bonding begins with a deceptively simple question: why do atoms join together at all, and why do they join in the specific ratios and geometries we observe? The Kössel–Lewis approach answered this by pointing to the valence shell, and its central claim—that atoms combine to attain a stable noble-gas configuration—became the organising principle of structural chemistry for the next century. Lesson 3 of this course takes that principle and turns it into a working tool: the octet rule and the Lewis–Langmuir theory of covalent bonding, in which atoms achieve stability not by transferring electrons but by sharing them.

The distinction matters enormously. Electrovalent, or ionic, bonding involves a complete transfer of electron density from one atom to another, producing discrete charged ions held together by Coulombic attraction. Covalent bonding is a different bargain entirely: two atoms each contribute at least one electron to a shared pair, and both count that pair towards their own valence-shell tally. Langmuir refined Lewis's original postulations by discarding the notion of a stationary cubical octet and introducing the term covalent bond, giving chemistry a vocabulary that has survived essentially intact. What follows develops that vocabulary rigorously, then extends it well beyond the introductory treatment.

Left: a metal atom transfers one electron to a nonmetal atom, producing a positive and a negative ion held by attraction. Right: two atoms each contribute one electron to a shared pair between them, both counting the pair toward their octet.
Two ways atoms reach a noble-gas configuration: transferring electrons to form ions, or sharing an electron pair in a covalent bond.Digital illustration created with Zartom Composer · Rahul Anand

By the end of this lesson you will be able to write Lewis dot structures for simple molecules and polyatomic ions, justify the choice between single, double and triple bonds, assign bond orders, and recognise precisely where the octet rule stops being useful. That last point is not a footnote—it is the hinge on which the rest of the course turns. The octet rule explains connectivity but not shape, and it says nothing about energy. Understanding both its power and its limits is what prepares you for VSEPR, valence bond theory and molecular orbital theory in the lessons ahead.

The Octet Rule as a Bookkeeping Principle

The Octet Rule as a Bookkeeping Principle
The Octet Rule as a Bookkeeping PrincipleAI-generated representative image

Kössel and Lewis, working in 1916, proposed that atoms combine either by transferring valence electrons from one atom to another—gaining or losing them—or by sharing valence electrons, in each case in order to possess eight electrons in their valence shells. This is the octet rule, and it remains the single most useful heuristic in elementary bonding theory. It is worth being precise about what kind of statement it is. The octet rule is not a law of nature in the sense that Newton's laws are; it is an accounting convention that happens to work extraordinarily well for a large and important class of compounds.

The reason it works is structural rather than mystical. Elements of the second period—lithium through neon—have four valence orbitals available: one 2s and three ##2p##. Four orbitals can accommodate a maximum of eight electrons, and the energy gap to the 3s orbital is large enough that populating it is prohibitively costly. An octet therefore represents a filled valence shell for these elements, and a filled shell is a particularly stable arrangement. For hydrogen and helium, the valence shell holds only the 1s orbital, so the corresponding target is a duplet of electrons rather than an octet.

Energy-level diagram of a second-period valence shell showing a lower 2s orbital and three degenerate 2p orbitals, each holding two electrons, giving a capacity of eight and explaining why the octet is eight.
Second-period atoms have one 2s and three 2p orbitals, which together hold exactly eight valence electrons.Digital illustration created with Zartom Composer · Rahul Anand

Why Eight, and Why Not Always Eight

Once you see the octet as a consequence of orbital capacity, its exceptions become intelligible rather than arbitrary. Hydrogen and helium are satisfied by two electrons. Elements from the third period onwards have accessible ##d## orbitals and larger valence shells, which is why species such as ##\text{PCl}_5##, ##\text{SF}_6## and ##\text{ClF}_3## exist with ten or twelve electrons around the central atom. These are traditionally called expanded octets, though modern computational chemistry attributes the bonding in many such species to highly polar or ionic character rather than genuine ##d##-orbital participation.

At the other extreme, several stable molecules possess an odd number of valence electrons and cannot pair them all. Nitric oxide, ##\text{NO}##, has eleven valence electrons; nitrogen dioxide, ##\text{NO}_2##, has seventeen. Such species necessarily contain an unpaired electron and are termed odd-electron molecules. Boron trifluoride, ##\text{BF}_3##, has only six electrons around boron and is described as electron-deficient. None of these cases refutes the octet rule; they simply mark out its domain of reliable application, which is the chemistry of second-period elements forming conventional closed-shell molecules.

Bar chart of valence electron counts: NO has 11 and NO2 has 17, both odd numbers, illustrating why these molecules cannot pair all electrons and contain an unpaired electron.
Nitric oxide and nitrogen dioxide have odd valence-electron totals, so one electron must remain unpaired.Digital illustration created with Zartom Composer · Rahul Anand

The Rule in Practice

In practice the octet rule functions as a constraint that narrows the space of plausible structures. Given a molecular formula, you can often determine connectivity and bond multiplicity simply by insisting that every atom finish with eight electrons. This is precisely the logic that will drive the systematic method of the next lesson. For now, the essential point is that the rule is generative: it does not merely check a structure after the fact, it tells you what the structure must be.

Reference Card

Valence Electron Targets Across the Periodic Table

The octet target is a consequence of available valence orbitals, not a universal law.

Element Class Valence Target
Hydrogen, Helium Duplet (2 electrons)
Second-period elements (Li–Ne) Octet (8 electrons)
Third-period and heavier (P, S, Cl) Octet or expanded (10–12)
Odd-electron species (NO, NO₂) Unpaired electron retained
Electron-deficient (BF₃, BeCl₂) Fewer than eight on centre
Note:
  • Second-period elements have exactly four valence orbitals, hence a capacity of eight.
  • Expanded octets are best treated as highly polar bonding rather than true d-orbital involvement.

The Covalent Bond: Sharing Electron Pairs

The Covalent Bond: Sharing Electron Pairs
The Covalent Bond: Sharing Electron PairsAI-generated representative image

Langmuir's refinement of Lewis's postulations abandoned the idea of a stationary cubical arrangement of the octet and introduced the term covalent bond. The clearest illustration is the chlorine molecule. A chlorine atom has the configuration ##[\text{Ne}]\,3s^2\,3p^5##, one electron short of the argon configuration. When two chlorine atoms approach, each contributes one electron to a shared pair, and both atoms then count that pair towards their own valence tally, attaining the outer-shell octet of the nearest noble gas, argon. The dots in the resulting structure represent electrons, and such structures are called Lewis dot structures.

Three conditions define the covalent bond in this framework. Each bond is formed as a result of sharing an electron pair between the atoms. Each combining atom contributes at least one electron to the shared pair. And the combining atoms attain the outer-shell noble-gas configurations as a result of that sharing. These conditions are not independent—they are three faces of the same accounting requirement—but stating them separately makes the logic transparent when you begin constructing structures for unfamiliar molecules.

Single, Double and Triple Bonds

When two atoms share one electron pair they are said to be joined by a single covalent bond. In many compounds, however, atoms share more than one pair. If two atoms share two pairs of electrons, the bond between them is a double bond; carbon dioxide contains two such bonds between carbon and oxygen, and the two carbon atoms of ethene are likewise joined by a double bond. When combining atoms share three electron pairs, as in the nitrogen molecule and in the two carbon atoms of ethyne, a triple bond is formed.

The progression from single to double to triple sharing is accompanied by systematic changes in bond length and bond strength. A triple bond is shorter and stronger than a double bond, which in turn is shorter and stronger than a single bond between the same pair of elements. This is a direct consequence of the greater accumulation of electron density between the nuclei. The nitrogen molecule, with its triple bond and bond dissociation energy near ##941\ \text{kJ mol}^{-1}##, is famously inert for precisely this reason, and the same logic explains why alkynes undergo addition reactions more readily than alkanes.

Two-series bar chart across single, double and triple bonds showing bond length decreasing and relative bond strength increasing with bond order; values are illustrative of the trend, not measured data.
Illustrative trend: as bond order rises from one to three, bond length falls and bond strength rises.Digital illustration created with Zartom Composer · Rahul Anand

Bond Order as a Bridge Forward

Lewis structures carry quantitative information that is easy to overlook. The number of shared electron pairs between two atoms defines the bond order: a single bond has bond order one, a double bond two, a triple bond three. This simple integer is the first quantitative descriptor of bonding you will meet, and it recurs throughout the course. In molecular orbital theory the bond order becomes a fractional quantity computed from orbital occupancies, but the Lewis value provides the reference point against which those calculations are interpreted.

###\text{Bond order} = \dfrac{N_b - N_a}{2}###

Here ##N_b## is the number of electrons in bonding orbitals and ##N_a## the number in antibonding orbitals. For a single bond, ##N_b - N_a = 2## and the bond order is one; for a double bond the difference is four, giving two. The Lewis picture and the molecular orbital picture therefore agree on the integers, which is reassuring, and diverge only when fractional bonding appears—as it does in species such as ##\text{H}_2^+## and ##\text{O}_2^-##.

Constructing Lewis Structures: Carbon Dioxide Worked in Full

Constructing Lewis Structures: Carbon Dioxide Worked in Full
Constructing Lewis Structures: Carbon Dioxide Worked in FullAI-generated representative image

The Lewis dot structures provide 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 does help enormously in understanding the formation and properties of a molecule. Writing Lewis dot structures is therefore a genuinely useful skill, and the procedure is best learned by working a nontrivial example in full rather than by memorising rules in the abstract.

Consider carbon dioxide. Carbon contributes four valence electrons and each oxygen contributes six, giving a total of sixteen valence electrons available for bonding. Carbon is the least electronegative of the two elements and therefore occupies the central position, with the two oxygen atoms terminal. The skeletal arrangement is ##\text{O}—\text{C}—\text{O}##. Placing one shared pair on each of the two C–O linkages uses four electrons, leaving twelve to distribute as lone pairs.

A central carbon bonded by single lines to two terminal oxygens, with the total valence electron count marked.
Situation of the problem: the skeletal O–C–O arrangement of carbon dioxide with its sixteen valence electrons to distribute.Digital illustration created with Zartom Composer · Rahul Anand

Why Two Double Bonds Are Required

If we give each oxygen three lone pairs—six electrons apiece—we exhaust the remaining twelve, and the structure reads ##:\ddot{\text{O}}—\text{C}—\ddot{\text{O}}:##. Now count: each oxygen has eight electrons, but carbon has only four. The octet requirement on carbon is violated. The remedy is to convert lone pairs on each oxygen into shared pairs with carbon. Moving one lone pair from each oxygen into the C–O linkages produces two double bonds, ##\text{O}=\text{C}=\text{O}##, and every atom now possesses eight electrons.

This is the essential lesson of the worked example: the octet rule is not merely a check but a driver. The single-bonded structure is not wrong in the sense of being unphysical—it is a legitimate resonance contributor—but it fails the octet test on carbon, and the double-bonded structure passes. The total electron count is conserved throughout; only the distribution changes. Learning to perform this redistribution fluently is the core skill that the systematic method of the next lesson will formalise.

Formal Charge and the Choice Between Alternatives

Some molecules obey the octet rule only formally, and when two or more octet-satisfying structures exist, formal charge decides between them. Formal charge is computed by assigning all bonding electrons equally to the two atoms involved and all nonbonding electrons to the atom on which they sit. The structure in which formal charges are closest to zero, and in which any negative formal charge resides on the more electronegative atom, is generally the preferred one.

###\text{FC} = V - N - \dfrac{B}{2}###

Here ##V## is the number of valence electrons in the free atom, ##N## the number of nonbonding electrons, and ##B## the number of bonding electrons. For carbon dioxide, the double-bonded structure gives formal charges of zero on all three atoms, which is a strong endorsement. The single-bonded alternative gives carbon a formal charge of ##+2## and each oxygen ##-1##, a much less favourable distribution. Formal charge reasoning will reappear whenever you compare competing Lewis structures for ions such as the carbonate and nitrate anions.

Two Lewis structures of carbon dioxide side by side: O=C=O with all formal charges zero, and a single-bonded O-C-O alternative with nonzero formal charges, showing why the double-bonded structure is preferred.
The double-bonded structure of carbon dioxide gives zero formal charge on every atom, while the single-bonded alternative does not.Digital illustration created with Zartom Composer · Rahul Anand
Worked Data

Bond Multiplicity and Bond Order in Familiar Molecules

Shared pairs translate directly into bond order, the first quantitative descriptor of a bond.

Molecule Shared Pairs / Bond Order
Cl₂ 1 pair — single bond, order 1
H₂O 2 O–H single bonds, order 1 each
CO₂ 2 double bonds, order 2 each
C₂H₄ 1 C=C double bond, order 2
N₂ 1 triple bond, order 3
C₂H₂ 1 C≡C triple bond, order 3
Note:
  • Bond order rises with the number of shared pairs between the same two atoms.
  • Higher bond order correlates with shorter bond length and greater bond strength.

Electron Bookkeeping for Molecules and Ions

The total number of electrons required for writing a structure is obtained by adding the valence electrons of the combining atoms. In methane, ##\text{CH}_4##, there are eight valence electrons available for bonding—four from carbon and one from each of the four hydrogen atoms. This simple summation is the foundation of every subsequent step, and errors here propagate through the entire construction, so it is worth performing deliberately and writing the number down before proceeding.

For ions, the count must be adjusted. Each negative charge means the addition of one electron; each positive charge means the subtraction of one electron from the total supplied by the neutral atoms. For the carbonate ion, ##\text{CO}_3^{2-}##, the two negative charges indicate two additional electrons beyond those provided by the neutral atoms, giving twenty-four. For the ammonium ion, ##\text{NH}_4^+##, the single positive charge indicates the loss of one electron from the group of neutral atoms, giving eight.

Choosing the Skeleton and Distributing Electrons

Knowing the chemical symbols of the combining atoms and having some knowledge of the skeletal structure—known or intelligently guessed—it becomes straightforward to distribute the total number of electrons as bonding shared pairs between the atoms in proportion to the total number of bonds. In general the least electronegative atom occupies the central position in the molecule or ion. In ##\text{NF}_3## and ##\text{CO}_3^{2-}##, nitrogen and carbon are the central atoms, while fluorine and oxygen occupy the terminal positions.

After accounting for the shared pairs of electrons in single bonds, the remaining electron pairs are either used for multiple bonding or remain as lone pairs. The basic requirement throughout is that each bonded atom obtains an octet of electrons, with hydrogen satisfied by a duplet corresponding to the helium configuration. This final distribution step is where judgement enters, and where formal charge reasoning becomes indispensable for choosing among candidates.

Common Pitfalls Worth Anticipating

Several errors recur with predictable regularity. The most common is forgetting to adjust the electron count for ionic charge, which produces structures that are internally consistent but chemically wrong. A second is placing the most electronegative atom at the centre, which inverts the polarity pattern and yields nonsensical formal charges. A third is leaving an atom short of an octet without justification, when a multiple bond or a lone pair could have been relocated to satisfy it.

A fourth pitfall is over-extending the octet on second-period atoms. Carbon, nitrogen, oxygen and fluorine simply do not have the orbitals to accommodate more than eight valence electrons, so any structure showing ten electrons around carbon is erroneous regardless of how convenient it appears. Finally, students frequently confuse the number of valence electrons with the number of electron pairs; keeping the two tallies distinct prevents a great deal of arithmetic confusion.

Counting Guide

Valence Electron Accounting for Common Species

Charge adjustments must be applied before any electron pairs are distributed.

Species Total Valence Electrons
CH₄ 4 + 4(1) = 8
CO₂ 4 + 2(6) = 16
CO₃²⁻ 4 + 3(6) + 2 = 24
NH₄⁺ 5 + 4(1) − 1 = 8
HCN 1 + 4 + 5 = 10
SO₂ 6 + 2(6) = 18
Note:
  • Negative charge adds electrons; positive charge removes them.
  • Always confirm the total before distributing pairs across the skeleton.

Where the Octet Rule Stops: Shape, Energy and Magnetism

The Lewis picture is powerful but bounded, and recognising the boundary is essential. The octet rule does not explain shapes. It tells you that water contains two O–H bonds and two lone pairs on oxygen, but it does not tell you that the H–O–H angle is approximately 104.5° rather than 90° or 180°. Nor does it explain energies: it cannot tell you why the ##\text{N}_2## triple bond is so much stronger than three N–H single bonds, or why some bonds are coloured and others are not.

These omissions are not failures of the theory so much as indications of what the theory was designed to do. Lewis structures encode connectivity and electron bookkeeping; they do not encode orbital energies or directional preferences. The two theories that supply what is missing are VSEPR, which predicts geometry from electron-pair repulsions, and valence bond and molecular orbital theory, which supply the energetic and spectroscopic description. Both appear later in this course.

Magnetism and the Limits of Pairing

A particularly instructive failure concerns magnetism. The Lewis structure of the oxygen molecule, ##\text{O}=\text{O}##, shows all electrons paired, which predicts diamagnetism. In fact liquid oxygen is paramagnetic and is attracted into a magnetic field. Molecular orbital theory resolves this by placing the two highest-energy electrons in separate antibonding orbitals with parallel spins. The Lewis structure is not wrong about connectivity—the O=O double bond is real—but it is wrong about the spin state, and no amount of octet bookkeeping can repair that.

This example is worth keeping in mind whenever the octet rule seems to settle a question definitively. It settles questions of connectivity reliably and questions of electron distribution approximately, but it is silent on spin, on orbital energies and on the fine details of spectroscopic behaviour. A chemist who knows both what a model delivers and what it does not is far better equipped than one who treats any single model as complete.

Resonance and the Formal Octet

Some molecules obey the octet rule only formally, in the sense that no single Lewis structure describes them adequately. Ozone, ##\text{O}_3##, and the carbonate ion are the classic examples: two or more equivalent Lewis structures can be drawn, differing only in the placement of shared and lone pairs, and the true molecule is a resonance hybrid of them. Each contributing structure satisfies the octet rule, yet none alone accounts for the observed equivalence of the bonds.

Resonance is not a physical oscillation between structures; it is a statement that the Lewis model's discrete pairing scheme is an approximation. The bond order in carbonate is therefore intermediate between one and two, approximately 1.33, and the three C–O bonds are experimentally identical in length. This is a further indication that the integer bond orders of Lewis theory are a starting point rather than an endpoint.

Three resonance structures of the carbonate ion arranged in a row, each showing one carbon-oxygen double bond and two single bonds with the negative charge on a different oxygen, plus a note that the real ion has three equivalent bonds of order 1.33.
Three equivalent resonance structures of carbonate, each with one C=O double bond, give every C-O bond an order of about 1.33.Digital illustration created with Zartom Composer · Rahul Anand
Scope Check

What the Octet Rule Explains and What It Does Not

Knowing the boundary of a model is as important as knowing its content.

Property Lewis Octet Verdict
Connectivity and bond multiplicity Reliable
Molecular shape and bond angles Silent — requires VSEPR
Bond energies and spectra Silent — requires VB/MO theory
Magnetic behaviour of O₂ Incorrect — predicts diamagnetism
Equivalent bonds in CO₃²⁻ Partial — requires resonance
Note:
  • The octet rule is a connectivity model, not a complete theory of the chemical bond.
  • Later lessons supply the geometric and energetic descriptions it omits.

Practice: Drawing Structures and Counting Shared Pairs

Fluency in Lewis structures comes from practice, and the following exercise is designed to consolidate everything in this lesson. Draw the Lewis structures for hydrogen cyanide, ##\text{HCN}##; ethene, ##\text{C}_2\text{H}_4##; and sulfur dioxide, ##\text{SO}_2##. For each, count the total valence electrons, identify the central atom, determine the number of shared pairs, and assign the bond order of every linkage. Then check each structure against the octet rule and compute formal charges where alternatives exist.

Three molecular formulas written with their atom counts, each with blank space for a structure.
Situation of the exercise: the three molecular formulas whose Lewis structures, shared pairs and bond orders must be found.Digital illustration created with Zartom Composer · Rahul Anand

For hydrogen cyanide, the total is ten valence electrons. Carbon is central, bonded to hydrogen and nitrogen. A single H–C bond and a single C–N bond use four electrons, leaving six as lone pairs; nitrogen takes three lone pairs and carbon has only four electrons, so a triple bond between carbon and nitrogen is required. The result is ##\text{H}—\text{C}\equiv\text{N}:##, with bond orders of one for H–C and three for C≡N.

Working Through Ethene and Sulfur Dioxide

Ethene has twelve valence electrons. The two carbons are joined to each other and each carries two hydrogens. Four C–H single bonds consume eight electrons, leaving four, which form the C=C double bond. Every hydrogen has a duplet and every carbon an octet, with bond orders of one for each C–H and two for the C=C linkage. This structure is the starting point for understanding why ethene is planar and why it undergoes addition rather than substitution.

Sulfur dioxide has eighteen valence electrons. Sulfur is central, bonded to two oxygens. Two S–O single bonds use four electrons, leaving fourteen as lone pairs. Placing three lone pairs on each oxygen uses twelve, leaving two on sulfur, which gives sulfur only six electrons. Converting one lone pair from one oxygen into a second S–O bond yields one double and one single bond, satisfying the octet on sulfur. The two S–O linkages are experimentally equivalent, which is the resonance phenomenon discussed above.

A central sulfur atom singly bonded to two oxygen atoms, with the total valence electron count marked.
Situation of the problem: sulfur dioxide with sulfur central and eighteen valence electrons to place.Digital illustration created with Zartom Composer · Rahul Anand

Consolidating the Method

These three examples illustrate the full range of the procedure: count, choose a skeleton, place single bonds, distribute lone pairs, then convert lone pairs into multiple bonds until every atom satisfies its target. The final step is the one that requires judgement, and it is precisely the step that the systematic method of the next lesson will codify into an explicit algorithm. Practising it now, with the octet rule as your guide, will make that algorithm feel like a natural extension rather than a new set of rules.

Self-Check

Exercise Solutions at a Glance

Compare your drawings against these expected outcomes before moving on.

Molecule Expected Structure and Shared Pairs
HCN H–C≡N; 4 shared pairs total (1 + 3)
C₂H₄ H₂C=CH₂; 6 shared pairs total (4 + 2)
SO₂ O=S–O resonance; 3 shared pairs total
Note:
  • Count shared pairs as the sum of bond orders across all linkages.
  • SO₂ demonstrates that octet satisfaction and bond equivalence can coexist only through resonance.

From Lewis Dots to the Rest of the Course

The octet rule and the Lewis–Langmuir theory of covalent bonding give chemistry its first genuinely predictive model of molecular structure. From a molecular formula and a table of valence electrons, you can determine connectivity, bond multiplicity and the distribution of lone pairs with remarkable reliability. The three conditions of covalent bond formation—sharing of an electron pair, contribution of at least one electron by each atom, and attainment of noble-gas configurations—provide a compact and durable framework that has served chemistry for more than a century.

Equally important is a clear-eyed appreciation of what the model leaves undone. It does not predict shape, it does not supply energies, and it fails outright on magnetism. These are not reasons to discard it but reasons to build on it. The lessons that follow take the Lewis structure as their input and add the geometric and energetic layers that the octet rule cannot provide, moving through VSEPR, hybridisation and molecular orbital theory in turn.

Preparing for the Next Lesson

The natural next step is to convert the informal procedure used in this lesson into a systematic method that can be applied to any molecule or ion without guesswork. That method will formalise the sequence of counting, skeleton selection, single-bond placement, lone-pair distribution and multiple-bond formation, and it will incorporate formal charge as a tie-breaker. Everything you have practised here—the carbon dioxide worked example, the electron bookkeeping for ions, the exercise on HCN, ethene and sulfur dioxide—feeds directly into it.

Before proceeding, make sure you can write a Lewis structure for an unfamiliar second-period molecule without consulting a table, and that you can explain in your own words why carbon dioxide requires two double bonds rather than one. If both of those are secure, the systematic method will feel like a clarification rather than a new burden. The octet rule, properly understood as a bookkeeping principle grounded in orbital capacity, will remain your most reliable first tool throughout the remainder of the course.

Course Map

Lesson Roadmap: Where This Material Sits

Each lesson builds on the last, so the sequence matters as much as the content.

Lesson Focus
Lesson 2 (previous) Kössel–Lewis approach and Lewis symbols
Lesson 3 (this one) Octet rule and covalent bonding by sharing
Lesson 4 (next) Writing Lewis structures: a systematic method
Later lessons VSEPR, hybridisation, molecular orbital theory
Note:
  • This lesson assumes fluency with Lewis symbols from Lesson 2.
  • Bond order introduced here becomes a recurring quantity in later lessons.

RESOURCES