This site is privately owned and the information provided is free of charge. Learn more here.
Being locked out of your iPhone happens to many people. According to Apple support data, forgotten passwords are one of the most common reasons users cannot access their devices. When you enter the wrong password too many times, your iPhone activates security features that temporarily or permanently disable access. This protection exists to prevent unauthorized people from breaking into your device.
Learn About Creating Your Nintendo Account →
Your iPhone uses encryption technology to store your password. This means even Apple employees cannot see your actual password. The security is intentionally strong because your phone contains sensitive information like financial data, health records, photos, and personal messages. When the device locks you out, it's following the security protocol you set up to protect yourself.
There are several reasons you might find yourself locked out. The most common include forgetting your passcode after not using it regularly, changing your password and forgetting the new one, or entering an incorrect code multiple times. Less commonly, someone may have changed your password without permission if they had access to your Apple ID account. Children sometimes lock out parents by entering wrong codes repeatedly while playing with the device.
Understanding the lockout mechanism helps you choose the right recovery method. Different situations require different solutions. If you forgot your passcode entirely, one path works best. If you remember your Apple ID password but not your device passcode, a different method applies. If you cannot remember either, yet another option becomes necessary. The guide that follows covers each scenario with specific steps.
Practical Takeaway: Before attempting recovery, think about what information you remember. Do you know your Apple ID and its password? Do you recall any part of your passcode? Identifying what you know helps you select the most efficient recovery method.
If you know your Apple ID email address and password, you can use this information to regain access to your iPhone. This method works because Apple ties your device to your Apple ID account for security purposes. When you set up your iPhone originally, you connected it to an Apple ID. That connection allows Apple to verify your identity without needing your device passcode.
Learn About CalFresh Benefits in California →
Here is what happens during this process: Your iPhone displays a screen showing how many failed passcode attempts you have made. After six failed attempts, your device shows a message saying "iPhone is disabled." The message tells you to try again in a certain number of minutes. After ten failed attempts, a longer waiting period appears. Eventually, after fifteen failed attempts, you see a screen offering to connect to iTunes or use iCloud to reset your device.
To use your Apple ID for recovery, follow these steps: When the device tells you it is disabled, look for an option that says "iPhone Unavailable" or a message mentioning iCloud. On newer iPhones running iOS 15.1 or later, you should see text that says "iPhone Unavailable - Use Find My iPhone." Tap on this option if present. If this option does not appear, you will need to connect your iPhone to a computer with iTunes or Finder, which is covered in the next section.
If the Find My iPhone option appears on your locked screen, tap it and enter your Apple ID email and password. The system will verify your identity through your Apple account. Once verified, you can create a new passcode. The phone will then unlock, though you should know that creating a new passcode erases all data on your device unless you restore from a backup later.
This method only works if you have previously set up two-factor authentication on your Apple ID. Two-factor authentication is an extra security layer where Apple sends a verification code to a trusted device or phone number. If you set this up when you first created your Apple ID, you will receive a code during the unlock process. You must enter this code to proceed. If you did not set up two-factor authentication, you will need to use a different recovery method.
Practical Takeaway: Write down your Apple ID email address and store your Apple ID password in a password manager like iCloud Keychain or a dedicated app. These pieces of information become critical when you are locked out. Many people know their Apple ID but not the password, making recovery impossible.
If your Apple ID method does not work or is not available, using a computer offers another path to regaining access. You will need a Mac computer running macOS Catalina or newer, or a Windows computer with iTunes installed. This method essentially erases your iPhone and sets it up as new, though you can restore your data from a previous backup if one exists.
Free Guide to Understanding P0171 Engine Codes →
On a Mac with Catalina or newer: Connect your locked iPhone to the Mac using a USB cable. Open Finder (the app with a smiling face icon). Your iPhone appears in the Finder sidebar under "Locations." Click on your iPhone name. In the main window, you see device information. Look for a button labeled "Restore." Click this button. A dialog box appears asking if you want to restore your iPhone to factory settings. Click "Restore" again to confirm.
On a Windows computer or Mac with an older operating system: Connect your iPhone using a USB cable. Open iTunes (download it free from Apple's website if you do not have it). Your iPhone appears in iTunes with a phone icon. Click the phone icon. In the summary panel, you see a button that says "Restore iPhone." Click it. iTunes shows a dialog asking if you want to download the latest iOS software and restore your iPhone. Click "Restore" to proceed. Do not disconnect your phone during this process.
The restoration process takes between five and thirty minutes depending on your internet speed and iOS version. Your iPhone restarts several times and shows an Apple logo. Once complete, you see the "Hello" setup screen, which means the phone is ready to configure. You can set it up as a new device or restore from a backup. If you have a backup stored in iCloud from before you were locked out, you can restore all your photos, contacts, messages, and apps during setup.
Important considerations: This method erases all data currently on your iPhone. If you do not have a backup, you will lose any photos, messages, or other data created since your last backup. Your iPhone stores backups automatically to iCloud if you set this up previously. You can check if a backup exists by going to iCloud.com on another device and signing into your Apple ID. Another consideration is that you must have internet access during setup. Additionally, after restoring, you will need your Apple ID and password to set up the phone again. You cannot skip this step because of Apple's activation lock feature.
Practical Takeaway: Before locking yourself out, enable automatic iCloud backups on your iPhone. Go to Settings, tap your name, tap iCloud, tap iCloud Backup, and toggle it on. This creates regular backups so you lose minimal data if you ever need to restore.
Find My iPhone is a web-based service that allows you to locate, lock, or erase your iPhone from any computer or another person's device. If you set up Find My iPhone when you originally configured your iPhone, you can use it to reset your device even when locked out. This method works from anywhere as long as you have internet access on another device.
Get Your Free Guide to Scheduling Social Media Posts →
To use this method, go to iCloud.com on any web browser. Sign in with your Apple ID email and password. Click on "Find My." A map appears showing your devices. Your locked iPhone should appear on this map if you have enabled location services and Find My iPhone. Click on your iPhone in the device list. A sidebar appears with options. One option says "Erase This Device." Click it.
When you click Erase This Device, iCloud sends a command to your iPhone telling it to erase all data and settings. This process removes everything on the phone, including your forgotten passcode. The phone displays an Apple logo and goes through a restart. Within a few minutes, it shows the setup screen again. At this point, you can set it up fresh or restore from a backup.
This method works whether your iPhone is currently powered on or not. If your phone is off, iCloud queues the erase command. The moment you power on your iPhone, it receives the command and erases itself. This feature protects your privacy if your phone is lost or stolen.
One requirement for this method is that Find My iPhone must have been set up before you were locked out. If you never turned on Find My iPhone, this method will not work. You can check if it was enabled by trying to access it. If your device does not appear in the Find
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.