Expressions for the self-energy of an electron tunneling from a metal into the vacuum are derived within the formalism of Manson and Ritchie by using the complete basis set of the electron eigenfunctions introduced by Echenique et al. The contributions of the surface and the bulk plasmons are included in the hydrodynamic model. Numerical results for the self-energy of the electron interior and exterior to the metal and its energy shift are reported.