A factory reset erases everything on your iPhone and returns it to the state it came in

A factory reset — also called an Erase All Content and Settings — removes every app, photo, message, password, and file from your phone and wipes the operating system clean. When you turn the phone back on, it boots up as if it just came from the box. This is different from signing out of your Apple ID or backing up your data. A factory reset is permanent and cannot be undone, so you need to back up anything you want to keep before you start.

People factory reset iPhones for three main reasons: selling or giving away the phone, fixing a serious software problem that won't respond to other fixes, or removing malware or spyware. If you are selling the phone, a factory reset is the only way to make sure the buyer cannot access your accounts, photos, or banking information. If you are keeping the phone, you can restore from a backup after the reset to get your data back.

Key Takeaways

  • A factory reset erases everything on your iPhone permanently — apps, photos, messages, passwords, and all account information — and cannot be reversed.
  • You must back up your data to iCloud or a computer using Finder or iTunes before you reset, or you will lose everything you did not back up.
  • After a factory reset, you can sign back into your Apple ID and restore from your backup to get your apps and data back, or set up as a new phone.
  • If you are selling or giving away the phone, a factory reset is the only way to remove your Apple ID lock and make sure the new owner can use it.
  • A factory reset does not remove the Apple ID lock — you must sign out of your Apple ID account before you reset, or the phone will be locked to your account.

Back up your data before you reset

Before you do anything, back up your iPhone to either iCloud or your computer. If you back up to iCloud, go to Settings, tap your name at the top, then tap iCloud. Scroll down and tap iCloud Backup, then tap Back Up Now. The backup will upload to Apple's servers and you can restore from it later on any iPhone. This backup includes your photos, messages, app data, and settings — but not apps themselves, which will read fresh from the App Store when you restore.

If you prefer to back up to your computer, plug your iPhone into a Mac running macOS Catalina or later and open Finder. Click your phone in the sidebar under Locations, click General, and click Back Up Now. On a Windows PC or older Mac, use iTunes instead. A computer backup is encrypted and stays on your machine rather than on Apple's servers, which some people prefer for privacy reasons.

Check that your backup finished before you move forward. In iCloud, go back to Settings > [Your Name] > iCloud > iCloud Backup and look for the date and time of the last backup. On a computer, Finder or iTunes will show you when the backup completed. If the backup is recent, you are ready to reset.

How to factory reset your iPhone through Settings

This is the standard method and works on any iPhone. Go to Settings, then tap General. Scroll to the bottom and tap Transfer or Reset. Tap Erase All Content and Settings. Your phone will ask you to enter your Apple ID password and your device passcode — this is a security step to make sure you actually own the phone and are not being forced to erase it. Enter both.

The phone will warn you one more time that this will erase everything. Tap Erase to confirm. The reset will take 5 to 15 minutes depending on how much data is on your phone. Do not turn off the phone or disconnect it during this time. When it finishes, your iPhone will restart and show the setup screen, just like a brand-new phone.

How to factory reset if you forgot your passcode or Apple ID password

If you cannot remember your passcode, you cannot use the Settings method. Instead, you will need to use a computer and Finder (Mac) or iTunes (Windows PC). Plug your iPhone into the computer, open Finder or iTunes, and click your phone. Click Restore, which will read the latest iOS and erase the phone without asking for your passcode. You will still need your Apple ID password to set up the phone afterward.

If you forgot your Apple ID password, you can reset it at iforgot.apple.com before you factory reset. If you do not have access to the email address or phone number tied to your Apple ID, contact Apple Support — they can verify your identity and help you regain access to your account. This step matters because after a factory reset, the phone will be locked to your Apple ID and you will not be able to use it without that password.

What happens after the reset — restoring from backup versus setting up new

When your iPhone restarts after the reset, it will show the setup screen. You have two choices: restore from your backup, or set up as a new phone. If you restore from backup, sign in with your Apple ID, choose your backup from the list, and the phone will read your apps, photos, messages, and settings from iCloud or your computer. This usually takes 30 minutes to an hour depending on how much data you have and your internet speed.

If you set up as a new phone, you will start with a blank iPhone and add apps and accounts manually. This is slower if you have many apps, but it can be useful if you want a fresh start or if your backup was corrupted. You can still sign into your email, messaging, and social media accounts after setup.

Removing your Apple ID lock before you sell or give away the phone

If you are selling or giving away your iPhone, you must remove your Apple ID from the phone before the new owner can use it. A factory reset alone does not do this — the phone will still be locked to your account. To remove your Apple ID, go to Settings, tap your name at the top, scroll down, and tap Sign Out. Enter your Apple ID password. Then go back to Settings > General > Transfer or Reset > Erase All Content and Settings and complete the reset as described above.

After the reset, the phone will boot up and ask for an Apple ID during setup. The new owner can then sign in with their own account and use the phone normally. If you do not sign out before the reset, the phone will be stuck on the set up Lock screen and the new owner will not be able to use it without your Apple ID password — which is a security feature to prevent theft, but it makes the phone unusable to anyone else.

When a factory reset does not fix the problem

If your iPhone is crashing, freezing, or running very slowly, a factory reset often fixes it. But if the problem continues after you reset and restore from backup, the issue may be with your backup itself. Try setting up as a new phone instead of restoring from backup. If the phone works fine as a new phone, your backup was corrupted and you should not restore from it.

If the phone still has problems after a fresh setup with no backup, the hardware may be damaged. Contact Apple Support or visit an Apple Store. They can run diagnostics to check for hardware failure. If your phone is under warranty or covered by AppleCare+, repair or replacement may be covered.

Frequently Asked Questions

Does factory reset remove my Apple ID lock?

No. A factory reset erases your data but leaves the Apple ID lock in place. You must sign out of your Apple ID in Settings before you reset, or the phone will be locked to your account after the reset. If you forget to sign out, you will need your Apple ID password to set up the phone again.

Can I recover data after a factory reset if I did not back up?

No. A factory reset is permanent and cannot be undone. If you did not back up your data, it is gone. This is why backing up before you reset is critical. Always confirm your backup finished before you start the reset process.

How long does a factory reset take?

The reset itself usually takes 5 to 15 minutes. If you restore from a backup afterward, add another 30 minutes to an hour depending on how much data you have and your internet speed. Do not turn off the phone during either process.

What if my iPhone is stuck on the setup screen after a factory reset?

If your phone is stuck and you cannot proceed, force restart it by quickly pressing and releasing the Volume Up button, then the Volume Down button, then holding the Side button until the Apple logo appears. If it stays stuck, plug it into a computer and use Finder or iTunes to restore again.

Is it safe to factory reset my iPhone?

Yes, as long as you back up first. A factory reset is the safest way to remove your data before selling a phone or fixing a serious software problem. The only risk is losing data if you do not back up, so always back up before you reset.