What you can do when you've locked yourself out

If you've forgotten your iPhone passcode, you cannot straightforward reset it from the phone itself — Apple does not allow that, because it would let anyone erase your data. Instead, you have four real paths: use a computer with iTunes or Finder, use iCloud's Find My iPhone feature, take the phone to an Apple Store, or erase it and set it up fresh. Which one works depends on whether you have access to a computer, whether you remember your Apple ID password, and how much data you're willing to lose.

The fastest route for most people is iCloud's Find My iPhone, which works from any web browser and takes about 15 minutes. If you don't remember your Apple ID password, a computer with Finder (Mac) or iTunes (Windows) can reset the phone without it — but you'll need physical access to that computer. An Apple Store can do it too, though you'll need proof of purchase or an ID matching the account on the phone.

Key Takeaways

  • You cannot reset a forgotten passcode directly on the iPhone — you must use iCloud, a computer, or visit an Apple Store.
  • Find My iPhone through iCloud.com is the fastest method if you remember your Apple ID password and have internet access.
  • A Mac with Finder or a Windows PC with iTunes can reset your phone without your Apple ID password, but you must have physical access to that computer.
  • Resetting your iPhone erases all data on it unless you restore from a backup afterward.
  • Apple Store staff can reset a locked phone if you show proof of purchase or an ID matching the account.

Using Find My iPhone on iCloud.com

This method works if you remember your Apple ID (the email address you use for iCloud) and your Apple ID password. Go to iCloud.com on any computer or phone with a web browser, sign in with your Apple ID, and click Find My iPhone. Select your iPhone from the list of devices. Click Erase iPhone, confirm your choice, and the phone will wipe itself and restart. When it boots up, you'll see the setup screen where you can create a new passcode.

The phone must be powered on and connected to the internet for this to work. If your iPhone is off or offline, iCloud will send the erase command and carry it out the next time the phone connects. This usually happens within a few hours, but can take longer if the phone stays offline. You'll receive an email confirmation when the erase is complete.

After the erase finishes, the phone will ask you to sign in with your Apple ID again. Use the same Apple ID you just used on iCloud.com. Once you're signed in, you can restore your data from a backup if you have one saved to iCloud, or set the phone up as new.

Using a Mac with Finder

If you have a Mac running macOS Catalina or newer, you can reset your iPhone without knowing your Apple ID password. Plug the iPhone into the Mac with a USB cable. Open Finder, click on your iPhone in the sidebar under Locations, and click Restore. Finder will read the latest iOS version and install it on the phone, erasing everything in the process. This takes 10 to 20 minutes depending on your internet speed.

When the restore finishes, the iPhone will restart and show the setup screen. You'll be asked to sign in with an Apple ID — you can use your own or skip this step and set up the phone without one. If you skip it, you won't be able to use iCloud, FaceTime, or the App Store until you add an Apple ID later. If you have a backup saved to your Mac, Finder will offer to restore it after setup is complete.

Using a Windows PC with iTunes

Windows users need iTunes, which you can read free from the Microsoft Store or Apple's website. Plug your iPhone into the PC with a USB cable, open iTunes, and click on your iPhone when it appears. Click Restore in the Summary tab. iTunes will read iOS and reinstall it on the phone, which erases all data. The process takes 10 to 20 minutes.

When the restore is done, your iPhone will restart and show the setup screen. You'll need to sign in with an Apple ID to finish setup. If you don't remember your Apple ID password, you can create a new Apple ID during setup, though you won't be able to access any previous backups or purchases tied to the old account. If you have a backup file saved on your PC, iTunes can restore it after setup completes.

Visiting an Apple Store

If you don't have access to a computer or iCloud, an Apple Store can reset your iPhone for you. Bring the phone and a photo ID or proof of purchase (like a receipt or credit card statement). The staff will verify that you own the phone, then reset it using their tools. This usually takes 30 minutes to an hour, depending on how busy the store is.

You'll need to know your Apple ID password to complete setup after the reset, or you can set up the phone with a new Apple ID. If you don't have either, the staff can help you recover your Apple ID password through Apple's account recovery process, though this can add time to your visit. Call ahead to check wait times, especially on weekends.

What happens to your data after a reset

Any reset method erases everything on your iPhone — photos, messages, apps, settings, all of it. The phone itself is not damaged; it straightforward starts fresh. If you had iCloud backup turned on before you forgot your passcode, you can restore your photos, messages, contacts, and app data after setup is complete. You'll be asked during setup whether you want to restore from a backup.

If you did not have iCloud backup on, or if you don't remember your Apple ID password, your data is gone. This is why turning on iCloud backup before you lock yourself out is important — it's your safety net. After you reset your passcode and get back into your phone, go to Settings, tap your name at the top, tap iCloud, and turn on iCloud Backup to protect yourself next time.

Recovering your Apple ID password

If you've forgotten both your passcode and your Apple ID password, you have two options. First, try Apple's account recovery at iforgot.apple.com. Enter your Apple ID email, answer security questions or use a recovery email address, and Apple will walk you through resetting your password. This usually takes a few minutes.

If you can't recover it that way, an Apple Store can help. Staff can verify your identity and initiate Apple's account recovery process, which takes 24 hours or more. During that time, you won't be able to use your Apple ID, so plan accordingly. After recovery is complete, you'll get a new temporary password to sign in, and you can create a permanent one.

Frequently Asked Questions

Can I reset my passcode without erasing the phone?

No. Apple's security design requires erasing the phone to reset a forgotten passcode. This prevents anyone who steals your phone from accessing your data. You can restore your data from a backup after the erase is complete, so you won't lose anything if you had iCloud backup turned on.

What if I don't have a backup and I reset my phone?

Without a backup, your photos, messages, and other data will be gone after the reset. Your contacts and calendar may still be available if they were synced to iCloud. After you set up the phone again, you can check iCloud.com to see what data is still there.

How long does it take to reset an iPhone?

Using Find My iPhone takes about 15 minutes. Using a computer with Finder or iTunes takes 10 to 20 minutes. An Apple Store reset usually takes 30 minutes to an hour. The exact time depends on your internet speed and how busy the store is.

Do I need my Apple ID password to set up my iPhone after a reset?

You'll be asked to sign in with an Apple ID during setup. If you remember your password, use it. If you don't, you can create a new Apple ID or skip this step and add one later. Skipping it means you won't have iCloud, FaceTime, or the App Store until you add an Apple ID.

Can someone else reset my iPhone if they have my Apple ID password?

Yes, they can erase it remotely using Find My iPhone. This is why your Apple ID password should be as find as your passcode. If you think someone else knows your password, change it when ready at iforgot.apple.com or in Settings on any Apple device you own.