Here's how it works:
* Electrons are shared: When two atoms form a covalent bond, they share one or more pairs of electrons. These shared electrons are counted towards the octet of both atoms involved.
* Completing the octet: By sharing electrons, each atom can achieve a full outer shell with eight electrons, similar to the stable noble gas configuration.
* Exceptions: While the octet rule is a useful guideline, there are some exceptions:
* Hydrogen: Hydrogen only needs two electrons to fill its outer shell.
* Boron: Boron often forms compounds with only six electrons in its outer shell.
* Elements in Period 3 and beyond: These elements can sometimes have more than eight electrons in their outer shell due to the availability of d orbitals.
Examples:
* Methane (CH4): Carbon has four valence electrons and needs four more to complete its octet. It shares one electron with each of the four hydrogen atoms, resulting in a stable molecule where all atoms have a full outer shell.
* Water (H2O): Oxygen has six valence electrons and needs two more. It shares one electron with each of the two hydrogen atoms, creating a stable molecule with eight electrons around oxygen.
* Carbon dioxide (CO2): Carbon shares two electrons with each oxygen atom, forming double bonds. Each oxygen atom achieves an octet, and the carbon atom also achieves an octet.
In summary: Covalent compounds achieve stability by sharing electrons, allowing each atom to complete its outer shell and resemble the electronic configuration of a noble gas, thus obeying the octet rule.