Apple said it's not a safety issue, but anyone with an affected laptop can have the battery replacement for free by entering their computer's serial number into Apple's battery replacement program website.
Apple will also refund anyone who's already paid to have a battery replaced.
The battery program covers affected MacBook Pro laptops for a period of five years from their retail purchase date.
reading•Apple is now replacing batteries for cheaper MacBook Pro laptops
May 25•Best Buy outs Beats Decade Collection in advance of Apple WWDC
May 25•Samsung owes Apple $539M for infringing iPhone patents, jury finds
May 24•Valve accuses Apple of rejecting Steam Link mobile streaming app
May 24•iPhone 6 'bendgate' was real -- and Apple knew about it, according to court docs