If you’ve forgotten your iPhone passcode, the only way to regain access is to erase the device and restore it from a backup or set it up as new. This article explains every official method to do that, what you’ll need beforehand, and how to avoid common pitfalls.
What You Need Before You Start
Before erasing your iPhone, gather the following to make the process smoother:
- Your Apple ID and password – required to disable Activation Lock after the erase.
- A computer with the latest version of macOS or iTunes (on Windows).
- A USB cable compatible with your iPhone.
- Recent backup (iCloud or computer) if you want to restore your data.
If you have Find My iPhone enabled (which is automatic on most devices), you’ll need your Apple ID password to finish the setup after erasing. Without it, the device will be unusable.
Method 1: Use a Computer (Mac or PC)
This is the most reliable method and works for all iPhone models. Here are the steps:
- On your computer, open Finder (macOS Catalina or later) or iTunes (Windows or older macOS).
- Connect your iPhone to the computer using a cable.
- Put your iPhone into recovery mode:
- iPhone 8 or later: Press and quickly release the Volume Up button, then Volume Down, then press and hold the Side button until the recovery mode screen appears.
- iPhone 7/7 Plus: Press and hold the Side (or Top) button and the Volume Down button together until the recovery mode screen appears.
- iPhone 6s and earlier: Press and hold the Home button and the Top (or Side) button together until the recovery mode screen appears.
- When you see the option to Restore or Update, choose Restore. This will erase your iPhone and install the latest iOS.
- After the restore completes, your iPhone will restart. You can then set it up as new or restore from a backup.
If your iPhone doesn’t enter recovery mode on the first try, repeat the steps. Make sure your computer is trusted (if prompted) before proceeding.
Method 2: Use iCloud Find My iPhone (If Enabled)
If you have Find My iPhone enabled and your iPhone is connected to the internet, you can erase it remotely:
- Go to icloud.com/find and sign in with your Apple ID.
- Select your iPhone from the list of devices.
- Click Erase iPhone. This will wipe the device and remove the passcode.
- After the erase, you can either restore from an iCloud backup or set up as new.
Note: This method requires that your iPhone is online and that you remember your Apple ID credentials. If your iPhone is offline, the erase will happen the next time it connects to the internet.
Method 3: Use Recovery Mode as a Last Resort
If you can’t use a computer or iCloud, recovery mode is your only other option. It’s similar to Method 1 but is often used when the computer doesn’t recognize the device normally. The steps are the same as above, but you may need to put the iPhone into recovery mode before connecting it to the computer. This method is always available, even if your iPhone is disabled.
After the restore, you’ll need to go through the setup assistant. If you have a backup, you can restore from it. If not, you’ll start fresh.
What About the “Disabled” Screen?
If you’ve entered the wrong passcode too many times, your iPhone will show a “Security Lockout” or “iPhone is disabled” message. This is a security feature. The only way out is to erase the device using one of the methods above. There is no way to bypass the passcode without erasing, and attempting to guess it further will only increase the lockout time.
How to Avoid This in the Future
- Use Face ID or Touch ID – they’re convenient and reduce the need to type your passcode.
- Set a memorable passcode – avoid random numbers you’ll forget.
- Keep backups up to date – so you don’t lose data if you ever need to erase.
- Write down your passcode in a secure place (like a password manager).
Frequently Asked Questions
Will I lose all my data if I forget my passcode?
Yes, erasing your iPhone will delete all data that isn’t backed up. If you have an iCloud or computer backup, you can restore your data after the erase. If not, you’ll lose everything.
Can I bypass the passcode without erasing?
No. Apple does not provide any official way to remove a passcode without erasing the device. Any third-party software claiming to do so is either a scam or involves security vulnerabilities that are not recommended.
What if I don’t remember my Apple ID password?
You’ll need to reset your Apple ID password before you can erase your iPhone. Go to iforgot.apple.com and follow the instructions. If you can’t reset it, you may need to provide proof of purchase to Apple Support to unlock the device.
Will the erase remove the Activation Lock?
No, the erase itself doesn’t remove Activation Lock. After the erase, you’ll be asked for the Apple ID and password that were previously used on the device. If you don’t have them, you’ll need to contact Apple Support with proof of purchase.
Can I use a third-party tool to unlock my iPhone?
There are third-party tools that claim to unlock iPhones, but they are not endorsed by Apple and often require you to put your device in a vulnerable state. They may also be illegal in some regions. It’s safer to use Apple’s official methods.
What if my iPhone is disabled and I don’t have a computer?
Without a computer, the only option is iCloud’s Find My iPhone, but that requires the device to be online. If it’s offline, you’ll need to wait until it connects or borrow a computer to use recovery mode.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Temporarily Disable Hey Siri on iOS
- Type to Siri on iOS 11: Enable It in 2 Minutes
- Tozo T6 Not Working on Windows 11? Fix It
- iPad Air Keyboard Shortcuts & Trackpad Gestures
- Install Microsoft Teams on Ubuntu Linux
- VPN Not Connecting on Windows 10? 9 Fixes That Work