What to do if you cannot remember your iPhone passcode
If you have forgotten your iPhone passcode, you cannot unlock it by guessing — after six failed attempts, the phone locks you out for 1 minute, then 5 minutes, then 15 minutes, and then longer. The only way forward is to erase the phone and set it up again. Apple offers three main routes: using iCloud remotely, using a computer with Finder or iTunes, or taking the phone to an Apple Store.
Which route works depends on whether you remember your Apple ID password, whether you have access to a computer, and how much time you have. All three routes erase the phone completely — your photos, messages, and apps are gone unless you have a backup stored in iCloud or on a computer.
Key Takeaways
- You cannot unlock an iPhone by trying passcodes after the first few attempts — the phone locks you out for increasing lengths of time.
- The fastest remote option is Find My iPhone on iCloud.com if you remember your Apple ID password, which can erase and unlock the phone in minutes.
- If you do not remember your Apple ID password, you can reset it through the Apple ID website, but this takes longer and may require proof of identity.
- Using a computer with Finder (Mac) or iTunes (Windows) requires the phone to be plugged in but does not require your Apple ID password.
- An Apple Store can unlock the phone but will ask for proof of ownership and may take several days if they need to verify your identity.
Using Find My iPhone on iCloud.com
If you remember your Apple ID email and password, this is the fastest way. Go to iCloud.com on any computer or another phone, sign in with your Apple ID, and click Find My. Select your iPhone from the list of devices.
Click the device name, then choose "Erase iPhone." Confirm the action. The phone will erase itself and restart, and you will see the setup screen. You can then create a new passcode and restore from a backup if you have one stored in iCloud. This takes about 10 to 15 minutes total.
This method only works if Find My was turned on before you forgot the passcode. If it was off, you will need to use a different route.
Resetting your Apple ID password first
If you do not remember your Apple ID password, you must reset it before you can use Find My. Go to iforgot.apple.com on any device, enter your Apple ID email, and follow the prompts. Apple will send a verification code to your email or phone number on file.
After you reset your password, wait a few minutes, then go back to iCloud.com and use Find My as described above. The delay matters — the system needs time to sync the new password across Apple's servers.
If you cannot access the email or phone number linked to your Apple ID, Apple's recovery process is longer. You will need to answer security questions you set up when you created the account, or provide a recovery key if you saved one. This can take 24 hours or more.
Using a Mac with Finder
If you have a Mac, plug your iPhone into it with a USB cable. Open Finder, click your iPhone in the sidebar under Locations, and click the General tab. Click "Restore" and confirm. Finder will download the latest iPhone software and erase the phone, then set it up again.
You do not need your Apple ID password for this method. However, when the phone restarts, it will ask for your Apple ID password before you can use it — this is Apple's anti-theft protection. If you do not remember your Apple ID password, you will need to reset it (see the section above) before you can finish setting up the phone.
This process takes 15 to 30 minutes depending on your internet speed and which iPhone model you have.
Using a Windows PC with iTunes
If you have a Windows computer, download iTunes from the Microsoft Store or Apple's website. Plug your iPhone in with a USB cable, open iTunes, and click the device icon. Click "Restore" and confirm. iTunes will download the software and erase the phone.
Like the Mac method, you do not need your Apple ID password to erase the phone, but you will need it when the phone restarts. The process takes 15 to 30 minutes.
If you have an older version of iTunes, the steps may be slightly different — look for a "Summary" tab and a "Restore iPhone" button instead.
Going to an Apple Store
If you do not have access to a computer or iCloud, or if the methods above do not work, you can visit an Apple Store. Bring the phone and a form of ID. Apple will verify that you own the device — they may ask for your receipt, the original email address used to set up the phone, or other proof.
If you can prove ownership on the spot, they can unlock the phone the same day. If they cannot verify ownership immediately, they may need to contact Apple's verification team, which can take several days. You will not be able to take the phone home until ownership is confirmed.
There is no charge for this service if you own the phone. If you cannot prove ownership, Apple will not unlock it — this is to prevent theft.
What happens after the phone is unlocked
Once the phone is erased and unlocked, you will see the setup screen. You can create a new passcode, sign in with your Apple ID, and restore your data from an iCloud backup if you have one. If you do not have a backup, your photos, messages, and apps are permanently gone.
To avoid this situation in the future, turn on iCloud backup. Go to Settings, tap your name, tap iCloud, tap iCloud Backup, and turn it on. Your phone will back up automatically when it is plugged in and connected to Wi-Fi.
Frequently Asked Questions
Can I unlock my iPhone without erasing it?
No. Apple's security system does not allow anyone to unlock an iPhone without erasing it first — not even Apple employees. This is intentional, to prevent theft. The only way to keep your data is to have a backup stored in iCloud or on a computer before you forget the passcode.
What if I do not have access to the email or phone number linked to my Apple ID?
You can still reset your Apple ID password using security questions you set up when you created the account. Go to iforgot.apple.com and follow the prompts. If you do not remember the answers to those questions either, Apple's recovery process requires you to provide proof of identity, which can take several days.
Will the Apple Store charge me to unlock my phone?
No, there is no charge if you own the phone and can prove it. Apple will ask for ID and may verify ownership through your email or receipt. If you cannot prove ownership, they will not unlock it.
How long does it take to restore from an iCloud backup?
Restoring from iCloud backup takes 30 minutes to several hours depending on how much data you have and your internet speed. Your phone will show a progress bar. Do not unplug it or turn it off during this time.
Can I unlock my iPhone if Find My was turned off?
Yes, but you will need to use a computer with Finder or iTunes, or visit an Apple Store. Find My being off only blocks the iCloud.com method — the other routes still work.