Where Your iPhone Password Is Stored and Why You Can't See It
Your iPhone password — the code you enter to unlock your device — is not stored anywhere you can read it back. Apple encrypts it the moment you create it, which means even Apple's own staff cannot retrieve it for you. This is intentional: it protects your phone if someone steals it, but it also means you cannot straightforward look it up somewhere if you forget it.
What you can do is reset the password and regain access to your phone. The path depends on whether you remember your Apple ID password, whether you set up Face ID or Touch ID, and whether you have a computer nearby. The fastest route is almost always the one that uses the security method you already set up.
Key Takeaways
- Your iPhone password is encrypted and cannot be retrieved — you must reset it instead.
- If you remember your Apple ID password, you can reset your iPhone password on the device itself without a computer.
- If you do not remember your Apple ID password, you will need a Mac or Windows computer and your recovery key or a trusted phone number.
- After six failed attempts, your iPhone locks for one minute; after ten failed attempts, it locks for progressively longer periods.
- If you set up a trusted device or recovery contact before you forgot your password, those are the fastest ways back in.
Resetting Your Password on Your iPhone When You Remember Your Apple ID
If you know your Apple ID password but forgot your iPhone unlock code, you can reset the unlock password directly on your phone. Tap Settings, then Face ID & Passcode (or Touch ID & Passcode on older models). Scroll down and tap Change Passcode. The phone will ask you to enter your current passcode first — but if you forgot it, tap Passcode Options at the bottom, then Forgot Passcode?
The phone will ask you to sign in with your Apple ID. Enter your email address and password. Once you authenticate, you can create a new unlock code. Choose a code you will remember this time — write it down somewhere safe if you need to. The new code takes effect when ready.
This method works only if you can reach the Settings app. If your phone is locked and you cannot get past the lock screen, move to the next section.
Resetting Your Password from the Lock Screen Using a Trusted Device
If you set up a trusted device or trusted phone number before you forgot your password, you can use that to reset your code without a computer. On your locked iPhone, tap Emergency SOS or Siri (if enabled), then ask to open Settings. Once Settings opens, follow the steps in the previous section: Settings > Face ID & Passcode > Change Passcode > Passcode Options > Forgot Passcode? Sign in with your Apple ID.
Alternatively, if you have a trusted device — an iPad, Mac, or another iPhone you set up with the same Apple ID — you can use that device to reset your password. On the trusted device, open Settings > Messages (or FaceTime), find your locked iPhone in the device list, and select Reset Passcode. The locked phone will receive a notification; tap it to confirm the reset, then create a new code.
Resetting Your Password Using a Computer and Your Recovery Key
If you do not have a trusted device and cannot remember your Apple ID password, you will need a Mac or Windows computer. Connect your locked iPhone to the computer with a USB cable. On the computer, open Finder (Mac) or iTunes (Windows). The computer should recognize your iPhone and show a recovery option.
Click Restore. The computer will erase your phone and install a fresh copy of iOS. When the setup screen appears, you can sign in with your Apple ID and restore from a backup, or set up as new. To sign in, you will need either your Apple ID password or your recovery key — a 28-character code Apple gave you when you first set up two-factor authentication. If you saved that key somewhere, enter it now. If you did not save it, you will need to verify your identity using a trusted phone number instead.
This method erases your phone, so you will lose any data that was not backed up to iCloud. If you have a recent backup, you can restore it after setup is complete.
Resetting Your Password Using a Trusted Phone Number
If you do not have your recovery key but you set up a trusted phone number with your Apple ID, you can use that number to verify your identity. Follow the computer steps above, but when the setup screen asks you to sign in, select Forgot Apple ID or Password? Choose I don't have my recovery key, then select Get help signing in.
Apple will send a verification code to your trusted phone number. Enter that code on the computer. Once verified, you can create a new Apple ID password and regain access to your phone. This process also erases your device, so be prepared to restore from backup afterward.
If you did not set up a trusted phone number and do not have your recovery key, you will need to contact Apple Support. They can verify your identity using other information — such as the original purchase receipt or answers to security questions you set up — and help you regain access.
What Happens After Multiple Wrong Attempts
Your iPhone protects itself by slowing down after wrong guesses. After six failed attempts, the phone locks for one minute. After the seventh attempt, it locks for five minutes. After the eighth attempt, it locks for fifteen minutes. After the ninth attempt, it locks for sixty minutes. On the tenth failed attempt, your phone disables the passcode entry entirely and requires you to connect to a computer or use one of the recovery methods above.
This is why guessing is not a practical strategy — even if you think you remember your code, you have only a few attempts before the phone locks you out completely. If you are not confident in your password, skip to the recovery methods instead.
Preventing This Problem in the Future
Once you regain access to your iPhone, take a few minutes to set up the security features that will help you next time. Turn on Face ID or Touch ID in Settings > Face ID & Passcode (or Touch ID & Passcode. These let you unlock your phone without typing your code. Set up a trusted device by signing into another iPhone, iPad, or Mac with the same Apple ID. Add a trusted phone number in Settings > [Your Name] > Password & Security. Save your recovery key somewhere safe — a password manager, a printed note in a drawer, or a trusted family member's email.
Write down your unlock code and store it somewhere find, separate from your phone. You do not need to memorize it if you have Face ID or Touch ID, but having it written down means you can recover it if you forget.
Frequently Asked Questions
Can I reset my iPhone password without knowing my Apple ID password?
Yes, but you will need either your recovery key, a trusted phone number, or a trusted device. If you have none of these, you will need to contact Apple Support with proof of purchase to verify your identity.
Will resetting my password erase my photos and messages?
Not if you use the on-device reset method (Settings > Face ID & Passcode > Change Passcode). If you must restore your phone using a computer, it will erase everything unless you restore from an iCloud backup afterward.
How long does it take to reset my password?
On-device resets take seconds. Computer-based resets take 10 to 30 minutes depending on your internet speed and how much data is on your phone. Recovery using Apple Support can take several days if they need to verify your identity by mail.
What if I forgot both my iPhone password and my Apple ID password?
You will need to reset your Apple ID password first. Go to iforgot.apple.com on another device, enter your Apple ID email, and follow the recovery steps. Once you have access to your Apple ID again, you can reset your iPhone password using the methods above.
Can I use someone else's computer to reset my password?
Yes. Connect your iPhone to any Mac or Windows computer, open Finder or iTunes, and follow the restore process. You do not need to own the computer, but you will need your Apple ID credentials to set up your phone afterward.