In the late 19th century it was known that coordination compounds (formerly called “molecular compounds”) were formed by the combination of atoms or molecules in such a manner that the valencies of the atoms involved apparently became satisfied. In 1893, Alfred Werner showed that the number of atoms or groups associated with a central atom (the “co-ordination number”) is often 4 or 6; other coordination numbers up to a maximum of 8 occur, but less frequently. In 1904 Richard Abegg formulated what is now known as Abegg's rule, which states that the difference between the maximum positive and negative valences of an element is frequently eight. This rule was used later in 1916 when Gilbert N. Lewis formulated the “octet rule” in his cubical atom theory.
Overview
In short, an element's valence shell is full and most stable when it contains eight electrons, corresponding to an s2p6electron configuration. This stability is the reason that the noble gases are so unreactive. Note that a "full shell" means that there are the eight electrons in the valence shell when the next shell starts filling, even though higher subshells (d, f, etc.) have not been filled. There can be at most eight valence electrons in a ground-state atom because p subshells are always followed by the s subshell of the next shell. This means that once there are 8 valence electrons (when the p subshell is filled), the next additional electron goes into the next shell, which then becomes the valence shell.
A consequence of the octet rule is that atoms generally react by gaining, losing, or sharing electrons in order to achieve a complete octet of valence electrons. Reaction of atoms occurs primarily in two ways: ionically and covalently.
Some of the atoms for which the octet rule are most useful are:
The duet rule of the first shell - the noble gas helium has two electrons in its outer shell, which is very stable. (Since there is no 1p subshell, 1s is followed immediately by 2s, and thus shell 1 can only have at most 2 valence electrons). Hydrogen only needs one additional electron to attain this stable configuration, while lithium needs to lose one.
Trivalent boron compounds such as BF3 have only 6 electrons in the valence shell, as do some reactive species such as carbenes. These molecules often react so as to complete their octet: trivalent boron compounds are well known as Lewis acids which form a fourth bond with a Lewis base, and carbenes are even more reactive.