Where to buy a BMW x5 battery?

Any auto parts that sells batteries can provide you with a replacement battery. If you want a OEM battery you will have to purchase it at a BMW dealer.