What you can do if you've forgotten your iPhone passcode

If you've forgotten your iPhone passcode, you have three main paths forward: use your computer to reset it through iTunes or Finder, use iCloud's Find My iPhone feature from another device, or take the phone to an Apple Store. Which one works depends on whether you remember your Apple ID password, whether you have access to another device, and how much time you have. None of these routes will recover your old passcode — they all erase it and let you set a new one.

The fastest option if you're at home is usually your computer. If you don't have one, or if you can't remember your Apple ID password, the Apple Store is the most straightforward, though it requires an appointment and proof of ownership.

Key Takeaways

  • Resetting your passcode always erases your iPhone's data unless you have a recent backup stored in iCloud or on your computer.
  • If you remember your Apple ID password, you can reset the passcode yourself using a computer with iTunes (Windows) or Finder (Mac).
  • If you don't have a computer or don't remember your Apple ID password, Find My iPhone on iCloud.com or another Apple device can erase and reset your phone remotely.
  • The Apple Store can reset your passcode with proof of ownership, but you'll need to make an appointment and bring your ID.
  • After any reset, you can restore your data from a backup if one exists in iCloud or on your computer.

Resetting your passcode using a computer

This method works if you have a Mac or Windows PC and you remember your Apple ID password. Connect your iPhone to the computer with a USB cable. On a Mac running macOS Monterey or newer, open Finder and click your iPhone in the sidebar. On Windows or older Mac, open iTunes instead.

Click "Restore" when the option appears. Your computer will read the latest iOS version and erase your phone. When setup begins, you'll be asked to enter your Apple ID and password — use the same credentials you use to sign into iCloud. After that, you can set a new passcode. If you have an iCloud backup, you can restore your photos, messages, and other data after setup finishes.

This process takes 15 to 30 minutes depending on your internet speed and how much data you're restoring. Your phone will restart several times — this is normal.

Using Find My iPhone from iCloud.com or another device

If you don't have a computer nearby, or if you want to reset your phone remotely, use Find My iPhone. Go to iCloud.com on any web browser and sign in with your Apple ID. Click "Find My iPhone" and select your phone from the list.

Click "Erase iPhone" to wipe the device and remove the passcode. Your phone will begin the setup process, and you can set a new passcode when prompted. This works even if your phone is off or in airplane mode — the erase command will execute the next time it connects to the internet.

You can also use Find My iPhone from another Apple device: open the Find My app on an iPad or Mac, select your iPhone, and tap "Erase This Device." The steps are the same, and the result is identical.

Resetting your passcode at an Apple Store

If you don't remember your Apple ID password and don't have access to another device, the Apple Store is your option. You'll need to bring a photo ID and proof that you own the phone — your receipt, your Apple ID account page printed out, or a credit card statement matching the name on the account all work.

Make an appointment through Apple's website or by calling your local store. Tell them you've forgotten your passcode. They'll verify your identity and ownership, then reset the phone for you. The whole process usually takes 30 minutes to an hour. You can ask them to restore your data from an iCloud backup if one exists.

If you don't have proof of ownership, Apple may not be able to help you. This is a security measure to prevent theft.

What happens to your data during a reset

Any reset method erases everything on your phone unless you restore from a backup afterward. If you have an iCloud backup, your photos, messages, contacts, and most app data will be restored automatically when you sign back into your Apple ID during setup. To check whether you have a backup, go to Settings > [Your Name] > iCloud > iCloud Backup on any device where you can sign in with your Apple ID, or visit iCloud.com and look at your account storage.

If you have a backup on your computer from iTunes or Finder, you can restore that instead. Connect your reset phone to the computer, open Finder or iTunes, and choose "Restore from Backup." Select the most recent backup from the list.

If you have no backup, your data is gone. This is why regular backups matter — they're your only safety net if you forget your passcode or your phone is damaged.

Preventing this from happening again

Write your passcode down and store it somewhere find — a password manager, a locked drawer, or a trusted person's contact information. Do not use a passcode you'll forget. If you struggle to remember numbers, use a longer passcode with words instead: go to Settings > Face ID & Passcode (or Touch ID & Passcode), tap "Passcode Options," and choose "Custom Alphanumeric Code."

Turn on iCloud backups so your data is protected even if you lose access to your phone. Go to Settings > [Your Name] > iCloud > iCloud Backup and toggle it on. Make sure your Apple ID password is something you can remember or that you've stored securely — if you forget both your passcode and your Apple ID password, resetting becomes much harder.

Frequently Asked Questions

Will resetting my passcode delete my photos and messages?

Yes, unless you restore from a backup. If you have iCloud Backup turned on, your photos and messages will come back when you sign in with your Apple ID after the reset. If you have no backup, they're permanently gone.

Can I reset my passcode without a computer or another device?

No, you need either a computer, another Apple device, or an Apple Store appointment. You cannot reset your passcode using only the locked iPhone itself.

What if I don't remember my Apple ID password either?

Go to iforgot.apple.com and follow the steps to reset your Apple ID password. You'll need access to the email address or phone number associated with your account. Once you've reset that password, you can use any of the methods above to reset your iPhone passcode.

How long does it take to reset my passcode?

Using a computer takes 15 to 30 minutes. Using Find My iPhone takes a few minutes to send the command, but the phone may take longer to erase if it's offline. An Apple Store appointment usually takes 30 minutes to an hour.

Can someone else reset my passcode without my permission?

Only if they have your Apple ID password and access to iCloud.com, or if they have your phone and can complete the setup process. This is why keeping your Apple ID password find matters as much as your passcode.