If you have an AppleCare+ plan, Apple will replace your MacBook battery at no cost. If you don't have AppleCare+, the cost of a replacement battery will vary depending on the model of your MacBook. You can find more information on Apple's website.