Carbon has four electrons in its outermost orbit, so its valency is four.
The electronic configuration of carbon is 1s 2 , 2s 2 , 2p 2
It has 2 paired and 2 unpaired electrons. On excitation, one electron from 2s level is
promoted to 2p level thus there will be four unpaired electrons. Hence carbon is
tetravalent.