What Does the Octet Rule State in Chemistry?

The octet rule states that atoms tend to gain, lose, or share electrons until they have eight electrons in their outermost shell. This arrangement mirrors the electron configuration of noble gases like neon and argon, which are exceptionally stable and rarely react with other elements. The rule is one of the most useful shortcuts in chemistry for predicting how atoms will bond with each other.

Why Eight Electrons?

The number eight comes from the structure of electron shells. The outermost shell of most atoms contains two types of orbitals: one s orbital and three p orbitals. Each orbital holds two electrons, giving a maximum of eight. When all four orbitals are filled, the atom reaches a low-energy, stable state. This is why the rule applies specifically to main-group elements (the tall columns on the left and right sides of the periodic table) rather than transition metals, which have additional orbital types in play.

Noble gases already have this full set of eight outer electrons, which is why they’re famously unreactive. Every other main-group element is, in a sense, trying to reach that same configuration.

How the Octet Rule Drives Chemical Bonding

The octet rule explains the two most common types of chemical bonds. In ionic bonding, one atom transfers electrons to another. Metals, which typically have only one or two outer electrons, lose them entirely. Nonmetals, which are close to having eight, accept those electrons. Sodium has one outer electron; chlorine has seven. Sodium hands off its electron, giving both atoms a complete octet, and the resulting attraction between the now-charged ions holds them together as sodium chloride.

In covalent bonding, atoms share electrons instead of transferring them. This happens when two atoms have a similar pull on electrons and neither is inclined to give them up. Two oxygen atoms, for instance, each need two more electrons to complete their octets, so they share two pairs between them, forming a double bond. The shared electrons count toward both atoms’ octets simultaneously.

Gilbert N. Lewis first described these ideas in a landmark 1916 paper called “The Atom and the Molecule.” He proposed both the “rule of two” (that bonds consist of shared electron pairs) and the “rule of eight” (the octet rule). His framework for drawing electron arrangements, now called Lewis structures, remains a standard tool in chemistry classrooms more than a century later.

The Duet Rule for Small Atoms

Hydrogen, helium, and lithium are exceptions from the start. Their outermost shell is the first electron shell, which only has a single s orbital and holds a maximum of two electrons. These atoms follow a “duet rule” instead. Hydrogen needs just one more electron to be stable, which is why it forms one bond. Helium already has its two electrons and, like the heavier noble gases, doesn’t bond at all under normal conditions.

Incomplete Octets

Some elements form perfectly stable compounds with fewer than eight electrons in their outer shell. Beryllium, in group 2, makes covalent bonds with only four electrons around it. Boron and aluminum, in group 3, are stable with six. Boron trifluoride is a well-known example: boron sits at the center with only six valence electrons and shows no instinct to acquire more under ordinary conditions. These elements have so few outer electrons that sharing or transferring enough to reach eight isn’t practical, and the compounds they form are stable enough without a full octet.

Expanded Octets

Elements in the third row of the periodic table and below can hold more than eight electrons in their outer shell. This is possible because starting at the third energy level, a new set of orbitals (d orbitals) becomes available, providing extra room. Phosphorus pentachloride has ten electrons around its central phosphorus atom. Sulfur hexafluoride packs twelve around sulfur. Both are stable, well-characterized compounds.

These expanded octets show up only when a larger central atom bonds to highly electronegative atoms like fluorine or chlorine. The central atom’s size matters: it needs enough physical space to fit more than four bonding partners around it. Period 2 elements like carbon, nitrogen, and oxygen are too small for this and always obey the octet rule strictly.

Research in inorganic chemistry has shown that the actual electron count around these “hypervalent” atoms can vary quite a bit. In phosphorus pentafluoride, the phosphorus valence shell holds only about 5.4 electrons because fluorine pulls electron density away so strongly. In phosphorus pentamethyl, where the surrounding groups are less electronegative, the count rises to about 9.4. The electronegativity of the attached atoms plays a major role in determining whether the octet is truly exceeded.

Odd-Electron Molecules

The octet rule works by pairing electrons, so molecules with an odd total number of valence electrons can never give every atom a full octet. Nitric oxide has 11 valence electrons. No matter how you arrange them, one atom ends up with an unpaired electron. These species are called free radicals, and most are highly reactive. Nitric oxide is a notable exception: despite being a radical, it’s stable enough to serve as an important signaling molecule in the human body. Nitrogen dioxide, with its 17 valence electrons, is another common example.

Where the Rule Stops Being Useful

The octet rule is a guideline, not a law of nature. It works reliably for period 2 elements (carbon, nitrogen, oxygen, fluorine) and reasonably well for many period 3 compounds, but it tells you nothing about molecular shape, bond angles, or how strong a bond will be. It also breaks down for transition metals, which have d orbitals actively involved in bonding. These elements follow an 18-electron rule instead, reflecting the fact that their outermost shell can accommodate electrons across s, p, and d orbitals for a total of 18.

Despite these limitations, the octet rule remains the first tool most chemists reach for when predicting how atoms will combine. It correctly explains the bonding in the vast majority of organic molecules and simple inorganic compounds. Knowing where it applies and where it doesn’t is what turns it from a memorized rule into a genuinely useful way of thinking about chemistry.