Error 4013, explained

Error 4013 appears when Finder or iTunes loses communication with the iPhone or iPad during an update or restore. Cables, USB ports, hubs, outdated macOS/iTunes and, rarely, hardware faults interrupt the transfer.

Most cases are solved by a better connection and a restore in Recovery or DFU mode.

Symptoms

  • “The iPhone could not be restored. An unknown error occurred (4013)” during update or restore.
  • The progress bar stops partway and the device reboots to Recovery.
  • It fails at the same point each attempt.

Why Error 4013 happens

  • A worn or non-certified USB cable, or a flaky port or hub.
  • Antivirus or VPN software interrupting the USB connection.
  • Not enough free space on the Mac or PC to stage the firmware file.
  • A software fault serious enough that a normal restore cannot complete.

Try these fixes

  1. Use an Apple-certified USB cable plugged directly into the computer (no hub), ideally a different port; try a different computer if you can.
  2. Free at least 15 GB on the computer and quit VPN and antivirus software, then retry the restore in Recovery Mode.
  3. If it still fails at the same spot, put the device in DFU mode and restore from there.
Check it's fixed: The restore completes to the Hello / setup screen and the device boots normally.

Avoiding it in future

Keep a known-good Apple cable for restores, and keep 15–20 GB free on the computer you sync with.