text: The etymology of the words valence (plural valences) and valency (plural valencies) traces back to 1425, meaning "extract, preparation", from Latin valentia "strength, capacity", from the earlier valor "worth, value", and the chemical meaning referring to the "combining power of an element" is recorded from 1884, from German Valenz.
  The concept of valence was developed in the second half of the 19th century and helped successfully explain the molecular structure of inorganic and organic compounds.
  The quest for the underlying causes of valence led to the modern theories of chemical bonding, including the cubical atom (1902), Lewis structures (1916), valence bond theory (1927), molecular orbitals (1928), valence shell electron pair repulsion theory (1958), and all of the advanced methods of quantum chemistry.
  In 1789, William Higgins published views on what he called combinations of "ultimate" particles, which foreshadowed the concept of valency bonds. If, for example, according to Higgins, the force between the ultimate particle of oxygen and the ultimate particle of nitrogen were 6, then the strength of the force would be divided accordingly, and likewise for the other combinations of ultimate particles (see illustration).
  The exact inception, however, of the theory of chemical valencies can be traced to an 1852 paper by Edward Frankland, in which he combined the older radical theory with thoughts on chemical affinity to show that certain elements have the tendency to combine with other elements to form compounds containing 3, i.e., in the 3-atom groups (e.g., , , , etc.) or 5, i.e., in the 5-atom groups (e.g., , , , etc.), equivalents of the attached elements. According to him, this is the manner in which their affinities are best satisfied, and by following these examples and postulates, he declares how obvious it is that
  This "combining power" was afterwards called quantivalence or valency (and valence by American chemists). In 1857 August Kekulé proposed fixed valences for many elements, such as 4 for carbon, and used them to propose structural formulas for many organic molecules, which are still accepted today.
  Lothar Meyer in his 1864 book, Die modernen Theorien der Chemie, contained an early version of the periodic table containing 28 elements, for the first time classified elements into six families by their valence. Works on organizing the elements by atomic weight, until then had been stymied by the widespread use of equivalent weights for the elements, rather than atomic weights.
  Most 19th-century chemists defined the valence of an element as the number of its bonds without distinguishing different types of valence or of bond. However, in 1893 Alfred Werner described transition metal coordination complexes such as , in which he distinguished principal and subsidiary valences (German: Hauptvalenz and Nebenvalenz), corresponding to the modern concepts of oxidation state and coordination number respectively.
  For main-group elements, in 1904 Richard Abegg considered positive and negative valences (maximal and minimal oxidation states), and proposed Abegg's rule to the effect that their difference is often 8.
  An alternative definition of valence, developed in the 1920s and having modern proponents, differs in cases where an atoms formal charge is not zero. It defines the valence of a given atom in a covalent molecule as the number of electrons that an atom has used in bonding:
  :valence = number of electrons in valence shell of free atom − number of non-bonding electrons on atom in molecule,
  or equivalently:
  :valence = number of bonds + formal charge.
  In this convention, the nitrogen in an ammonium ion  bonds to four hydrogen atoms, but it is considered to be pentavalent because all five of nitrogen's valence electrons participate in the bonding.