The fastest way to reset your iPhone password
If you have forgotten your iPhone passcode, you cannot reset it directly on the phone itself — the passcode protects the device, so Apple does not allow you to bypass it from the lock screen. Instead, you will erase the phone and set it up again. The method you use depends on whether you remember your Apple ID password and whether you have a computer available.
The simplest path is Find My iPhone, which works from any web browser or another Apple device. If you do not have access to Find My, you can erase the phone using a computer and iTunes or Finder. Both methods wipe the device completely, so you will lose any data that was not backed up to iCloud or your computer.
Key Takeaways
- You cannot reset a forgotten passcode directly on the iPhone — you must erase the device and set it up again.
- Find My iPhone is the fastest method if you remember your Apple ID password and can reach iCloud.com from any browser.
- If you do not remember your Apple ID password, you will need to reset that first before you can erase your iPhone remotely.
- Using a computer with iTunes (Windows or older Mac) or Finder (newer Mac) is the alternative if you cannot use Find My iPhone.
- After erasing, you can restore your data from an iCloud backup or set the phone up as new.
Using Find My iPhone to erase and reset
Go to iCloud.com from any web browser and sign in with your Apple ID and password. If you do not remember your Apple ID password, you will need to reset it first — Apple will send a recovery link to the email address or phone number on your account. Once you are signed in, click Find My (or Find My iPhone on older accounts).
Select your iPhone from the list of devices. A map will appear showing the phone's location. Click Erase This Device at the top of the window. You will be asked to confirm — this action cannot be undone and will delete everything on the phone. After you confirm, Apple will send a command to the device. The next time the phone connects to the internet, it will erase itself and show the setup screen.
If your iPhone is offline, the erase command will wait until it comes back online. You can close the browser window and check back later. Once the phone has erased, you can set it up again using your Apple ID, and you will be prompted to create a new passcode.
Resetting your Apple ID password first
If you do not remember your Apple ID password, go to iforgot.apple.com from any browser. Enter the email address or phone number associated with your Apple ID. Apple will ask you to verify your identity — you can choose to receive a verification code by email or text message.
Enter the code when it arrives, then create a new password. Make sure it is at least eight characters long and includes uppercase letters, lowercase letters, numbers, and a symbol. Once your Apple ID password is reset, you can return to iCloud.com, sign in with your new password, and use Find My iPhone to erase your device.
Using a computer to erase your iPhone
If you cannot use Find My iPhone, you can erase the phone by connecting it to a computer. On a Mac with macOS Monterey or newer, open Finder and plug in your iPhone with a USB cable. On a Mac with an older operating system, or on Windows, open iTunes instead.
Your iPhone will appear in the sidebar (Finder) or the device list (iTunes). Click on it to select it. You will see a button labeled Restore (iTunes) or Restore iPhone (Finder). Click this button. The computer will read the latest iPhone software and erase the device, then install a fresh copy of the operating system. This process takes 10 to 30 minutes depending on your internet speed.
When the erase is complete, the iPhone will show the setup screen. You can sign in with your Apple ID and restore from a backup, or set up the phone as new. If you do not remember your Apple ID password, you will need to reset it using iforgot.apple.com before you can complete the setup.
What happens after you erase the iPhone
Once your iPhone has been erased, you will see the Hello screen and the option to set up as new or restore from backup. If you have an iCloud backup from before you forgot your passcode, you can restore from it — your apps, photos, messages, and settings will come back. If you do not have a backup, you will need to set up the phone from scratch and reinstall your apps from the App Store.
During setup, you will be asked to create a new passcode. Choose something you can remember — you can use a four-digit code, a six-digit code, or a longer alphanumeric passcode. Write it down somewhere safe if you are worried about forgetting it again. You can also turn on Face ID or Touch ID so you do not have to type the passcode every time.
If your iPhone is disabled or shows a recovery error
If you see a message saying your iPhone is disabled or if you see an error code during the erase process, the phone may have security protections active. This usually happens after too many failed passcode attempts. In this case, you still cannot reset the passcode directly — you must erase the device using Find My iPhone or a computer.
If Find My iPhone is not turned on and you do not have a computer available, you will need to contact Apple Support. They can help you verify your identity and provide options for your specific situation. You can reach Apple Support through the Apple Support app on another device, or by visiting apple.com/support and starting a chat or scheduling a call.
Preventing this from happening again
Once you have set up your iPhone with a new passcode, consider turning on iCloud Keychain so your passwords are stored securely and synced across your devices. You can also enable Face ID or Touch ID so you rarely have to type your passcode. If you do use a numeric passcode, write it down and store it somewhere safe — not on a sticky note on your monitor, but in a locked drawer or a password manager.
Make sure Find My iPhone is turned on in Settings > [Your Name] > Find My > Find My iPhone. This way, if you forget your passcode again, you can erase the device remotely without needing a computer. You should also keep your Apple ID password somewhere you can recover it — use a password manager or write it down and store it securely.
Frequently Asked Questions
Can I reset my passcode without erasing the phone?
No. The passcode is the primary security feature that protects your data, so Apple does not allow you to reset it without erasing the device first. This is by design — it prevents someone else from accessing your phone if they steal it.
Will I lose my photos and messages when I erase my iPhone?
Yes, unless you have a backup. If you have iCloud backup turned on, your data is stored in the cloud and you can restore it after you erase the phone. If you do not have a backup, the data will be gone. You can check whether you have a backup by going to iCloud.com, signing in, and looking at your account storage.
What if I do not remember my Apple ID password or email?
Go to iforgot.apple.com and enter the phone number associated with your Apple ID. Apple will send a verification code to that number. If you do not have access to that phone number, you can contact Apple Support — they can help you recover your account by verifying your identity through other methods.
How long does it take to erase an iPhone using Find My?
The erase command is sent when ready, but the phone must be online to receive it. If the phone is offline, the command waits until it connects to the internet. Once the phone receives the command, the erase takes a few minutes. You can check the status on iCloud.com.
Can I erase my iPhone if it is turned off?
If you use Find My iPhone, the erase command will be sent as soon as the phone turns on and connects to the internet. If you use a computer, the phone must be turned on and connected with a USB cable. If the phone is completely dead, charge it first, then connect it to the computer.