You cannot retrieve a password you forgot, but you can reset it in minutes
Apple does not store your iPhone password anywhere you can look it up. If you forgot the password to unlock your phone, you will need to reset it using your Apple ID, a recovery key, or a trusted device. If you forgot your Apple ID password instead, you can reset that separately through Apple's account recovery process. The method you use depends on what information you have access to right now.
The fastest path is usually the one that matches what you already have: a trusted device signed into your Apple ID, a phone number or email address you control, or access to your computer. Each route takes a different amount of time and requires different steps.
Key Takeaways
- Your iPhone screen lock password cannot be retrieved — it can only be reset by erasing the phone and setting it up again with your Apple ID.
- If you have another Apple device signed into the same Apple ID, you can reset your iPhone password directly from that device without erasing anything.
- If you have your Apple ID password, you can reset your iPhone lock code through Settings on the phone itself, without needing another device.
- If you forgot both your iPhone password and your Apple ID password, you will need to verify your identity using a recovery key, phone number, or email address before you can proceed.
- The entire process usually takes between 5 and 30 minutes, depending on which method you use and whether Apple needs to send you a verification code.
Resetting your iPhone lock code when you have another Apple device
If you own an iPad, Mac, or another iPhone signed into the same Apple ID, this is the fastest way to regain access. Go to Settings on the trusted device, tap your name at the top, then select "Password & Security." Tap "Change Password" and follow the prompts. Your iPhone will receive the new password automatically if it is connected to Wi-Fi or cellular data.
This method does not erase your phone and does not require you to know your old password. It works even if your iPhone is locked, as long as it is powered on and can reach the internet. The new password takes effect within a few minutes.
Resetting your lock code through Settings if you know your Apple ID password
If your iPhone is unlocked or you can unlock it with Face ID or Touch ID, you can change your lock code directly without touching another device. Go to Settings, tap "Face ID & Passcode" or "Touch ID & Passcode" depending on your model, then tap "Change Passcode" at the top. You will be asked to enter your current passcode first, then your Apple ID password, then your new passcode.
This method requires you to know your Apple ID password but not your current lock code. If you do not know either one, you will need to use a different method.
Resetting your Apple ID password to unlock your account
If you forgot your Apple ID password but still have access to the phone number or email address connected to your account, you can reset it through Apple's account recovery page at iforgot.apple.com. Enter your Apple ID, choose whether you want to receive a code by email or text message, and follow the prompts. Apple will send you a verification code that you enter to confirm your identity.
Once you have reset your Apple ID password, you can use it to change your iPhone lock code through Settings. This route typically takes 10 to 15 minutes if you have when ready access to the email or phone number Apple sends the code to.
Using a recovery key when you cannot access your email or phone
If you set up two-factor authentication on your Apple ID, you may have saved a recovery key — a 28-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you have this key, you can use it to reset your Apple ID password without needing access to your phone number or email address. Go to iforgot.apple.com, enter your Apple ID, and select "I don't have access to my recovery key" or "I have my recovery key" depending on your situation.
Recovery keys are usually printed or saved when you first turn on two-factor authentication. If you saved yours in a password manager, email, or physical location, retrieve it now. If you cannot find your recovery key and cannot access your phone number or email, you will need to contact Apple Support to verify your identity through other means.
Erasing your iPhone and setting it up again as a last resort
If you cannot use any of the methods above, you can erase your iPhone and set it up as new. This removes all data on the phone, so use this only when you have no other option. You will need a computer with a USB cable or access to a Wi-Fi network.
On a Mac with macOS Monterey or newer, connect your iPhone and open Finder. Select your iPhone, click "General," then "Restore." On a Windows PC or older Mac, use iTunes instead. The process takes 10 to 20 minutes depending on your internet speed. After the erase completes, you will set up the phone as new and sign in with your Apple ID. You will then be able to restore your data from a backup if you have one saved to iCloud.
What to do if you do not remember your Apple ID at all
Your Apple ID is the email address you used when you first set up the phone. If you are not sure which email that was, go to iforgot.apple.com and enter any email address you think you used. Apple will tell you whether an account exists under that address. Try common variations — your work email, your personal email, an old email address you may have forgotten about.
If you still cannot find it, you can look in Settings on any other Apple device you own. Go to Settings, tap your name at the top, and your Apple ID will be displayed. If you do not own another Apple device and cannot remember your email, contact Apple Support with proof of purchase for your iPhone. They can help you identify your account.
Frequently Asked Questions
Can Apple tell me what my password is?
No. Apple does not store passwords in a way that lets anyone, including Apple employees, see them. If you forget your password, it must be reset, not retrieved. This is a security feature that protects your account.
Will resetting my password erase my photos and data?
No, not if you use the methods in Settings or through another Apple device. Your data stays on the phone. Only the erase-and-restore method removes everything, and you can restore from a backup afterward.
How long does it take to reset my password?
If you have another Apple device or know your Apple ID password, 5 to 10 minutes. If you need Apple to send you a verification code, add 5 to 15 minutes depending on how fast you receive the email or text. If you need to erase and restore, 20 to 30 minutes.
What if I do not have access to the phone number or email on my Apple ID?
Use your recovery key if you have one. If you do not have a recovery key and cannot access your phone number or email, contact Apple Support. They will ask you to verify your identity using information like your device serial number or purchase receipt.
Can I reset my password without a computer?
Yes. You can reset your iPhone lock code through Settings on the phone itself if you know your Apple ID password. You can reset your Apple ID password through iforgot.apple.com on any web browser. You only need a computer if you want to erase and restore your phone.