What to do right now if you can't remember your iPhone password
If you can't remember your iPhone password, you have three working paths: use a computer to reset it through iCloud or iTunes, use your recovery key if you saved one, or take the phone to an Apple Store. The fastest route depends on whether you have access to another device and whether you remember your Apple ID password. None of these paths will recover your data if you've never backed it up — the reset erases everything on the phone.
The reason for this is security: Apple locks the phone so thoroughly that even Apple employees cannot unlock it without your password or Apple ID. This protects your data if the phone is stolen, but it also means you are the only person who can get back in.
Key Takeaways
- You can reset your iPhone through iCloud on any web browser if you remember your Apple ID password, and this works even if the phone is locked.
- If you have a Mac or Windows computer with iTunes or Finder, you can reset the phone by connecting it and choosing the restore option.
- A recovery key — a 28-character code Apple gave you when you turned on two-factor authentication — can unlock the phone if you saved it somewhere.
- Taking the phone to an Apple Store lets a technician verify your identity and reset it, but you will need a government ID and proof of purchase or an Apple ID you can sign into on the spot.
- Any reset erases all data on the phone unless you have a backup stored in iCloud or on a computer.
Resetting through iCloud on any web browser
This is the simplest path if you remember your Apple ID password. Go to iCloud.com on any computer or phone, sign in with your Apple ID, and click Find My. Select your iPhone from the list of devices. Click Erase iPhone, confirm the action, and the phone will reset within a few minutes. You can then set it up again and create a new password.
The phone must be connected to the internet for this to work — if it has been offline for more than a few days, the reset may not go through when ready. If you do not remember your Apple ID password, you will need to reset that first at iforgot.apple.com before you can erase the phone.
Using a computer with iTunes or Finder
If you have a Mac or Windows computer, you can connect the iPhone with a USB cable and reset it without needing to remember your Apple ID password. On a Mac with macOS Monterey or newer, open Finder, select your iPhone, and click Restore. On a Windows computer or an older Mac, open iTunes, select the iPhone, and click Restore iPhone. The computer will read the current iOS version and install it on the phone, erasing everything in the process.
You will need to unlock the phone or enter your password once during this process — if you cannot do that, this path will not work. After the restore finishes, the phone will ask you to set up as new or restore from a backup. If you have a backup on that same computer, you can restore your data at this point.
Finding and using your recovery key
When you first turned on two-factor authentication on your Apple ID, Apple gave you a recovery key — a 28-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX. If you saved this code in a safe place, you can use it to reset your password without needing another device.
Go to iforgot.apple.com, enter your Apple ID, and when asked how you want to verify your identity, choose "I have my recovery key." Enter the code and you will be able to set a new password. Once your Apple ID password is reset, you can use the iCloud method above to erase and reset your iPhone.
If you cannot find the recovery key and do not remember your Apple ID password, you will need to go to an Apple Store or contact Apple Support to verify your identity another way.
Going to an Apple Store
An Apple Store can reset your iPhone after verifying your identity. Bring a government-issued ID and either proof of purchase (a receipt or credit card statement) or be ready to sign into your Apple ID on the spot. A technician will confirm the phone belongs to you and then perform the reset.
This usually takes 15 to 30 minutes. You will leave with a phone that has been erased and is ready to set up again. If you do not have proof of purchase or cannot sign into your Apple ID, the store may not be able to help — call ahead to ask what they will accept.
What happens after the reset
Once your iPhone is reset, it will boot up and ask you to set it up as a new phone or restore from a backup. If you have an iCloud backup, you can sign in with your Apple ID and restore your photos, messages, and apps. If you do not have a backup, the phone will be empty and you will need to read your apps again from the App Store.
When you set up the phone, you will create a new password. Write it down or save it in a password manager this time — losing it again means repeating this entire process.
Preventing this from happening again
The best protection is a password manager — apps like 1Password, Bitwarden, or even the Notes app on your iPhone can store your Apple ID password securely. If you use Face ID or Touch ID to unlock your phone, you may not type your password often, which is why it is straightforward to forget.
Save your recovery key somewhere you will actually remember — a physical safe, a password manager, or a trusted family member. Do not save it as a note on the iPhone itself, because you will not be able to access it if the phone is locked.
Frequently Asked Questions
Will I lose my photos and messages if I reset my iPhone?
Only if you do not have a backup. If you have ever signed into iCloud on the phone, your photos, messages, and most app data are backed up automatically. After the reset, sign back in with your Apple ID and you can restore everything. If you have never used iCloud, the data is gone.
Can I reset my iPhone if it is in airplane mode or has no internet?
The iCloud method requires internet. The computer method (iTunes or Finder) does not — you can connect the phone to a computer offline and restore it. If the phone has no internet and you cannot connect it to a computer, you will need to go to an Apple Store.
What if I do not remember my Apple ID password either?
Go to iforgot.apple.com and reset your Apple ID password using your recovery key, a trusted phone number, or a trusted device. If you have none of those, Apple can verify your identity by asking security questions you set up when you created the account. This may take a few days.
Will the Apple Store charge me to reset my iPhone?
No. Resetting a forgotten password is a free service at Apple Stores. If the phone has a hardware problem that prevents the reset, they may charge for repair, but they will tell you that before starting.
Can someone else reset my iPhone if they have the password?
No. Even if someone knows your password, they cannot reset the phone without also knowing your Apple ID password or having your recovery key. This is why the password is so important — it is the main lock on your data.