The valency of an element is determined by the number of valence electrons present in the outermost shell of an atom. The electronic configuration of the outermost shell is same for all the elements belonging to the same group. So, the number of valence electrons for all the elements in a group is the same. Therefore, elements belonging to the same group have the same valency.