What to do if you've forgotten your iPhone password

If you've forgotten your iPhone password, you cannot bypass it — Apple's security is designed so that even Apple cannot unlock your phone for you. Your options depend on whether you remember your Apple ID password, whether you have a trusted device nearby, and whether you set up recovery options when you first created your account.

The fastest path is usually to use a trusted device (iPad, Mac, or another iPhone) to reset your password through iCloud. If you don't have a trusted device, you'll need to use a computer to restore your iPhone through Apple's recovery process, which erases the phone but lets you set it up fresh with your Apple ID.

Key Takeaways

  • You cannot bypass your iPhone password — you must reset it using your Apple ID or erase the phone and set it up again.
  • If you have another Apple device (iPad, Mac, or another iPhone), you can reset your password in Settings without erasing anything.
  • If you don't have a trusted device, you'll need a computer running iTunes or Finder to put your iPhone into recovery mode and erase it.
  • After erasing, you'll set up your iPhone fresh and can restore your data from a backup if you have one saved to iCloud.
  • The entire process takes 30 minutes to an hour, depending on your internet speed and whether you have backups ready.

Using a trusted device to reset your password

A trusted device is any iPhone, iPad, or Mac that you've already signed into with your Apple ID. If you have one nearby, this is the simplest way to regain access.

On your trusted device, open Settings and tap your name at the top. Tap Password & Security, then tap Change Password. Follow the prompts to create a new password. Your iPhone will ask you to enter this new password the next time you try to unlock it. You don't need to erase anything, and your data stays exactly as it is.

If you don't remember your Apple ID password either, you can still use a trusted device. On that device, go to Settings, tap your name, then tap Password & Security and select Change Password. Apple will send a verification code to a phone number or email address associated with your account — you'll need access to one of those to proceed.

Erasing your iPhone using a computer

If you don't have a trusted device, you'll need to erase your iPhone and set it up again. This requires a Mac or Windows computer with either iTunes (Windows) or Finder (Mac). Connect your iPhone to the computer with a USB cable.

On Mac, open Finder and click your iPhone in the sidebar. Click Restore to begin the recovery process. On Windows, open iTunes, click the iPhone icon, and select Restore. Your computer will read the latest iOS software and install it on your phone, which erases everything on the device.

During this process, your iPhone will restart several times. When it finishes, you'll see the setup screen. Sign in with your Apple ID, and you can restore your data from an iCloud backup if you have one. If you don't have a backup, you'll start with a blank phone.

What happens if you don't remember your Apple ID password

Your Apple ID password is separate from your iPhone lock screen password. If you've forgotten both, you'll need to reset your Apple ID password first before you can set up your iPhone again.

Go to iforgot.apple.com on any computer or phone. Enter your Apple ID (usually your email address), and Apple will send a verification code to a trusted phone number or email address on file. Enter that code, then create a new Apple ID password. Once you've done this, you can use the steps above to regain access to your iPhone.

If you don't have access to the phone number or email address associated with your Apple ID, the process takes longer. Apple will ask you to verify your identity using your device serial number and other account information. You can find your serial number in Settings > General > About on any device, or on the original box your iPhone came in.

Restoring data from your iCloud backup

When you set up your iPhone after erasing it, you'll have the option to restore from a backup. If you've been backing up to iCloud, your photos, messages, contacts, and most apps will be restored automatically once you sign in with your Apple ID.

The restore process happens in the background and can take anywhere from a few minutes to several hours, depending on how much data you have and your internet speed. Your phone will be usable while this happens, though it may run slowly until the restore completes. You don't need to keep your phone plugged in, but a strong Wi-Fi connection helps.

If you don't have an iCloud backup, you can still restore some data from a computer backup if you've used iTunes or Finder to back up your phone in the past. When you set up your iPhone, choose the option to restore from a computer backup instead of iCloud.

Preventing this from happening again

Once you've regained access, take a few minutes to set up recovery options so you don't get locked out again. In Settings, tap your name, then Password & Security. Make sure you have at least one trusted phone number and one trusted email address on file. These are what Apple uses to verify your identity if you forget your password.

Turn on iCloud backup so your data is saved automatically. Go to Settings, tap your name, then iCloud, then iCloud Backup. Toggle it on. Your phone will back up whenever it's plugged in, locked, and connected to Wi-Fi. This means if you ever need to erase your phone again, you can restore everything without losing a thing.

Consider using a password manager like iCloud Keychain to store your Apple ID password securely. In Settings, tap Passwords, then tap Password Options. Turn on iCloud Keychain, and your passwords will sync across all your Apple devices.

Frequently Asked Questions

Can I unlock my iPhone without erasing it if I don't have a trusted device?

No. Without a trusted device or your Apple ID password, erasing is the only way forward. Apple's security prevents any other method of bypassing the lock screen. The good news is that erasing and restoring from backup takes about an hour and leaves you with a fully functional phone.

What if I don't have a backup and I erase my iPhone?

You'll have a blank phone with no photos, messages, or app data. Your contacts may restore if they're synced to your Apple ID. Going forward, turn on iCloud backup so this doesn't happen again. Some data like text messages and photos can sometimes be recovered through your carrier or cloud services if they were synced.

How long does it take to restore from an iCloud backup?

The initial setup takes 10 to 15 minutes. Restoring your data from iCloud happens in the background and can take anywhere from 30 minutes to several hours depending on how much data you have and your internet speed. Your phone is usable while this happens, though it may be slower.

Do I need to use the same computer to restore my iPhone?

No. Any Mac or Windows computer with iTunes or Finder will work. You don't need the computer you originally used to set up your phone. Just connect your iPhone with a USB cable and follow the restore steps.

Will my apps reinstall automatically after I restore from backup?

Most apps will reinstall automatically if they're still available in the App Store and you're signed in with the same Apple ID. Some older or discontinued apps may not be available. You can manually reinstall any missing apps from the App Store after your phone finishes restoring.