What is the octet rule?

Flexi Says:
American chemist Gilbert Lewis (1875-1946) used this observation to explain the types of ions and molecules that are formed by other elements. He called his explanation the octet rule. The octet rule states that atoms tend to form compounds in ways that give them eight valence electrons and thus the electron configuration of a noble gas. An exception to an octet of electrons is in the case of the first noble gas, helium, which only has two valence electrons. This primarily affects the element hydrogen, which forms stable compounds by achieving two valence electrons. Lithium, an alkali metal with three electrons, is also an exception to the octet rule. Lithium tends to lose one electron to take on the electron configuration of the nearest noble gas, helium, leaving it with two valence electrons.