Carbon has atomic number 6 (electronic configuration 2, 4), so it has 4 valence electrons:
- Cannot gain 4 electrons (to form C⁴⁻): It is difficult for the nucleus with 6 protons to hold on to 10 electrons (4 extra electrons).
- Cannot lose 4 electrons (to form C⁴⁺): Removing 4 electrons requires a very large amount of energy, leaving behind a carbon cation with 6 protons holding just 2 electrons.
Therefore, carbon attains a noble gas configuration by sharing its 4 valence electrons to form covalent bonds.