The valency of an atom is equal to the number of electrons in the outer shell if that number is four or less. Otherwise, the valency is equal to eight minus the number of electrons in the outer shell.
To find the valency of an element, it is absolute that we must know the atomic number of that element.