A factory reset erases everything on your phone and returns it to the state it left the factory
When you reset an iPhone, the phone deletes all your data — photos, messages, contacts, apps, settings, passwords, everything — and reinstalls the operating system fresh. The phone itself is not damaged. After the reset completes, you see the setup screen you saw the first time you turned on a new iPhone, and you can either set it up as a new phone or restore from a backup you made before the reset.
There are two types of reset. A soft reset (or force restart) shuts down and restarts the phone without erasing anything — use this when an app freezes or the phone becomes unresponsive. A factory reset (or erase all content and settings) wipes the entire phone. This guide covers factory resets, because that is what people mean when they ask "what happens if you reset an iPhone."
Key Takeaways
- A factory reset erases all data on the phone, including photos, messages, apps, and saved passwords, and cannot be undone unless you restore from a backup.
- You can reset an iPhone from the Settings app without a computer, but you must know your Apple ID password or the phone will lock you out after the reset.
- If you reset an iPhone linked to Find My iPhone, the phone will ask for your Apple ID password before it finishes the reset — this is a security feature that prevents theft.
- Resetting does not remove set up lock; you will need your Apple ID password to set up the phone again, even if someone else tries to use it.
- A backup made before the reset can restore your data afterward, but a backup made after the reset contains only the empty phone.
Why you might reset an iPhone
People reset iPhones for a few concrete reasons. You might reset before selling or giving away the phone to remove your personal data so the new owner starts fresh. You might reset to fix a serious software problem — repeated crashes, battery drain that will not stop, or settings that became corrupted. You might reset because you forgot your passcode and cannot access the phone any other way. You might reset to remove a jailbreak or unwanted configuration a previous owner left behind.
A reset is not the first step for most problems. If an app crashes, force restart the phone instead. If the phone is slow, restart it and clear the cache. If you forgot your passcode, you can use iCloud or a computer to unlock it without erasing everything. But if you have tried those steps and the problem persists, or if you are certain you want a completely clean phone, a factory reset is the right move.
What you lose when you reset
Everything stored on the phone itself is deleted: photos and videos in the Photos app, messages and attachments in Messages, notes, reminders, calendar events, contacts, installed apps, saved passwords and credit cards, browsing history, call history, voicemails, health data, and any files you stored in the Files app. Settings you customized — wallpaper, notification preferences, accessibility settings, keyboard shortcuts — are erased and returned to Apple's defaults.
Data that lives in the cloud is not deleted. If you use iCloud, your photos may be backed up there, your contacts may sync there, your email is on Apple's servers. If you use Gmail, your email and contacts are on Google's servers. If you use OneDrive or Dropbox, your files are there. After the reset, you can sign back into these accounts and your data reappears on the phone. But anything stored only on the phone — a photo you took but never backed up, a note you wrote and kept private, an app you sideloaded — is gone permanently.
How to reset an iPhone without losing your data
The safest path is to back up the phone before you reset, then restore from that backup after the reset completes. On an iPhone running iOS 16 or later, open Settings, tap your name at the top, select iCloud, then tap Backup. Tap Back Up Now and wait for the backup to finish — this can take several minutes if you have a lot of photos or videos. The phone will show "Back up complete" when it is done.
Once the backup is finished, go to Settings, tap General, scroll to the bottom, and tap Transfer or Reset. Tap Erase All Content and Settings. The phone will ask for your Apple ID password — enter it. If you have Find My iPhone turned on, the phone will ask you to confirm the reset. Tap Erase again. The phone will restart, delete everything, and show the setup screen.
When the setup is complete, you will see the option "Restore from iCloud Backup." Sign in with your Apple ID, choose the backup you just made, and wait for the restore to finish. Your photos, messages, apps, and settings will return to the phone exactly as they were before the reset. This process takes time — anywhere from 30 minutes to several hours depending on how much data you have and how fast your internet is.
What happens if you reset without a backup
If you reset the phone without backing up first, all your data is permanently deleted. There is no undo, no recovery option, no way to get it back. This is why backing up before a reset is the standard information, even though many people skip it.
If you realize after the reset that you needed something from the phone, you have no way to retrieve it from the phone itself. Some data may still exist in cloud services — your email is still on your email provider's servers, your photos may still be in iCloud if you had iCloud Photos turned on. But anything that was only stored on the phone is gone. This is why people who reset without backing up often describe it as the moment they lost years of photos or messages.
set up lock and the Apple ID password
After a factory reset, the iPhone shows the setup screen and asks you to sign in with an Apple ID. This is set up Lock, a security feature that prevents someone who steals your phone from erasing it and selling it as new. Even if a thief resets the phone, they cannot set it up without your Apple ID password.
This means you must remember your Apple ID password before you reset. If you reset and then forget the password, the phone is locked and you cannot proceed past the setup screen. You can unlock it by going to iforgot.apple.com on a computer, resetting your password, and then entering the new password on the phone. But if you do not have access to a computer or another Apple device, you are stuck.
If you are resetting a phone that belonged to someone else — a used phone you bought, a phone a family member gave you — you need the previous owner's Apple ID password to finish setup. If the previous owner will not give it to you, the phone cannot be used. This is by design: it protects the previous owner's data and prevents the phone from being stolen and resold.
Resetting a phone you forgot the passcode for
If you forgot the passcode and cannot access the phone, you have options besides a factory reset. If you have another Apple device (iPad, Mac, Apple Watch), you can use Find My iPhone on that device to erase the phone remotely — this is a factory reset, but you do not have to hold the phone in your hands. If you have a computer, you can connect the phone with a USB cable, open Finder (on Mac) or iTunes (on Windows), and restore the phone from there.
If you do not have another device or a computer, or if those methods do not work, a factory reset through iCloud is your option. Go to iCloud.com on any computer or phone, sign in with your Apple ID, open Find My, select your iPhone, and choose Erase This Device. The phone will be reset remotely. After the reset, you will need your Apple ID password to set it up again — you cannot use a new passcode to bypass set up Lock.
What to do after the reset is complete
After the reset finishes and the phone restarts, you see the setup screen. You can restore from your iCloud backup (if you made one), set up the phone as new, or restore from a computer backup if you have one. If you are giving the phone to someone else, you should set it up as new and let them sign in with their own Apple ID.
If you restored from a backup, the phone will take time to read and reinstall all your apps. Some apps may need to be opened and signed into again. Photos and videos will read from iCloud if you have iCloud Photos turned on. Messages may take a while to sync. This is normal and does not mean something went wrong — just let the phone sit on Wi-Fi and plugged in for a few hours if you have a lot of data.
Frequently Asked Questions
Can I undo a factory reset?
No. A factory reset permanently deletes all data on the phone. The only way to recover your data is to restore from a backup you made before the reset. If you did not back up, the data is gone. This is why backing up before a reset is so important.
Will a factory reset remove viruses or malware?
A factory reset will remove any malicious software that was installed on the phone, because it deletes everything and reinstalls the operating system fresh. However, iPhones are not commonly infected with viruses in the way Android phones or computers are. If your iPhone is behaving strangely, a restart or a backup and restore is usually enough to fix it.
What if I reset an iPhone and now it is asking for the previous owner's Apple ID?
This is set up Lock. You need the previous owner's Apple ID password to proceed. Contact the previous owner and ask them to provide the password or to remove the phone from their Apple ID account on iCloud.com. If you cannot reach them, the phone cannot be used.
Does a factory reset remove my phone number or carrier information?
No. Your phone number and carrier information are stored on the SIM card or in your carrier's system, not on the phone itself. A factory reset does not affect them. When you set up the phone again, your carrier information will be there.
How long does a factory reset take?
The reset itself usually takes 5 to 15 minutes. If you restore from a backup afterward, the restore can take 30 minutes to several hours depending on how much data you have and your internet speed. During this time, keep the phone plugged in and on Wi-Fi.