Carbon forms Covalent bonds with atoms of carbon or other elements. ... Carbon has four valence electrons, so it can achieve a full outer energy level by forming four covalent bonds. When it bonds only with hydrogen, it forms compounds called hydrocarbons.