You can reset your iPhone passcode through iCloud, your Apple ID, or by connecting to a computer — the method depends on what you remember and what you have access to
If you've forgotten your iPhone passcode or someone has changed it without your permission, you have three main routes to regain access. The fastest is usually iCloud.com if you remember your Apple ID password. If you don't have iCloud access, you can use a Mac or Windows computer with Finder (Mac) or iTunes (Windows) to reset the phone. The slowest but most reliable option is contacting Apple Support, which can verify your identity and walk you through a factory reset.
All three methods erase your phone's data unless you have a recent backup. Before you start, know that Apple's security system is designed to make this difficult on purpose — it takes time and proof of ownership to prevent thieves from stealing phones and erasing them to resell.
Key Takeaways
- If you remember your Apple ID password, go to iCloud.com, select Find My, choose your iPhone, and use Erase iPhone to reset the passcode remotely.
- If you have a Mac or Windows computer, connect your iPhone with a cable, open Finder or iTunes, and choose Restore to reset the passcode without iCloud.
- All passcode reset methods erase your phone unless you restore from a backup afterward, so have your backup password ready if you made one.
- If you don't remember your Apple ID password or don't have computer access, Apple Support can verify your identity and guide you through a reset by phone.
- After a reset, you'll need to set up your iPhone again from scratch or restore from a backup — this takes 15 minutes to an hour depending on your backup size.
Reset through iCloud if you remember your Apple ID password
This is the fastest method if you have another device or computer. Go to iCloud.com in any web browser and sign in with your Apple ID and password. Click Find My (it may say Find My iPhone on older accounts). Select your iPhone from the list of devices.
Click Erase iPhone. Apple will ask you to confirm — this erases all data on the phone and removes the passcode. The phone will restart and show the setup screen. If you have a backup stored in iCloud, you can restore from it during setup and get your photos, messages, and apps back. If you don't have a backup, you'll start with a blank phone.
This method works even if your phone is off or far away, because Apple's servers handle the reset remotely. It typically takes a few minutes to an hour for the command to reach your phone, depending on whether it's connected to the internet.
Reset using a computer if you don't have iCloud access
If you have a Mac or Windows computer but can't access iCloud, you can reset the passcode by connecting your iPhone with a USB cable. On a Mac running macOS Monterey or newer, open Finder, plug in your iPhone, and click the device name in the sidebar. On Windows or older Mac, use iTunes instead — download it from Apple's website if you don't have it.
In Finder or iTunes, look for a button that says Restore or Restore iPhone. Click it. The computer will download the latest iPhone software and install it on your phone, which erases everything including the passcode. This takes 10 to 30 minutes depending on your internet speed and which iPhone model you have.
After the restore finishes, your iPhone will restart and show the setup screen. You'll be asked to sign in with an Apple ID — use the same one you originally set up the phone with, because Apple requires this for security. If you have a backup file on your computer, you can restore from it during setup to recover your data.
What happens if you don't remember your Apple ID password
If you can't access iCloud and don't have a computer, you'll need to reset your Apple ID password first. Go to iforgot.apple.com on any device and enter your Apple ID email. Apple will send you a link to reset the password — check your email inbox and spam folder. Once you've reset it, you can use the iCloud method above.
If you don't remember the email address you used for your Apple ID, or if you can't access that email account, contact Apple Support at 1-800-MY-APPLE or through apple.com/support. They can verify your identity using your phone's serial number, your original purchase receipt, or answers to security questions you set up when you created the account. This process takes longer but doesn't require you to remember anything.
Restore your data after the reset
After your passcode is reset and your iPhone restarts, you'll see the setup screen. If you have an iCloud backup, sign in with your Apple ID during setup and choose Restore from iCloud Backup. Select the most recent backup — it will contain your photos, messages, contacts, and most apps from before the reset.
If you have a backup file on a computer, connect your iPhone to that computer after setup and open Finder or iTunes. Choose Restore Backup and select the backup file. This restores everything the iCloud backup would, but from your computer instead.
If you don't have a backup, your iPhone will be blank after setup. You can download your apps again from the App Store and sign back into services like email, banking apps, and social media. Your photos and messages won't come back unless you have them saved elsewhere.
Why Apple makes passcode resets difficult
Every step in this process — needing your Apple ID, waiting for iCloud commands to process, requiring a computer connection — is intentional. Apple's system is designed so that a thief who steals your phone can't quickly erase it and sell it as new. The same security that protects you from theft also means you need proof of ownership (your Apple ID password or a computer you originally set up the phone with) to regain access if you're locked out.
This is why Apple Support asks for your serial number or original receipt — they're verifying that you own the phone before they help you reset it. It's slower than it would be if security didn't matter, but it's the trade-off for a phone that's harder to steal.
What to do if none of these methods work
If you can't access iCloud, don't have a computer, and can't reach Apple Support, your phone is essentially locked until you can prove ownership. This is rare, but it happens when someone buys a used iPhone without the original Apple ID being removed first. Contact Apple Support with your proof of purchase — a receipt, credit card statement, or order confirmation from Apple or a carrier. They can remove the previous owner's Apple ID from the phone's servers, which lets you set it up as new.
This process takes several business days because Apple verifies the proof of purchase with the original seller. If you bought the phone from a carrier like Verizon or AT&T, you can also contact them — they have records of who purchased the phone and can sometimes speed up the verification.
Frequently Asked Questions
Will resetting my passcode delete my photos and messages?
Yes, unless you restore from a backup. The reset erases everything on the phone. If you have an iCloud backup or a backup file on your computer, you can restore it during setup and get your data back. If you don't have a backup, the data is gone.
How long does it take to reset a passcode through iCloud?
The reset command usually reaches your phone within a few minutes if it's on and connected to the internet. If your phone is off or offline, it can take up to an hour. The actual reset process takes 5 to 15 minutes once the command arrives.
Can I reset my passcode without erasing my phone?
No. All passcode reset methods erase the phone's data as a security measure. This prevents someone from resetting your passcode without your permission and keeping your data intact. You can recover your data by restoring from a backup afterward.
What if I forgot my Apple ID password and my email password too?
Go to iforgot.apple.com and choose the option to verify your identity using your phone number or a trusted device instead of email. If you don't have either, contact Apple Support with your serial number or original receipt — they can verify you're the owner and help you reset both passwords.
Do I need the original computer I set up my iPhone with?
No. Any Mac or Windows computer with Finder or iTunes will work. The computer doesn't need to have your backup on it — you just need it to connect your iPhone and run the restore process. After the reset, you can restore from an iCloud backup or a backup file from any computer.