You cannot retrieve a forgotten iPhone password, but you can reset it
If you have forgotten your iPhone passcode, Apple does not have a way to look it up or send it to you. Instead, you will need to reset your device, which erases everything on it and lets you set a new passcode. The method you use depends on whether you remember your Apple ID password, whether you have a computer nearby, and what kind of iPhone you own.
The fastest route for most people is using Find My iPhone on iCloud.com or another device. If you do not have access to that, you can use a computer with iTunes or Finder, or you can take your iPhone to an Apple Store. Each path takes a different amount of time and requires different information.
Key Takeaways
- You will need to erase your iPhone completely to set a new passcode, because Apple does not store or recover lost passcodes.
- If you remember your Apple ID password, you can reset your device from iCloud.com using any web browser, and your data will restore from a backup if you have one.
- If you do not remember your Apple ID password, you can use a Mac or Windows computer with Finder or iTunes to reset your iPhone without erasing it.
- An Apple Store can reset your iPhone if you bring proof of ownership, but you may wait several hours or need an appointment.
- After you reset your device, you will need to set a new passcode and sign in with your Apple ID to use your iPhone again.
Reset your iPhone using iCloud.com if you know your Apple ID password
Go to iCloud.com in any web browser on a computer or another device. Sign in with your Apple ID and password. Click Find My in the menu, then click Find My iPhone.
A map will appear showing your devices. Click the iPhone you want to reset. A panel will open on the right side. Click Erase This Device. You will be asked to confirm — click Erase again. Your iPhone will begin erasing when ready, even if it is turned off or not connected to the internet. Once the erase is complete, you will see a setup screen on your iPhone asking you to enter your Apple ID password.
If you have a backup of your iPhone stored in iCloud, you can restore your photos, messages, and other data after you set your new passcode. If you do not have a backup, your iPhone will start as a new device and you will need to add your apps and data manually.
Reset your iPhone using a computer if you do not remember your Apple ID password
Connect your iPhone to a Mac or Windows computer using a USB cable. On a Mac with macOS Monterey or newer, open Finder and click your iPhone in the sidebar. On a Windows computer or an older Mac, open iTunes instead.
In Finder or iTunes, look for a button labeled Restore. Click it. Your computer will read the latest iPhone software and install it on your device. This process takes 15 to 30 minutes depending on your internet speed. When it finishes, your iPhone will show the setup screen. You will be asked to enter your Apple ID password to continue.
This method erases your iPhone the same way iCloud does, but it does not require you to remember your Apple ID password beforehand. However, you will still need to sign in with your Apple ID after the reset is complete, so if you have forgotten that password as well, you will need to reset it on Apple's website before you can use your iPhone.
What to do if you have forgotten both your passcode and Apple ID password
If you cannot remember either password, you will need to reset your Apple ID password first. Go to iforgot.apple.com in a web browser. Enter your Apple ID email address and follow the steps to verify your identity. Apple will send a code to your email or phone number, or you can answer security questions you set up earlier. Once you have reset your Apple ID password, you can use the iCloud.com method or the computer method above.
If you do not have access to the email address or phone number associated with your Apple ID, or if you cannot answer your security questions, you will need to visit an Apple Store. Bring a photo ID and proof that you own the iPhone, such as a receipt or the original box. An Apple Store employee can help you regain access to your account and reset your device.
Visit an Apple Store if you do not have a computer or another device
If you do not have access to a computer, another iPhone, or a web browser, you can take your iPhone to an Apple Store. Bring a photo ID and proof of purchase if you have it. An employee will verify that you own the device and then reset your iPhone for you.
Wait times at Apple Stores vary. You can check the store's website or call ahead to see if you need an appointment. Some stores will reset your device while you wait, but during busy times you may need to leave it for a few hours or come back the next day. After the reset, you will set up your iPhone at home using your Apple ID.
Set up your iPhone after the reset is complete
When your iPhone finishes erasing, it will show the Hello screen. Follow the on-screen steps to choose your language and region. When you reach the Face ID or Touch ID screen, you can set up biometric unlock if you want, or skip it and use only your passcode.
You will be asked to create a new passcode. Choose something you can remember but that is not obvious — avoid birthdays, sequential numbers like 1234, or repeating numbers like 1111. Write it down in a safe place, or use a password manager to store it. After you set your passcode, you will sign in with your Apple ID. If you have an iCloud backup, you can restore your photos, messages, and other data at this point.
Prevent this from happening again
Once you have set up your iPhone with a new passcode, consider using Face ID or Touch ID so you do not have to type your passcode every day. You are less likely to forget a biometric unlock method. You can still use your passcode as a backup if your face or fingerprint does not work.
Store your Apple ID password in a password manager like iCloud Keychain, 1Password, or Bitwarden. A password manager remembers your passwords for you and fills them in automatically, so you do not have to memorize them. If you forget your Apple ID password in the future, you can look it up in your password manager instead of going through a reset.
Frequently Asked Questions
Will I lose my photos and messages when I reset my iPhone?
Your photos and messages will be erased during the reset. However, if you have an iCloud backup, you can restore them after you set your new passcode. If you do not have a backup, they are gone permanently. To prevent this in the future, turn on iCloud backup in Settings so your data is saved automatically.
How long does it take to reset an iPhone?
Using iCloud.com takes 5 to 15 minutes from start to finish. Using a computer with Finder or iTunes takes 15 to 30 minutes because the software read is larger. An Apple Store reset usually takes 30 minutes to an hour, but you may wait longer if the store is busy.
Can I reset my iPhone without erasing it?
No. Resetting your passcode requires erasing your device because Apple does not store passcodes and cannot retrieve them. However, if you have a backup, your data will restore after the reset, so you will not lose anything permanently.
What if my iPhone is locked and I cannot turn it on?
You can still reset it using iCloud.com or a computer. Your iPhone does not need to be powered on or connected to the internet for these methods to work. Apple's servers can erase your device remotely.
Do I need my original Apple ID to set up my iPhone after the reset?
Yes. After you reset your iPhone, you will need to sign in with an Apple ID to use it. You can use the same Apple ID you used before, or you can create a new one. If you have forgotten your original Apple ID password, reset it at iforgot.apple.com before you set up your iPhone.