The fastest way back into your iPhone
If you have forgotten your iPhone passcode, the quickest path is to use your Apple ID and a computer or another device to reset it. Apple's recovery process lets you create a new passcode without losing your data — but only if you remember your Apple ID password. If you do not remember that either, the process takes longer because Apple verifies your identity through security questions or a recovery key you set up previously.
The method you use depends on what you have access to right now: another Apple device, a computer, or just your phone itself. Each route is different, and some require you to wait for Apple's verification process.
Key Takeaways
- You can reset your passcode using iCloud.com from any computer or device if you remember your Apple ID password.
- If you have another Apple device (iPad, Mac, Apple Watch), you can use the Find My app to reset your passcode without a computer.
- If you do not remember your Apple ID password, Apple will ask you to verify your identity using security questions or a recovery key before letting you reset the passcode.
- Recovery through Find My or iCloud erases the data on your phone unless you have a backup to restore afterward.
- If you set up a recovery key for your Apple ID, you can use it to speed up the identity verification process.
Using iCloud.com to reset your passcode from a computer
Go to iCloud.com on any computer and sign in with your Apple ID and password. Click Find My, then select Find My iPhone from the menu on the left. A list of your devices appears — tap or click the iPhone you are locked out of.
Select "Erase iPhone" from the options that appear. This removes the passcode and erases all data on the phone. Once the process finishes, you can set up your iPhone again and restore your data from a backup if you have one saved to iCloud or your computer.
This method works if you remember your Apple ID password. If you do not, you will need to reset your Apple ID password first, which requires verifying your identity through a recovery email or phone number associated with your account.
Using Find My on another Apple device
If you have an iPad, Mac, or Apple Watch signed into the same Apple ID, you can use its Find My app to reset your iPhone passcode without needing a computer. Open Find My on the other device and select your locked iPhone from the list of devices.
Tap or click "Erase This Device," then confirm. Your iPhone will erase and you can set it up fresh. Like the iCloud method, this erases your data, so you will need a backup to restore from afterward. This is often faster than using a computer because you do not have to navigate to a website.
What to do if you do not remember your Apple ID password
If you cannot remember your Apple ID password, you cannot use iCloud.com or Find My until you reset it. Go to iforgot.apple.com on any device and enter your Apple ID email address. Apple will send you a link to reset your password, or ask you to answer security questions you set up when you created your account.
If you set up a recovery key for your Apple ID (a 28-character code Apple gives you during two-factor authentication setup), you can use it here to skip the security questions. If you do not have the recovery key and cannot answer the security questions, Apple will ask you to verify your identity through a phone call or email to a trusted contact. This process can take several days.
Once you reset your Apple ID password, you can go back to iCloud.com or Find My and erase your iPhone as described above.
Recovering data after you reset your passcode
When you erase your iPhone through Find My or iCloud, you lose everything on the phone unless you restore from a backup. If you backed up your iPhone to iCloud before you forgot the passcode, you can restore that backup during setup. When your erased iPhone starts up, it will ask if you want to restore from an iCloud backup — choose yes and sign in with your Apple ID.
If you backed up your iPhone to a computer using a Mac or Windows PC, you can restore that backup after setup is complete. Plug your iPhone into the computer, open Finder (Mac) or iTunes (Windows), select your device, and choose "Restore Backup." Select the backup you want and wait for the restore to finish.
If you do not have a backup, your data cannot be recovered. This is why setting up iCloud backup or regular computer backups is important — it protects you if you forget your passcode or your phone is damaged.
When you cannot access iCloud or Find My at all
If you do not have another Apple device and cannot access a computer, or if you do not remember your Apple ID password and cannot verify your identity, you will need to visit an Apple Store. Bring your iPhone and a form of ID. Apple can verify that you own the device and help you reset the passcode, though the process may take time if your identity verification is complicated.
You can also contact Apple Support by phone or through their website to discuss your situation. They can sometimes help you verify your identity remotely and guide you through recovery steps over the phone.
Preventing this from happening again
Once you regain access to your iPhone, set up a backup when ready so you do not lose data if this happens again. Turn on iCloud backup in Settings > [Your Name] > iCloud > iCloud Backup, or connect your phone to a computer and back it up manually.
Write down your Apple ID password somewhere safe, or use a password manager to store it. If you have not already, set up a recovery key for your Apple ID — Apple will give you a 28-character code that lets you reset your password without answering security questions. Store this code in a safe place separate from your password.
Frequently Asked Questions
Will resetting my passcode delete my photos and messages?
Yes, using Find My or iCloud to reset your passcode erases everything on your phone. You can restore your photos, messages, and other data from an iCloud or computer backup after setup is complete. If you do not have a backup, that data cannot be recovered.
How long does it take to reset my passcode through iCloud?
The erase process usually takes 5 to 15 minutes depending on your internet connection and how much data is on your phone. If you need to reset your Apple ID password first because you forgot it, that can add several hours to several days depending on how you verify your identity.
Can I reset my passcode without erasing my iPhone?
No. Apple's recovery process always erases your iPhone as a security measure. You can restore your data from a backup after the erase is complete, but the phone itself must be wiped during the reset.
What is a recovery key and do I need one?
A recovery key is a 28-character code Apple gives you when you set up two-factor authentication on your Apple ID. If you forget your Apple ID password, you can use the recovery key to reset it without answering security questions. You do not need one to reset your iPhone passcode, but having one makes the process faster if you also forget your Apple ID password.
Can I reset my passcode if my iPhone is not connected to the internet?
No. Your iPhone must be able to connect to the internet to erase and reset. If your phone cannot connect to Wi-Fi or cellular, you will need to take it to an Apple Store or contact Apple Support for help.