What "locked" means and why it matters
An iPhone can be locked in several different ways, and the fix depends on which one happened. The most common is a screen lock — you've forgotten your passcode or Face ID isn't working. Less common but more serious is an Activation Lock, which Apple's servers enforce after a factory reset. There's also a carrier lock, which ties the phone to a specific mobile network. Each one requires a different approach, and trying the wrong one wastes time.
Understanding which type of lock you're facing is the first step. A screen lock keeps you out of your own phone but doesn't prevent you from using recovery tools. An Activation Lock is designed to prevent theft — even if someone has your phone, they can't use it without your Apple ID credentials. A carrier lock simply means the phone won't work on a different network until the carrier removes it.
Key Takeaways
- A forgotten passcode requires either Face ID, Touch ID, or a recovery mode reset through a computer running iTunes or Finder.
- Activation Lock requires your Apple ID and password, or proof of purchase if you've forgotten both.
- If you're locked out of your Apple ID, you can reset it through iforgot.apple.com using your recovery email or phone number.
- A carrier lock only affects which networks the phone works on and can be removed by contacting your carrier directly.
- Recovery mode erases the phone, so use it only after backing up data or confirming you have no other way in.
Unlocking a forgotten passcode on your own iPhone
If Face ID or Touch ID still works, use either one to unlock the phone immediately — you don't need the passcode at all. If biometrics aren't working, you have two paths: use a computer to reset the phone, or contact Apple Support to explore other options.
To reset via computer, connect your iPhone to a Mac or Windows PC with iTunes (Windows) or Finder (Mac). Open Finder or iTunes, select your iPhone, and look for a "Restore" button. This erases the phone and removes the passcode, but you'll need your Apple ID and password to set it up again. The process takes 15 to 30 minutes depending on your internet speed. If you don't have a computer available, Apple Support can walk you through other options, though they may ask for proof of ownership.
Recovering access to your Apple ID
If you've forgotten your Apple ID password, go to iforgot.apple.com and enter your Apple ID email address. Apple will send a reset link to your recovery email or ask you to verify a trusted phone number. You'll receive a code by text or call, enter it, and then create a new password. This usually takes a few minutes.
If you don't remember your Apple ID email or can't access your recovery email, the process takes longer. You'll need to answer security questions you set up when the account was created, or provide proof of purchase for the iPhone. Apple Support can help verify your identity through a phone call. Have your original receipt or order confirmation ready if you go this route.
Dealing with Activation Lock after a factory reset
After a factory reset, your iPhone asks for the Apple ID and password that were on the phone before the reset. This is Activation Lock, and it's intentional — it prevents someone who steals your phone from erasing it and selling it. If you're the owner but forgot the credentials, you'll need to recover your Apple ID first (see the section above), then enter those credentials on the lock screen.
If you bought the phone used and the previous owner didn't remove their Apple ID, contact them and ask them to remove the phone from their account through iCloud.com. They log in, go to Find My, select the device, and choose Remove. If you can't reach the previous owner, you'll need to contact Apple Support with proof of purchase — a receipt, invoice, or credit card statement showing you bought the phone. Apple can sometimes remove Activation Lock if you provide this proof, though the process may take several days.
Removing a carrier lock
A carrier lock means your phone only works on one mobile network. It's common on phones bought through a carrier's payment plan. To remove it, contact your carrier directly — call their customer service number or visit a store. Most carriers remove locks after the phone is paid off or after a set period (often 40 days). Some carriers charge a fee if the phone isn't fully paid.
Ask your carrier for the unlock code or confirmation that the phone has been unlocked. If they unlock it remotely, restart your iPhone to apply the change. If they give you an unlock code, you'll enter it when you insert a SIM card from a different carrier. After unlock, your phone works on any compatible network.
When you need to use recovery mode
Recovery mode is a last resort that erases your iPhone completely. Use it only if you've tried everything else and have no other way to access the phone. To enter recovery mode, connect your iPhone to a computer, open Finder or iTunes, and follow the prompts to restore. The phone will erase, and you'll set it up as new or restore from a backup.
Before you erase, understand what you're losing: any photos, messages, or files stored only on the phone will be gone. If you have a backup in iCloud or on your computer, you can restore from it after the reset. If you don't have a backup, consider contacting Apple Support first — they may have other options that don't require erasing.
What to do if none of these work
If you've tried the steps above and still can't get in, contact Apple Support directly. You can reach them through apple.com/support, by calling 1-800-MY-APPLE, or by visiting an Apple Store. Have your phone's serial number ready (it's on the back or in Settings > General > About) and any proof of purchase you have.
Apple Support can verify your identity through security questions, your recovery email, or a trusted phone number. They can also check whether the phone is reported stolen or blacklisted. If everything checks out, they may be able to remove locks or walk you through additional recovery steps. The process usually takes a phone call or two and may take a few days if they need to verify your ownership.
Frequently Asked Questions
Can I unlock my iPhone without a computer?
If Face ID or Touch ID works, you're already in. If not, you'll need a computer to use recovery mode. However, you can reset your Apple ID password on any device at iforgot.apple.com, which may help if Activation Lock is the issue. Apple Support can also help over the phone without a computer, though the process takes longer.
What happens to my data if I reset my iPhone?
A factory reset erases everything on the phone — photos, messages, apps, and settings. If you have an iCloud backup, you can restore from it after the reset and get most of your data back. If you don't have a backup, the data is gone. Always back up before attempting a reset if you can.
How long does it take to unlock an iPhone?
A passcode reset via computer takes 15 to 30 minutes. Resetting your Apple ID password takes a few minutes. Removing Activation Lock with proof of purchase can take several days. A carrier unlock is usually instant or takes a few hours after you contact your carrier.
Can I unlock someone else's iPhone?
No. Activation Lock and passcodes are designed to prevent this. If you have a phone that isn't yours, contact the owner or turn it in to local police or the carrier's store. Attempting to bypass these locks is illegal in most places.
What if my iPhone is stolen?
Use Find My (iCloud.com or the Find My app on another Apple device) to locate it, play a sound, lock it remotely, or erase it. You can also report it to your carrier and local police. Activation Lock will prevent anyone else from using the phone even if they erase it.