Click to Skip Ad
Closing in...

How to unlock your iPhone if you forget your passcode

Published Sep 1st, 2022 3:52PM EDT
Apple iPhone 12 on a desk next to AirPods and an Amazon Echo Dot
Image: Christian de Looper for BGR

If you buy through a BGR link, we may earn an affiliate commission, helping support our expert product labs.

One of the first things you have to do when setting up an iPhone is set a passcode along with Face ID or Touch ID. That’s how you secure the privacy of your data and ensure that others can’t access your iPhone, especially thieves. But you also have to make sure that you don’t forget your iPhone’s passcode once you start using Face ID to unlock your phone.

It’s easy to forget the Lock Screen passcode if you don’t use it as often or if you’ve recently changed it. The good news is that there are still ways to get into your iPhone if that happens. The bad news is that you might lose some of the personal data you’ve saved on your iPhone. That’s where backups will come in handy, however.

Remember to back up your iPhone

There are a few ways to reset an iPhone after you’ve forgotten the passcode and Face ID/Touch ID no longer works. But each of them involves erasing the contents of the phone. Reader’s Digest put together a guide explaining your options based on available documentation from Apple for such extreme iPhone troubleshooting.

But all these endeavors will lead to the same outcome. You’ll erase the phone, losing your contacts, messages, photos, and app settings. Apple implemented this specific iPhone behavior to ensure third parties can’t access your data with ease.

Whether it’s the police, a significant other, or a thief, you wouldn’t want them to be able to reset your password and access your data. That’s why unlocking the iPhone after forgetting the passcode involves erasing everything.

With that in mind, you need to ensure that you have recent iPhone backups available so the data loss is minimal. You can back up to iCloud and have an automatic schedule for the backups.

The best option is backing up to a computer and going for encrypted backups. These save the settings and passwords of all apps, so restoring will be even easier. But this process isn’t automatic as the iCloud backups.

How to unlock the iPhone from the device

One way to unlock the iPhone after forgetting the password is to go for the Erase iPhone option directly from the handset. The steps are straightforward, as Apple explains:

  • From your device’s Lock Screen, try entering your passcode until the “[Device] Unavailable” screen appears and your device asks you to try again later. When you’re able to, continue trying to enter your passcode until the “Security Lockout” screen appears, and you get the Erase [Device] option in the bottom corner of the screen.
  • Tap Erase [Device], then tap Erase [Device] again to confirm.
  • Enter your Apple ID password to sign out of your Apple ID on your device.
  • Tap Erase [Device] to permanently delete all of your data and settings.
  • When your device restarts, follow the onscreen instructions to set up your device again, restore your data and settings from a backup, and set a new passcode.
Erasing an iPhone directly from the Lock Screen.
Erasing an iPhone directly from the Lock Screen. Image source: Apple Inc.

Note that you need your Apple ID password here. Without this step, anyone could steal your iPhone, erase it, and make it their own. Also, Apple advises users to ensure they contact their carriers before erasing the handset if they use eSIM functionality.

How to unlock the iPhone with a Mac or Windows PC

Like the previous method, you’ll need to turn off your iPhone to unlock it after you’ve forgotten the passcode.

Turn off the iPhone

Turning off the iPhone involves different gestures, depending on your model. Here are the official options:

  • iPhone 8, iPhone 8 Plus, iPhone X, and later, including iPhone SE (2nd and 3rd generation): Press and hold both the side button and the Volume down button until the power off slider appears.
  • iPhone 7, iPhone 7 Plus, iPhone 6s, and iPhone 6: Press and hold the side button until the power off slider appears.
  • iPhone SE (1st generation), iPhone 5s, and earlier: Press and hold the top button until the power off slider appears.

In either case, you’ll want to drag the slider to turn off your iPhone.

Enter recovery mode

After waiting a minute for the phone to shut down, you’ll want to enable recovery mode. Again, the process differs depending on your iPhone. From Apple:

  • iPhone 8, iPhone 8 Plus, iPhone X, and later, including iPhone SE (2nd and 3rd generation), use the Side button.
  • iPhone 7 and iPhone 7 Plus use the Volume down button.
  • iPhone SE (1st generation), and iPhone 6s and earlier use the Home button.

As you press the correct button, you’ll want to connect your computer to the iPhone without letting go of the button.

Keep holding until you see the recovery mode icon on your iPhone.

Recovery screen on an iPhone.
Recovery screen on an iPhone. Image source: Apple Inc.

Restoring your iPhone

Depending on the operating system, you’ll want to open Finder (macOS Catalina or later) or iTunes (Windows and macOS older than Catalina). Find your iPhone, and then tap Restore.

Your computer will download the software and start the restore process. If the download takes more than 15 minutes, you’ll need to enter recovery mode again after the download finishes to finish the restore.

This process applies to the previous iPhone unlock method — if you’ve erased the iPhone from the Lock Screen. That is if you want to restore your iPhone from a Mac/Windows backup. Because the previous method will also let you restore from iCloud if you have recent backups.

Using macOS to restore an iPhone.
Using macOS to restore an iPhone. Image source: Apple Inc.

Use Find My to unlock the iPhone

Reader’s Digest also has another wireless alternative for unlocking an iPhone after you forgot the password. You can use Find My to do it by going to iCloud.com on a computer.

Open the Find My app after logging in, tap All Devices and select the iPhone you’re targeting. Press Erase iPhone, and that will get the job done. But, again, this step involves knowing your Apple ID password.

On Macs, you can just open the standalone Find My app.

The process starts once it connects to a known data network.

Like the previous methods, you’ll still want to restore from an iCloud backup or connect to a computer for a local backup. 

If any of this fails, you can always contact Apple support for further guidance.

What not to do

After you’ve restored the iPhone, make sure you set up a password that you remember. That way, you don’t have to restart the recovery process.

Whatever method you choose, you should know that all of these are safe, free-to-use unlock procedures for iPhones (and iPads) after forgetting the passcode.

You shouldn’t buy third-party apps to handle the process, even if they promise no data loss. It’s doubtful they can deliver. And if they can, then that implies breaking Apple’s encryption, something that should worry you more than erasing any personal data.

Finally, you should check out Apple Support’s video below on how to unlock an iPhone if you forgot the passcode. It covers the methods above, except for the Find My procedure, showing plenty of imagery to assist you along the way.


More iPhone coverage: For more iPhone news, visit our iPhone 14 guide.

Chris Smith Senior Writer

Chris Smith has been covering consumer electronics ever since the iPhone revolutionized the industry in 2008. When he’s not writing about the most recent tech news for BGR, he brings his entertainment expertise to Marvel’s Cinematic Universe and other blockbuster franchises.

Outside of work, you’ll catch him streaming almost every new movie and TV show release as soon as it's available.