Notice that each of the metal ions has a different 'atmosphere' of charges around it. The cations in the metal are surrounded by electrons and other cations; the cations in the solution are surrounded mostly by water molecules (with other ions farther off). Atoms right on the boundary line will 'feel' different charges on the solution side and on the metal side. This is where the voltage comes from.
Copyright © 1997-2010 by Fred Senese
Comments & questions to fsenese@frostburg.edu
Last Revised 02/23/18.URL: http://antoine.frostburg.edu/chem/senese/101/redox/faq/print-why-electrode-voltages.shtml