The fastest way depends on what you have access to

If you know your Apple ID email and password, you can unlock your iPhone through iCloud or by using your Apple ID on the lock screen itself. If you have a Mac or another Apple device signed into the same Apple ID, you can use that to reset your password. If you don't have access to any of those, you'll need to erase the phone and set it up as new, which means losing everything on it unless you have a backup.

The method that works for you depends on whether you remember your Apple ID password, whether you have another Apple device, and whether you have a recent backup. Each path takes a different amount of time and carries different consequences for your data.

Key Takeaways

  • If you remember your Apple ID password, you can enter it directly on the lock screen after a few failed attempts, and your phone will unlock without erasing anything.
  • If you don't remember your Apple ID password but have access to another Apple device or a computer, you can reset it through Apple's account recovery process.
  • If you have no other Apple devices and don't remember your Apple ID password, you must erase the phone through iCloud.com or a computer, which deletes all data unless you have a backup.
  • After six failed password attempts, iOS shows an option to use your Apple ID instead of your passcode, which is the fastest unlock path if you remember that password.
  • A backup made before you forgot your password can be restored after you erase and set up the phone, recovering your photos, messages, and apps.

Using your Apple ID password on the lock screen

After you enter your passcode incorrectly six times, your iPhone will show a message saying "iPhone Unavailable" and lock you out for one minute. After the seventh failed attempt, the screen will show an option that says "iPhone Unavailable — Use your Apple ID to unlock." Tap that option and enter your Apple ID email and password.

This method does not erase your phone. Your data stays intact, and you can set a new passcode when ready after unlocking. This is the fastest and safest path if you remember your Apple ID password.

Resetting your Apple ID password on another device

If you have a Mac, iPad, or another iPhone signed into the same Apple ID, you can reset your Apple ID password without touching the locked phone. On your other device, go to Settings (or System Settings on Mac), tap your name at the top, then tap Password & Security. Choose "Change Password" and follow the prompts. Once you've set a new password, go back to your locked iPhone and use the new password on the lock screen.

If you have a Windows computer or a Mac you don't use regularly, you can also reset your Apple ID password at iforgot.apple.com. Enter your Apple ID email, choose how you want to verify your identity (usually a code sent to your phone number or recovery email), and create a new password. Then unlock your iPhone with the new password.

Erasing your iPhone through iCloud.com

If you don't remember your Apple ID password and have no other Apple devices to reset it from, you can erase your iPhone remotely using iCloud.com. Go to iCloud.com from any web browser, sign in with your Apple ID, and click "Find My iPhone." Select your locked iPhone from the list, click "Find My," then choose "Erase iPhone." Confirm your choice. Your phone will erase completely, and you'll be able to set it up as a new device.

This method erases everything on your phone — all photos, messages, apps, and settings. If you have a backup made before you forgot your password, you can restore from that backup during setup and recover most of your data. If you don't have a backup, the data is gone.

Erasing your iPhone with a computer

If you can't access iCloud.com for some reason, you can erase your iPhone using a Mac or Windows computer. Connect your iPhone to the computer with a USB cable. On a Mac, open Finder and click your iPhone in the sidebar. On Windows, open iTunes. Click "Restore" and confirm. Your computer will erase the phone and install the latest version of iOS.

Like the iCloud method, this erases all your data. You'll need to set up the phone as new or restore from a backup. The process takes 10 to 20 minutes depending on your internet speed and which iOS version is being installed.

Restoring from a backup after erasing

After you erase your iPhone and set it up as new, you'll see a screen asking "Apps & Data." Choose "Restore from iCloud Backup" or "Restore from Mac/PC Backup" depending on where your backup is stored. Sign in with your Apple ID, select the backup you want (usually the most recent one), and let the phone restore. This brings back your photos, messages, contacts, and most apps.

Backups made through iCloud happen automatically if you have iCloud+ or a free iCloud account with enough storage. Backups made through a computer happen when you connect your phone and click "Back Up Now." The most recent backup is usually from the day before you forgot your password, so you won't lose much.

What to do if you don't remember your Apple ID password either

If you've forgotten both your iPhone passcode and your Apple ID password, you'll need to recover your Apple ID first. Go to iforgot.apple.com, enter your Apple ID email, and choose how to verify your identity. Apple will send a code to your phone number or recovery email. Once you've verified, you can create a new Apple ID password, then use that password to unlock your iPhone.

If you don't have access to the phone number or email address associated with your Apple ID, you may need to contact Apple Support directly. They can verify your identity through other means and help you regain access to your account. This process usually takes longer than the other methods.

Frequently Asked Questions

Will unlocking my iPhone erase my photos and messages?

Not if you use your Apple ID password on the lock screen or reset your Apple ID password from another device — those methods keep your data intact. Only the erase methods (through iCloud or a computer) delete your data, and even then you can restore from a backup to get everything back.

How long does it take to erase and restore an iPhone?

Erasing takes 5 to 10 minutes. Restoring from a backup takes 15 to 45 minutes depending on how much data you have and your internet speed. The whole process from locked phone to usable phone usually takes under an hour.

Can I unlock my iPhone at an Apple Store?

Yes, but you'll need to prove you own the phone. Bring your ID and the original receipt or proof of purchase. The store can help you reset your Apple ID password or erase the phone if needed. Wait times vary by location.

What if I have a backup but it's more than a few months old?

You can still restore from it. You'll get back everything that was on your phone at the time the backup was made, but anything added after that backup date will be gone. It's better than losing everything.

Can I unlock my iPhone without erasing it if I don't have another Apple device?

Only if you remember your Apple ID password. If you remember that password, you can enter it on the lock screen after six failed passcode attempts, and your phone will unlock without erasing. If you don't remember either password, erasing is the only option.