The fastest way depends on what you've forgotten
If you've forgotten your iPhone passcode, you have three main paths: use your Apple ID to reset it remotely, restore the phone through a computer, or take it to Apple. Which one works depends on whether you remember your Apple ID password, whether you have access to a trusted device or recovery email, and how much time you have. None of these routes will recover your original passcode — they all reset it to something new.
If you're locked out right now, the remote reset through Find My iPhone is usually fastest if you can access another device. If you can't, a computer-based restore takes longer but works without needing another Apple device nearby.
Key Takeaways
- You cannot recover your original passcode; all reset methods create a new one you'll set yourself.
- Find My iPhone (the remote reset) works from any web browser or another Apple device if you know your Apple ID password.
- If you don't know your Apple ID password, you'll need to reset that first through iforgot.apple.com before you can reset your iPhone passcode.
- A computer-based restore using Finder (Mac) or iTunes (Windows) erases your phone but doesn't require an Apple ID password if you have physical access to the device.
- Apple Store staff can help if you have your receipt or can verify your identity, but the process takes longer and requires an appointment.
Reset your passcode using Find My iPhone (if you know your Apple ID password)
This is the fastest method if you have access to another device — a computer, tablet, or someone else's iPhone. Go to iCloud.com, sign in with your Apple ID and password, and select Find My iPhone from the menu. Click on your locked iPhone in the device list, then choose Erase iPhone. This wipes your phone remotely and brings you to the setup screen, where you can create a new passcode.
The phone must have been turned on and connected to the internet for this to work. If it's powered off or offline, the erase command will execute the next time it connects. You'll need to wait for that to happen, which can take hours or days depending on whether the phone is actually turned on somewhere.
After the erase completes, you'll set up your iPhone as new or restore from a backup. You'll create your new passcode during setup. If you use iCloud backups, your apps, photos, and settings will restore automatically once you sign back in with your Apple ID.
Reset your Apple ID password first if you've forgotten that too
If you don't remember your Apple ID password, you cannot use Find My iPhone to reset your passcode remotely. You'll need to reset your Apple ID password before anything else. Go to iforgot.apple.com and enter your Apple ID (usually your email address). Apple will ask you to verify your identity through a trusted phone number, a recovery email, or security questions you set up earlier.
This verification step typically takes a few minutes. Once you've confirmed your identity, you'll create a new Apple ID password. After that's done, you can use the Find My iPhone method described above to reset your iPhone passcode.
If you can't verify your identity through any of those methods, Apple's account recovery process can take several days. You may need to contact Apple Support directly and provide proof of purchase or identity documents.
Restore your iPhone using a computer (if you have physical access)
If you don't have access to another device or you don't know your Apple ID password, you can restore your iPhone by connecting it to a Mac or Windows computer. On a Mac with macOS Monterey or newer, open Finder, plug in your iPhone, and select it from the sidebar. Click Restore to erase the phone and install the latest iOS. On Windows or older Macs, use iTunes instead — plug in your iPhone, select it, and click Restore.
The restore process takes 15 to 30 minutes depending on your internet speed and which iOS version is being installed. Your phone will restart several times. When it finishes, you'll see the setup screen where you can create a new passcode.
This method erases everything on your phone unless you have a backup. If you backed up to iCloud before you forgot your passcode, you can restore from that backup after setup. If you backed up to the computer itself, you can restore from that local backup during setup. Without a backup, you'll start with a blank phone.
Visit an Apple Store if you have proof of ownership
Apple Store staff can reset your passcode if you can show proof that you own the phone. Bring your receipt, your ID, or any documentation that ties you to the device. You'll need to make an appointment through apple.com or by calling your local store — walk-ins are usually not accommodated for this service.
The staff member will verify your identity and ownership, then perform a restore similar to the computer method. This takes 30 minutes to an hour. You'll leave with a phone that's been erased and ready to set up with a new passcode. If you don't have proof of purchase, Apple may ask for additional identity verification, which can extend the timeline.
This route is useful if you're uncomfortable doing the restore yourself or if the other methods aren't working. It's also the only option if you don't have access to another device and don't have a computer to connect to.
What happens to your data during each reset method
| Method | Your data | Time needed | Requires Apple ID password |
|---|---|---|---|
| Find My iPhone (remote) | Erased unless you restore from iCloud backup afterward | Minutes to hours (depends on if phone is online) | Yes |
| Computer restore | Erased unless you restore from backup during setup | 15–30 minutes | No |
| Apple Store | Erased unless you restore from backup during setup | 30 minutes to 1 hour plus appointment wait | No (proof of ownership needed instead) |
Prevent this from happening again
Once you've set your new passcode, write it down or store it in a password manager — not in your phone's Notes app, where someone with access to your phone can find it. A password manager like 1Password, Bitwarden, or even iCloud Keychain keeps it encrypted and separate from your device.
Enable Face ID or Touch ID as your primary unlock method. These biometric options are faster and harder to forget than a numeric code. You'll still need your passcode as a backup when biometric unlock fails, but you'll use it less often.
Make sure you remember your Apple ID password or store it securely. Your Apple ID is the key to resetting almost everything on your iPhone, so losing access to it creates a much bigger problem than a forgotten passcode.
Frequently Asked Questions
Can I reset my passcode without erasing my phone?
No. All methods to reset a forgotten passcode require erasing the phone first. Apple's security design doesn't allow bypassing or recovering a passcode without a full erase. You can restore your data from a backup after the erase, but the erase itself is mandatory.
What if my iPhone is disabled and says "iPhone is disabled, try again in X minutes"?
That message appears after too many wrong passcode attempts. Wait the time shown, then try again. If you keep entering the wrong code, the wait time increases. After many failed attempts, the phone will ask you to connect to a computer or use Find My iPhone. At that point, use one of the reset methods described above.
Do I need my original passcode to set a new one?
No. During setup after a reset, you create a brand new passcode from scratch. You don't need to know the old one.
Will resetting my passcode delete my photos and messages?
The reset itself erases everything, but you can restore your photos, messages, and other data from a backup when ready after setup. If you have an iCloud backup, this happens automatically when you sign in with your Apple ID during setup.
What if I don't have a backup and I reset my phone?
Without a backup, you'll have a blank phone with no photos, messages, or app data. Your apps will reinstall from the App Store once you sign in with your Apple ID, but their data (like saved games or login information) won't return. This is why regular backups matter.