Update & restore error · Connection

iPhone Error 4013, 4014, 4005 or 9 — How to Fix It

Four error numbers, one cause: the install was interrupted. Most of the time the fix is a cable, a port or a second attempt — and it can usually be done without erasing anything.

Short answer

Errors 4013, 4014, 4005 and 9 all mean the same thing: the connection between the iPhone and the computer dropped while the software was being installed. Force restart the iPhone, connect it straight to the computer with a different cable, and choose Update rather than Restore so your data stays.

What you see

The iPhone [name] could not be restored. An unknown error occurred (4013).

The iPhone [name] could not be restored. An unknown error occurred (4014).

Error codes4013 4014 4005 9
Where the problem isConnection — The cable, port or computer dropped the connection.
Will the fix erase my iPhone?Not if you choose Update; only Restore erases
Apple's articleIf you see error 9, 4005, 4013, or 4014 when you restore your iPhone, iPad, or iPod touch

What these errors mean

Apple groups errors 9, 4005, 4013 and 4014 together for a reason: each appears when the device disconnects during an update, or when the computer loses contact with it during a restore. The number tells you roughly where in the process it happened, not a different fault.

That is good news. An interrupted install is usually something outside the iPhone — the cable, the port, the computer's software — and it is fixed by removing whatever broke the connection and trying again.

Fix it in this order

  1. Update the computer first. On a Mac, install any macOS update in System Settings → General → Software Update. On Windows, update the Apple Devices app (or iTunes) from the Microsoft Store. A computer that is older than the iPhone's software is one of the commonest causes.
  2. Force restart the iPhone. On iPhone 8 and later: press and release Volume Up, press and release Volume Down, then hold the side button until the Apple logo appears. Every model's button sequence is in our guide.
  3. Connect directly, with a different cable. Plug the iPhone into a USB port on the computer itself — not a hub, a keyboard or a monitor's port. Use an Apple cable or a certified one; a cable that charges fine can still drop data under load.
  4. Choose Update, not Restore. When the computer offers both, Update reinstalls iOS and keeps your data. Restore erases the iPhone. If Update fails with the same error, then try Restore.
  5. Keep everything still. A restore downloads several gigabytes and then writes to the iPhone for ten minutes or more. Do not move the cable, let the computer sleep, or use the iPhone until it finishes.

If it is stuck in recovery mode

When an update fails partway, the iPhone often starts up in recovery mode — a computer-and-cable icon on the screen. Apple's advice at that point is to restore rather than update, then set the iPhone up from a backup. A restore from recovery mode erases the device, so it is the step to take only once Update has failed.

Our guide to recovery mode covers getting in and out, and a recovery mode loop covers an iPhone that keeps coming back to it.

If the error keeps coming back

Change one thing at a time so you learn what fixes it. Try another USB port, then another cable, then — the strongest test — another computer, ideally on a different network.

If you are restoring from an IPSW file you downloaded yourself, rule out a damaged file: compare its SHA-256 with the one listed on our IPSW pages, or let the computer download the software itself.

When it is the iPhone

If the same error appears on a second computer, with a second cable, after a force restart, the connection is no longer the likely cause. Apple's own advice at that point is to contact them: an error that follows the iPhone from computer to computer usually points to a fault in the device itself, and only a repair can confirm it.

Before you book that appointment, back up anything you can — if the iPhone still starts, an iCloud backup needs no cable at all.

Frequently Asked Questions

What does error 4013 mean on iPhone?

The iPhone lost its connection to the computer while iOS was being installed. It is usually caused by the cable, the USB port or out-of-date software on the computer.

Will fixing error 4013 erase my iPhone?

Not if you choose Update. Update reinstalls iOS and keeps your data; only Restore erases the iPhone. Try Update first.

Is error 4013 a hardware problem?

Usually not. If it repeats on another computer with another cable after a force restart, a fault in the iPhone becomes likely, and Apple recommends contacting them.

What is the difference between error 4013, 4014, 4005 and 9?

Apple treats them as one problem: the device disconnected during an update or restore. The fixes are the same for all four.

Written from Apple's support article If you see error 9, 4005, 4013, or 4014 when you restore your iPhone, iPad, or iPod touch and our own restore guides. Last reviewed November 15, 2026. Also covers errors 4014, 4005, 9.

Related restore errors

Recovery mode, step by step IPSW downloads