If you can’t charge your iPhone or iPad, whether it’s the latest iPhone 7 or iPad Pro, or an older iPhone 4 or iPad Air, there’s a lot you can try on your own before contacting Apple for help. Sure, sometimes it’s a hardware problem with the Lightning or Dock connector or the battery, but often enough it’s a software issue that a few simple steps can fix. If so, follow along and we’ll get you back up and battery running in no time!

1. Force a restart

If your iPhone or iPad won’t charge, one of the first and easiest things to try is a forced restart. Make all the “reboot Windows” jokes you want but sometimes bad bits get stuck and need to be flushed out. To force a restart:

  1. Press and hold down the Sleep/Wake button on the right side (iPhone 6 or later) or top (all other iPhones, iPods, and iPads) of your device.
  2. While continuing to hold the Sleep/Wake button, press and hold the Home button (iPhone 6s or older) or the Volume Down button (iPhone 7 or newer).
  3. Hold both buttons as the screen turns off, and keep holding them until the screen turns back on and displays the Apple logo.

2. Switch outlets or ports

Funny as it sounds, sometimes outlets or USB ports just don’t work. That’s especially true if you’re plugging into a wall or computer you’ve never plugged into before. It can also happen if an electrical or other problem occurs in your regular outlet or port.

So, make sure you try plugging into a different outlet or USB port and see if your iPhone or iPad starts to charge. If it does, you’re good. If not, keep reading.

3. Switch cables

Like outlets, cables can fail. Sometimes they get chewed up by the wear and tear of travel or even household life. Other times, especially for third party cables, defects catch up with them. If there’s no problem with the iPhone or iPad, and no problem with the power source, you need to check the cable in-between.

Try a different cable. If you don’t have one handy, try one from a family member, friend, schoolmate, colleague, or even one from a store in the mall. Just get your hands on a cable or two other than your regular and see how goes. If it works, awesome. If not, keep reading.