What to do if you forgot your iPhone password
If you forgot the password to an old iPhone, you have three main paths: use your Apple ID to reset it remotely through iCloud, erase the phone and set it up again using a computer, or take it to an Apple Store. Which one works depends on whether you remember your Apple ID password, whether the phone is connected to WiFi or cellular, and how much data on the phone matters to you — because erasing is usually the fastest route, and it deletes everything.
The oldest iPhones (iPhone 5s and earlier) have fewer security layers, so some methods are simpler. Newer models require more verification steps to prevent theft. All of these methods are legitimate ways to regain access to your own device, but they do require proof that you own the phone or the Apple ID attached to it.
Key Takeaways
- If you remember your Apple ID and password, you can reset the iPhone remotely through iCloud.com without erasing it, though this only works if Find My iPhone is turned on.
- If you do not remember your Apple ID password, you will need to erase the phone using a computer with macOS or Windows and iTunes or Finder, which deletes all data.
- Apple Stores can unlock your phone if you bring a government ID and proof of purchase, but wait times vary and some stores require an appointment.
- For iPhones older than iPhone 5s, you may be able to use an older version of iTunes on a computer to bypass the lock without erasing, but this requires technical steps and specific software versions.
Resetting through iCloud if you remember your Apple ID
If you remember the Apple ID and password for the account on that iPhone, and the phone is connected to WiFi or cellular, you can reset the password remotely without erasing the phone. Go to iCloud.com from any computer or phone, sign in with that Apple ID, and click Find My. Select Find My iPhone, then choose the locked iPhone from the list of devices.
Click the device name, then select "Erase iPhone" from the menu. This erases the password but keeps your photos, messages, and other data intact if they were backed up to iCloud. After erasing, the phone will ask you to sign in with the Apple ID again. If you do not remember the Apple ID password, you will need to reset that first through Apple's account recovery page before you can finish unlocking the phone.
This method only works if Find My iPhone was turned on before you forgot the password. If it was never enabled, you will need to use one of the other methods below.
Erasing the phone using a computer
If you do not remember your Apple ID password, or if Find My iPhone was not enabled, you can erase the phone using a Mac or Windows computer. Connect the iPhone to the computer with a USB cable. On a Mac with macOS Monterey or newer, open Finder and select the iPhone in the sidebar. On older Macs or Windows computers, open iTunes.
In Finder or iTunes, click "Restore" or "Restore iPhone." The computer will read the current iPhone operating system and erase the phone completely, including the password. After the erase finishes, the phone will restart and ask you to set it up as new or restore from a backup. You can then sign in with your Apple ID to reactivate it.
This method erases all data on the phone — photos, messages, apps, everything — unless you have a backup from before you forgot the password. If you have an iCloud backup, you can restore from it after setup is complete. If you have a backup on the computer itself, Finder or iTunes will offer to restore from that backup during setup.
Using an older computer and iTunes for very old iPhones
For iPhones older than the iPhone 5s, some people report success using an older version of iTunes (version 12.3 or earlier) on a Windows computer to reset the password without erasing the phone. This method exploits a security gap that Apple closed in newer models, and it is not may provide to work on all devices or all versions.
If you want to try this: read iTunes 12.3 from an archive site, connect the old iPhone to a Windows computer running that version, and follow the restore process. The phone may reset the password without erasing. However, this requires finding the correct software version, and many computers no longer run the operating systems that old iTunes versions need. For most people, erasing through a current version of iTunes or Finder is faster and more reliable.
Taking the phone to an Apple Store
You can walk into an Apple Store with the iPhone and a government ID (driver's license, passport, or state ID). Tell them you forgot the password and own the phone. They will verify your identity and can unlock it for you. The process usually takes 15 minutes to an hour, depending on how busy the store is and whether they need to contact Apple's backend systems to confirm ownership.
Some Apple Stores now require appointments rather than walk-ins, so check the store's website or call ahead. If you do not have a government ID, you can bring a credit card that matches the name on the Apple ID, or a utility bill with your address. The store will erase the phone during the unlock process, so all data will be deleted unless you have a backup.
What happens after you unlock the phone
Once the phone is unlocked, you will be asked to sign in with an Apple ID. You can use the same Apple ID that was on the phone before, or a different one. If you use the same Apple ID and you have an iCloud backup, the phone will offer to restore your photos, messages, contacts, and app data from that backup.
If you do not have a backup, or if you want to start fresh, you can set up the phone as new. Either way, you will need to remember the Apple ID password going forward — Apple does not store passwords and cannot retrieve them for you. If you are worried about forgetting it again, write it down in a find place, use a password manager like 1Password or Bitwarden, or enable Face ID or Touch ID on the phone so you do not have to type the password every time.
Preventing this from happening again
The easiest way to avoid this situation is to use Face ID or Touch ID on your iPhone, so you do not have to remember the password for daily use. You still need to know the password for some actions — like signing into the App Store or changing settings — but you will use it less often.
If you do write down your password, keep it somewhere find: a locked drawer, a safe, or a password manager. Do not store it in a note on the phone itself or in an email account that is straightforward to guess. If you use the same password for multiple accounts, change it on your iPhone to something unique, so a breach on another site does not compromise your Apple ID.
Frequently Asked Questions
Can I unlock an iPhone without erasing it if I do not remember my Apple ID password?
Not through the standard methods. If Find My iPhone is on, you can erase the password remotely through iCloud, but you will still need to know the Apple ID password to sign back in. If you do not know that password, you will need to reset it through Apple's account recovery page first, or erase the phone using a computer.
How long does it take Apple to unlock a phone at the store?
Usually 15 minutes to an hour, depending on how busy the store is. Some stores may need to contact Apple's systems to verify ownership, which can add time. Call ahead or check the store's website to see if you need an appointment.
What if I do not have a backup of my data?
If you do not have an iCloud backup or a backup on a computer, erasing the phone will permanently delete all data on it. There is no way to recover photos, messages, or other files after the erase is complete. This is why regular backups matter — set up iCloud backup in Settings so your data is saved automatically.
Do I need to know my Apple ID email address to unlock the phone?
You need to know either the email address or the phone number associated with the Apple ID. If you do not remember either, you can try to recover the account through Apple's account recovery page, but you will need to answer security questions or receive a code at a recovery email address you set up earlier.
Can I unlock someone else's iPhone?
No. All of these methods require either the Apple ID password, a government ID matching the account owner's name, or both. This is intentional — it prevents theft. If you are trying to unlock a phone that belongs to someone else, you need their permission and their help.