The lifetime of the battery is usually 4 to 8 years, but depends greatly on how often every hour and every day the heart uses it. Using noninvasive testing it is possible to determine how close a pacemaker battery is to its end of life, and the battery should be changed well before this.