Few things are more frustrating than picking up your iPhone and finding it locked. Maybe you forgot your pass code, entered it wrong too many times, or bought a used phone that won’t open. The good news is that Apple provides several official ways to get back in. Here is how each one works.
1. Use Face ID or Touch ID
If your pass code isn’t working, check whether bio metrics can help. Face ID or Touch ID lets you unlock the phone with your face or fingerprint. If Face ID fails, make sure nothing is covering the sensors and that your face is clearly visible. Keep in mind that after a restart, the iPhone always asks for the pass code once before bio metrics work again.
2. Unlock with Apple Watch
If you wear a mask often or Face ID struggles, an Apple Watch can help. With “Unlock with Apple Watch” enabled in Settings, your watch can unlock the iPhone when you are wearing it and it is unlocked. This only works if you set it up beforehand.
3. Erase and Reset from the Lock Screen
If you forgot your pass code, the fastest official fix on iOS 15.2 and later is built into the lock screen:
1. Enter the wrong pass code several times until you see “Security Lockout” or “iPhone Unavailable.”
2. Tap erase iPhone** at the bottom of the screen.
3. Confirm, then enter your Apple ID password to sign out of your account.
4. The phone erases itself and restarts. Set it up again and restore from your iCloud or computer backup.
This process deletes the data on the phone, so a recent backup matters. Without one, the data cannot be recovered.
4. Use a Computer and Recovery Mode
If the lock screen option isn’t available, a Mac or Windows PC can do the job:
1. Connect your iPhone to the computer. Use Finder on a Mac, or the Apple Devices app or iTunes on Windows.
2. Put the iPhone into recovery mode. On iPhone 8 and later, press and release Volume Up, press and release Volume Down, then hold the Side button until the recovery screen appears.
The computer downloads the latest iOS and reinstalls it.
4. Set the phone up again and restore your backup.
5. Erase Remotely with iCloud
If Find My iPhone was turned on, you can wipe the device from another device or from iCloud.com. Sign in with your Apple ID, open **Find Devices**, select your iPhone, and choose erase This Device**. This is also the right step if your phone is lost, though it is wise to also mark it as lost first.
6. Carrier Lock vs. Passcode Lock
Sometimes “locked” means something different. A carrier-locked iPhone only works with one network provider. To use another SIM card, contact your carrier and request an unlock. Most carriers will do this once the phone is paid off and the contract terms are met. This is a legitimate, free process in many countries.
7. Activation Lock on a Used iPhone
If you bought a second-hand phone that asks for someone else’s Apple ID, you are facing Activation Lock. This is an anti-theft feature, and it cannot be legitimately bypassed without the previous owner. Ask the seller to remove the device from their account at iCloud.com, or have them sign out in person. If the seller can’t be reached, Apple Support may help if you can show proof of purchase. Be wary of websites or apps that claim to “bypass” Activation Lock. They are usually scams, can install malware, and may even be illegal to use.
Tips to Avoid Future Lockouts
– Back up regularly to iCloud or your computer.
– Choose a pass code you can remember but others can’t easily guess.
– Keep your Apple ID email and password stored safely.
– Turn on Find My iPhone so you always have a recovery route.

Final Thoughts
Being locked out of your iPhone is stressful, but Apple’s official tools almost always provide a way back. Start with the simplest option, such as bio metrics or the lock screen erase, and move to recovery mode if needed. Avoid unofficial unlocking tools, since they put your data and privacy at risk. And remember that regular backups turn a lockout from a disaster into a minor inconvenience.

