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 24•iPhone 6 'bendgate' was real -- and Apple knew about it, according to court docs
May 23•Apple and Volkswagen joining forces to make autonomous shuttles, report claims
May 23•What data does Apple have on you? Here's how to find out
May 23•No, Apple supplier Foxconn isn't scaling back its US factory