What happens when you erase your iPhone

Completely clearing your iPhone removes all your personal data, apps, photos, messages, and settings, then reinstalls the operating system fresh. This is different from just deleting individual items — it wipes the entire device as if it came from the factory. After the erase completes, your iPhone will restart and show the setup screen you saw when it was brand new.

People do this for several reasons: selling or giving away the phone, fixing persistent software problems, or simply starting over with a clean slate. The process takes 10 to 30 minutes depending on your iPhone model and how much data is stored.

Before you start, understand that this action cannot be undone. Once the erase begins, you cannot stop it and recover your data unless you have a backup saved to iCloud or your computer. If you do not have a backup and you need any of your current data, create one now before proceeding.

Key Takeaways

  • Back up your iPhone to iCloud or a computer before erasing, because the process deletes everything and cannot be reversed.
  • You can erase your iPhone directly from Settings on the device itself, or use a computer if your iPhone will not turn on or respond.
  • After erasing, your iPhone will restart and show the initial setup screen, and you can restore from your backup or set it up as new.
  • If you are selling or giving away the phone, sign out of your Apple ID before erasing so the new owner can set it up without your account blocking them.
  • The erase process takes 10 to 30 minutes and requires your iPhone to stay plugged in and connected to Wi-Fi or cellular data.

Back up your data before you erase

The safest way to back up is through iCloud, which stores your data on Apple's servers and lets you restore it to any iPhone. Open Settings, tap your name at the top, then tap iCloud. Scroll down and tap iCloud Backup, then tap Back Up Now. This creates a complete snapshot of your phone — apps, photos, messages, contacts, and settings all included.

If you do not have enough iCloud storage (the free tier is 5 GB), you can buy more storage through Settings, or back up to a computer instead. Connect your iPhone to a Mac or Windows PC with a USB cable, open Finder (Mac) or iTunes (Windows), select your iPhone, and click Back Up Now. This backup sits on your computer's hard drive instead of in the cloud.

Wait for the backup to finish completely before moving to the next step. You will see a progress bar or percentage. Do not disconnect your iPhone until it says the backup is complete.

Sign out of your Apple ID before erasing

If you are keeping the iPhone, you can skip this step. But if you are selling it, giving it away, or trading it in, you must sign out of your Apple ID first. This removes the account lock that prevents anyone else from using the phone after the erase.

Open Settings and tap your name at the top. Scroll down and tap Sign Out. You will be asked for your Apple ID password — enter it. Then choose whether to keep or remove a copy of your iCloud data on the device. For a phone you are giving to someone else, tap Delete from iPhone.

After you sign out, your Apple ID is no longer linked to this device. The new owner will be able to set up their own account during the initial setup after the erase.

Erase your iPhone from Settings

This is the most common method and works on any iPhone that turns on and responds to touch. Open Settings and tap General. Scroll all the way down and tap Transfer or Reset. Then tap Erase All Content and Settings.

Your iPhone will ask you to confirm. It will also ask for your Apple ID password and your device passcode if you have one set. Enter both when prompted. This is a security measure to prevent someone from erasing your phone without permission.

Once you confirm, the erase begins immediately. You will see a progress bar. Your iPhone will restart several times during this process — this is normal. Do not turn off the phone or disconnect it from power. Leave it plugged in and connected to Wi-Fi or cellular data until the erase finishes and the setup screen appears.

Erase your iPhone using a computer if it will not respond

If your iPhone is frozen, will not turn on, or does not respond to touch, you can erase it using a Mac or Windows PC. Connect the iPhone to the computer with a USB cable. On a Mac, open Finder and click your iPhone in the sidebar. On Windows, open iTunes.

Look for a button or option that says Restore or Restore iPhone. Click it. Your computer will download the latest iOS software and install it on the phone, erasing everything in the process. This takes 15 to 45 minutes depending on your internet speed and iPhone model.

Keep the iPhone connected to the computer and do not interrupt the process. When it finishes, your iPhone will restart and show the setup screen. You can then restore from your backup or set it up as new.

Restore from your backup or set up as new

After the erase completes and your iPhone restarts, you will see the Hello screen and language selection. Follow the on-screen steps until you reach the Apps & Data screen. This is where you choose what happens next.

If you want to restore your data, photos, apps, and settings from your backup, tap Restore from iCloud Backup (if you backed up to iCloud) or Restore from Mac or PC (if you backed up to a computer). Sign in with your Apple ID and select which backup to restore from. Your iPhone will download and install everything from that backup.

If you want to start completely fresh with no old data, tap Set Up as New iPhone instead. You will still need to sign in with an Apple ID to use the phone, but you will start with no apps, photos, or messages. You can download apps from the App Store as you need them.

What to do if the erase gets stuck or fails

If your iPhone is stuck on the erase screen or the progress bar stops moving for more than an hour, try a force restart. The method depends on your iPhone model. On iPhone 8 and newer, quickly press and release the Volume Up button, then quickly press and release the Volume Down button, then press and hold the Side button until you see the Apple logo appear. On iPhone 7 and earlier, press and hold the Top (or Side) button and Volume Down button together until the Apple logo appears.

After the force restart, your iPhone will either finish the erase or restart the setup screen. If it gets stuck again, connect it to a computer and use the Restore method described above. The computer method is more reliable when the device is not responding normally.

If you see an error message during the erase, write down the exact error code or text. Check Apple's support website or contact Apple Support with that information — different errors have different solutions, and the code tells them exactly what went wrong.

Frequently Asked Questions

Can I recover my data after I erase my iPhone?

Only if you have a backup. If you backed up to iCloud or a computer before erasing, you can restore that backup during setup or later in Settings. If you did not back up, the data is gone permanently. This is why backing up before you erase is so important.

Do I need to erase my iPhone before selling it?

Yes. Erasing removes your personal data so the buyer cannot access your photos, messages, contacts, or accounts. You should also sign out of your Apple ID first so the device is not locked to your account and the buyer can set up their own account.

How long does it take to erase an iPhone?

The erase itself usually takes 5 to 15 minutes, but the total time from start to finish can be 10 to 30 minutes depending on your iPhone model, how much data is stored, and your internet speed. Keep the phone plugged in and do not interrupt the process.

What if I forgot my Apple ID password and cannot erase my iPhone?

You will need to reset your Apple ID password before you can erase. Go to iforgot.apple.com on a computer or another device, enter your Apple ID email, and follow the steps to reset your password. Once you have reset it, you can use that new password to erase your iPhone.

Will erasing my iPhone remove the SIM card or affect my phone number?

No. Erasing the iPhone does not touch the SIM card or your phone number. Your carrier information stays on the SIM card. After you erase and set up the iPhone again, your phone number and cellular service will work normally.