What you need to do before handing over your iPhone
Before you sell your iPhone, you need to erase everything on it and remove your Apple ID from the device. This is a two-step process: first you back up anything you want to keep, then you wipe the phone clean, and finally you sign out of your Apple ID account. If you skip the Apple ID removal, the new owner won't be able to use the phone without your password — and you'll remain linked to it, which creates security and privacy problems for both of you.
The process takes about 30 minutes total, though the actual erasing can take anywhere from 10 minutes to an hour depending on how much data is on your phone and whether you're connected to Wi-Fi. You can do this entirely on the phone itself; you don't need a computer.
Key Takeaways
- Back up your data to iCloud or a computer before erasing, because once you wipe the phone, anything not backed up is gone permanently.
- Sign out of your Apple ID account before erasing the phone, or the new owner will be locked out and you'll remain connected to the device.
- Use Settings > General > Transfer or Reset > Erase All Content and Settings to wipe the phone completely.
- After erasing, the phone will restart and show the setup screen, which is what a buyer expects to see.
- If you can't remember your Apple ID password, you'll need to reset it through Apple's website before you can remove your account from the phone.
Back up your data first
Anything you don't back up before erasing will be lost. You have two main options: iCloud (Apple's cloud storage) or a computer running macOS or Windows with iTunes or Finder installed.
iCloud backup is the simpler route if you have enough storage. Go to Settings > [Your Name] > iCloud > iCloud Backup, then tap Back Up Now. The backup uploads over Wi-Fi and includes your photos, messages, contacts, calendar, app data, and settings. A full backup typically takes 15 to 45 minutes depending on how much data you have. You need to be plugged in or on Wi-Fi, and your iCloud account needs enough free space — Apple gives you 5 GB free, and you can buy more if needed.
Computer backup works if you have a Mac or Windows PC. Connect your iPhone with a USB cable, open Finder (Mac) or iTunes (Windows), select your phone, and click Back Up Now. This backup is stored locally on your computer and includes everything on your phone. It's faster than iCloud for large amounts of data and doesn't use your iCloud storage limit.
Sign out of your Apple ID before erasing
This step is critical. If you erase the phone without removing your Apple ID first, the new owner will see an activation lock screen asking for your Apple ID password. They won't be able to use the phone, and you'll still be able to track it or lock it remotely — which means you're still connected to someone else's device.
Go to Settings > [Your Name] at the top of the screen. Scroll down and tap Sign Out. You'll be asked for your Apple ID password to confirm. Enter it, then choose whether to keep or delete a copy of your iCloud data on the phone (choose Delete if you're selling it). After you sign out, you'll see your name is no longer at the top of Settings.
If you don't remember your Apple ID password, go to iforgot.apple.com on any device and follow the steps to reset it. You'll need access to a recovery email or phone number associated with your account. This can take a few minutes to an hour depending on which recovery method you use.
Erase all content and settings
Once you've backed up your data and signed out of your Apple ID, you're ready to erase. Go to Settings > General > Transfer or Reset > Erase All Content and Settings. The phone will ask you to confirm and may ask for your passcode or Apple ID password one more time as a security check.
Tap Erase [iPhone Model] to start. The phone will show a progress bar and may restart several times. This process typically takes 10 to 60 minutes depending on how much data is on your phone. Leave the phone plugged in and on Wi-Fi during this time — don't unplug it or turn it off.
When the erasing is complete, your iPhone will restart and show the Hello screen, the same screen you saw when you first turned on a new phone. This is exactly what a buyer expects to see. The phone is now ready to sell.
What happens after you erase
After the erase completes, your iPhone is a blank slate. The new owner will go through the normal setup process, create their own Apple ID or sign into theirs, and restore their own data. You are no longer connected to the phone in any way — you can't track it, lock it, or access any data on it.
If you later realize you need something from your old phone, you can restore it from the backup you created. Sign into iCloud.com or use your computer, and your backed-up data is still there. You can retrieve photos, contacts, messages, or anything else you backed up before the erase.
Troubleshooting common problems
The phone is stuck on the activation lock screen. This means your Apple ID is still on the phone. You'll need to sign back in with your Apple ID password and then sign out properly. If you don't have the password, use iforgot.apple.com to reset it, then sign out and erase again.
You forgot your iPhone passcode. If you can't unlock the phone to access Settings, you'll need to use Find My iPhone to erase it remotely. Go to iCloud.com, click Find My, select your iPhone, and choose Erase iPhone. This erases the phone but does not remove your Apple ID, so you'll still need to sign out afterward using another device or by resetting your password and signing in again.
The erase is taking longer than an hour. This is unusual but can happen if your phone is very full or if the Wi-Fi connection is unstable. Make sure the phone stays plugged in and connected to Wi-Fi. If it's been more than two hours, try restarting the phone and running the erase again.
You want to keep your phone number or transfer it to another device. Contact your mobile carrier before you erase. They can move your phone number to a new SIM card or eSIM on another phone. This is separate from erasing your iPhone and should be done before or after, not during.
Frequently Asked Questions
Do I have to use iCloud to back up, or can I just use a computer?
You can use either one. iCloud is simpler if you have enough free storage and a good Wi-Fi connection. A computer backup is faster for large amounts of data and doesn't use your iCloud limit. You can also use both — back up to iCloud and to a computer for extra safety.
What if I sell my phone and the buyer says it's locked?
This means your Apple ID wasn't removed before erasing. You'll need to sign into iCloud.com, go to Find My, select the phone, and remove it from your account. This unlocks it for the new owner. After that, you're no longer connected to the device.
Can I erase my iPhone remotely if I've already sold it?
Yes, through Find My iPhone at iCloud.com. However, once you erase it remotely, you lose the ability to track it. You should also remove it from your account afterward so the new owner can set it up. If the new owner has already set up their own Apple ID, you won't be able to erase it remotely.
Will erasing my iPhone delete my photos and messages permanently?
Yes, unless you backed them up first. That's why backing up before erasing is the first step. If you backed up to iCloud or a computer, your photos and messages are safe and you can restore them to a new phone later.
How do I know if my backup finished successfully?
For iCloud, go to Settings > [Your Name] > iCloud > iCloud Backup and check the date and time of the last backup. It should show today's date and a recent time. For a computer backup, Finder or iTunes will show "Latest Backup" with the date and time when the backup completed.