Electron counting
Electron counting is a formalism used for classifying compounds and for explaining or predicting electronic structure and bonding. Many rules in chemistry rely on electron-counting:
- Octet rule for main group elements, especially the lighter ones such as carbon, nitrogen, and oxygen,
- Eighteen electron rule in inorganic chemistry and organometallic chemistry of transition metals,
- Polyhedral skeletal electron pair theory for cluster compounds, including transition metals and main group elements such as boron including Wade's rules for polyhedral cluster compounds, including transition metals and main group elements and mixtures thereof.
Atoms that do not obey their rule are called "electron-deficient" when they have too few electrons to achieve a noble gas configuration, or "hypervalent" when they have too many electrons.  Since these compounds tend to be more reactive than compounds that obey their rule, electron counting is an important tool for identifying the reactivity of molecules.

# Counting rules
Two styles of electron counting are popular and both give the same result. The neutral counting approach assumes the molecule or fragment being studied consists of purely covalent bonds. It is usually considered easier especially for low-valent transition metals. The "ionic counting" approach assumes purely ionic bonds between atoms. It rewards the user with a knowledge of oxidation states, which can be valuable. One can check one's calculation by counting employing both approaches, though it is important to be aware that most chemical species exist between the purely covalent and ionic extremes.

## Neutral counting
- Locate the central atom on the periodic table and determine the number of its valence electrons. One counts valence electrons for main group elements differently from transition metals.
- Add one for every halide or other anionic ligand which binds to the central through a sigma bond.
- Add two for every lone pair bonding to the metal (e.g. each Lewis base binds with a lone pair). Unsaturated hydrocarbons such as alkenes and alkynes are considered Lewis bases. Similarly Lewis and Bronsted acids (protons) contribute nothing.
- Add one for each homoelement bond.
- Add one for each negative charge, and subtract one for each positive charge.

## Ionic counting
- Calculate the number of electrons of the element, assuming an oxidation state
- Add two for every halide or other anionic ligand which binds to the metal through a sigma bond.
- Add two for every lone pair bonding to the metal (e.g. each phosphine ligand can bind with a lone pair). Similarly Lewis and Bronsted acids (protons) contribute nothing.
- For unsaturated ligands such as alkenes, count the number of carbon atoms binding to the metal. Each carbon atom provides one electron.

# Electrons donated by common fragments

## "Special cases"
The numbers of electrons "donated" by some ligands depends on the geometry of the metal-ligand ensemble.  Perhaps the most famous example of this complication is the M-NO entity.  When this grouping is linear, the NO ligand is considered to be a three-electron ligand.  When the M-NO subunit is strongly bent at N, the NO is treated as a pseudohalide and is thus a one electron (in the neutral counting approach).  The situation is not very different from the -3 vs. -1 allyl.  Another unusual ligand from the electron counting perspective is sulfur dioxide.

# Examples of electron counting
- CH4, for the central C
- H2S, for the central S
- SCl2, for the central S
- SF6, for the central S
- TiCl4, for the central Ti
- Fe(CO)5
- Ferrocene, (C5H5)2Fe, for the central Fe:
Please Note: These examples show the methods of electron counting, they are a formalism, and don't have anything to do with real life chemical transformations.  Most of the 'fragments' mentioned above do not exist as such; they cannot be kept in a bottle: e.g. the neutral C, the tetraanionic C, the neutral Ti, and the tetracationic Ti are not free species, they are always bound to something, for neutral C, it is commonly found in graphite, charcoal, diamond (sharing electrons with the neighboring carbons), as for Ti which can be found as its metal (where it shares its electrons with neighboring Ti atoms!), C4- and Ti4+ 'exist' only with appropriate counterions (with which they probably share electrons). So these formalisms are only used to predict stabilities or properties of compounds!