The fastest way depends on whether you remember your Apple ID password
If you've forgotten your iPhone passcode, Apple gives you three main paths back in. The quickest one — taking 10 to 15 minutes — works only if you remember your Apple ID password and have a computer or another Apple device nearby. The slowest one takes you through Apple Support and can take several days, but it works even if you've forgotten everything. Which path you take depends on what you still remember and what devices you have access to.
None of these methods will recover your data if you've never set up iCloud backups. That's the hard truth upfront. But if you have backups, you can restore your phone to working condition and get your photos, messages, and contacts back after you unlock it.
Key Takeaways
- If you remember your Apple ID password, you can unlock your iPhone through iCloud.com or Find My iPhone on another Apple device in under 20 minutes.
- If you don't remember your Apple ID password but have access to the email address or phone number tied to that account, you can reset it through Apple's account recovery page.
- If you have a Mac or iPad, you can use the Find My app to erase your iPhone remotely and set it up again without visiting an Apple Store.
- Apple Support can unlock your iPhone by verifying your identity through your receipt, serial number, or other proof of purchase, but this process takes several business days.
- Once unlocked, you can restore your data from an iCloud backup if you created one before you forgot your passcode.
Unlocking through iCloud if you remember your Apple ID password
Go to iCloud.com on any computer or another person's iPhone. Sign in with your Apple ID and password. Click Find My (or Find My iPhone on older accounts), then select your iPhone from the device list.
Click Erase iPhone. This removes your passcode and wipes the phone clean. You'll then set it up as new, and during setup you can restore from an iCloud backup if you have one. This takes about 10 minutes if your phone is connected to the internet. If your phone is offline, the erase command will go through the next time it connects.
If you have a Mac or iPad, you can do the same thing through the Find My app instead of going to a website. Open Find My, click the Devices tab, select your iPhone, and choose Erase This Device.
Resetting your Apple ID password if you've forgotten that too
Go to iforgot.apple.com on any browser. Enter the email address or phone number tied to your Apple ID. Apple will send you a link to reset your password — check the email inbox or look for a text message.
Click the reset link and create a new password. You'll need to answer security questions or verify your identity through a trusted device or phone number. This usually takes 5 to 10 minutes. Once your Apple ID password is reset, follow the iCloud unlock steps above.
If you can't access the email address or phone number on your account, Apple's account recovery process takes longer — usually 3 to 5 business days. You'll answer security questions about your account history, and Apple will verify your identity before letting you regain access.
Using Find My on another Apple device
If you have a Mac, iPad, or another iPhone, you can unlock your phone through the Find My app without going to a website. Open Find My, tap the Devices tab, select your locked iPhone, and tap Erase This Device. You'll need to sign in with your Apple ID password on that device.
This method works the same way as using iCloud.com — it erases your passcode and lets you set up your phone fresh. The advantage is that you don't need to remember a web address or navigate a browser. If you're at home with a Mac or iPad, this is often the fastest route.
Contacting Apple Support if you can't use iCloud
If you don't remember your Apple ID password and can't reset it through iforgot.apple.com, or if you don't have access to any other Apple devices or a computer, you'll need to contact Apple Support. Go to support.apple.com, select your iPhone, and choose the option for a locked or disabled device. You can request a callback, start a chat, or schedule an appointment at an Apple Store.
Apple will ask you to prove you own the phone. They typically accept a receipt, the serial number from the original box, or information about your AppleCare plan. This verification process takes 1 to 3 business days. Once verified, Apple can unlock your phone remotely or walk you through the unlock process.
If you have your receipt and serial number handy, the process moves faster. If you don't, Apple may ask additional questions about when you bought the phone, what color it is, or other details only the owner would know.
What happens to your data after you unlock
Unlocking your iPhone through any of these methods erases the phone. You start with a blank device. During setup, you'll be asked whether you want to restore from an iCloud backup. If you have backups turned on and synced before you forgot your passcode, your photos, messages, contacts, and most apps will come back.
If you never set up iCloud backups, or if your last backup was from months ago, you'll only recover data from that point in time. Apps you installed after the backup won't be there. Messages and photos added after the backup won't return. This is why turning on iCloud backups now — before you forget another passcode — matters.
To check whether you have backups, go to Settings > [Your Name] > iCloud > iCloud Backup on any unlocked iPhone. If it says "Back Up Now" and shows a recent date, you have backups. If it's off, turn it on.
Preventing this from happening again
Write down your Apple ID password and store it somewhere find — a password manager, a locked drawer, or a trusted person's safe. Don't store it in your phone's Notes app or in a text message to yourself.
Turn on iCloud backups in Settings > [Your Name] > iCloud > iCloud Backup and make sure it's set to back up daily. This takes a few minutes the first time and then runs automatically when your phone is plugged in and on WiFi.
Set up a recovery email address and recovery phone number on your Apple ID account. Go to Settings > [Your Name] > Password & Security and add both. If you forget your password, you'll have multiple ways to reset it without calling Apple Support.
Frequently Asked Questions
Can I unlock my iPhone without erasing it?
No. Apple's security design means that to remove a passcode you don't know, the phone must be erased. There is no way around this — not through Apple, not through third-party tools, and not through any other method. If you have an iCloud backup, your data comes back after you erase and restore.
What if my iPhone is not connected to the internet?
The erase command will still go through the next time your phone connects to WiFi or cellular data. If you need it unlocked when ready, you can set up WiFi during the initial setup screen before you enter a passcode. Once connected, the erase will complete.
Do I need to go to an Apple Store to unlock my phone?
No. You can unlock it yourself through iCloud.com or Find My on another device. You only need to visit an Apple Store if you can't reset your Apple ID password and can't reach Apple Support online, or if you prefer in-person help.
What if I bought my iPhone secondhand and don't have the original receipt?
Contact Apple Support and explain the situation. They can still help you, but verification will take longer — usually 3 to 5 business days. They may ask questions about the phone's serial number, color, storage capacity, and when you acquired it. If you can provide the serial number from the back of the phone or the Settings app, that helps speed things up.
Can someone else unlock my iPhone if they know my Apple ID password?
Yes, which is why your Apple ID password should be treated like your banking password. If someone has it, they can erase your phone remotely through iCloud.com or Find My. If you think someone has accessed your account, change your Apple ID password when ready at iforgot.apple.com and enable two-factor authentication in Settings > [Your Name] > Password & Security.