iPhone Passcode After Factory Reset: Why It Happens
In this article
Yes, your iPhone may still ask for a passcode after a factory reset because Activation Lock is tied to your Apple ID and requires either the previous passcode or verification through your Apple ID to complete setup. This security feature prevents unauthorized access even after erasing all data. To proceed, you must either enter the correct passcode or sign in with the Apple ID that was linked to the device before the reset. This guide explains why this happens, how to resolve it correctly, and what to do if you're stuck.
What You'll Need
- Access to the Apple ID and password associated with the iPhone
- Trusted device or computer to receive verification codes (if two-factor authentication is enabled)
- Stable internet connection (Wi-Fi or cellular)
- Original passcode (if known)
Step-by-Step
- Turn on the iPhone after the factory reset. The device will start up as if it’s new.
- Follow the on-screen setup prompts until you reach the "Apps & Data" screen.
- Select "Restore from Mac or PC" or "Restore from iCloud Backup" only if you intend to restore data. However, if the device prompts for a passcode before this step, do not proceed further with setup.
- If a passcode screen appears—asking for a 6-digit (or 4-digit) code—this means the device was not fully deactivated before the erase. Enter the last known passcode used on the iPhone.
- If you don’t remember the passcode, return to the home screen of the setup assistant and look for an option like "Forgot Passcode?" or "Use Apple ID to Reset." This may not appear on all models or iOS versions.
- If no such option appears, power off the iPhone and connect it to a computer with iTunes (Windows) or Finder (Mac).
- Put the iPhone into recovery mode: For iPhone 8 and later, press and release Volume Up, then Volume Down, then press and hold the Side button until the recovery screen appears. For iPhone 7/7 Plus, press and hold the Side and Volume Down buttons. For iPhone 6s and earlier, press and hold the Home and Side buttons.
- When prompted in iTunes or Finder, choose "Restore" (not Update) to reinstall iOS. This may take several minutes.
- After the restore completes, the iPhone will restart. Begin setup again.
- When prompted, sign in with the Apple ID and password that was previously linked to the device. This verifies ownership and disables Activation Lock.
- Complete the setup process. If prompted for a passcode again, ensure you’re entering the correct one. If not, the Apple ID sign-in should bypass the need for the old passcode.
Common Mistakes
- Entering incorrect passcodes multiple times, which can trigger longer lockout periods or permanent disablement.
- Using a different Apple ID than the one originally linked to the device, which will not satisfy Activation Lock.
- Selecting "Erase All Content and Settings" without signing out of iCloud first, leaving the device still linked to the previous account.
- Assuming that a factory reset removes all security—Activation Lock remains active unless the device is properly deauthorized.
- Skipping recovery mode and trying to set up the device normally, which won’t bypass the passcode prompt if the lock is still in place.
Tips
- Always sign out of iCloud and disable Find My iPhone before erasing a device you own.
- If you’re buying a used iPhone, ask the seller to erase it themselves after signing out of their Apple ID. Never accept a device that’s still locked to an account.
- Keep your Apple ID credentials secure and accessible. Use a trusted device or recovery key if two-factor authentication is enabled.
- Use recovery mode only when necessary, as it reinstalls the entire operating system and takes longer than a standard reset.
- Check the status of Apple’s system services online if you’re unable to sign in—temporary outages can delay verification.
Troubleshooting
If the iPhone still asks for a passcode after a full restore via recovery mode, the most likely cause is an active Activation Lock. Without the correct Apple ID and password, the device cannot be fully activated. If you’re the rightful owner but don’t remember the Apple ID details, visit iforgot.apple.com to recover your account. If you’re not the original owner and can’t contact the seller, the device may be unusable unless the original owner removes it from their account remotely via iCloud.com. Apple Support can assist in proving ownership with original purchase receipts, but this process can take time and isn’t guaranteed. Never attempt third-party tools claiming to bypass Activation Lock—they are scams and may install malware.
Frequently Asked Questions
Why does my iPhone ask for a passcode after I erased it?
Because Activation Lock is still active. Even after erasing, the device ties to the previous Apple ID and may require the last passcode or Apple ID verification to proceed.
Can I bypass the passcode after a factory reset?
Not without the original Apple ID and password. There is no legitimate way to bypass Activation Lock if you don’t have access to the associated account.
Does erasing all content remove the passcode?
No. If the device was protected by a passcode before erasure, iOS may still require it during setup to verify ownership, especially if Find My was enabled.
What if I bought a used iPhone that asks for a passcode?
Contact the seller and ask them to remove the device from their iCloud account at iCloud.com. If they can’t, the phone may be locked indefinitely.
Will restoring in iTunes remove the passcode lock?
Restoring via iTunes or Finder reinstalls iOS but does not remove Activation Lock. You still need the Apple ID and password to complete setup.
Can Apple unlock my iPhone if I forgot the passcode?
Apple cannot recover or remove passcodes. However, they can help verify ownership and guide you through account recovery if you have proof of purchase.