This paper proposes a new digital method to compensate for the aberration of an electron objective lens in electron holography. In this method, the object wavefront in the exit pupil plane is numerically reconstructed from a digitized electron hologram, and is corrected by multiplying it with the conjugated phase-error function. Then, an aberration-free image can be obtained by calculating the Fresnel integral of this corrected wavefront. In comparison with traditional methods, this method is much more convenient and accurate. Some verifying experiments are also presented in this paper. © 2003 Society of Photo-Optical Instrumentation Engineers.