iPhone & iPad · iPhone & iPad update and restore errors

40: restore failed, possible hardware issue

Needs support or repairLast checked: October 23, 2026

What does this code mean?

Error 40 appears when the restore fails at a stage Apple connects with possible hardware problems. If it returns after a clean retry with a good cable and another computer, the device likely needs service.

Before you start

Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.

Likely causes

  1. A possible hardware problem in the iPhone or iPad
  2. Security software interrupting the restore
  3. An unreliable USB cable, computer or network
  4. Outdated or modified software on the device

Steps you can try

Did that fix it?

When to get help

If the error keeps coming back after trying a different cable, port, computer and network, the device may have a hardware fault. Contact Apple Support or book a repair at an Apple Store or Apple Authorized Service Provider.

Differences between versions

Apple lists errors 1, 3, 11, 12, 13, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 56, 1002, 1004, 1011, 1012, 1014, 1667 and 1669 as possible hardware issues, to be checked only after software, security and USB causes are ruled out.

Sources

This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.