Forgetting your phone’s PIN is a frustrating lockout that can happen to anyone, but the recovery path is different depending on whether you use Android or iOS. This guide covers the official, safe methods to regain access to your device without losing your data, and explains what to do when those methods don’t work.
What You’ll Need
- Your phone’s Google account credentials (for Android) or Apple ID and password (for iPhone).
- A computer or another phone with internet access.
- A USB cable (for Android, if using a computer).
- Your phone’s backup password or recovery key if you use encrypted backups.
Step-by-Step
For iPhone (iOS)
- Try the “Erase iPhone� option after too many attempts. If you enter the wrong PIN repeatedly, iOS will eventually show a “Phone Unavailable� or “Security Lockout� screen with an “Erase iPhone� button. Tap it, and you’ll be prompted to enter your Apple ID password to confirm. This erases the phone and its PIN, allowing you to set it up as new or restore from a backup.
- If the “Erase iPhone� button isn’t visible, use a computer. Connect your iPhone to a computer you trust, open Finder (on macOS Catalina or later) or iTunes (on Windows or older macOS), and put the phone into Recovery Mode. The exact button combination depends on your iPhone model—for most modern iPhones, press and release Volume Up, press and release Volume Down, then hold the Side button until the Recovery Mode screen appears. When prompted, choose “Restore� to wipe the phone and remove the PIN.
- Use iCloud Find My. If you have Find My iPhone enabled, go to iCloud.com/find on a computer, sign in with your Apple ID, select your device, and click “Erase iPhone.� This will remotely wipe the device and its PIN. After erasing, you can restore from an iCloud or computer backup.
- Set up your iPhone. After the erase, you’ll see the “Hello� screen. Follow the setup steps, and when asked, restore from the backup you made before the lockout. If you don’t have a backup, you’ll need to set up as new, which means you’ll lose any data that wasn’t backed up.
For Android
- Try “Forgot Pattern� or “Forgot PIN� after several wrong attempts. On many Android devices, after 5-10 failed attempts, a “Forgot Pattern� or “Forgot PIN� link appears. Tap it, sign in with your Google account, and you’ll be able to set a new PIN. This works on older Android versions (up to Android 8) and some newer ones with a Samsung account instead.
- Use “Find My Device� (Google). On a computer or another phone, go to google.com/android/find and sign in with the Google account that was on the locked phone. Select the device, and choose “Erase Device.� This will remotely wipe the phone, including the PIN. After the wipe, you can sign in with your Google account and restore from a backup.
- For Samsung devices, use “Find My Mobile.� If you have a Samsung account, go to findmymobile.samsung.com, sign in, select your device, and choose “Unlock� (if available) or “Erase Data.� The “Unlock� option removes the PIN without erasing data, but it requires that you have a Samsung account set up and the device is connected to the internet.
- Use Recovery Mode (last resort). If none of the above work, you can boot your Android phone into Recovery Mode (usually by turning it off, then holding Power + Volume Down, or the specific combination for your model) and select “Wipe data/factory reset.� This will erase everything, including the PIN, and restore the phone to factory settings. After that, you can set it up again.
Common Mistakes
- Guessing the PIN too many times. Each wrong attempt increases the lockout time, and after 10 attempts, most phones will permanently lock or erase. Stop guessing after a few tries.
- Using a backup that doesn’t include your recent data. If you restore from an old backup, you’ll lose anything added after that backup. Make sure you use the most recent backup available.
- Forgetting your Google/Apple ID password. You’ll need it to unlock or erase the phone. If you’ve forgotten it, you must recover that account first before you can proceed.
- Not enabling Find My iPhone/Find My Device before the lockout. If you didn’t set up these features, you can’t use them to erase your phone remotely. In that case, a computer-based restore or factory reset is your only option.
Tips
- Always keep a recent backup. Regularly back up your iPhone to iCloud or your computer, and your Android to Google Drive or your computer. This ensures that even if you have to erase your phone, you won’t lose everything.
- Use biometric unlock as a backup. If your phone supports fingerprint or face unlock, set it up. Even if you forget your PIN, you can often use your fingerprint or face to unlock the phone and then change the PIN in settings.
- Write down your PIN in a secure place. Use a password manager or a physical note kept somewhere safe. Avoid storing it in your phone’s notes app, as that would be locked too.
- Keep your recovery email and phone number up to date. This makes it easier to recover your Google or Apple account if you forget those passwords.
Troubleshooting
- “Find My Device� doesn’t show your phone. Make sure you’re signed in with the correct Google account, and that the phone is turned on and connected to the internet (via Wi-Fi or mobile data). If it’s offline, the erase command will be queued and will execute the next time the phone connects.
- Recovery Mode doesn’t work. The button combination varies by phone model. Look up the exact combination for your specific model online, or try a different combination (e.g., Power + Volume Up instead of Down). If you’re still stuck, contact your phone manufacturer’s support.
- Your iPhone is disabled and won’t connect to iTunes/Finder. Put the iPhone into Recovery Mode manually (as described above) and then connect it to the computer. If the computer doesn’t recognize it, try a different USB cable or port, and make sure you have the latest version of iTunes or Finder.
- You don’t remember your Apple ID or Google password. Go to the account recovery page (iforgot.apple.com for Apple, accounts.google.com/recovery for Google) and follow the steps to reset it. You may need access to your recovery email or phone number.
- After erasing, you can’t restore from backup because the backup is encrypted. You’ll need the backup password that was set when you created the backup. If you don’t have it, you’ll have to set up the phone as new.
Frequently Asked Questions
Can I unlock my phone without losing data?
On Android, if you use Samsung’s “Find My Mobile� and have the “Unlock� option, you can remove the PIN without erasing data. On iPhone, there is no official way to remove the PIN without erasing the phone. However, if you have a recent backup, you can restore your data after the erase.
Will a factory reset remove the PIN?
Yes, a factory reset (or “Erase Device�) removes the PIN, but it also deletes all data on the phone. After the reset, you’ll need to set up the phone again, and you can restore from a backup if you have one.
What if I never enabled Find My iPhone or Find My Device?
If you didn’t enable these features, you can’t use them to erase your phone remotely. Your only option is to use a computer to restore the phone (for iPhone) or boot into Recovery Mode and do a factory reset (for Android). This will also erase all data.
How many attempts do I get before my phone locks permanently?
It varies by device and OS version. Most iPhones lock after 10 failed attempts, and older Android devices may lock after 5-10 attempts. After that, you’ll see a message telling you to try again later, or the phone may erase itself if you have that setting enabled.
Can I use my fingerprint or face to unlock if I forgot the PIN?
Yes, if you had set up biometric unlock before forgetting your PIN, you can often use it to unlock the phone. Once unlocked, you can go to Settings and change or remove the PIN. However, after a reboot or after a long period of inactivity, some phones require the PIN first.
Is there any software that can unlock a phone without erasing?
There are third-party tools that claim to unlock phones, but they are unreliable, often require payment, and may not work with the latest OS versions. They also pose a security risk. The official methods described above are safer and more likely to work.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- ViewSonic Driver: Find & Install the Right One
- iPhone Camera Won’t Focus? Fix It in 8 Steps
- iPhone Data Recovery: How to Install and Use It
- How to Refill Your Transit Card in Apple Maps
- Fix Bad Sectors in Hard Disk on Windows 10
- Best Smartphone Camera Features for Everyday Photos