Formal Charge — Keeping the Books on Electrons

A Lewis structure shows shared pairs and lone pairs, but not which atom owns which electrons. In NH4+\mathrm{NH_4^+} the positive charge belongs to the ion as a whole, not to one atom. Assign every electron to an atom, then ask whether it ended up with more or fewer electrons than it started with: that gives the formal charge.

Key Point (Definition): The formal charge of an atom in a polyatomic molecule or ion is the difference between the number of valence electrons of that atom in the free (isolated) state and the number of electrons assigned to that atom in the Lewis structure.

The formula

One assumption drives the count: an atom owns both electrons of each lone pair and one electron of each shared pair. Its assigned electrons are therefore its lone-pair electrons plus half its bonding electrons. Subtract that from the valence electrons of the free atom:

F.C.=V−L−12S\text{F.C.} = V - L - \tfrac{1}{2} S

Symbol Meaning How to find it
VV valence electrons of the free atom group number for main-group elements (H 1, B 3, C 4, N 5, O 6, F 7, S 6, Cl 7)
LL non-bonding (lone-pair) electrons on the atom in the structure count the dots on that atom: each lone pair is 2
SS bonding (shared) electrons around the atom each single bond is 2, double 4, triple 6

Shortcut form: F.C.=V−(lone-pair electrons)−(number of bonds)\text{F.C.} = V - (\text{lone-pair electrons}) - (\text{number of bonds}), since half the shared electrons is the number of bond lines. Both give the same answer.

A three-step routine

  1. Draw the Lewis structure completely — every bond, every lone pair.
  2. For each atom, count VV, LL and SS.
  3. Apply the formula, then check that the formal charges add up to the total charge of the species (zero for a neutral molecule).

Step 3 is the safety net: if the sum is wrong, you have miscounted.

Ozone, worked in full

Ozone, O3\mathrm{O_3}, shows all three results in one molecule. O(1) is central, O(2) the end atom double-bonded to it, O(3) the end atom single-bonded to it:

O(2)=O(1)−O(3)\mathrm{O(2){=}O(1){-}O(3)}

Total valence electrons: 3×6=183 \times 6 = 18. O(1) carries one lone pair, O(2) two and O(3) three: 2+4+6=122 + 4 + 6 = 12 lone-pair electrons plus 4+2=64 + 2 = 6 bonding electrons, total 18.

Atom VV LL SS F.C.=V−L−12S\text{F.C.} = V - L - \frac{1}{2}S
O(1), central, one lone pair, one double + one single bond 6 2 6 6−2−3=+16 - 2 - 3 = +1
O(2), end, two lone pairs, double bond 6 4 4 6−4−2=06 - 4 - 2 = 0
O(3), end, three lone pairs, single bond 6 6 2 6−6−1=−16 - 6 - 1 = -1

Sum: +1+0+(−1)=0+1 + 0 + (-1) = 0, the charge on a neutral ozone molecule. Ozone carries a ++ on the central oxygen and a −- on the single-bonded end oxygen; the double-bonded end oxygen is neutral.

Formal charge count for the three oxygen atoms of ozone

A pattern worth memorising: oxygen with three lone pairs and one bond is always −1-1; two lone pairs and two bonds is 00; one lone pair and three bonds is +1+1.

[Board] The definition, the formula in words (valence electrons of the free atom minus non-bonding electrons minus half the bonding electrons) and the ozone example answer "What is formal charge? Illustrate with an example." Show the sum-to-charge check, and take VV from the group number, never from the electrons the atom has in the structure.

Formal Charge in Common Species — Building Your Reference Table

Every species runs on the same three steps as ozone.

Carbonate ion, CO32−\mathrm{CO_3^{2-}}

Carbon central, one C=O\mathrm{C{=}O} and two C−O\mathrm{C{-}O}; no lone pair on carbon; two lone pairs on the double-bonded oxygen, three on each single-bonded oxygen. Total electrons 4+18+2=244 + 18 + 2 = 24.

Atom VV LL SS F.C.
C (no lone pair, 4 bonds) 4 0 8 4−0−4=04 - 0 - 4 = 0
O in C=O\mathrm{C{=}O} (2 lone pairs) 6 4 4 00
each O in C−O\mathrm{C{-}O} (3 lone pairs) 6 6 2 −1-1

Sum: 0+0+(−1)+(−1)=−20 + 0 + (-1) + (-1) = -2. The two negative charges sit on the single-bonded oxygens — any two, since the three oxygens are actually equivalent. That is resonance, in Section 4; each of the three resonance structures carries this same set of charges on different oxygens.

Nitrite ion, NO2−\mathrm{NO_2^-}

O=N−O\mathrm{O{=}N{-}O} with one lone pair on nitrogen. Total electrons 5+12+1=185 + 12 + 1 = 18.

Atom VV LL SS F.C.
N (1 lone pair, 3 bonds) 5 2 6 5−2−3=05 - 2 - 3 = 0
O in N=O\mathrm{N{=}O} 6 4 4 00
O in N−O\mathrm{N{-}O} 6 6 2 −1-1

Sum −1-1, on the single-bonded oxygen.

Ammonium ion, NH4+\mathrm{NH_4^+}

Four N−H\mathrm{N{-}H} bonds, no lone pair on nitrogen, 8 electrons in all.

Atom VV LL SS F.C.
N (0 lone pairs, 4 bonds) 5 0 8 5−0−4=+15 - 0 - 4 = +1
each H 1 0 2 1−0−1=01 - 0 - 1 = 0

Sum +1+1. In NH3\mathrm{NH_3} nitrogen has 3 bonds and 1 lone pair, so 5−2−3=05 - 2 - 3 = 0. Turning that lone pair into a fourth bond costs nitrogen its neutrality.

Carbon monoxide, CO\mathrm{CO}

The only structure giving both atoms an octet is a triple bond, C≡O\mathrm{C{\equiv}O}, with one lone pair on each atom (10 electrons: 2+6+22 + 6 + 2).

Atom VV LL SS F.C.
C (1 lone pair, triple bond) 4 2 6 4−2−3=−14 - 2 - 3 = -1
O (1 lone pair, triple bond) 6 2 6 6−2−3=+16 - 2 - 3 = +1

Sum 00. The negative formal charge lands on carbon and the positive one on oxygen — the opposite of what electronegativity suggests. Formal charge is a bookkeeping number, not a statement about where the electrons really are. One real fact does match it: the carbon end of CO binds metal ions, and haemoglobin.

Hydrogen cyanide, HCN\mathrm{HCN}

H−C≡N\mathrm{H{-}C{\equiv}N} with one lone pair on nitrogen; 10 electrons.

Atom VV LL SS F.C.
H 1 0 2 00
C (0 lone pairs, 4 bonds) 4 0 8 00
N (1 lone pair, 3 bonds) 5 2 6 00

All zero — the ideal for a neutral molecule.

Sulphate ion, SO42−\mathrm{SO_4^{2-}}

Two Lewis structures are drawn for it, and formal charge tells them apart. Total electrons 6+24+2=326 + 24 + 2 = 32.

Octet structure: four single S−O\mathrm{S{-}O} bonds, each oxygen with three lone pairs. S: 6−0−4=+26 - 0 - 4 = +2; each O: −1-1. Sum +2−4=−2+2 - 4 = -2.

Expanded-octet structure: two S=O\mathrm{S{=}O} and two S−O\mathrm{S{-}O} bonds, 12 electrons around sulphur. S: 6−0−6=06 - 0 - 6 = 0; each double-bonded O: 00; each single-bonded O: −1-1. Sum −2-2.

Both add up correctly. The second has smaller charges, one reason it is often preferred for sulphur, a third-period element that can hold more than eight electrons.

The quick reference

Atom and its bonding pattern Formal charge
C with 4 bonds, 0 lone pairs 00
C with 3 bonds, 1 lone pair −1-1
N with 3 bonds, 1 lone pair 00
N with 4 bonds, 0 lone pairs +1+1
N with 2 bonds, 2 lone pairs −1-1
O with 2 bonds, 2 lone pairs 00
O with 1 bond, 3 lone pairs −1-1
O with 3 bonds, 1 lone pair +1+1
H with 1 bond 00
halogen with 1 bond, 3 lone pairs 00

[JEE/NEET] One rule covers every row: an atom is neutral when its bonds equal its normal valence (C 4, N 3, O 2, H 1, halogen 1). One extra bond made from a lone pair gives +1+1; one bond fewer, electrons kept as a lone pair, gives −1-1.

Using Formal Charge — Choosing Between Candidate Structures

Formal charge tracks the valence electrons, so you can check a structure is drawn correctly. It also picks, from several possible Lewis structures, the one that best represents the species.

The selection rules

Key Point: Generally the lowest-energy structure is the one with the smallest formal charges on the atoms. Formal charges help in the selection of the lowest-energy structure from a number of possible Lewis structures for a given species.

Apply these in order:

  1. Smallest magnitudes. All charges zero beats +1+1 and −1-1; that beats a +2+2 or −2-2 anywhere.
  2. Negative charge on the more electronegative atom. If a non-zero charge is unavoidable, −1-1 on oxygen or nitrogen beats −1-1 on carbon or sulphur.
  3. Like charges not on adjacent atoms. Two +1+1 charges next to each other, or two −1-1, are strongly disfavoured.

Worked contrast: HCN versus HNC

Both H−C≡N\mathrm{H{-}C{\equiv}N} and H−N≡C\mathrm{H{-}N{\equiv}C} can be drawn with complete octets and 10 electrons.

Structure H middle atom end atom
H−C≡N\mathrm{H{-}C{\equiv}N} (lone pair on N) 00 C: 4−0−4=04 - 0 - 4 = 0 N: 5−2−3=05 - 2 - 3 = 0
H−N≡C\mathrm{H{-}N{\equiv}C} (lone pair on C) 00 N: 5−0−4=+15 - 0 - 4 = +1 C: 4−2−3=−14 - 2 - 3 = -1

The first has no formal charges, the second a separation of charge. HCN is the stable familiar compound; hydrogen isocyanide, HNC, exists only as a high-energy, short-lived species.

Worked contrast: dinitrogen oxide, N2O\mathrm{N_2O}

The skeleton is N−N−O\mathrm{N{-}N{-}O}, nitrogen in the middle, since oxygen rarely sits between two other atoms. With 16 electrons three octet structures are possible:

Structure end N central N O Verdict
N≡N−O\mathrm{N{\equiv}N{-}O} (1 lone pair on end N, 3 on O) 5−2−3=05 - 2 - 3 = 0 5−0−4=+15 - 0 - 4 = +1 6−6−1=−16 - 6 - 1 = -1 best: small charges, −1-1 on the most electronegative atom
N=N=O\mathrm{N{=}N{=}O} (2 lone pairs on end N, 2 on O) 5−4−2=−15 - 4 - 2 = -1 +1+1 6−4−2=06 - 4 - 2 = 0 acceptable; −1-1 on N rather than O
N−N≡O\mathrm{N{-}N{\equiv}O} (3 lone pairs on end N, 1 on O) 5−6−1=−25 - 6 - 1 = -2 +1+1 6−2−3=+16 - 2 - 3 = +1 poor: a −2-2, and +1+1 on oxygen

Each row sums to zero, as it must for a neutral molecule. The first two are the important resonance contributors; the third barely matters.

Formal charge is not a real charge

Key Point: Formal charges do not indicate real charge separation within the molecule. They are a factor based on a purely covalent view of bonding, in which every shared pair is split equally between the two atoms. Indicating the charges on the atoms in the Lewis structure only helps in keeping track of the valence electrons.

Carbon monoxide proves it: C gets −1-1 and O +1+1, yet oxygen is far more electronegative and pulls the shared electrons towards itself. The real distribution is nearly balanced — CO has a dipole moment of only about 0.1 D.

The oxidation number makes the opposite extreme assumption: the more electronegative atom takes all the shared electrons.

Species Atom Formal charge (equal sharing) Oxidation number (all to the more electronegative atom)
CO\mathrm{CO} C −1-1 +2+2
CO\mathrm{CO} O +1+1 −2-2
NH4+\mathrm{NH_4^+} N +1+1 −3-3
H2O\mathrm{H_2O} O 00 −2-2
O3\mathrm{O_3} central O +1+1 00

Neither number is the true charge; the truth lies in between, described by bond polarity in Section 5.

Formal charge and resonance — a first look

The three resonance structures of carbonate share one pattern: 00 on C, 00 on one O, −1-1 on each of the other two. In the real ion all three C−O\mathrm{C{-}O} bonds are identical and each oxygen carries −23-\tfrac{2}{3}. Formal charge in a single structure is a snapshot; the hybrid averages the snapshots. Equal sharing among structures with identical formal charges is one of the important aspects of resonance developed in Section 4.

[JEE Main] Questions often show two or three Lewis structures for the same ion — cyanate OCN−\mathrm{OCN^-}, thiocyanate SCN−\mathrm{SCN^-}, azide N3−\mathrm{N_3^-} — and ask which is most stable. Compute every atom's formal charge in each, then apply the three rules in order. An option whose charges do not add up to the ion's charge is wrongly drawn and can be eliminated at once.

Limitations of the Octet Rule I — Incomplete Octets and Odd-Electron Molecules

The octet rule explains most organic compounds and works well for the second-period elements. But it is a rule of thumb, not a law of nature, and fails in three well-defined ways plus a few more general ones.

Key Point: The octet rule, though useful, is not universal. It applies mainly to the second-period elements. There are three types of exceptions: the incomplete octet of the central atom, odd-electron molecules, and the expanded octet.

Exception 1: the incomplete octet of the central atom

In some compounds the number of electrons surrounding the central atom is less than eight. This is especially the case with elements having fewer than four valence electrons — lithium, beryllium, boron and aluminium. They cannot bring enough electrons to build an octet by sharing.

Compound Central atom and its valence electrons Bonds formed Electrons around the central atom Short of an octet by
LiCl\mathrm{LiCl} Li, 1 1 2 6
BeH2\mathrm{BeH_2} Be, 2 2 4 4
BeCl2\mathrm{BeCl_2} Be, 2 2 4 4
BCl3\mathrm{BCl_3} B, 3 3 6 2
BF3\mathrm{BF_3} B, 3 3 6 2
AlCl3\mathrm{AlCl_3} Al, 3 3 6 2

In BeH2\mathrm{BeH_2}, H−Be−H\mathrm{H{-}Be{-}H}, beryllium contributes 2 electrons and each hydrogen 1, so the molecule has only 4 electrons, both shared pairs on beryllium — eight is unreachable. In BCl3\mathrm{BCl_3} boron shares three pairs with three chlorines for 6 electrons; each chlorine has its octet (one bond pair, three lone pairs) but boron sits two short. Same for BF3\mathrm{BF_3} and AlCl3\mathrm{AlCl_3}.

The deficiency decides chemistry. BF3\mathrm{BF_3} and AlCl3\mathrm{AlCl_3} are strong Lewis acids: the empty orbital on boron accepts an electron pair from a donor such as NH3\mathrm{NH_3}, forming F3B←NH3\mathrm{F_3B{\leftarrow}NH_3}. For the same reason BeCl2\mathrm{BeCl_2} and AlCl3\mathrm{AlCl_3} form chlorine-bridged dimers and chains in the solid state, the electron-poor metal atom borrowing lone pairs from neighbouring chlorines.

[Board] "Give two examples of molecules in which the central atom has an incomplete octet" — BeH2\mathrm{BeH_2} (4 electrons around Be) and BCl3\mathrm{BCl_3} (6 electrons around B). Always state the electron count.

Exception 2: odd-electron molecules

The octet rule wants electrons in pairs. A molecule with an odd total number of valence electrons cannot pair them all, so at least one atom is left with an odd, incomplete count.

Molecule Valence electron count Where the odd electron sits
NO\mathrm{NO}, nitric oxide 5+6=115 + 6 = 11 on N; N has 7 electrons around it, O has 8
NO2\mathrm{NO_2}, nitrogen dioxide 5+12=175 + 12 = 17 on N; N has 7 electrons around it
ClO2\mathrm{ClO_2}, chlorine dioxide 7+12=197 + 12 = 19 on Cl

Nitric oxide is drawn as N=O\mathrm{N{=}O} with two lone pairs on oxygen, one lone pair on nitrogen and one unpaired electron on nitrogen: 4+4+2+1=114 + 4 + 2 + 1 = 11, leaving nitrogen 7 electrons, not 8. In NO2\mathrm{NO_2}, O=N−O\mathrm{O{=}N{-}O} with the lone electron on nitrogen also gives nitrogen 7. No odd-electron structure can satisfy the octet rule for every atom.

The unpaired electron shows up experimentally: NO and NO2\mathrm{NO_2} are paramagnetic, attracted into a magnetic field, and are reactive free radicals. NO2\mathrm{NO_2} pairs its odd electrons by dimerising to colourless N2O4\mathrm{N_2O_4} at low temperature, which has an even count (34) and a proper Lewis structure.

Key Point: In molecules with an odd number of electrons, like NO and NO2\mathrm{NO_2}, the octet rule is not satisfied for all the atoms. Such molecules are paramagnetic and usually very reactive.

[NEET] To spot an odd-electron molecule, add the group numbers. Any odd total (11 for NO, 17 for NO2\mathrm{NO_2}, 19 for ClO2\mathrm{ClO_2}) breaks the octet rule automatically. Ions can be odd too: O2−\mathrm{O_2^-} has 13 valence electrons and O2+\mathrm{O_2^+} has 11.

Limitations of the Octet Rule II — The Expanded Octet

The third exception goes the other way: some central atoms have more than eight electrons around them.

Why third-period and heavier atoms can do it

Elements in and beyond the third period have, apart from the 3s3s and 3p3p orbitals, the 3d3d orbitals also available for bonding. In a number of their compounds there are more than eight valence electrons around the central atom. This is termed the expanded octet, and the octet rule does not apply in such cases. Second-period atoms (C, N, O, F) have only 2s2s and three 2p2p orbitals — four orbitals, eight electrons, no 2d2d. That is why nitrogen never forms NCl5\mathrm{NCl_5} although phosphorus forms PCl5\mathrm{PCl_5}.

Compound Central atom Bonds Lone pairs on central atom Electrons around central atom
PF5\mathrm{PF_5} P (period 3) 5 single 0 10
PCl5\mathrm{PCl_5} P 5 single 0 10
SF6\mathrm{SF_6} S (period 3) 6 single 0 12
H2SO4\mathrm{H_2SO_4} S 2 S=O\mathrm{S{=}O} + 2 S−OH\mathrm{S{-}OH} 0 12
SF4\mathrm{SF_4} S 4 single 1 10
ClF3\mathrm{ClF_3} Cl (period 3) 3 single 2 10
IF7\mathrm{IF_7} I (period 5) 7 single 0 14
XeF4\mathrm{XeF_4} Xe (period 5) 4 single 2 12

PF5\mathrm{PF_5}: phosphorus makes five bonds, so 5 bond pairs, 10 electrons. SF6\mathrm{SF_6}: six bond pairs, 12. IF7\mathrm{IF_7}: seven bond pairs, 14. In H2SO4\mathrm{H_2SO_4} sulphur is double-bonded to two oxygens and single-bonded to two OH\mathrm{OH} groups: 4+4+2+2=124 + 4 + 2 + 2 = 12.

Many coordination compounds also fall here — a metal ion accepting six electron pairs from six ligands, as in [Fe(CN)6]4−\mathrm{[Fe(CN)_6]^{4-}}, holds far more than an octet.

Octet rule exceptions gallery BeH2 BCl3 NO PF5 SF6 XeF4

The same element can obey the rule or break it

Sulphur also forms many compounds in which the octet rule is obeyed: in SCl2\mathrm{SCl_2} and H2S\mathrm{H_2S} it has two bonds and two lone pairs, an octet. But in SF4\mathrm{SF_4} it has 10 and in SF6\mathrm{SF_6} 12. Whether the octet expands depends on the partner: small, highly electronegative atoms like fluorine and oxygen coax a third-period atom into using more than four orbitals. Phosphorus is the same — an octet in PCl3\mathrm{PCl_3}, ten electrons in PCl5\mathrm{PCl_5}.

Expanded octet and formal charge: the sulphate case again

The strict-octet structure of SO42−\mathrm{SO_4^{2-}} (four single bonds) gives sulphur +2+2 and every oxygen −1-1. The expanded structure (two double bonds, 12 electrons on S) gives sulphur 00, two oxygens 00 and two oxygens −1-1. Smaller formal charges are the usual argument for drawing SO42−\mathrm{SO_4^{2-}}, H2SO4\mathrm{H_2SO_4}, PO43−\mathrm{PO_4^{3-}} and ClO4−\mathrm{ClO_4^-} with double bonds. Both are accepted in Board answers if the electron count is right; for a question on the expanded octet, use the double-bonded version and state "12 electrons around sulphur".

A quick way to classify any molecule

  1. Add up the valence electrons. Odd total means an odd-electron molecule — stop there.
  2. Draw the Lewis structure and count the electrons around the central atom.
  3. Fewer than 8 and the central atom is Li, Be, B or Al: incomplete octet.
  4. Exactly 8: obeys the octet rule.
  5. More than 8: expanded octet — the central atom must be from period 3 or below.
Molecule Valence electron total Electrons on central atom Category
BeH2\mathrm{BeH_2} 4 4 incomplete octet
BCl3\mathrm{BCl_3} 24 6 incomplete octet
CH4\mathrm{CH_4} 8 8 obeys
NO\mathrm{NO} 11 7 on N odd-electron
NO2\mathrm{NO_2} 17 7 on N odd-electron
SCl2\mathrm{SCl_2} 20 8 obeys
PF5\mathrm{PF_5} 40 10 expanded
SF6\mathrm{SF_6} 48 12 expanded
IF7\mathrm{IF_7} 56 14 expanded

[JEE/NEET] For "which of the following does not obey the octet rule?", memorise: incomplete — BeH2\mathrm{BeH_2}, BeCl2\mathrm{BeCl_2}, BF3\mathrm{BF_3}, BCl3\mathrm{BCl_3}, AlCl3\mathrm{AlCl_3}; odd — NO\mathrm{NO}, NO2\mathrm{NO_2}, ClO2\mathrm{ClO_2}; expanded — PCl5\mathrm{PCl_5}, PF5\mathrm{PF_5}, SF4\mathrm{SF_4}, SF6\mathrm{SF_6}, ClF3\mathrm{ClF_3}, IF7\mathrm{IF_7}, XeF2\mathrm{XeF_2}, XeF4\mathrm{XeF_4}, H2SO4\mathrm{H_2SO_4}. Decoys that do obey: CO2\mathrm{CO_2}, NH3\mathrm{NH_3}, H2O\mathrm{H_2O}, SCl2\mathrm{SCl_2}, PCl3\mathrm{PCl_3}, CCl4\mathrm{CCl_4}, NH4+\mathrm{NH_4^+}, CO32−\mathrm{CO_3^{2-}}.

Other Drawbacks of the Octet Theory — and Why We Still Teach It

Beyond the three structural exceptions, the octet rule has three deeper failings.

Drawback 1: noble gases are not inert after all

The rule was built on the chemical inertness of the noble gases — eight outer electrons as a configuration nothing wants to disturb. Yet some noble gases, xenon and krypton in particular, do combine with fluorine and oxygen to form stable compounds: XeF2\mathrm{XeF_2}, XeF4\mathrm{XeF_4}, XeF6\mathrm{XeF_6}, XeOF2\mathrm{XeOF_2}, XeO3\mathrm{XeO_3} and KrF2\mathrm{KrF_2}.

Compound Bonds on the noble-gas atom Lone pairs on it Electrons around it
XeF2\mathrm{XeF_2} 2 3 10
KrF2\mathrm{KrF_2} 2 3 10
XeF4\mathrm{XeF_4} 4 2 12
XeF6\mathrm{XeF_6} 6 1 14
XeOF2\mathrm{XeOF_2} 2 Xe−F\mathrm{Xe{-}F} + 1 Xe=O\mathrm{Xe{=}O} 2 12

Xenon starts with a perfect octet and gives it up to make these compounds. So the octet cannot be the fundamental reason for stability; it is a pattern that holds for the light elements because they have exactly four valence orbitals to fill. The real explanation is the energy of the whole molecule, which needs valence bond theory and molecular orbital theory (Sections 7 to 10).

Drawback 2: the rule says nothing about shape

The Lewis structure of water, H−O−H\mathrm{H{-}O{-}H} with two lone pairs, is a flat drawing. It does not tell you the real molecule is bent with an angle of 104.5∘104.5^\circ, nor that carbon dioxide is linear, nor that methane is a tetrahedron with 109.5∘109.5^\circ angles. The octet theory does not account for shape at all. That job belongs to VSEPR theory (Section 6) and hybridisation (Sections 8 and 9), which start from the Lewis structure and add ideas the octet rule never had.

Drawback 3: the rule is silent about energy and relative stability

The octet rule cannot tell you that N2\mathrm{N_2} is far more stable than F2\mathrm{F_2}, or that O2\mathrm{O_2} is paramagnetic, or why the H−H\mathrm{H{-}H} bond has an enthalpy of 435.8 kJ/mol while N≡N\mathrm{N{\equiv}N} has 946.0 kJ/mol. It does not explain the relative stability of molecules, being totally silent about the energy of a molecule. Two molecules can both satisfy the octet and differ enormously in stability.

Key Point: Other drawbacks of the octet theory: (i) it is based on the inertness of noble gases, yet xenon and krypton form compounds like XeF2\mathrm{XeF_2}, KrF2\mathrm{KrF_2} and XeOF2\mathrm{XeOF_2}; (ii) it does not account for the shape of molecules; (iii) it does not explain the relative stability of molecules and is silent about their energy.

The complete answer on definition, significance and limitations

Definition. Atoms of different elements combine with each other by transferring or sharing valence electrons so as to have eight electrons in their outermost shell, the configuration of the nearest noble gas.

Significance.

  • Explains the formation of ionic compounds (NaCl\mathrm{NaCl}, CaF2\mathrm{CaF_2}) by electron transfer and of covalent molecules (Cl2\mathrm{Cl_2}, H2O\mathrm{H_2O}, CO2\mathrm{CO_2}, N2\mathrm{N_2}) by electron sharing.
  • Gives a simple recipe for writing Lewis structures, including multiple bonds, for most compounds of second-period elements and nearly all organic compounds.
  • Predicts the common valences of elements (for a non-metal, 8 minus its number of valence electrons).

Limitations.

  1. Incomplete octet of the central atom — LiCl\mathrm{LiCl}, BeH2\mathrm{BeH_2}, BCl3\mathrm{BCl_3}, AlCl3\mathrm{AlCl_3} (Li, Be, B have only 1, 2, 3 valence electrons).
  2. Odd-electron molecules — NO\mathrm{NO} (11 electrons), NO2\mathrm{NO_2} (17 electrons).
  3. Expanded octet — PF5\mathrm{PF_5} (10), SF6\mathrm{SF_6} (12), H2SO4\mathrm{H_2SO_4} (12), IF7\mathrm{IF_7} (14), using d orbitals of period-3 and heavier atoms.
  4. Noble gases such as xenon and krypton form compounds (XeF2\mathrm{XeF_2}, KrF2\mathrm{KrF_2}, XeOF2\mathrm{XeOF_2}), although the rule is based on their inertness.
  5. It does not account for the shape of molecules.
  6. It does not explain the relative stability or the energy of molecules.

Why the rule is still worth keeping

It is right far more often than it is wrong, and it is the starting point of every later theory. VSEPR needs a Lewis structure to count electron pairs; hybridisation needs the bonds and lone pairs around an atom. Even the molecules that break the rule are described as octet plus or octet minus.

[Board] When a question asks for limitations, give both kinds: the three structural exceptions with an example and an electron count each, and the three general drawbacks (noble-gas compounds, shape, energy). Six points, six marks.

Solved Examples

Question 1: Formal charges in ozone

Draw the Lewis structure of ozone and assign a formal charge to each oxygen atom. Show that the charges add up correctly.

Answer:

Three oxygens, 6 each, gives 18 valence electrons.

The structure is O(2)=O(1)−O(3)\mathrm{O(2){=}O(1){-}O(3)}: central O(1) has one lone pair, the double-bonded end O(2) two, the single-bonded end O(3) three. That is 6 bonding plus 12 lone-pair electrons, 18 in all, every octet complete.

Central O(1): free O has 6 valence electrons; here it owns its lone pair (2) and half of its 6 bonding electrons (3), so 6−2−3=+16 - 2 - 3 = +1.

End O(2): two lone pairs (4), half of 4 bonding electrons is 2, so 6−4−2=06 - 4 - 2 = 0.

End O(3): three lone pairs (6), half of 2 bonding electrons is 1, so 6−6−1=−16 - 6 - 1 = -1.

Check: +1+0−1=0+1 + 0 - 1 = 0, the charge on a neutral molecule.

Ans: Central O +1+1; double-bonded end O 00; single-bonded end O −1-1; total zero.

Watch out: In a neutral molecule the formal charges must sum to zero. If they don't, recount the lone pairs.

Question 2: Formal charges in the carbonate ion

Assign formal charges to all atoms in one resonance structure of CO32−\mathrm{CO_3^{2-}} and comment on how this connects with resonance.

Answer:

Electrons: C 4, three O 18, plus 2 for the charge, so 24.

Carbon sits in the middle with one C=O\mathrm{C{=}O} and two C−O\mathrm{C{-}O}, no lone pair on carbon, two lone pairs on the double-bonded oxygen and three on each single-bonded one. Bonding electrons 8, lone-pair electrons 4+6+6=164 + 6 + 6 = 16, total 24.

Carbon, four bonds and no lone pair: 4−0−4=04 - 0 - 4 = 0. Double-bonded oxygen: 6−4−2=06 - 4 - 2 = 0. Each single-bonded oxygen: 6−6−1=−16 - 6 - 1 = -1. Check: 0+0−1−1=−20 + 0 - 1 - 1 = -2, matching the ion's charge.

Any of the three oxygens could be the double-bonded one, so three equivalent structures share this pattern. In the real ion the three bonds are identical and the −2-2 is spread evenly, −23-\tfrac{2}{3} per oxygen — which is why the ion is a resonance hybrid, not any single drawing.

Ans: C 00; the C=O\mathrm{C{=}O} oxygen 00; each C−O\mathrm{C{-}O} oxygen −1-1; total −2-2. The three resonance structures share this pattern, and the hybrid averages it to −23-\tfrac{2}{3} per oxygen.

Watch out: Formal charges are worked out on one resonance structure at a time; the hybrid averages them.

Question 3: Formal charges in the nitrite ion

Write the Lewis structure of NO2−\mathrm{NO_2^-} and calculate the formal charge on each atom.

Answer:

Electrons: N 5, two O 12, plus 1 for the charge, so 18.

The structure is O=N−O\mathrm{O{=}N{-}O} with a lone pair on nitrogen. Bonding electrons 6; lone pairs one on N (2), two on the double-bonded O (4), three on the single-bonded O (6), so 6+12=186 + 12 = 18. Every atom has an octet.

Nitrogen: 5−2−3=05 - 2 - 3 = 0. Double-bonded oxygen: 6−4−2=06 - 4 - 2 = 0. Single-bonded oxygen: 6−6−1=−16 - 6 - 1 = -1. Check: 0+0−1=−10 + 0 - 1 = -1.

Ans: N 00, N=O\mathrm{N{=}O} oxygen 00, N−O\mathrm{N{-}O} oxygen −1-1.

Watch out: Nitrogen with three bonds and one lone pair is always neutral — the same pattern as in NH3\mathrm{NH_3}.

Question 4: Formal charges in NH4+\mathrm{NH_4^+} and SO42−\mathrm{SO_4^{2-}}

Find the formal charge on every atom in (a) the ammonium ion, and (b) the sulphate ion drawn with four single bonds. Then redraw the sulphate ion with two S=O\mathrm{S{=}O} bonds and compare.

Answer:

Ammonium: electrons 5+4−1=85 + 4 - 1 = 8, four N−H\mathrm{N{-}H} bonds, no lone pair on N. Nitrogen: 5−0−4=+15 - 0 - 4 = +1. Each hydrogen: 1−0−1=01 - 0 - 1 = 0. Sum +1+1. The charge is formally on nitrogen: it used its own lone pair for the fourth bond and now owns only one electron of that pair.

Sulphate, octet structure: electrons 6+24+2=326 + 24 + 2 = 32, four S−O\mathrm{S{-}O} single bonds (8 electrons) and three lone pairs on each oxygen (24). Sulphur: 6−0−4=+26 - 0 - 4 = +2. Each oxygen: 6−6−1=−16 - 6 - 1 = -1. Sum +2−4=−2+2 - 4 = -2. Correct, but the charges are large.

Sulphate, expanded structure: two S=O\mathrm{S{=}O} and two S−O\mathrm{S{-}O}, 12 electrons around sulphur. Sulphur: 6−0−6=06 - 0 - 6 = 0. Each double-bonded O: 6−4−2=06 - 4 - 2 = 0. Each single-bonded O: −1-1. Sum −2-2.

The expanded structure has the smaller charges, largest magnitude 1 instead of 2. Sulphur is a third-period atom with d orbitals available and can hold 12 electrons, so it is usually preferred.

Ans: (a) N +1+1, each H 00. (b) Octet form: S +2+2, each O −1-1; expanded form: S 00, two O 00, two O −1-1. The expanded form is preferred for its smaller formal charges.

Watch out: When a third-period central atom carries a large positive formal charge in the octet structure, turning lone pairs on oxygen into double bonds usually brings the charges down.

Question 5: Carbon monoxide — the surprising charges

Write the Lewis structure of CO and compute the formal charges. Why do they look "the wrong way round", and what does this tell you about formal charge?

Answer:

C 4 plus O 6 gives 10 electrons. With a single or double bond one atom is short of an octet, so a triple bond is needed: C≡O\mathrm{C{\equiv}O} with one lone pair on carbon and one on oxygen, 6+2+2=106 + 2 + 2 = 10, both octets complete.

Carbon: 4−2−3=−14 - 2 - 3 = -1. Oxygen: 6−2−3=+16 - 2 - 3 = +1. Sum zero.

Oxygen is much more electronegative, so I would expect the negative end to be oxygen. But formal charge assumes every bond is shared exactly equally and ignores electronegativity. Oxygen contributed two of the three shared pairs from its own lone pairs, so on an equal-share count it has lost an electron (+1+1) and carbon gained one (−1-1).

So formal charge is a bookkeeping device, not a measure of real charge. The molecule has only a small dipole moment, about 0.1 D, because electronegativity pulls the shared electrons back towards oxygen and almost cancels the formal-charge picture.

Ans: C −1-1, O +1+1. The charges reflect equal sharing of bond electrons, not actual charge separation; formal charge is a counting tool only.

Watch out: Formal charge and electronegativity can point in opposite directions. When they do, the real charge distribution is somewhere in between.

Question 6: HCN or HNC — which structure is better?

Both H−C≡N\mathrm{H{-}C{\equiv}N} and H−N≡C\mathrm{H{-}N{\equiv}C} can be drawn with 10 electrons and complete octets. Use formal charges to decide which represents the more stable molecule.

Answer:

Structure A, H−C≡N\mathrm{H{-}C{\equiv}N} with the lone pair on N. H: 1−0−1=01 - 0 - 1 = 0. C, four bonds and no lone pair: 4−0−4=04 - 0 - 4 = 0. N, three bonds and one lone pair: 5−2−3=05 - 2 - 3 = 0. All zero.

Structure B, H−N≡C\mathrm{H{-}N{\equiv}C} with the lone pair on C. H: 00. N, four bonds and no lone pair: 5−0−4=+15 - 0 - 4 = +1. C, three bonds and one lone pair: 4−2−3=−14 - 2 - 3 = -1. Sum zero, but with a separation of charge.

Smaller formal charges mean lower energy. A has none; B has +1+1 and −1-1, and its −1-1 sits on carbon, the less electronegative atom, which is worse still. HCN is the well-known stable compound and HNC a rare, high-energy isomer, so formal charge predicts correctly.

Ans: H−C≡N\mathrm{H{-}C{\equiv}N}, with all formal charges zero, is the preferred structure.

Watch out: Zero everywhere beats any charge separation; and if there must be a negative charge, it belongs on the more electronegative atom.

Question 7: The best Lewis structure of N2O\mathrm{N_2O}

Dinitrogen oxide has the skeleton N−N−O\mathrm{N{-}N{-}O}. Draw the three possible octet structures, assign formal charges and pick the most important one.

Answer:

The count is 5+5+6=165 + 5 + 6 = 16 electrons. The skeleton needs at least two bonds (4 electrons), leaving 12 for lone pairs and multiple bonds. All three atoms get an octet with four bonds in total: 8 bonding and 8 lone-pair electrons.

Structure I, N≡N−O\mathrm{N{\equiv}N{-}O}, one lone pair on the end N, three on O. End N: 5−2−3=05 - 2 - 3 = 0. Central N, four bonds and no lone pair: 5−0−4=+15 - 0 - 4 = +1. O: 6−6−1=−16 - 6 - 1 = -1. Sum 00.

Structure II, N=N=O\mathrm{N{=}N{=}O}, two lone pairs on the end N, two on O. End N: 5−4−2=−15 - 4 - 2 = -1. Central N: +1+1. O: 6−4−2=06 - 4 - 2 = 0. Sum 00.

Structure III, N−N≡O\mathrm{N{-}N{\equiv}O}, three lone pairs on the end N, one on O. End N: 5−6−1=−25 - 6 - 1 = -2. Central N: +1+1. O: 6−2−3=+16 - 2 - 3 = +1. Sum 00.

III has a −2-2 and puts +1+1 on oxygen, the most electronegative atom, so I reject it. I and II have charges of magnitude 1 only; in I the −1-1 is on oxygen, in II on nitrogen, so I is the better single structure. II remains a significant contributor, and the real molecule is a hybrid of mainly I and II.

Ans: N≡N−O\mathrm{N{\equiv}N{-}O} (end N 00, central N +1+1, O −1-1) is the most important structure; N=N=O\mathrm{N{=}N{=}O} is the second contributor; N−N≡O\mathrm{N{-}N{\equiv}O} is negligible.

Watch out: Write every candidate, compute every charge, then apply the rules in order: smallest magnitudes, negative on the electronegative atom, no adjacent like charges.

Question 8: Cyanate and thiocyanate ions

For the cyanate ion OCN−\mathrm{OCN^-} and the thiocyanate ion SCN−\mathrm{SCN^-} (carbon central in both), draw the octet structures with a double-double and a single-triple arrangement, assign formal charges, and say which structure is most important for each ion.

Answer:

Cyanate has 16 electrons and three octet structures with carbon in the middle:

  • O=C=N\mathrm{O{=}C{=}N}, two lone pairs on O, two on N: O 6−4−2=06 - 4 - 2 = 0; C 00; N 5−4−2=−15 - 4 - 2 = -1.
  • O−C≡N\mathrm{O{-}C{\equiv}N}, three lone pairs on O, one on N: O 6−6−1=−16 - 6 - 1 = -1; C 00; N 5−2−3=05 - 2 - 3 = 0.
  • O≡C−N\mathrm{O{\equiv}C{-}N}, one lone pair on O, three on N: O 6−2−3=+16 - 2 - 3 = +1; C 00; N 5−6−1=−25 - 6 - 1 = -2.

Each sums to −1-1. The third is out, for its −2-2 and its +1+1 on oxygen. The other two are reasonable, but the second puts the −1-1 on oxygen, the most electronegative atom, so O−C≡N\mathrm{O{-}C{\equiv}N} is the most important contributor, with O=C=N\mathrm{O{=}C{=}N} next.

Thiocyanate also has 16 electrons and the same three patterns with S for O:

  • S=C=N\mathrm{S{=}C{=}N}: S 00, C 00, N −1-1.
  • S−C≡N\mathrm{S{-}C{\equiv}N}: S −1-1, C 00, N 00.
  • S≡C−N\mathrm{S{\equiv}C{-}N}: S +1+1, C 00, N −2-2 (rejected).

Here the electronegativity order is reversed: nitrogen (about 3.0) beats sulphur (about 2.5). So S=C=N\mathrm{S{=}C{=}N}, with −1-1 on nitrogen, leads, and S−C≡N\mathrm{S{-}C{\equiv}N} is close behind. Thiocyanate binds metal ions through either sulphur or nitrogen because both ends carry appreciable negative character in the hybrid.

Ans: OCN−\mathrm{OCN^-}: O−C≡N\mathrm{O{-}C{\equiv}N} (charge on O) is most important. SCN−\mathrm{SCN^-}: S=C=N\mathrm{S{=}C{=}N} (charge on N) is most important. In both, the structure with a −2-2 is negligible.

Watch out: Swapping O for S flips which end is more electronegative and so flips the preferred structure. Only the electronegativities changed.

Question 9: Sorting molecules by their octet status

Classify each of the following as (i) obeying the octet rule, (ii) incomplete octet of the central atom, (iii) odd-electron molecule, or (iv) expanded octet: BeCl2\mathrm{BeCl_2}, CCl4\mathrm{CCl_4}, NO\mathrm{NO}, PCl5\mathrm{PCl_5}, BF3\mathrm{BF_3}, H2O\mathrm{H_2O}, SF6\mathrm{SF_6}, NO2\mathrm{NO_2}, SCl2\mathrm{SCl_2}, XeF2\mathrm{XeF_2}.

Answer:

First I look for odd electron totals. NO\mathrm{NO}: 5+6=115 + 6 = 11, odd. NO2\mathrm{NO_2}: 5+12=175 + 12 = 17, odd. Both are odd-electron molecules; no drawing gives every atom an octet.

Then I count electrons on the central atom for the rest:

  • BeCl2\mathrm{BeCl_2}: Be forms two bonds, 4 electrons — incomplete.
  • BF3\mathrm{BF_3}: B forms three bonds, 6 electrons — incomplete.
  • CCl4\mathrm{CCl_4}: C forms four bonds, 8 — obeys.
  • H2O\mathrm{H_2O}: O has two bonds and two lone pairs, 8 — obeys.
  • SCl2\mathrm{SCl_2}: S has two bonds and two lone pairs, 8 — obeys.
  • PCl5\mathrm{PCl_5}: P forms five bonds, 10 — expanded.
  • SF6\mathrm{SF_6}: S forms six bonds, 12 — expanded.
  • XeF2\mathrm{XeF_2}: Xe has two bonds and three lone pairs, 10 — expanded.

As a check, every expanded-octet central atom (P, S, Xe) is from period 3 or below, where d orbitals are available, and each incomplete one (Be, B) has fewer than four valence electrons.

Ans: (i) Obey: CCl4\mathrm{CCl_4}, H2O\mathrm{H_2O}, SCl2\mathrm{SCl_2}. (ii) Incomplete: BeCl2\mathrm{BeCl_2} (4), BF3\mathrm{BF_3} (6). (iii) Odd-electron: NO\mathrm{NO} (11), NO2\mathrm{NO_2} (17). (iv) Expanded: PCl5\mathrm{PCl_5} (10), SF6\mathrm{SF_6} (12), XeF2\mathrm{XeF_2} (10).

Watch out: Odd total first, then count the central atom. Sulphur appears in both the obeys and the expanded lists — the rule depends on the compound, not just the element.

Question 10: Electron counts around the central atom

State the number of electrons around the central atom in PF5\mathrm{PF_5}, SF6\mathrm{SF_6}, H2SO4\mathrm{H_2SO_4}, IF7\mathrm{IF_7}, XeF4\mathrm{XeF_4}, BCl3\mathrm{BCl_3} and NO\mathrm{NO}, and explain why phosphorus can form PF5\mathrm{PF_5} while nitrogen cannot form NF5\mathrm{NF_5}.

Answer:

I count bond pairs and lone pairs on the central atom, each pair being 2 electrons.

  • PF5\mathrm{PF_5}: 5 bond pairs, 0 lone pairs: 10.
  • SF6\mathrm{SF_6}: 6 bond pairs, 0 lone pairs: 12.
  • H2SO4\mathrm{H_2SO_4}: two S=O\mathrm{S{=}O} (4 pairs) plus two S−OH\mathrm{S{-}OH} (2 pairs), no lone pair: 12.
  • IF7\mathrm{IF_7}: 7 bond pairs: 14.
  • XeF4\mathrm{XeF_4}: 4 bond pairs plus 2 lone pairs: 12.
  • BCl3\mathrm{BCl_3}: 3 bond pairs, no lone pair: 6.
  • NO\mathrm{NO}: on nitrogen, one double bond (4) plus one lone pair (2) plus one unpaired electron (1): 7.

Phosphorus is in period 3: its valence shell has 3s3s, three 3p3p and five 3d3d orbitals, so it takes more than four electron pairs. Nitrogen is in period 2, with only 2s2s and three 2p2p — four orbitals, eight electrons at most. Five N−F\mathrm{N{-}F} bonds need a fifth orbital it does not have, so nitrogen stops at NF3\mathrm{NF_3} (three bonds, one lone pair, 8 electrons) while phosphorus forms both PF3\mathrm{PF_3} and PF5\mathrm{PF_5}.

Ans: PF5\mathrm{PF_5} 10, SF6\mathrm{SF_6} 12, H2SO4\mathrm{H_2SO_4} 12, IF7\mathrm{IF_7} 14, XeF4\mathrm{XeF_4} 12, BCl3\mathrm{BCl_3} 6, NO\mathrm{NO} 7 (on N). Nitrogen has no d orbitals in its valence shell, so it cannot expand beyond an octet; phosphorus has 3d3d orbitals available.

Watch out: Period 2 stops at 8. Any expanded octet you are shown has a central atom from period 3 or heavier.

Question 11: Define the octet rule, and write its significance and limitations

Answer:

Atoms combine, by transferring electrons from one to another or by sharing electrons, so that each atom ends up with eight electrons in its outermost shell — the stable configuration of the nearest noble gas. That is the octet rule.

Significance: it explains why sodium gives one electron to chlorine to make NaCl\mathrm{NaCl} (both ions reach an octet), why two chlorine atoms share one pair in Cl2\mathrm{Cl_2}, why carbon shares four pairs in CH4\mathrm{CH_4}, and why N2\mathrm{N_2} needs a triple bond. It gives a method for writing Lewis structures, works for almost all organic compounds and most second-period compounds, and predicts the usual valences (for a non-metal, 8 minus its valence electrons).

Structural exceptions:

  • Incomplete octet: LiCl\mathrm{LiCl} (2 electrons on Li), BeH2\mathrm{BeH_2} (4 on Be), BCl3\mathrm{BCl_3} and AlCl3\mathrm{AlCl_3} (6 on B or Al). Elements with fewer than four valence electrons cannot reach eight by sharing.
  • Odd-electron molecules: NO\mathrm{NO} (11 electrons) and NO2\mathrm{NO_2} (17). An odd number cannot all be paired, so some atom is left short.
  • Expanded octet: PF5\mathrm{PF_5} (10 on P), SF6\mathrm{SF_6} (12 on S), H2SO4\mathrm{H_2SO_4} (12 on S), IF7\mathrm{IF_7} (14 on I). Third-period and heavier atoms have d orbitals and can hold more than eight.

General drawbacks: the rule rests on the inertness of noble gases, yet xenon and krypton form XeF2\mathrm{XeF_2}, XeF4\mathrm{XeF_4}, XeF6\mathrm{XeF_6}, XeOF2\mathrm{XeOF_2} and KrF2\mathrm{KrF_2}; it says nothing about the shape of a molecule; and it says nothing about the energy or relative stability of molecules.

Ans: Octet rule: atoms transfer or share electrons to attain eight electrons in the valence shell. Significance: explains ionic and covalent bond formation, Lewis structures and valence. Limitations: incomplete octet (BeH2\mathrm{BeH_2}, BCl3\mathrm{BCl_3}), odd-electron molecules (NO\mathrm{NO}, NO2\mathrm{NO_2}), expanded octet (PF5\mathrm{PF_5}, SF6\mathrm{SF_6}, H2SO4\mathrm{H_2SO_4}), noble-gas compounds (XeF2\mathrm{XeF_2}, KrF2\mathrm{KrF_2}), no information on shape, and no information on stability or energy.

Watch out: For a five- or six-mark answer, give a one-line definition, two or three significance points, and all six limitations with one example each.

Question 12: Why xenon fluorides embarrass the octet rule

Xenon already has eight valence electrons, yet it forms XeF2\mathrm{XeF_2}, XeF4\mathrm{XeF_4} and XeF6\mathrm{XeF_6}. Count the electrons around xenon in each, and explain what this says about the octet rule as an explanation of stability.

Answer:

XeF2\mathrm{XeF_2}: 2 bond pairs plus 3 lone pairs, 10 electrons. XeF4\mathrm{XeF_4}: 4 bond pairs plus 2 lone pairs, 12. XeF6\mathrm{XeF_6}: 6 bond pairs plus 1 lone pair, 14. Each gives xenon more than an octet. Totals check out for XeF2\mathrm{XeF_2}: 8+14=228 + 14 = 22 electrons — 4 bonding, 6 on Xe, 12 on the fluorines.

The octet rule was built on the observation that noble gases do not react, explaining that inertness by saying eight electrons is the arrangement atoms strive for. Xenon starts with exactly that arrangement and still reacts with fluorine, giving up its perfect octet to hold 10, 12 or 14 electrons.

So an octet is not the reason atoms are stable. It is a pattern that works for period-2 elements because they have four valence orbitals, no more. What decides whether a molecule forms is energy: xenon fluorides form because the Xe−F\mathrm{Xe{-}F} bonds release enough energy to beat separate Xe\mathrm{Xe} and F2\mathrm{F_2}. The octet rule cannot do that calculation; it says nothing about energy, and nothing about why XeF2\mathrm{XeF_2} is linear and XeF4\mathrm{XeF_4} square planar.

Helium, neon and argon really are inert, being too small and holding their electrons too tightly. Xenon and krypton are larger, with loosely held outer electrons and empty d orbitals nearby, so fluorine and oxygen can bond to them.

Ans: 10, 12 and 14 electrons around Xe in XeF2\mathrm{XeF_2}, XeF4\mathrm{XeF_4} and XeF6\mathrm{XeF_6}. Their existence shows that having an octet is not the fundamental reason for stability, and that the octet rule is silent about the energy, relative stability and shape of molecules.

Watch out: An octet is not the cause of stability, only a common pattern.