What happens when you enter the wrong password too many times
If you enter the wrong password six times in a row, your iPhone locks you out for one minute. After the tenth wrong attempt, it locks for five minutes. After the fifteenth wrong attempt, it locks for 60 minutes. If you reach the limit set by your security settings — usually after many more attempts — the phone may erase itself entirely, depending on whether you turned on "Erase Data" in Settings > Face ID & Passcode (or Touch ID & Passcode on older models).
The waiting periods reset if you get the password right. But if you genuinely do not remember your password and have no way to guess it, waiting out the timer will not help you. You need a different route.
Key Takeaways
- If you know your Apple ID password, you can reset your iPhone passcode through iCloud.com or the Find My iPhone app on another device without erasing your data.
- If you do not know your Apple ID password, you can reset it through your email or phone number, then use that to unlock your iPhone.
- Recovery Mode erases your iPhone completely but lets you set a new passcode and restore from a backup if you have one.
- If your iPhone is linked to a family member's Apple ID through Family Sharing, that person can help you reset your passcode without erasing the phone.
Using Find My iPhone to reset your passcode without erasing data
If you remember your Apple ID password, this is the fastest route. Go to iCloud.com on any computer or another phone, sign in with your Apple ID, and open Find My iPhone. Select your locked iPhone from the list of devices.
Click "Erase iPhone" — the name is misleading. You will be asked to set a new passcode before the erase happens. Once you enter a new passcode, your iPhone unlocks and keeps all your data. The old passcode is replaced; the new one takes effect when ready.
If you do not have access to a computer, you can do the same thing through the Find My app on another iPhone, iPad, or Mac that you own. Open Find My, tap Devices, select your locked phone, and tap Erase This Device.
Resetting your Apple ID password first if you have forgotten it
If you do not remember your Apple ID password, you cannot use Find My iPhone until you reset it. Go to iforgot.apple.com on any device with a web browser. Enter your Apple ID (usually your email address), and Apple will send you a reset link to that email or let you verify your identity using your phone number.
Once you have reset your Apple ID password, follow the Find My iPhone steps above. Your new Apple ID password will work when ready.
If you no longer have access to the email address or phone number tied to your Apple ID, contact Apple Support. They can verify your identity through other means and help you regain access to your account.
Using Recovery Mode when you cannot remember your Apple ID password
If you cannot reset your Apple ID password and do not have another device with Find My, you will need to use Recovery Mode. This erases your iPhone completely, but it lets you set a new passcode and restore from a backup afterward.
Connect your iPhone to a computer with a USB cable. On a Mac with Apple silicon, open Finder; on an Intel Mac or Windows PC, open iTunes. Force restart your iPhone by pressing and holding the top button and volume down button together until you see the recovery screen (the exact button combination varies by model — search "force restart [your iPhone model]" if you are unsure).
When the recovery screen appears, choose "Restore." Your computer will read the current iOS version and erase your phone. Once the erase is complete, you will be guided through setup. You can set a new passcode at that point. If you have a backup stored in iCloud or on your computer, you can restore your data after setup is finished.
Getting help from a family member through Family Sharing
If your iPhone is part of a Family Sharing group and you know the organizer's Apple ID password, that person can reset your passcode without erasing your phone. They open Find My on their device, select your iPhone, and choose "Erase This Device." They will be prompted to set a new passcode for you.
This works only if Family Sharing was set up before you forgot your passcode. If you are not sure whether your phone is in a Family Sharing group, ask the person who set up your iPhone.
What to do if you are locked out and cannot use any of these methods
If you do not remember your Apple ID password, cannot access the email or phone number tied to your account, do not have another device, and are not part of a Family Sharing group, you will need to visit an Apple Store or contact Apple Support by phone. Bring proof of purchase or your device serial number if you have it.
Apple can verify your identity through your account information and help you regain access. This process takes longer than the methods above, but it is the only option when all other routes are closed.
Preventing this situation in the future
Write your passcode down and store it somewhere safe — a physical notebook at home, a password manager, or a trusted family member. Do not store it in your phone's notes app, because you will not be able to access it if you are locked out.
Make sure you remember your Apple ID password, or store it in a password manager. Your Apple ID is the key to unlocking almost every problem with your iPhone. If you think you might forget it, write it down or save it somewhere you can reach it without your phone.
Turn on two-factor authentication for your Apple ID if you have not already. Go to Settings > [Your Name] > Password & Security > Two-Factor Authentication and turn it on. This makes your account harder to break into and gives you more ways to prove your identity if you need help from Apple.
Frequently Asked Questions
Will resetting my passcode through Find My iPhone delete my photos and messages?
No. Using Find My iPhone to reset your passcode keeps all your data on the phone. Recovery Mode erases everything, but you can restore from a backup after setup to get your photos, messages, and apps back.
How long does it take to reset my passcode through Find My iPhone?
Usually a few minutes. Your iPhone needs to connect to the internet to receive the erase command, so the speed depends on your Wi-Fi or cellular connection. Once the command goes through, the passcode resets almost when ready.
Can I unlock my iPhone if I do not have a computer?
Yes, if you have access to another iPhone, iPad, or Mac. Use the Find My app on that device to reset your passcode. If you do not have another Apple device, you can use any computer to go to iCloud.com and use Find My iPhone there.
What if my iPhone is not connected to the internet?
Find My iPhone requires an internet connection to send the erase command to your phone. If your phone is offline, turn on Wi-Fi or cellular data first. If you cannot connect to the internet, Recovery Mode is your only option, and it requires a computer.
Will Apple charge me to help me unlock my iPhone?
No. Apple does not charge for passcode resets or account recovery. If someone claiming to be from Apple asks for money to unlock your phone, it is a scam.