What to do if you're locked out of your own iPhone
If you've forgotten your passcode, you have three main paths: use your Apple ID to reset it remotely, restore the phone through a computer, or take it to Apple. Which one works depends on whether you set up Find My iPhone, whether you have access to the computer you originally synced it with, and how much time you have. None of these routes will recover your data if you don't have a backup — the phone will be wiped during the unlock process.
The fastest option if you remember your Apple ID password is to use Find My iPhone from another device or iCloud.com. If you don't have Find My iPhone turned on, you'll need a computer and a USB cable. If you have neither, Apple can unlock it in person, but you'll need proof of purchase or ownership.
Key Takeaways
- Resetting your passcode erases all data on the phone unless you have a backup stored in iCloud or on a computer.
- Find My iPhone (if enabled) lets you reset your passcode from any web browser or another Apple device without a computer.
- If Find My iPhone is off, you need the computer you originally synced the phone with, or you need to visit an Apple Store with proof of purchase.
- The entire process takes minutes if you have the right setup, or several days if you need an in-person appointment at Apple.
- Turning on Find My iPhone and keeping your Apple ID password written down somewhere safe prevents this problem in the future.
Using Find My iPhone if you remember your Apple ID
This is the fastest method if Find My iPhone is already turned on. Go to iCloud.com from any computer or phone, sign in with your Apple ID, and select Find My. Click Find My iPhone, then select your locked phone from the list. Choose Erase iPhone, and the phone will reset to factory settings. You'll then be able to set it up again from scratch.
If you don't have access to a computer or another Apple device right now, you can also use the Find My app on another iPhone, iPad, or Mac that's signed in with the same Apple ID. The process is identical: open Find My, select your locked phone, and choose Erase iPhone.
This method works only if Find My iPhone was enabled before you got locked out. If you never turned it on, you'll need to use one of the other routes.
Restoring through a computer if you have one
If you have a Mac or Windows computer and a USB cable, you can restore the phone without needing Find My iPhone. Connect the phone to the computer, open Finder (on Mac) or iTunes (on Windows), and select your phone when it appears. Choose Restore, and the computer will read the latest iOS and install it on the phone. This erases everything and lets you set up the phone again.
This method works even if Find My iPhone is off. However, you may be asked to sign in with the Apple ID that was originally set up on the phone — this is Apple's anti-theft protection. If you remember that Apple ID and password, you can sign in and continue. If you don't, the computer will tell you that you need to sign in, and you'll have to use a different method.
The restore process takes 15 to 30 minutes depending on your internet speed and how large the iOS read is.
What to do if you don't have a computer or Find My iPhone
If Find My iPhone is off and you don't have access to a computer, your only option is to visit an Apple Store or contact Apple Support to arrange an in-person unlock. Bring the phone and proof that you own it — this can be your original receipt, the box it came in, or a photo of the serial number from your Apple ID account.
Apple will verify your identity and ownership, then erase the phone and set it up for you. This process usually takes 30 minutes to an hour, but you may need to make an appointment, which could add several days of waiting depending on how busy your local store is.
If you don't have proof of purchase, Apple may still help you, but the process takes longer because they have to verify your identity through other means — usually by checking your Apple ID account history and asking security questions.
Understanding the anti-theft protection you'll encounter
When you reset an iPhone, you'll be asked to sign in with the Apple ID that was originally set up on it. This is called set up Lock, and it's designed to prevent someone else from using a stolen phone. If you're the owner and you remember the Apple ID and password, just sign in and you're done.
If you don't remember the Apple ID password, you can reset it through Apple's website before you start the unlock process. Go to iforgot.apple.com, enter the Apple ID email address, and follow the steps to reset the password. You'll need access to the email address or phone number associated with the account.
If you don't remember the Apple ID email address itself, or if the account uses an email you no longer have access to, contact Apple Support. They can help verify your identity and regain access to the account, but this process takes longer and requires proof of ownership.
How to prevent this from happening again
Turn on Find My iPhone now, before you forget your passcode. Go to Settings, tap your name at the top, select Find My, then Find My iPhone, and toggle it on. This takes 30 seconds and makes future lockouts much faster to solve.
Write your Apple ID password down and store it somewhere safe — a notebook in a drawer, a safe, or a password manager. Don't store it in your phone's Notes app, because you won't be able to access it if you're locked out. If you use a password manager like 1Password or Bitwarden, print out the emergency access code or recovery key and keep it in a physical location.
If you have a backup of your phone in iCloud, you'll be able to restore your data after you unlock it. Go to Settings, tap your name, select iCloud, and make sure iCloud Backup is on. This happens automatically if you're connected to Wi-Fi and plugged in overnight.
What happens to your data during the unlock process
Unlocking your iPhone erases everything on it — all photos, messages, apps, and settings. The phone goes back to the state it was in when it left the factory. You won't recover any of this data unless you have a backup.
If you have an iCloud backup, you can restore from it after you unlock the phone and set it up again. During setup, you'll be asked if you want to restore from a backup, and you can choose your most recent one. This puts all your photos, messages, contacts, and app data back on the phone.
If you don't have a backup, the data is gone. This is why turning on iCloud Backup before you get locked out matters — it's not about security, it's about not losing years of photos and messages.
Frequently Asked Questions
Can Apple unlock my iPhone if I don't have proof of purchase?
Yes, but it takes longer. Apple can verify your identity through your Apple ID account history, security questions, and other information. The process may take several days instead of 30 minutes, and you may need to visit the store multiple times or provide additional documentation.
Will I lose my photos and messages when I unlock my iPhone?
Yes, unless you have a backup. The unlock process erases the phone completely. If you have iCloud Backup turned on, you can restore your data after you set the phone up again. If you don't have a backup, the data cannot be recovered.
What if I forgot my Apple ID password too?
Go to iforgot.apple.com and reset it using the email address or phone number associated with your account. If you don't have access to that email or phone number, contact Apple Support and they can help verify your identity and regain access to the account.
How long does it take to unlock an iPhone at Apple?
The actual unlock process takes 30 minutes to an hour. However, you may need to make an appointment, which could mean waiting several days depending on how busy your local Apple Store is. Call ahead or check the Apple Store website to see current wait times.
Can I unlock someone else's iPhone?
No. set up Lock prevents anyone except the original owner from using a locked iPhone, even if they have physical access to it. This is intentional — it's designed to make stolen phones useless. If you have a phone that belongs to someone else, contact that person or take it to an Apple Store.