A factory reset erases everything on your iPhone and restores it to the state it left the factory
A factory reset — also called an erase all content and settings — wipes your iPhone completely. All your photos, messages, apps, contacts, and settings disappear. The phone then restarts with only the original Apple software, as though it came out of the box new. This is different from a regular backup or restart: you cannot undo it once it finishes, so you need to back up anything you want to keep first.
People reset iPhones for a few concrete reasons: selling or giving away the phone, fixing a software problem that won't go away, removing a forgotten passcode (though this requires your Apple ID), or starting fresh after malware or a compromised account. The process takes 10 to 30 minutes depending on how much data is on the phone.
Key Takeaways
- Back up your iPhone to iCloud or a computer before you reset, because the reset erases everything and cannot be reversed.
- You can reset from Settings on the phone itself, or from a computer using Finder (Mac) or iTunes (Windows) if the phone won't turn on.
- After the reset finishes, you will need your Apple ID and password to set up the phone again — this is a security feature Apple uses to prevent theft.
- If you forget your Apple ID password before resetting, you can recover it at iforgot.apple.com, but this takes time and may require proof of identity.
- A factory reset does not remove activation lock, so the next person to use the phone will still need your Apple ID credentials unless you remove the phone from your account first.
Back up your data before you reset
The reset erases everything. Before you start, back up your iPhone so you can restore your photos, messages, and other data later. You have two main routes: iCloud (Apple's cloud storage) or a computer.
iCloud backup is the easiest if you have an Apple ID and enough iCloud storage. Go to Settings > [Your Name] > iCloud > iCloud Backup, then tap Back Up Now. The backup runs in the background and uploads to Apple's servers. It takes anywhere from a few minutes to an hour depending on how much data you have and your internet speed. You need at least as much free iCloud storage as the data you are backing up — Apple gives you 5 GB free, and you can buy more if you need it.
Computer backup works if you have a Mac or Windows PC. On a Mac running macOS Monterey or newer, plug in your iPhone and open Finder, then click your phone name in the sidebar and click Back Up Now. On Windows or older Mac, use iTunes instead. This backup stores everything on your computer's hard drive, not in the cloud. It is faster than iCloud if you have a lot of data, and it does not use your iCloud storage.
Reset your iPhone from Settings
If your iPhone turns on and you can unlock it, you can reset it directly from the Settings app. This is the most straightforward route.
Open Settings and go to General > Transfer or Reset. (On older iPhones, it may say General > Reset instead.) Tap Erase All Content and Settings. The phone will ask you to confirm and may ask for your Apple ID password — enter it if prompted. The reset then begins. Your screen will show a progress bar, and the phone will restart several times. Do not turn off the phone or unplug it during this process.
When the reset finishes, you will see the setup screen, the same one you see when a new iPhone first turns on. At this point, the phone is completely erased and ready to set up again or hand to someone else.
Reset your iPhone from a computer if it won't turn on
If your iPhone is stuck, won't turn on, or is frozen, you can reset it using a Mac or Windows computer. This route is called recovery mode and uses either Finder (Mac) or iTunes (Windows).
Plug your iPhone into the computer with a USB cable. On a Mac, open Finder and click your phone name in the sidebar. On Windows, open iTunes. Both will detect that the phone is in a problem state. Click Restore (Mac) or Restore iPhone (Windows). The software will download the latest iPhone operating system and install it, erasing the phone in the process. This takes 15 to 30 minutes. Do not unplug the phone until it finishes and shows the setup screen.
If your computer does not recognize the phone, try a different USB cable or a different USB port. If the phone still does not appear, the hardware may be damaged and you may need to visit an Apple Store.
Set up your iPhone after the reset
After the reset finishes, your iPhone shows the setup screen. You will need your Apple ID and password to continue. This is a security feature: it prevents someone who steals your phone from using it, because they cannot get past the setup screen without your credentials.
If you remember your Apple ID password, enter it when prompted. If you do not remember it, go to iforgot.apple.com on another device before you reset, or after the reset, use another Apple device to recover your password. Recovery can take a few minutes to a few hours depending on which method Apple uses to verify your identity.
Once you enter your Apple ID, you can choose to restore from your backup (iCloud or computer) or set up as a new phone. If you restore from backup, your photos, messages, apps, and settings will come back. If you set up as new, you will have a blank phone and can add things back manually.
Remove your iPhone from your account before giving it away
If you are selling or giving away your iPhone, removing it from your Apple ID account is a separate step from the factory reset. The reset erases the phone, but activation lock — Apple's anti-theft feature — stays active. The next person to use the phone will see a screen asking for your Apple ID and password, and they cannot proceed without it.
To remove activation lock, go to iCloud.com on a computer or another device, sign in with your Apple ID, click Find My, then click Find My iPhone. Select your iPhone from the list and click Remove. This disconnects the phone from your account. Now when the next person sets it up, they will not see the activation lock screen.
Do this before you reset the phone, because once the phone is reset and in someone else's hands, you may not be able to remove it remotely if they do not cooperate. If you forget to remove it before handing over the phone, you can still remove it from iCloud.com, but the new owner will need to contact you or Apple to proceed.
What to do if you forgot your passcode
If you forgot your iPhone passcode and want to reset the phone, you have two routes: use a computer with recovery mode (described above), or use Find My iPhone to erase the phone remotely.
For Find My iPhone, go to iCloud.com on another device, sign in, click Find My, select your iPhone, and click Erase iPhone. This erases the phone remotely, but you will still need your Apple ID password to set it up again. If you also forgot your Apple ID password, go to iforgot.apple.com and follow the recovery steps. Recovery usually involves answering security questions, confirming a recovery email, or receiving a code on a trusted device. It can take anywhere from a few minutes to several hours depending on which verification method you use.
Frequently Asked Questions
Can I undo a factory reset?
No. Once the reset finishes, the data is gone. This is why backing up before you reset is essential. If you backed up to iCloud or a computer, you can restore that backup after the reset, which brings back your photos, messages, and apps. But if you did not back up, there is no way to recover the data.
Do I need to remove my SIM card before I reset?
No. The factory reset does not affect your SIM card or your phone number. Your carrier information stays on the SIM. After the reset, the phone will still recognize the SIM and you can use it normally once you set up the phone again.
What if I reset my iPhone but forgot to remove it from my Apple ID first?
The phone is now in activation lock and cannot be used without your Apple ID password. If you still have access to your Apple ID, go to iCloud.com, find the phone, and remove it. If you no longer have access to that Apple ID, the person with the phone will need to contact Apple with proof of purchase to remove the lock.
How long does a factory reset take?
The reset itself takes 10 to 30 minutes depending on how much data is on the phone. Backing up beforehand takes longer — iCloud backups can take an hour or more if you have a lot of photos or videos. Plan for at least two hours total if you are backing up and resetting.
Will a factory reset remove malware or viruses?
A factory reset removes malware that lives in apps or settings, because it erases everything and reinstalls the original Apple software. However, if malware is on your SIM card or your Apple ID account itself, the reset alone will not remove it. If you suspect your account is compromised, change your Apple ID password after the reset and review your account security at appleid.apple.com.