By treating the metal-water interface from our DFT computations as a parallel plate capacitor, we explicitly determine the different energy contributions associated with a reaction. We write the energies of a given state (corresponding to a particular number of atoms and geometry) E, as a function of the charge stored in the capacitor q in the form of a Taylor series expansion,