It happens to the best of us. You changed your passcode last night in a fit of "security consciousness," woke up this morning, and your brain just... deleted it. Or maybe your toddler got a hold of the device and tapped enough random numbers to lock you out for the next forty years. Either way, learning how to unlock iphone when password is forgotten is basically a rite of passage for Apple users in 2026.
Let's be real for a second. Apple's security is world-class, which is great when a thief has your phone, but it's a nightmare when you're the one standing on the outside looking in. You’re staring at that "iPhone Unavailable" or "Security Lockout" screen, and the panic starts to set in. Take a breath. You aren't actually stuck, but you do need to understand that unless you’ve backed up your data, you’re likely looking at a factory reset. That's the trade-off for having a phone that even the FBI struggles to crack.
The "Erase iPhone" Shortcut (iOS 15.2 and Later)
If you're running a relatively modern version of iOS, Apple finally threw us a bone. You don't necessarily need a computer anymore. If you see the "Security Lockout" screen, look at the bottom. You should see an option that says "Erase iPhone."
Tap it.
The phone will ask you to confirm. It’ll then ask for your Apple ID password. This is the crucial bit: you need to know your Apple Account (formerly Apple ID) credentials. If you know that, the phone will wipe itself, delete the forgotten passcode, and reboot as if it were brand new. It’s elegant, but it only works if you have a cellular or Wi-Fi connection active on the device. No internet? No dice.
How to Unlock iPhone When Password is Forgotten Using a Mac or PC
Sometimes the on-screen "Erase" button doesn't show up. Maybe your software is too old, or the network isn't connecting. This is where you have to get old school. You’re going to need a computer—either a Mac or a PC with the Apple Devices app (or iTunes if you’re on an older Windows build).
First, turn off the iPhone.
Now, you have to put it into Recovery Mode. This is where people usually mess up because the button combo changes depending on which model you have. For an iPhone 8 or later (including the latest iPhone 15 and 16 models), you hold the Side button while immediately connecting it to the computer. Don't let go. Keep holding it until you see the support screen that shows a cable pointing toward a computer.
What happens next?
Your computer will pop up a window. It’ll say there’s a problem with the iPhone and give you two choices: "Update" or "Restore."
Choose Restore.
If you choose Update, it just tries to reinstall the OS without deleting data, which won't help you with a forgotten passcode. You need the nuclear option. The computer will download the software for your iPhone. If the download takes longer than 15 minutes, your phone might exit recovery mode. Don't flip out. Just let the download finish, turn off the phone, and do the button combo again.
The iCloud.com/find Workaround
What if you're traveling and don't have a laptop? Find a friend. Borrow their phone or use a tablet. Go to iCloud.com/find. Sign in with your Apple Account.
🔗 Read more: SpaceX Launches Cape Canaveral: What You Actually Need to Know Before Heading to the Coast
You’ll see a list of your devices. Select your locked iPhone and hit "Erase iPhone." This sends a remote command to the device to wipe everything, including that pesky passcode. Honestly, this is the fastest way if you have Find My enabled. If you didn't have Find My enabled before you forgot the password, this method won't work. It’s one of those "wish I’d done that sooner" features.
Why You Can't "Bypass" the Passcode Without Wiping Data
I see a lot of "tech gurus" on YouTube claiming they can show you how to unlock iphone when password is forgotten without losing your photos.
They are lying.
Unless you are running a version of iOS from five years ago with a known exploit, or you have a very expensive forensic tool like GrayKey (which is only sold to law enforcement), you cannot get past the passcode without erasing the phone. Apple uses a hardware-encrypted enclave. The passcode is the key. Without the key, the data is just encrypted gibberish. This is why keeping a backup in iCloud or on your MacBook is so vital. If you have a backup, the "Restore" process isn't a tragedy; it’s just a 20-minute inconvenience.
Dealing with Activation Lock
Here is the real kicker. Once you successfully erase the phone, you’ll hit the Activation Lock screen. This is Apple's "anti-theft" measure. It will ask for the Apple ID and password that was previously linked to the device.
✨ Don't miss: 9 Squared: Why This Simple Math Fact Actually Matters
If you bought the phone second-hand and the previous owner didn't log out, you’re basically holding a very expensive paperweight. You’ll need to contact them to remove the device from their account. If it’s your account and you forgot that password too, you’ll have to go through the iForgot.apple.com recovery process.
Nuances of the 2026 Security Landscape
With the introduction of Stolen Device Protection in recent iOS updates, things got a bit more complex. If you’re in a "familiar location" like your home, the process is straightforward. However, if you're trying to reset your phone in a random coffee shop, iOS might impose a "Security Delay" before allowing certain changes. This is meant to stop thieves from changing your settings even if they know your passcode, but it can be a minor hurdle for legitimate owners trying to recover their devices.
Most people don't realize that Apple Support cannot unlock the phone for you. They literally don't have a "backdoor." You can call them, and they will be very nice, but they will just walk you through the same Recovery Mode steps I just described. The only thing they can sometimes do is help you remove Activation Lock if you can provide the original proof of purchase (the receipt with the serial number).
Practical Next Steps for the Future
Once you get back into your phone, do yourself a favor.
- Set up a legacy contact: This ensures someone you trust can access your account if something happens to you.
- Enable iCloud Backup: Seriously. Settings > [Your Name] > iCloud > iCloud Backup. Turn it on.
- Use a Password Manager: Put your phone passcode in a secure vault like Bitwarden or 1Password.
- Update your "Find My" settings: Ensure "Send Last Location" is toggled on so you can find the device even if the battery dies.
The best way to handle a forgotten passcode is to make sure that losing it doesn't mean losing your memories. Go to your computer, verify your last backup date, and write down your Apple Account password in a safe place that isn't inside the phone you're trying to unlock.