The fastest way depends on what you remember
If you've forgotten your iPhone passcode, you have three main paths forward: use your Apple ID and a trusted device, reset through iCloud.com from any computer, or erase the phone and set it up fresh. Which one works depends on whether you remember your Apple ID password, whether you have access to another Apple device, and how much data you're willing to lose. The fastest route usually takes 15 to 30 minutes if you have your Apple ID ready.
Your iPhone stores the passcode separately from your Apple ID, so resetting one doesn't automatically reset the other. You'll need to prove you own the account before Apple lets you change the passcode. That proof comes from either a trusted device you've already signed into, or from answering security questions you set up when you created your Apple ID.
Key Takeaways
- If you have another iPhone, iPad, or Mac signed into your Apple ID, you can reset your passcode through the Find My app in about 10 minutes without erasing anything.
- If you remember your Apple ID password but don't have another device, go to iCloud.com, sign in, and use Find My iPhone to erase and reset your phone remotely.
- If you don't remember your Apple ID password either, you'll need to reset that first through iforgot.apple.com before you can change your iPhone passcode.
- Erasing your phone removes all data unless you have a recent backup in iCloud or on a computer.
- After any reset, you'll sign back in with your Apple ID and restore from backup if one exists.
Reset using Find My on another Apple device
This is the fastest option if you have an iPad, another iPhone, or a Mac that's already signed into your Apple ID. Open the Find My app (on iPhone or iPad) or the Finder window (on Mac), select your locked iPhone from the device list, and tap "Erase iPhone." This removes your passcode without erasing your photos, messages, or apps — they stay on the phone, encrypted under your Apple ID.
After the erase completes, your iPhone will ask you to sign in with your Apple ID. Once you do, you'll set a new passcode. Your data comes back automatically because it's still tied to your Apple ID account. This method works even if you don't remember your Apple ID password, as long as you're already signed in on the other device.
The whole process takes about 10 to 15 minutes. Your phone needs to be connected to Wi-Fi or cellular data for the erase command to reach it, and it will restart during the process.
Reset through iCloud.com from any computer
If you don't have another Apple device but you remember your Apple ID password, go to iCloud.com in any web browser and sign in. Click Find My, then Find My iPhone, and select your locked phone from the device list. Choose "Erase iPhone" and confirm. This sends a remote command to erase your phone and remove the passcode.
Like the Find My app method, this erases the passcode but not your data — everything comes back when you sign in with your Apple ID afterward. You need your Apple ID password to access iCloud.com, so if you've forgotten that too, you'll need to reset it first at iforgot.apple.com.
The erase can take anywhere from a few minutes to an hour depending on your internet connection and how much data is on the phone. Your iPhone will restart and show the setup screen once it's done.
Reset your Apple ID password if you've forgotten that too
If you don't remember your Apple ID password and you don't have another device signed in, you'll need to reset your Apple ID before you can reset your iPhone passcode. Go to iforgot.apple.com and enter your Apple ID (usually your email address). Apple will ask you to verify your identity — you can do this by answering security questions you set up when you created the account, or by using a trusted phone number.
Once you've verified your identity, you'll create a new Apple ID password. This process usually takes 10 to 15 minutes. After that, you can use the iCloud.com method above to reset your iPhone passcode.
If you can't answer your security questions and don't have access to your trusted phone number, Apple's account recovery process can take several days. You'll need to provide additional proof of identity, like a government ID or credit card.
Erase and set up your iPhone from scratch
If you can't use Find My and you don't have your Apple ID password, your last option is to erase the phone completely using recovery mode. Connect your iPhone to a computer with iTunes or Finder, force restart the phone (the button combination depends on your model), and choose "Restore" when prompted. This erases everything on the phone, including your passcode.
After the erase, your iPhone will ask you to set it up as new or restore from a backup. If you have a backup in iCloud, you can sign in with your Apple ID and restore everything. If you don't have a backup, you'll lose all your data — photos, messages, contacts, everything.
This method is slower (30 to 60 minutes depending on your internet speed) and riskier because you lose data if you don't have a backup. Use it only if the other methods aren't available to you.
What happens after you reset your passcode
Once your passcode is reset, your iPhone will ask you to sign in with your Apple ID. This is normal — Apple ties your passcode to your account for security. You'll then set a new passcode (at least six digits, or a custom alphanumeric code if you prefer). Your phone will restore your data from iCloud backup automatically if one exists.
If you erased your phone completely and don't have a backup, you'll start with a blank iPhone. You can read your apps again from the App Store using your Apple ID, but your photos, messages, and other personal data won't come back. This is why keeping backups matters — either through iCloud (automatic if you turn it on in Settings > [Your Name] > iCloud > iCloud Backup) or through a computer.
Prevent this from happening again
Write down your Apple ID password somewhere safe, or use a password manager like 1Password or Bitwarden to store it. Your Apple ID is the master key to your phone — if you lose it, resetting your passcode becomes much harder. You should also turn on iCloud Backup in Settings so that if something goes wrong, your data is safe.
Consider using Face ID or Touch ID instead of a passcode if your iPhone supports it. You still need a passcode as a backup, but you won't type it as often, so you're less likely to forget it. If you do use a passcode, make it something meaningful to you but not obvious to others — avoid birthdays or straightforward sequences.
Frequently Asked Questions
Will resetting my passcode erase my photos and messages?
Not if you use Find My or iCloud.com to reset it. Both methods erase the passcode but keep your data. Only the complete erase-and-restore method in recovery mode deletes everything, and only if you don't have a backup to restore from.
How long does it take to reset my passcode?
Using Find My on another device takes 10 to 15 minutes. Using iCloud.com takes 15 to 30 minutes. Resetting through recovery mode takes 30 to 60 minutes. The exact time depends on your internet speed and how much data is on your phone.
What if I don't have another Apple device or a computer?
You can use iCloud.com on any computer at a library, friend's house, or internet café. You'll need your Apple ID password. If you don't remember that either, reset it at iforgot.apple.com first — that process can take several days if you can't answer your security questions.
Can I reset my passcode without my Apple ID?
No. Apple requires you to prove you own the account before you can change the passcode. You'll need either your Apple ID password, access to a trusted device, or the ability to answer your security questions. This is a security feature to prevent someone else from resetting your phone.
Will my apps and subscriptions still work after I reset?
Yes. Your apps are tied to your Apple ID, not your passcode. Once you sign back in, all your apps and subscriptions will be there. If you restore from backup, they'll come back exactly as they were.