The total energy of an electron inside an atom is less than zero. It is because its energy is negative. The electron is bound within the atom whenever the total energy is less than zero. To remove the electron from the atom, it is necessary to add enough energy to make the total energy greater than zero.