You have four main routes, depending on what you set up beforehand

If you forgot your iPhone password, you cannot straightforward guess it again — after six failed attempts, the phone locks you out for 1 minute, then 5 minutes, then 15 minutes, then an hour. After the hour lockout, you have three choices: use a recovery method you set up in advance (Face ID on another device, a trusted phone number, or a recovery key), erase the phone and set it up fresh, or take it to Apple Support. None of these are when ready, but the fastest path depends on what you prepared before you locked yourself out.

The core problem is that Apple's security is designed to stop anyone — including Apple — from bypassing your password without proof that you own the phone. That protection is why your data stays private, but it also means you cannot shortcut the process. What you can do is move through the official recovery methods in the order most likely to work for your situation.

Key Takeaways

  • If you set up Face ID or Touch ID on another Apple device, you can unlock your iPhone from that device without typing your password.
  • If you registered a trusted phone number during setup, Apple can send you a code to reset your password without erasing anything.
  • If you saved a recovery key (a 28-character code), you can use it to reset your password on any computer with a web browser.
  • If none of those methods work, you must erase the phone using a computer and iCloud, then set it up as new or restore from a backup.
  • Apple Support can verify your identity and help you regain access, but the process takes longer than the self-service methods.

Unlocking with Face ID or Touch ID from another device

If you own another iPhone, iPad, or Mac that has Face ID or Touch ID set up and is signed into the same iCloud account, this is the fastest route. Open Settings on that device, go to Settings > [Your Name] > Password & Security, and tap Change Password. You will be asked to authenticate with Face ID or Touch ID. Once you do, you can create a new password right there. Your locked iPhone will accept this new password the next time you try to unlock it.

This method works because Apple trusts that you own the other device — you have already proven your identity to it with biometric data. The new password syncs across your devices through iCloud within a few minutes. You do not need to erase anything, and all your data stays intact.

If your other device is not nearby, you can also do this on a Mac by opening System Settings, clicking your name at the top, selecting Password & Security, and clicking Change Password. You will authenticate with Touch ID or your Mac password instead.

Resetting your password using a trusted phone number

During iPhone setup, Apple asks you to register a trusted phone number — usually your own number or a family member's. If you did this, you can use that number to reset your password without erasing the phone. On your locked iPhone, tap iPhone Unavailable at the bottom of the screen, then Try After [time] once the lockout period ends. After the final lockout expires, you will see an option to Reset Using Your Trusted Phone Number.

Tap that option. Apple will send a code to the trusted number you registered. Enter that code on your iPhone, then create a new password. This method also preserves all your data — nothing is erased. The code usually arrives within a minute or two, though it can take longer if your carrier is slow to deliver SMS messages.

This route only works if you registered a trusted number before you locked yourself out. If you did not, this option will not appear, and you will need to try a different method.

Using a recovery key to reset your password

A recovery key is a 28-character code that Apple generates when you turn on two-factor authentication. It looks like this: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you saved this code somewhere safe — written down, in a password manager, or in a note — you can use it to reset your password from any computer.

Go to iforgot.apple.com on any web browser. Enter your Apple ID email address, then select I don't have my recovery key — despite the name, this page handles both scenarios. You will be asked to enter your recovery key. Once you do, Apple will let you create a new password without erasing your iPhone. The new password syncs to your phone within a few minutes.

The catch is that you must have saved the recovery key somewhere you can still reach. If you never wrote it down or stored it, this method will not work. Recovery keys are not sent to you automatically — you have to actively save them during setup or when you change your security settings.

Erasing your iPhone and setting it up fresh

If none of the above methods work, you can erase your iPhone using a computer and iCloud, then set it up as a new device or restore from a backup. This is the longest route, but it works even if you have no recovery method set up.

On any computer, go to iCloud.com and sign in with your Apple ID. Click Find My iPhone. Select your locked iPhone from the list of devices. Click Erase iPhone. Apple will wipe the phone completely and remove it from your account. You will then be able to set it up as new, and during setup you can restore from an iCloud backup if you have one.

This method requires that you remember your Apple ID password, not your iPhone password — they are different. If you also forgot your Apple ID password, you will need to reset that first at iforgot.apple.com using your email address or recovery phone number. The full process — resetting your Apple ID password, erasing the phone, and setting it up again — typically takes 30 minutes to an hour.

One important note: if you have a backup in iCloud, you can restore your data, apps, and settings after the erase. If you do not have a backup, you will lose everything on the phone. Before you erase, check whether you have an iCloud backup by signing into iCloud.com and looking at your account storage.

Taking your iPhone to Apple Support

If you cannot use any of the methods above, or if you prefer not to erase your phone, you can visit an Apple Store or contact Apple Support. Bring your iPhone and a form of ID that matches the name on your Apple ID. Apple will verify your identity, confirm that you own the device, and help you regain access. They may be able to reset your password without erasing, or they may need to erase and set up the phone for you.

This route takes longer — you may need to make an appointment, travel to a store, and wait while Apple verifies your identity. However, it is the safest option if you are unsure about the other methods or if you want professional help. Apple Support can also check whether your account has been compromised or whether someone else has tried to access it.

You can schedule an appointment at apple.com/support or call Apple Support at 1-800-MY-APPLE. Have your Apple ID email and phone number ready when you contact them.

Why you cannot bypass this process

You might wonder why Apple does not have a master password or a faster way to unlock your phone. The reason is security. If Apple could unlock your iPhone without proof that you own it, a thief or someone with access to your email could also unlock it. The recovery methods exist precisely because they prove you own the device — you have Face ID on another device, you control the trusted phone number, or you saved the recovery key in a safe place.

This design protects your data even if someone steals your phone or gains access to your email. The trade-off is that if you lose access to all your recovery methods, you have to erase the phone. That is intentional. It is the cost of having a device that no one else can unlock, even with your password.

Frequently Asked Questions

Can I unlock my iPhone if I forgot my password and do not have another Apple device?

Yes. If you registered a trusted phone number, you can reset your password using a code sent to that number. If you saved a recovery key, you can use it on any computer at iforgot.apple.com. If you have neither, you will need to erase the phone using iCloud on a computer, or visit Apple Support.

What happens to my photos and data if I erase my iPhone?

Everything on the phone is deleted. However, if you have an iCloud backup, you can restore your photos, messages, apps, and settings after you set the phone up again. Check iCloud.com to see whether you have a backup before you erase.

How long does it take to reset my password using a trusted phone number?

The code usually arrives within a minute or two, and resetting your password takes another minute or two. However, you must wait through the iPhone's lockout periods first — after six failed attempts, the phone locks you out for 1 minute, then 5 minutes, then 15 minutes, then an hour. The total time is usually 1 to 2 hours from your first failed attempt.

Do I need my Apple ID password to unlock my iPhone?

Not always. If you use Face ID on another device, a trusted phone number, or a recovery key, you can reset your iPhone password without knowing your Apple ID password. However, if you erase the phone using iCloud, you will need your Apple ID password to sign in and erase it remotely.

Can Apple unlock my iPhone without erasing it?

Apple Support can try to reset your password without erasing, but success depends on what recovery methods you set up. If you have none, erasing is usually the only option. Bring your ID to an Apple Store, and they will tell you what is possible for your specific situation.