Locked Out? What to Do When You Forget Your Phone Passcode or Computer Password
Forgot the passcode on your phone or the password on your computer? Here's why the lockout exists, what you can recover, and the steps to get back in on iPhone, Android, Windows, and Mac.

It happens to almost everyone eventually. You change a passcode, skip using the phone for a couple of weeks, and suddenly your fingers type something that used to be automatic and the screen says no. Maybe it even says "Unavailable." Take a breath. This is fixable, but the honest truth is that getting back in often means erasing the device first. Here is why, and how to handle it.
Why can't I just get around the passcode?
A passcode does more than guard the front door. Modern phones and computers use it to scramble (encrypt, in tech terms) everything stored inside, so the data is unreadable without it. That is great news if your phone is stolen, and frustrating news if you are the one who forgot. There is no secret back door, and no store clerk or phone company can open it for you. The only way back in is usually to wipe the device and start fresh, then restore your stuff from a backup.
Step zero: stop guessing
Every wrong guess makes the waiting time longer. On an iPhone, repeated wrong tries lock you out for longer and longer stretches, and after ten the phone shows a lockout screen. Android phones add their own delays. Guessing wildly will not help, so pause and think about what you might have changed recently. If you changed the code lately, an iPhone running a recent version of iOS will accept your previous passcode for up to 72 hours after the change, which is a handy safety net.
iPhone or iPad: "iPhone Unavailable"
Once the lockout screen appears, look in the bottom corner for an "Erase iPhone" option. Tap it and sign in with your Apple Account (the email and password you use for the App Store and iCloud). That erases the phone and lets you set it up again. If you do not see that option, or the phone will not connect to the internet, you can use a computer and Apple's recovery mode instead. Apple's support site walks through it step by step, and searching for "Apple support iPhone unavailable" will find the official page. When you set the phone up again, choose to restore from your iCloud or computer backup, and your photos, contacts, and apps come back.
Android phones
Older Android versions offered a "Forgot pattern" button, but most newer phones do not. The most reliable route is to use another device, such as a computer or a friend's phone, to visit Google's Find Hub (the service formerly called Find My Device), sign in with the Google account on your phone, choose your phone, and select the erase option. Samsung owners can also use Samsung's Find My Mobile service if they had it turned on. If neither works, the phone's recovery menu can wipe it, though the button combination differs by brand, so check your maker's support page. After a wipe, the phone will ask for the Google account that was on it. That is a theft-protection feature, so have that password ready.
Windows computers
The fix depends on what kind of account you sign in with. If you log in with an email address, you have a Microsoft account, and the sign-in screen has an "I forgot my password" link. Follow it, confirm your identity with a code sent to your phone or backup email, and choose a new password. This does not erase any files. If you use a local account (a plain username that never asked for an email), Windows may offer security questions you set up earlier. If neither works, reinstalling Windows is the last resort and will remove your files unless you backed them up.
Macs
After a few wrong attempts, a Mac login screen usually offers to reset the password using your Apple Account. Follow the prompts. If that option does not appear, Apple's support site explains how to use the Mac's built-in recovery tools, which can reset a password without wiping the whole machine in many cases.
Beware of "unlock" services
Search for this problem and you will find ads and videos for software that promises to bypass a passcode. Be cautious. Many charge money and then do nothing, some carry malware, and the legitimate ones still erase your data. The free methods above, from Apple, Google, Microsoft, and your phone's maker, are the real ones.
How to avoid this next time
Turn on automatic backups, so a wipe costs you nothing. Write your passcode down and keep it somewhere safe at home, such as a locked drawer, not on a sticky note stuck to the device. Make sure you know the password for your Apple, Google, or Microsoft account, because every recovery path runs through it. A password manager can hold those for you, and a trusted family member can keep a sealed copy of the key details. A few minutes of preparation today turns a lockout into a minor annoyance.
Discussion
Log in to join the discussion.

No comments yet — be the first to say something.