Valence electrons are the electrons in an atom's outermost shell. They are the ones that take part in chemical bonding, and they largely decide an element's behaviour. ## Count and group For the main-group elements the valence count follows the group: group 1 has one, group 2 has two, group 17 has seven, group 18 has eight (helium has two). Elements in a group behave alike because their valence counts match. ## The pull toward eight Atoms tend toward the stability of an eight-electron outer arrangement (the octet). Sodium readily loses one electron and chlorine readily gains one because both moves approach that stable arrangement. ## Transition metals are trickier In transition metals the inner d electrons also join in bonding, so the story is less simple — that is why iron can take several different oxidation states.