Octet rule
Overview
 
The octet rule is a chemical
Chemistry
Chemistry is the science of matter, especially its chemical reactions, but also its composition, structure and properties. Chemistry is concerned with atoms and their interactions with other atoms, and particularly with the properties of chemical bonds....

 rule of thumb
Rule of thumb
A rule of thumb is a principle with broad application that is not intended to be strictly accurate or reliable for every situation. It is an easily learned and easily applied procedure for approximately calculating or recalling some value, or for making some determination...

 that states that atoms of low (<20) atomic number tend to combine in such a way that they each have eight electrons in their valence shells, giving them the same electronic configuration as a noble gas
Noble gas
The noble gases are a group of chemical elements with very similar properties: under standard conditions, they are all odorless, colorless, monatomic gases, with very low chemical reactivity...

. The rule is applicable to the main-group elements, especially carbon
Carbon
Carbon is the chemical element with symbol C and atomic number 6. As a member of group 14 on the periodic table, it is nonmetallic and tetravalent—making four electrons available to form covalent chemical bonds...

, nitrogen
Nitrogen
Nitrogen is a chemical element that has the symbol N, atomic number of 7 and atomic mass 14.00674 u. Elemental nitrogen is a colorless, odorless, tasteless, and mostly inert diatomic gas at standard conditions, constituting 78.08% by volume of Earth's atmosphere...

, oxygen
Oxygen
Oxygen is the element with atomic number 8 and represented by the symbol O. Its name derives from the Greek roots ὀξύς and -γενής , because at the time of naming, it was mistakenly thought that all acids required oxygen in their composition...

, and the halogens, but also to metals such as sodium
Sodium
Sodium is a chemical element with the symbol Na and atomic number 11. It is a soft, silvery-white, highly reactive metal and is a member of the alkali metals; its only stable isotope is 23Na. It is an abundant element that exists in numerous minerals, most commonly as sodium chloride...

 or magnesium
Magnesium
Magnesium is a chemical element with the symbol Mg, atomic number 12, and common oxidation number +2. It is an alkaline earth metal and the eighth most abundant element in the Earth's crust and ninth in the known universe as a whole...

.

The valence electrons can be counted using a Lewis electron dot diagram
Lewis structure
Lewis structures are diagrams that show the bonding between atoms of a molecule and the lone pairs of electrons that may exist in the molecule. A Lewis structure can be drawn for any covalently bonded molecule, as well as coordination compounds...

 as shown at right for carbon dioxide.
Discussions
 
x
OK