What Is the Octet Rule, and How Does It Work?

The octet rule is a basic principle of chemistry that explains why many atoms form chemical bonds. It states that atoms tend to gain, lose, or share electrons to achieve eight electrons in their outermost electron shell, creating a more stable arrangement similar to that of many noble gases.

This principle helps explain how familiar substances such as water, table salt, and carbon dioxide form. It also provides a foundation for understanding chemical bonding, molecular structures, and the behavior of elements in chemical reactions.

The octet rule is a useful guide rather than an absolute law. Many atoms follow it closely, but some stable molecules and ions have fewer or more than eight electrons around particular atoms. Understanding both the rule and its limitations reveals how atoms combine to form the substances around us.

What is the octet rule?

An atom consists of a central nucleus containing protons and usually neutrons, surrounded by electrons arranged in energy levels. The electrons in the outermost occupied shell are called valence electrons. These electrons play the main role in chemical bonding because they interact with the electrons of neighboring atoms.

For many main-group elements, a particularly stable arrangement occurs when the outer shell contains eight electrons. This arrangement is commonly associated with the electron configurations of noble gases, such as neon and argon, which generally show little tendency to react under ordinary conditions.

Atoms that do not have a full outer shell can sometimes become more stable by transferring or sharing electrons with other atoms. The octet rule describes the tendency of many such atoms to form bonds that give them an outer-shell arrangement of eight electrons.

The word octet comes from a Latin root meaning eight. The rule is especially useful for understanding elements in the first few rows of the periodic table, including carbon, nitrogen, oxygen, and the halogens.

Hydrogen and helium are important exceptions to the usual eight-electron pattern. Their first electron shell can hold only two electrons, so these elements follow a related principle called the duet rule. Hydrogen, for example, commonly forms a bond that allows it to share access to two electrons.

Why do atoms tend to form octets?

The tendency to form octets is rooted in atomic electron structure. Electrons occupy quantum-mechanical orbitals, which are regions associated with particular electron energies and distributions. In the second principal energy level, the 2s and three 2p orbitals together can hold eight electrons.

For many elements, a filled outer set of these orbitals corresponds to a relatively stable electron configuration. Noble gases illustrate this pattern: neon has eight valence electrons, and argon also has eight.

However, atoms do not form bonds simply because they are trying to reach eight electrons. Atoms have no intentions or goals. Chemical bonding occurs because the interactions among electrons and nuclei can produce a lower-energy arrangement than the separated atoms would have under the same conditions.

When atoms approach one another, their electrons and nuclei interact. Depending on the elements involved and the surrounding conditions, sharing or transferring electrons can lower the system’s energy. The resulting bond may produce an electron arrangement that satisfies the octet rule.

The distinction matters because a full outer shell is not a universal guarantee of stability. Whether a chemical arrangement is favorable depends on the total energy of the system, including nuclear attractions, electron repulsions, bonding interactions, and the environment.

How the octet rule works

Atoms can achieve an octet through three common bonding patterns: gaining electrons, losing electrons, or sharing electrons. Which pattern occurs depends on the atoms involved and the chemical circumstances.

Gaining electrons

Some atoms become negatively charged ions by gaining electrons. Elements in Group 17 of the periodic table, known as the halogens, have seven valence electrons and commonly gain one electron to complete an octet.

Chlorine provides a straightforward example. A neutral chlorine atom has 17 electrons, including seven valence electrons. When it gains one electron, it becomes a chloride ion, Cl⁻, with 18 electrons and eight valence electrons.

The added electron gives chloride the same electron configuration as argon. Because it has gained a negatively charged particle, the chloride ion carries a net charge of −1.

Losing electrons

Other atoms can achieve a noble-gas-like electron configuration by losing electrons. Sodium, an alkali metal, has one valence electron. When it loses that electron, it forms a positively charged sodium ion, Na⁺.

Neutral sodium has 11 electrons. Losing one leaves it with 10, matching the electron configuration of neon and leaving a filled outer shell.

This process illustrates why metals often form positive ions, while many nonmetals form negative ions. Metals with only a few valence electrons can sometimes lose them relatively readily, whereas nonmetals with nearly full outer shells can often gain electrons.

Sharing electrons

Atoms can also satisfy the octet rule by sharing electrons. This is the basis of covalent bonding, which commonly occurs between nonmetal atoms.

In a covalent bond, two atoms share a pair of electrons. The shared pair is attracted to both nuclei, helping hold the atoms together. When counting electrons for the octet rule, each bonded atom is generally counted as having access to the shared electrons in its bonds.

Carbon, for example, has four valence electrons and commonly forms four covalent bonds. Nitrogen often forms three bonds and retains one lone pair, while oxygen commonly forms two bonds and retains two lone pairs. A lone pair is a pair of valence electrons that is not shared in a conventional bond between two atoms.

These patterns help explain the structures of many familiar molecules.

The octet rule in ionic bonding

Ionic bonding occurs when atoms form oppositely charged ions that attract one another through electrostatic forces. The octet rule helps explain the electron transfer that often accompanies this process.

Table salt, or sodium chloride, is a familiar example. Sodium has one valence electron, while chlorine has seven. Sodium can transfer an electron to chlorine, producing Na⁺ and Cl⁻ ions. Both ions then have electron configurations associated with filled outer shells.

Because the ions carry opposite charges, they attract each other. In solid sodium chloride, this attraction extends throughout a repeating three-dimensional crystal lattice rather than producing isolated pairs of sodium and chloride atoms.

The octet rule helps explain why these ions form, but it does not by itself account for every factor determining the stability of the crystal. The overall arrangement also depends on electrostatic attractions and repulsions among all the ions, as well as the energy involved in forming the solid.

Ionic bonding is not always the result of complete electron transfer in a simple, isolated event. Real chemical bonding can involve varying degrees of electron sharing and charge separation. Nevertheless, the sodium chloride example captures the central role of electron transfer in the introductory model of ionic bonding.

The octet rule in covalent bonding

Covalent bonds form when atoms share electrons rather than transferring them completely. The octet rule is particularly useful for predicting how many bonds many nonmetal atoms can form and for drawing molecular structures.

Water, ammonia, and carbon dioxide illustrate how shared electrons allow atoms to achieve octets.

In a water molecule, H₂O, oxygen has six valence electrons and needs access to two more to complete an octet. It forms two single covalent bonds, one with each hydrogen atom. Each bond contains a shared pair of electrons. Oxygen is counted as having eight electrons around it, while each hydrogen has access to two.

In ammonia, NH₃, nitrogen has five valence electrons. It forms three single bonds with hydrogen atoms and retains one lone pair. Counting the three shared pairs and the lone pair gives nitrogen eight electrons around it.

Carbon dioxide, CO₂, demonstrates how double bonds can help atoms achieve octets. Carbon has four valence electrons, and each oxygen has six. Carbon forms a double bond with each oxygen, producing the structure O=C=O. Each double bond contains two shared electron pairs. Carbon and both oxygen atoms are counted as having eight electrons around them.

These examples show that atoms do not always need to gain or lose electrons to satisfy the octet rule. Sharing can produce the required electron count while keeping the atoms connected in a molecule.

How Lewis structures represent the octet rule

Lewis structures are diagrams that show an atom’s valence electrons, the bonds between atoms, and the lone pairs that remain unshared. They provide a practical way to apply the octet rule when analyzing molecules and ions.

In a Lewis structure, dots represent valence electrons, while lines usually represent shared electron pairs in covalent bonds. A single line represents one shared pair, a double line represents two shared pairs, and a triple line represents three shared pairs.

To draw a basic Lewis structure, begin by counting the total number of valence electrons contributed by all the atoms. For a negatively charged ion, add electrons corresponding to the magnitude of its charge. For a positively charged ion, subtract electrons corresponding to the magnitude of its charge.

Next, arrange the atoms in a reasonable bonding framework and connect the appropriate atoms with single bonds. Distribute the remaining electrons as lone pairs, usually completing the outer atoms’ octets first. Place any remaining electrons on the central atom, then consider whether double or triple bonds are needed to satisfy octets and obtain a sensible structure.

For example, oxygen has six valence electrons, so two oxygen atoms contribute 12 electrons to an O₂ molecule. A simple Lewis structure with a double bond and two lone pairs on each oxygen gives each atom an octet.

Lewis structures are models, not photographs of molecules. They simplify the distribution of electrons into localized bonds and lone pairs, which is useful for many introductory chemistry problems. More advanced descriptions of bonding use quantum mechanics to account for electron distributions that cannot always be represented accurately by a single Lewis structure.

Single, double, and triple bonds

The octet rule helps explain why some atoms form multiple bonds.

A single covalent bond consists of one shared electron pair. A double bond consists of two shared pairs, and a triple bond consists of three. When a single bond does not provide enough shared electrons for the atoms to reach their usual valence-shell arrangements, multiple bonds may be necessary.

Nitrogen gas, N₂, is a classic example. Each nitrogen atom has five valence electrons and needs access to three additional electrons to complete an octet. The two nitrogen atoms share three electron pairs, forming a triple bond. Each nitrogen is then counted as having eight electrons around it.

Multiple bonds are generally shorter than comparable single bonds between the same elements and often require more energy to break. However, bond strength depends on the atoms and their chemical environment; it cannot be determined from the octet rule alone.

The rule also does not mean that an atom always forms the same number of bonds in every compound. Bonding patterns depend on the available orbitals, the identities of neighboring atoms, the molecule’s charge, and the overall electronic structure.

When the octet rule does not apply

Although the octet rule works well for many common compounds, several important classes of substances do not follow it. These exceptions are not flaws in chemistry. They show where a simplified rule gives way to a more complete understanding of electron structure and bonding.

Atoms with fewer than eight electrons

Some stable molecules have atoms surrounded by fewer than eight electrons. Boron trifluoride, BF₃, is a familiar example.

Boron has three valence electrons and forms three single bonds with fluorine atoms. In a basic Lewis structure, boron has only six electrons around it, while each fluorine has an octet.

Despite boron’s incomplete octet, BF₃ is a stable compound. Boron can accept an electron pair from another species, making BF₃ a Lewis acid. In this context, a Lewis acid is a substance that accepts an electron pair to form a chemical bond.

Beryllium compounds can also have fewer than eight electrons around the central atom. In beryllium chloride, BeCl₂, simple molecular Lewis structures give beryllium only four electrons in its two bonds. Its actual structure depends on the physical state and conditions, but the compound illustrates why the octet rule cannot be applied universally.

Molecules with an odd number of electrons

Some molecules contain an odd total number of electrons, making it impossible for every atom to have a conventional octet in a simple Lewis structure.

Nitric oxide, NO, is one example. Nitrogen contributes five valence electrons and oxygen contributes six, giving the molecule 11 valence electrons. Because the total is odd, at least one electron cannot be paired in the usual way.

Such species are often called radicals when they contain an unpaired electron. Radicals can be highly reactive, although their reactivity varies considerably depending on their structure and surroundings. They play important roles in atmospheric chemistry, combustion, and biological processes.

Atoms with more than eight electrons

Some compounds of elements in the third period and beyond are commonly represented with more than eight electrons around a central atom in Lewis structures. These are often called expanded-octet structures.

Sulfur hexafluoride, SF₆, provides a well-known example. In its conventional Lewis structure, sulfur forms six single bonds to fluorine, giving sulfur 12 electrons in the simple electron-counting model.

Phosphorus pentachloride, PCl₅, is another example. Its molecular form can be represented with five bonds around phosphorus, corresponding to 10 electrons in the Lewis structure. The detailed structure of phosphorus pentachloride depends on the physical state: its gas-phase molecules and its solid-state ionic arrangement are not identical.

Older explanations sometimes attribute expanded octets to the use of empty d orbitals on the central atom. Modern bonding descriptions do not generally treat substantial d-orbital participation as the simple, universal explanation for these structures. Instead, bonding in such compounds is better understood through molecular orbital theory and the overall distribution of electrons across the molecule.

The essential lesson is that an eight-electron count is not a universal requirement. The octet rule is most reliable as a practical guide for many compounds involving the lighter main-group elements.

How the octet rule relates to chemical stability

A full outer shell is often associated with a stable electron configuration, but electron count alone does not determine whether a chemical species is stable.

Stability depends on the energy of the entire system. When a bond forms, attractive interactions between electrons and nuclei can lower the system’s energy. At the same time, repulsive interactions between electrons and between nuclei affect the final arrangement. The balance of these effects determines whether a particular bonding arrangement is favorable.

For example, sodium and chlorine can form a stable ionic solid because the overall arrangement of ions lowers the energy relative to appropriate separated reference states. In a water molecule, shared electrons and the attractions between the nuclei and electron density produce a stable covalent structure.

The octet rule helps predict common bonding patterns in both cases, but it does not calculate bond energies, reaction rates, or the likelihood of a reaction under particular conditions. Those questions require additional chemical principles.

It is also important to distinguish thermodynamic stability from kinetic stability. A substance may be energetically capable of transforming into other substances but react slowly because the process requires overcoming a substantial activation energy, the energy barrier that must be crossed for a reaction to proceed.

Thus, achieving an octet is neither a guarantee that a substance will never react nor a complete explanation of why one reaction occurs more readily than another.

Why the octet rule remains useful

Despite its limitations, the octet rule remains a valuable introductory tool because it connects electron configurations to observable chemical behavior. It helps explain common ionic charges, likely bonding patterns, and the basic structures of many molecules.

It also provides a starting point for predicting chemical formulas. Sodium and chlorine commonly form NaCl because sodium tends to lose one electron and chlorine tends to gain one. Magnesium and oxygen commonly form MgO because magnesium tends to lose two valence electrons while oxygen tends to gain two. In both examples, the resulting ions have electron configurations associated with filled outer shells.

For covalent compounds, the rule helps predict that carbon often forms four bonds, nitrogen often forms three, and oxygen often forms two. These patterns are useful when drawing Lewis structures and checking whether a proposed arrangement accounts for the available valence electrons.

However, the rule should not be used in isolation. Molecular geometry, formal charge, resonance, electronegativity, and molecular orbital theory provide additional information needed to understand more complex compounds. Formal charge is a bookkeeping tool for assessing electron assignments in a Lewis structure, while resonance describes cases in which multiple Lewis structures contribute to a molecule’s overall electronic description.

The octet rule is therefore best understood as a practical model of common chemical bonding, not as an unbreakable law of nature. It explains a great deal about why atoms combine in familiar ways, while its exceptions point toward the deeper principles that govern the behavior of electrons and the formation of chemical bonds.

Looking For Something Else?