Before you pay to replace your iPhone battery, try the troubleshooting steps from this article. There are a number of other factors interfere with your iPhone’s ability to charge its battery. You may be able to fix the problem yourself and save money. One good option is the iXCC Element Series USB cord, which at 3 feet in length, is certified by Apple, and is compatible with the iPhone 5 and higher. As an added bonus it also comes with an 18-month warranty. Just as with the USB cable, the only way to check is by getting another power adapter and trying to charge your phone with it (alternatively, you could also try charging using a computer instead). Once you know you’re using the right kind of USB port, if you still can’t get a charge, it may be the USB port itself that’s broken. To test it, try plugging your iPhone into another USB port on your computer. If that other port recognizes and charges your iPhone, the USB port on your computer may be broken. You can also try plugging in another USB device that you know for sure works. That approach can help you rule out that the problem is with your USB ports. So, if your iPhone doesn’t seem to be taking the charge, make sure it’s plugged directly into one of your computer’s USB ports, not the keyboard or another peripheral device.