You can recover your iPhone password through your Apple ID account, even if you don't remember it
Your iPhone password — also called your passcode — is not stored anywhere Apple can retrieve and send to you. Instead, you reset it by proving you own the device and the Apple ID connected to it. The fastest method depends on whether you can still use your iPhone, whether you remember your Apple ID password, and whether you set up recovery options like a trusted phone number or email address.
If you are locked out of your iPhone entirely, you will need access to a computer or another Apple device. If you can still unlock your iPhone but forgot the passcode, you can change it directly in Settings without erasing anything.
Key Takeaways
- If you can unlock your iPhone, go to Settings > Face ID & Passcode (or Touch ID & Passcode) and tap Change Passcode to set a new one without losing your data.
- If you are completely locked out, use iCloud.com from any computer to erase your iPhone remotely, then set a new passcode during setup.
- You will need your Apple ID email and password to reset a locked iPhone — if you don't remember that password, use iforgot.apple.com to recover it first.
- Recovery options you set up beforehand — like a trusted phone number or recovery email — make the process faster because Apple can verify your identity without sending you a code.
- If you have a trusted family member's device, you can use Family Sharing to reset your passcode without erasing your iPhone.
Resetting your passcode when you can still unlock your iPhone
This is the simplest path: if you can use Face ID, Touch ID, or a passcode you remember, you can change your forgotten passcode without erasing anything. Open Settings on your iPhone and tap Face ID & Passcode (on newer iPhones) or Touch ID & Passcode (on older models). You will be asked to verify your identity using Face ID, Touch ID, or your current passcode.
Once verified, tap Change Passcode at the top of the screen. Enter your current passcode one more time, then enter your new passcode twice. Your iPhone will confirm the change when ready. You can now use the new passcode to unlock your device.
Using iCloud to reset a locked iPhone
If you cannot unlock your iPhone at all, you will need to erase it and set it up again. Go to iCloud.com from any computer or another Apple device and sign in with your Apple ID. Click Find My iPhone (or Find My on newer systems), then select your iPhone from the device list.
Click the information icon next to your device name, then select Erase iPhone. Confirm that you want to erase it — this will remove all data on the device. Your iPhone will restart and show the setup screen. During setup, you will be asked to create a new passcode. Choose one you can remember, and write it down somewhere safe.
After setup completes, you can restore your data from an iCloud backup if you have one. Your photos, messages, contacts, and other information will return to your iPhone.
Recovering your Apple ID password if you need it
Resetting a locked iPhone requires your Apple ID password. If you don't remember it, visit iforgot.apple.com and enter your Apple ID email address. Apple will ask you to verify your identity — you can choose to receive a code by email, answer security questions you set up, or use a trusted device.
If you have a trusted phone number on file, Apple can text you a code. If you have a trusted device nearby, you can approve the password reset from that device instead. Once you verify your identity, you can create a new Apple ID password and return to resetting your iPhone passcode.
Using Family Sharing to reset your passcode
If another family member has an iPhone and you are part of the same Family Sharing group, they can help you reset your passcode without erasing your device. Have them open Settings on their iPhone, tap their name at the top, then select Family Sharing. They should tap your name, then select Reset Passcode.
They will be asked to verify their identity using their own Face ID or passcode. Once verified, they can set a temporary passcode for your iPhone. You can then use that temporary passcode to unlock your device and change it to something permanent in Settings.
What to do if you don't have access to your recovery email or phone number
If you cannot receive codes at your recovery email or phone number, you will need to contact Apple Support. They can verify your identity by asking security questions or requesting information about your device and account. This process takes longer than the automated methods, but Apple can still help you regain access.
Have your device serial number ready — you can find it on the original box or receipt. You can also provide the phone number or email associated with your Apple ID, along with answers to the security questions you set up when you created your account.
Setting up recovery options to prevent this in the future
After you reset your passcode, add recovery options to your Apple ID so you can reset it faster next time. Go to Settings > [Your Name] > Password & Security and tap Recovery Email. Add an email address you check regularly. You can also add a recovery phone number in the same section.
If you use two-factor authentication (which Apple recommends), make sure you have at least one trusted device set up. A trusted device is an iPhone, iPad, or Mac that you own and use regularly. When you need to reset your passcode, Apple can send a code to any trusted device, which is often the fastest option.
Frequently Asked Questions
Will resetting my passcode erase my iPhone?
Not if you can still unlock it. Changing your passcode in Settings keeps all your data. Only if you are completely locked out and use iCloud to erase your iPhone will you lose data — but you can restore it from a backup afterward.
How long does it take to reset a locked iPhone?
If you have your Apple ID password and a recovery email or phone number, the process takes about 15 to 30 minutes. If you need to recover your Apple ID password first, add another 10 to 15 minutes. If you need to contact Apple Support, it may take several hours or a full business day.
Can I reset my iPhone passcode without a computer?
If you can still unlock your iPhone, yes — use Settings directly. If you are completely locked out, you need access to iCloud.com on a computer or another Apple device. You cannot reset a fully locked iPhone using only the locked iPhone itself.
What if I forgot my Apple ID password and my recovery email is old?
Visit iforgot.apple.com and answer your security questions instead, or use a trusted device to approve the password reset. If you cannot do either, contact Apple Support with proof of purchase or device information so they can verify your identity.
Can someone else reset my iPhone passcode without my permission?
No. They would need your Apple ID password and access to your recovery email or phone number. If you are concerned about unauthorized access, change your Apple ID password and update your recovery options when ready.