The restore bar stops past halfway and Finder or iTunes says the iPhone could not be restored, error 4013. Your photos are still there and nothing has been erased yet. The phone dropped out of a write it had almost finished, and that detail is what makes this fixable in an afternoon. Work the cable and host checks first because they resolve most of these, then move to firmware-level steps only if the same number keeps appearing at the same place.
Quick steps
- Read the exact number and note where the bar stops
- Confirm the computer lists the phone by name
- Swap to a cable you have synced with before
- Move to a port soldered to the mainboard
- Clean lint out of the charging socket
- Restart Apple Mobile Device Service on Windows
- Delete the cached IPSW and download it again
- Charge above 30 percent, then retry once
- Stop after three identical failures and test the storage
Things you'll need
- A cable you know transfers data, not a charge-only cable
- A Mac with Finder, or Windows with the latest Apple Devices or iTunes
- About 20 GB of free space on the computer
- A wooden toothpick for cleaning the charging socket
- At least 30 percent charge on the iPhone
Step-by-step
Method 1 of 3: Read the Code Before You Retry
Step 1: Read the Exact Number and Where It Stops
The full message is "The iPhone could not be restored. An unknown error occurred (4013)." The number is the whole diagnosis. 4013 means the phone dropped out while the firmware image was being written. It is not a passcode problem, not an iCloud problem, and not an Apple server outage. Note the percentage on the bar before you touch anything else, because that number tells you which half of the chain failed.
Reference: Apple — error 9, 4005, 4013 or 4014 when restoring · Related guide: iPhone Stuck in "Unable to Verify Update" Retry Loop · On 52runoob — iPhone Slow and Hot After the iOS 26 Update
Step 2: Tell 4013 Apart From 4014, 9 and 4005
4013 and 4014 are the same failure at two points: 4013 aborts during the write, 4014 fails while verifying what was written. Error 9 and error 4005 belong to the same family and usually trace back to the same three causes. Apple documents the family on one page, and the sequence below covers all four numbers without branching.
Reference: Apple — iOS update and restore errors · Related guide: iPhone Error 3194, 3004 and 3014 When Updating With iTunes · Related guide: iPhone Error 1000 and 1001 During iCloud Restore
Step 3: Confirm the Computer Still Sees the Phone
Before diagnosing 4013, confirm the host can enumerate the device at all. On a Mac, open System Information and look under USB. On Windows, open Device Manager. The phone must appear by name, not as an unknown device. If it does not appear, you have a connection fault and the restore error is a symptom, not the cause.
Reference: Apple — if your computer doesn't recognize your iPhone · Related guide: USB Device Descriptor Request Failed (Code 43) · Related guide: Moisture Detected in USB Port
Step 4: Look for a USB Alert From the Host Software
Finder and iTunes raise specific alerts when a port cannot supply enough current. Those alerts matter because they arrive before the restore and name the real problem. An alert about power means the port is the fault, not the phone. Dismissing it and retrying the restore just reproduces 4013 at the same percentage.
Reference: Apple — resolve USB-related alerts in iTunes · Related guide: Charging Paused: Battery Temperature Too Low · Related guide: iPhone Slow While Charging or Overheating
Method 2 of 3: Fix the Cable, Socket and Host
Step 5: Swap to a Cable You Know Carries Data
Charge-only cables have no data pairs. They charge fine, sync never works, and a restore handshake starves partway through, which the phone reports as 4013. Use the cable that came with a phone, or any cable you have actually transferred a photo with. This single swap resolves a large share of repeat 4013 reports.
Reference: Apple — allow USB accessories to connect to your Mac · Related guide: iPhone Error 0xE8000015 and 0xE80000A on Windows · Related guide: USB Device Descriptor Request Failed (Code 43)
Step 6: Move Off Hubs, Docks and Front-Panel Ports
A restore holds a steady current draw for several minutes. Hubs, monitor docks and front-panel headers share that rail with other accessories and sag exactly when the write is busiest. Use a port soldered to the mainboard, unplug every other USB device, and retry once before changing anything else.
Reference: Apple — locate and view your iPhone on your computer · Related guide: iPhone Slow While Charging or Overheating · Related guide: Charging Paused: Battery Temperature Too Low
Step 7: Clean the Charging Socket
Pocket lint compacts against the back wall of the connector and shortens contact travel. The plug still clicks, so it feels fine, but the data contacts lose contact under sustained load. Power the phone off and use a wooden toothpick at a shallow angle. Never use metal and never spray anything into the port.
Reference: Apple — if you see Error 53 when you update or restore · Related guide: Moisture Detected in USB Port · Related guide: USB Device Descriptor Request Failed (Code 43)
Step 8: Restart the Apple Mobile Device Service on Windows
On Windows the restore talks to the phone through the Apple Mobile Device Service. When that service hangs, the transfer dies at a random percentage and the phone reports 4013. Restart the service, and if it refuses to start, repair the Apple software for Windows before retrying.
Reference: Apple — update Apple software for Microsoft Windows · Related guide: iPhone Error 0xE8000015 and 0xE80000A on Windows · Related guide: Cannot Connect to the App Store
Step 9: Try a Different Computer
If the error follows the cable and the port, the host is the suspect. A second computer settles it in ten minutes. When the restore completes elsewhere, the original machine has a driver, controller or security-software problem, and you solve that at leisure instead of under pressure with a phone stuck in recovery.
Reference: Apple — if you can't update or restore your iPhone · Related guide: iPhone Error 0xE8000015 and 0xE80000A on Windows · Related guide: iPhone Slow While iCloud Photos Is Syncing
Method 3 of 3: Fix the Firmware Side, Then Stop
Step 10: Delete the Cached IPSW and Download Again
Finder and iTunes download a multi-gigabyte IPSW before writing anything. An interrupted download leaves a truncated file that fails at the same percentage on every attempt. Delete the cached firmware so it downloads from scratch, then compare its size with the figure Apple publishes before you run the restore again.
Reference: Apple — update your iPhone with the Finder · Related guide: iPhone Storage Almost Full When There Is Free Space · Related guide: iPhone Error 3194, 3004 and 3014 When Updating With iTunes
Step 11: Confirm the Update Server Is Reachable
A restore contacts Apple's firmware signing server before it writes anything. If that lookup fails, some hosts report a network error and others report 4013. Switch networks, disable any DNS filter, and check whether the machine can reach Apple's software update hosts before you blame the phone.
Reference: Apple — use Apple products on enterprise networks · Related guide: iPhone Error 3194, 3004 and 3014 When Updating With iTunes · Related guide: Cannot Connect to the App Store
Step 12: Turn Off Security Software for One Attempt
Security suites inspect traffic on the local link that Finder and iTunes use, and a filter driver can stall a multi-gigabyte transfer without logging a block. Pause real-time scanning, disconnect the VPN and retry once. This is one of the few fixes that costs nothing and resolves the error outright on locked-down work machines.
Reference: Apple — iTunes and third-party security software · Related guide: Moisture Detected in USB Port · Related guide: iPhone Error 3194, 3004 and 3014 When Updating With iTunes
Step 13: Clear the Pending Update Inside iOS
A half-downloaded update sitting in iPhone storage can corrupt the next restore attempt. Open Settings, General, iPhone Storage and delete any pending iOS update, then reboot before reconnecting. Five minutes here resolves a surprising share of repeat reports on phones that are otherwise healthy.
Reference: Apple — if you need more space for an update · Related guide: iPhone Stuck in "Unable to Verify Update" Retry Loop · Related guide: iPhone Slow With 64 GB Storage Nearly Full
Step 14: Charge Above 30 Percent Before the Retry
A restore that starts on a nearly flat battery can be cut short by the power manager, and the phone reports it as a write failure. Charge to at least 30 percent and keep the cable connected for the whole restore. Apple recommends charging before any restore for exactly this reason, and an aged battery narrows the margin further.
Reference: Apple — iPhone battery and performance · Related guide: iPhone Lagging When Battery Health Is Below 80% · Related guide: iPhone Slow While Charging or Overheating
Step 15: Retry Once After the Phone Has Cooled
Repeated failed attempts heat the phone, and a hot pack throttles the write rate until the host times out. Let the phone sit at room temperature for half an hour, then retry from a cold start. If the restore gets further while cool, heat was part of the failure and the storage is suspect.
Reference: Apple — genuine iPhone batteries · Related guide: iPhone Slow and Hot After the iOS 26 Update · Related guide: iPhone Charging on Hold: Temperature Too High
Step 16: Recognise When 4013 Means Failing Storage
Three cables, two computers, a fresh IPSW and a restore that still stops at the same percentage is a hardware answer. That pattern means the flash cannot hold the image, and no amount of retrying changes it. Back up whatever still boots and have the board tested by a technician who can read the flash error log.
Reference: Apple — service and repair for iPhone · Related guide: iPhone Storage Almost Full When There Is Free Space · Related guide: iPhone Error 1000 and 1001 During iCloud Restore
Tips
- 4013 and 4014 are the same failure: one aborts during the write, the other during the verify.
- The same percentage on every attempt points at the firmware file or the storage, not the cable.
- Charge-only USB cables carry power but no data pair, and they produce this exact error family.
- Front-panel and hub ports sag under a restore's steady current draw.
- A second computer settles host-versus-phone in ten minutes and costs nothing.
Warnings
- A restore from recovery mode erases the iPhone. Take a backup first if the phone still boots.
- Never interrupt a restore that is making progress, even slowly. That is how phones end up in a boot loop.
- Do not use third-party tools that promise to fix 4013 without erasing. Most just re-run the same restore with extra steps.
- If the phone gets hot during repeated attempts, stop and let it cool before the next try.
Frequently asked questions
Will a 4013 restore erase my photos?
Yes, any restore started from recovery mode erases the phone. If it still boots, take a backup or copy the photos off before you begin.
Is 4013 always a hardware failure?
No. It becomes a hardware question only when the same error appears at the same percentage across different cables, ports, computers and a freshly downloaded IPSW.
Why does 4014 appear instead of 4013?
4014 fails at the verification step after the write. The causes overlap almost completely, so the same checklist applies to both.
Can I fix 4013 without a computer?
No. A restore needs a host running Finder or Apple Devices. There is no on-device path that rewrites the firmware.
References
- Apple Support — If you see error 9, 4005, 4013, or 4014 when you restore your iPhone, iPad, or iPod touch. https://support.apple.com/en-us/102561
- Apple Support — iOS update and restore errors. https://support.apple.com/en-us/108308
- Apple Support — If your computer doesn't recognize your iPhone or iPad. https://support.apple.com/en-us/108643
- Apple Support — Resolve USB-related alerts in iTunes. https://support.apple.com/en-us/108298
- Apple Support — Restore your iPhone, iPad, or iPod to factory settings using a computer. https://support.apple.com/en-us/118107
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.