Carbon Dioxide Molecule
The electronic configurations of carbon and oxygen are:
Thus, each carbon atom requires four, and each oxygen atom requires two more electrons to acquire noble gas configurations. To achieve this, two oxygen atoms form a double covalent bond with carbon as follows.