Change iPhone Passcode When Forgotten – Simple Reset Guide
In this article
Yes, you can change a forgotten iPhone passcode by erasing the device through a computer with iTunes/Finder or via iCloud’s Find My iPhone feature, then setting a new passcode during the setup process.
What You’ll Need
- A Mac or PC with the latest version of iTunes (Windows) or Finder (macOS Catalina or later).
- A Lightning‑to‑USB cable that works with your iPhone.
- Your Apple ID and password (required to reactivate the device after the erase).
- An iCloud backup or a recent iTunes/Finder backup if you want to keep your data.
- Access to a Wi‑Fi network for the activation step.
Step‑By‑Step
- Back up your iPhone if possible. Connect the device to your computer, open iTunes or Finder, select the iPhone, and choose Back Up Now**. If the phone is locked and you cannot trust the computer, skip this step and rely on an iCloud backup made before the lock.
- Put the iPhone into Recovery Mode.
- For iPhone 8, X, 11, 12, 13, 14, and later: Quickly press and release Volume Up, then Volume Down, then press and hold the Side button until the recovery‑mode screen appears.
- For iPhone 7 or 7 Plus: Press and hold the Volume Down and Side buttons together until the recovery screen shows.
- For iPhone 6s or earlier: Press and hold the Home and Top (or Side) buttons together until the recovery screen appears.
- When the recovery screen appears (a cable pointing to a computer), your computer should detect the iPhone and display a dialog offering to Restore or Update. Choose Restore**.
- The computer will download the latest iOS firmware and install it on the iPhone. This process erases all data, settings, and the forgotten passcode. Wait for the installation to finish; the iPhone will restart and show the “Hello” setup screen.
- Follow the onscreen setup prompts. When you reach the **Passcode** screen, choose a new 4‑digit, 6‑digit, or custom alphanumeric code. Write it down or store it in a password manager to avoid future lockouts.
- Sign in with your Apple ID. If you have a recent iCloud backup, the setup will ask whether you want to restore from that backup. Choose the appropriate option to bring back your apps, photos, and settings.
- Complete the remaining setup steps (Face ID/Touch ID, Apple Pay, Siri, etc.) and verify that the new passcode works by locking the screen and unlocking it.
Common Mistakes
- Skipping the backup. Restoring erases everything. If you have no recent backup, you will lose photos, messages, and app data.
- Using the wrong button combination. Each iPhone generation has a specific recovery‑mode sequence. Using the wrong one may just force a restart instead of entering recovery mode.
- Selecting “Update” instead of “Restore”. Update attempts to keep existing data and will fail if the device is locked with a passcode you don’t know.
- Not trusting the computer. If the iPhone shows a “Trust This Computer?” prompt and you tap “Don’t Trust”, iTunes/Finder cannot communicate, and the restore will not start.
- Entering the wrong Apple ID. After the erase, the device asks for the Apple ID that was originally used for Activation Lock. Using a different account will prevent activation.
Tips
- Keep your iTunes/Finder software up to date before starting. An outdated version may not support the newest iOS version and can stall the restore.
- If you have two computers, use the one that previously synced with the iPhone; it will already be trusted.
- Consider setting a longer alphanumeric passcode for better security and easier recall (e.g., a phrase with numbers).
- Enable iCloud Keychain after the reset; it can store passwords and passcodes securely across Apple devices.
- When using iCloud’s Find My iPhone to erase, make sure the device is online. If it’s offline, the erase command will run the next time it connects to Wi‑Fi or cellular.
Troubleshooting
If the computer does not detect the iPhone in recovery mode, try the following:
- Disconnect and reconnect the Lightning cable. Use a different USB port or a different cable if possible.
- Restart the computer, then repeat the recovery‑mode steps.
- On a Mac with Apple Silicon, ensure the cable is connected directly to the Mac, not through a hub.
If the restore process hangs or fails with an error code, do these checks in order:
- Make sure your internet connection is stable; the firmware download can be interrupted.
- Update iTunes (Windows) or macOS (Finder) to the latest version.
- Temporarily disable any security software that might block the download.
- Try a different computer; sometimes the error is specific to the host machine.
If Activation Lock prevents you from signing in, verify that you are entering the exact Apple ID and password used when the iPhone was first set up. If you have forgotten those credentials, use Apple’s account recovery page (iforgot.apple.com) to reset the password.
If you cannot erase the device via iCloud because it shows as “Offline”, place the iPhone in Airplane Mode, then turn it back on to force a network reconnection. If it still stays offline, you will need to use the computer‑based restore method described above.
Frequently Asked Questions
Can I change the passcode without erasing my iPhone?
No. Apple does not provide a way to bypass a forgotten passcode without wiping the device, because the passcode encryption is designed to protect user data.
Will restoring erase all my data?
Yes, a restore removes everything on the iPhone. Data can be recovered only from a backup made before the lock.
Do I need a paid iTunes subscription to restore?
No. iTunes is free, and the restore function works without any subscription.
What if I don’t have a computer?
You can use iCloud’s Find My iPhone to erase the device remotely, then set a new passcode during the re‑setup process.
How long does the restore take?
Downloading the iOS firmware and installing it usually takes 10‑20 minutes, depending on internet speed and the iPhone model.
Can I keep my apps after the reset?
Apps themselves are not stored on the device after a wipe, but they will be re‑downloaded automatically if you restore from an iCloud or iTunes backup that includes app data.