Forgetting your iOS 18 passcode locks you out of your iPhone or iPad, but you can regain access without the code. This guide covers the official recovery methods—using your Apple ID, a trusted computer, or recovery mode—and explains what to do if those fail. You’ll need your Apple ID credentials, and for some methods, a computer with the latest Finder (macOS) or iTunes (Windows).
What You’ll Need
- Your Apple ID email and password (the one used on the device).
- A computer: a Mac with Finder, or a Windows PC with iTunes installed (get it from Apple’s website if needed).
- A USB cable compatible with your device.
- If you have another Apple device with the same Apple ID, it can help with two-factor authentication codes.
Step-by-Step
Choose the method that fits your situation. All methods erase the device and its passcode, then let you restore from a backup or set up as new.
Method 1: Use iCloud Find My (If Find My is Enabled)
- On a computer or another device, go to icloud.com/find and sign in with your Apple ID.
- Click All Devices at the top, then select your locked iPhone or iPad.
- Click Erase iPhone (or iPad). This remotely wipes the device and removes the passcode.
- After the erase completes, you can set up the device. When asked for the passcode, you won’t need it—just follow the on-screen prompts.
- If you have a backup in iCloud, choose Restore from iCloud Backup during setup to get your data back.
Method 2: Use a Trusted Computer (Finder or iTunes)
- Connect your locked device to a computer you’ve previously used with it (one that’s “trusted”).
- On a Mac with macOS Catalina or later, open Finder. On a PC or older Mac, open iTunes.
- If prompted, click Trust This Computer on your device. If you can’t unlock the device, you won’t see this prompt—skip to Method 3.
- In Finder or iTunes, select your device when it appears.
- Click Restore iPhone (or iPad). Confirm that you want to restore. This erases the device and installs the latest iOS 18.
- Once the restore finishes, set up the device as new or restore from a backup.
Method 3: Recovery Mode (When No Trusted Computer)
- On your computer, open Finder or iTunes.
- Put your device into recovery mode. The steps vary by model:
- iPhone 8 or later, iPad with Face ID: Press and quickly release Volume Up, then Volume Down. Press and hold the Side button until the recovery mode screen appears (a computer icon and cable).
- 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, iPad with Home button: Press and hold the Home button and the Top (or Side) button together until the recovery mode screen appears.
- When you see the recovery mode screen on your device, a dialog in Finder/iTunes will offer to Restore or Update. Choose Restore.
- Wait for the download and restore to complete. The device will erase and install iOS 18.
- Set up the device as new or restore from a backup.
Method 4: Use Another Apple Device with the Apple Support App
- On another iPhone or iPad (with iOS 15.2 or later), open the Apple Support app.
- Go to Get Support → iPhone → Passcode → Forgot Passcode.
- Tap Start and follow the prompts. You’ll need to sign in with your Apple ID and confirm you own the device.
- If eligible, the app will guide you through erasing the device remotely.
Common Mistakes
- Using the wrong Apple ID: The Apple ID must be the one set as the primary account on the locked device. If you use a different one, the erase will fail.
- Skipping the “Trust” step: On a computer you’ve never connected to, you must tap “Trust” on the device. If you can’t, recovery mode is the only option.
- Choosing “Update” instead of “Restore”: Update tries to keep your data, but it won’t remove the passcode. You need a full restore.
- Disconnecting during restore: Interrupting the process can leave the device in a bricked state. Keep the cable connected until it finishes.
- Forgetting to disable Find My: If Find My is on, you must sign in with the same Apple ID to remove the activation lock after erasing. If you don’t have the credentials, the device is unusable.
Tips
- Back up regularly: If you have an iCloud backup, you can restore your data after erasing. Without a backup, you lose everything on the device.
- Check your Apple ID password: Before starting, make sure you can sign in to iCloud.com. If you’ve forgotten it, reset it at iforgot.apple.com first.
- Use a stable internet connection: The restore process downloads iOS 18, which can be several gigabytes. A wired connection is more reliable.
- Keep the device charged: Plug it into power during the restore to avoid a shutdown mid-process.
- After erasing, set a new passcode: Choose a memorable one or use a password manager to avoid this situation again.
Troubleshooting
- “iPhone is disabled” or “Security Lockout”: This means you’ve entered the wrong passcode too many times. The device may be temporarily locked. Wait for the lockout timer to expire, or use recovery mode to erase it immediately.
- Computer says “iTunes could not connect to the iPhone”: This usually happens in recovery mode when the computer is old or has outdated software. Update iTunes (or macOS) and try again. Also, try a different USB port or cable.
- iCloud Find My won’t erase: If the device is offline, the erase command will queue. Make sure the device has an internet connection (it may show as offline if it’s locked but still connected to Wi-Fi). If it’s been offline for a while, the erase may not happen until it reconnects.
- Activation Lock after restore: If you see “Activation Lock” and can’t sign in with your Apple ID, you need the original proof of purchase to contact Apple Support. Without it, the device cannot be unlocked.
- Restore stuck at Apple logo: This can happen if the download was corrupted. Force restart the device (press Volume Up, Volume Down, then hold Side button until the Apple logo appears) and try the restore again.
- No computer available: If you don’t have a computer, you can borrow one, or use the Apple Support app on another Apple device (Method 4). Alternatively, visit an Apple Store or authorized service provider—they can help, but you’ll need proof of purchase.
Frequently Asked Questions
Will I lose all my data?
Yes, every method erases the device. You can only get your data back if you have an iCloud or computer backup. If you never backed up, the data is gone.
Can I unlock without erasing?
No. Apple doesn’t provide a way to remove a passcode without erasing the device. The only exception is if you remember the passcode or use Face ID/Touch ID to unlock.
What if I don’t know my Apple ID password?
You’ll need to reset it at iforgot.apple.com before you can use any method. Without the Apple ID, the device will be stuck in activation lock after erasing.
Does this work on iOS 18 beta?
Yes, the methods are the same. However, if you’re on a beta, the restore will install the latest stable iOS 18, not the beta. You can reinstall the beta after setup if you wish.
Can I use Siri to bypass the passcode?
No. Siri is disabled when the device is locked, and past Siri bypasses have been patched in iOS 18.
What if my device is stolen?
These methods require your Apple ID and proof of ownership. If the device is stolen, you should contact Apple Support and your local authorities—do not attempt to bypass activation lock, as that’s illegal.
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
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- Spotting Outside Windows: Step-by-Step Guide
- Computer Keeps Crashing When Playing Games? Fixes