Stop guessing the code right now if your iPhone says “Enter Password to Unlock — 30/30 Attempts Remaining.” Each bad try can push you closer to a lockout, an erase, or a long recovery night with snacks and regret.
TLDR: If you still know the password or passcode, enter it carefully once. If you do not, use Apple’s recovery options instead of guessing. For example, if Sam has 30 tries left and burns through 10 random guesses, he may trigger longer lockouts or erase settings. A 5-minute pause now can save a 2-hour restore later.
What does “30/30 attempts remaining” mean?
This message is basically your iPhone saying, “You get a limited number of shots. Please do not treat this like a game show.”
The wording can vary. Some screens say Security Lockout. Some say iPhone Unavailable. Some ask for a password. Others ask for a passcode.
That difference matters.
- Passcode: The 4-digit, 6-digit, or custom code used to unlock the iPhone.
- Password: Often means your Apple Account password, used for iCloud, Find My, or Activation Lock.
- Security Lockout: The iPhone has seen too many wrong passcode attempts.
- Recovery Mode: A restore method using a Mac or PC when the phone cannot unlock normally.
If the screen says 30/30 attempts remaining, you may still have all attempts left. Great. That is your warning bell. Do not waste it.
First move: slow down
Honestly, it feels like the iPhone knows exactly when you are late, tired, and holding coffee. That is when the code vanishes from your brain.
Before typing anything, do this:
- Put the phone down for one minute.
- Think of where the code came from.
- Check if it changed recently.
- Try Face ID or Touch ID if still allowed.
- Ask a family member only if they helped set it up.
Do not try birthdays, pet names, old house numbers, and “123456” in a panic spiral. That is how a small problem becomes a full phone wipe.
Security Lockout vs Recovery Mode
These two sound alike. They are not the same thing.
Security Lockout happens on the iPhone itself. It appears after too many wrong passcode entries. Newer iOS versions may show an Erase iPhone option on the lock screen. That option wipes the device. It can work without a computer, but you need the Apple Account password tied to the phone.
Recovery Mode uses a Mac or Windows PC. You connect the iPhone with a cable. Then you use Finder, Apple Devices, or iTunes to restore it. This also erases the phone. After that, you can restore from an iCloud or computer backup.
Here is the simple version:
- Know the passcode? Enter it carefully.
- Forgot the passcode but know the Apple Account password? Use Erase iPhone or Find My.
- Forgot the passcode and cannot erase from the screen? Use Recovery Mode.
- Forgot the Apple Account password too? Reset it before or during setup.
What happens after wrong attempts?
iPhones are built to slow down guessing. That is good for thieves. It is annoying for real owners with foggy brains.
After several wrong passcode tries, you may see timers. A common pattern is a short wait first, then longer waits. One minute. Five minutes. Fifteen minutes. One hour. The exact behavior depends on the iOS version, settings, and device state.
If Erase Data is turned on, the iPhone may erase itself after 10 failed passcode attempts. That setting is found under Face ID or Touch ID settings. It is great for privacy. It is brutal if a toddler gets your phone and starts mashing numbers like a tiny hacker.
So yes, 30 attempts remaining sounds generous. It is not an invitation. It is a countdown.
Option 1: Use the correct passcode
This is the happy path. It is also the shortest path.
Try only if you are very sure. Think of these clues:
- Did you switch from 4 digits to 6 digits?
- Did you use the same code as an old iPhone?
- Did you change it after a repair?
- Did a parent or partner set it up?
- Did you use a work code required by your company?
If one code feels 95% right, test it once. If it fails, stop. It drives me crazy that one tiny typo can cost another attempt, especially when the keypad lagged for half a second. Still, do not rapid-fire more tries.
Option 2: Erase iPhone from the lock screen
On many newer iPhones, you may see Erase iPhone or Forgot Passcode? after enough failed attempts. This can remove the lock and wipe the device.
You will usually need:
- The Apple Account email or phone number.
- The Apple Account password.
- A Wi-Fi or cellular connection.
- Time to restore from a backup.
This is useful if you do not have a computer nearby. The phone erases itself. Then it restarts like a fresh device. During setup, Activation Lock may ask for the same Apple Account.
Image not found in postmetaOption 3: Erase with Find My
If the iPhone is online and Find My is enabled, you can erase it from another device.
Use the Find My app on another Apple device. Or go to iCloud in a browser. Pick the locked iPhone. Choose Erase This Device.
This is handy when the phone screen is stuck, broken, or not showing the erase option. It also helps if a child has locked it and you want to end the drama fast.
After erase, you still need the Apple Account password during setup. That is Activation Lock. It blocks strangers from wiping and using your phone.
Option 4: Use Recovery Mode
Recovery Mode is the classic “plug it in and start over” route.
You need:
- A Mac or Windows PC.
- A cable that works for data, not just charging.
- Finder on Mac, or Apple Devices/iTunes on Windows.
- Your Apple Account details after the restore.
The button steps depend on the iPhone model. For most modern models, connect the cable, press the volume buttons in order, then hold the side button until the recovery screen appears. Finder or Apple Devices should offer Update or Restore.
Choose Restore if the passcode is forgotten. This erases the iPhone and installs iOS again. Expect to waste time on downloads if your internet is slow. A large iOS file can take 20 minutes or much longer.
Will you lose your photos and messages?
Maybe. It depends on backups.
If iCloud Backup was on, you can restore during setup. If Photos were synced to iCloud, they should return after signing in. If Messages in iCloud was enabled, texts may come back too.
If you never backed up, the data on the locked iPhone is likely gone after an erase or restore. Apple cannot pull the passcode from the phone. That is the point of the security system.
Quick recovery checklist
- Do not keep guessing. Stop after one failed serious attempt.
- Check wording. Password and passcode are not always the same.
- Find your Apple Account login. You will need it.
- Look for backups. iCloud, Mac, or PC.
- Pick erase method. Lock screen, Find My, or Recovery Mode.
- Set a memorable passcode after setup. Not obvious. Not impossible.
How to avoid this next time
Use a passcode you can remember under stress. That does not mean “000000.” Please do not do that.
Write a hint and keep it somewhere safe. Use iCloud Keychain for your Apple Account password. Add a trusted phone number. Keep backups on. Check them once a month.
Also, teach kids that the lock screen is not a piano. Ten random taps can ruin Saturday.
The best recovery plan is boring. A recent backup. A known Apple Account password. A passcode that is strong but not cursed. If your iPhone says 30/30 attempts remaining, treat it as a gift. Pause, pick the right recovery path, and save yourself from the restore circus.


