The fastest way to reset your iPhone password
If you have forgotten your iPhone passcode, you cannot reset it directly on the phone itself — Apple does not allow that for security reasons. Instead, you will need to use either your computer, another Apple device, or Apple's online account page to regain access. The method that works for you depends on what devices and information you have available right now.
The quickest path for most people is Find My iPhone, which lets you erase your phone remotely and set a new passcode. This works if you have already set up Find My iPhone on your device and you remember your Apple ID password. If you do not remember your Apple ID password, you will need to reset that first before you can proceed.
Key Takeaways
- You cannot reset your passcode on the iPhone itself — you must use Find My iPhone, a computer with iTunes or Finder, or Apple's account recovery page.
- Find My iPhone is the fastest method if you remember your Apple ID password and have already turned the feature on.
- If you do not remember your Apple ID password, you will need to reset it at iforgot.apple.com before you can unlock your phone.
- Using a computer with iTunes (Windows) or Finder (Mac) requires you to have synced your iPhone to that computer before.
- If none of these options work, you will need to contact Apple Support or visit an Apple Store with proof of purchase.
Using Find My iPhone on a web browser
Open a web browser on any computer or another device and go to iCloud.com. Sign in with your Apple ID and password. If you do not remember your Apple ID password, go to iforgot.apple.com first and follow the steps to reset it — you will need access to a recovery email or phone number associated with your account.
Once you are signed into iCloud.com, click Find My iPhone (or just Find My on newer accounts). A map will appear showing your devices. Click your iPhone from the list on the left side. A menu will pop up with three options — select Erase iPhone. This will wipe your phone completely and remove the passcode. You will then be able to set up your iPhone again from scratch, including creating a new passcode.
After you erase the phone, it may take a few minutes to process. Your iPhone will restart and show the setup screen. You can then walk through the setup process normally and create a new passcode when prompted. All your data will be gone unless you restore from a backup — if you have a backup saved to iCloud, you can restore it during setup.
Resetting your Apple ID password first
If you do not remember your Apple ID password, you cannot use Find My iPhone until you reset it. Go to iforgot.apple.com on any device with internet access. Enter your Apple ID (usually your email address) and follow the on-screen steps.
Apple will ask you to verify your identity. You can do this by answering security questions you set up when you created your account, or by entering a verification code sent to a recovery email or phone number. Choose whichever method you remember. Once you have verified your identity, you will be able to create a new Apple ID password.
After your Apple ID password is reset, go back to iCloud.com, sign in with your new password, and follow the Find My iPhone steps above to erase your locked iPhone.
Using a Mac or Windows computer with Finder or iTunes
If you have a Mac running macOS Catalina or newer, connect your locked iPhone to the computer with a USB cable. Open Finder and click your iPhone in the sidebar under Locations. Click General at the top, then click Restore. This will erase your iPhone and remove the passcode.
If you have a Windows computer or an older Mac, use iTunes instead. Connect your iPhone with a USB cable, open iTunes, and click the iPhone icon near the top left. Click Summary, then click Restore iPhone. Confirm the action when prompted.
This method only works if you have previously synced your iPhone to this specific computer. If you have never connected your iPhone to this computer before, your phone will ask for your Apple ID password during the restore process — you will need to know that password to proceed. After the restore finishes, your phone will restart and you can set it up again with a new passcode.
What to do if you do not remember your Apple ID password
If you cannot remember your Apple ID password and do not have access to a recovery email or phone number, you will not be able to use the methods above. In this case, your only option is to contact Apple Support or visit an Apple Store in person.
When you contact Apple, have your proof of purchase ready — this can be an order confirmation email, a receipt, or the original box your iPhone came in. Apple will verify that you own the device and help you regain access. This process can take several days because Apple needs to confirm your identity through multiple steps.
Preventing this from happening again
Once you have set up your iPhone again, write down your passcode somewhere safe — not on a sticky note on your monitor, but in a password manager or a locked drawer. Consider using a passcode you can remember rather than a random one, or use Face ID or Touch ID so you do not have to type it as often.
Turn on Find My iPhone so you have this option available in the future. Go to Settings, tap your name at the top, tap iCloud, scroll down to Find My, and make sure Find My iPhone is turned on. You should also make sure your recovery email and phone number are up to date in your Apple ID settings — these are what you will need if you forget your Apple ID password.
Frequently Asked Questions
Can I reset my passcode without erasing my iPhone?
No. Apple does not allow you to change a forgotten passcode without erasing the phone first. This is a security feature to prevent someone else from accessing your device. However, if you have a backup saved to iCloud or your computer, you can restore your data after you set up the phone again with a new passcode.
How long does it take to erase my iPhone using Find My iPhone?
The erase command usually takes a few minutes to process, but it depends on your internet connection. Your iPhone must be powered on and connected to the internet for the command to work. If your phone is off or offline, the erase will happen the next time it connects to the internet.
What happens to my data when I erase my iPhone?
All data on your phone will be deleted — photos, messages, apps, everything. If you have a backup saved to iCloud or synced to a computer, you can restore that backup after you set up your iPhone again. If you do not have a backup, your data cannot be recovered.
Do I need my Apple ID password to set up my iPhone after erasing it?
Yes. During setup, your iPhone will ask you to sign in with your Apple ID. If you do not remember your Apple ID password, you will need to reset it at iforgot.apple.com before you can finish setting up your phone. This is why resetting your Apple ID password first is important if you have forgotten it.
Can I use someone else's computer to reset my passcode?
Yes. You can use any computer with internet access to go to iCloud.com and use Find My iPhone to erase your phone. You do not need to use a computer that has previously synced with your iPhone. Just make sure you sign out of that person's iCloud account before you leave.