sodcalculator

10 Tech How-To

How to Change iPhone Passcode If Forgotten

Guide 10-55743 · Updated · Step by step

Forgetting your iPhone passcode locks you out of your device, but you can regain access by erasing the iPhone and setting a new passcode. This guide covers the official recovery methods—using a computer or iCloud—and walks you through each step clearly. You’ll need your Apple ID password and, ideally, a recent backup to restore your data.

What You’ll Need

  • Your Apple ID and password (the one used on the iPhone)
  • A computer (Mac or Windows) with the latest version of Finder or iTunes installed, or access to iCloud.com
  • A USB cable to connect your iPhone to the computer (if using that method)
  • If you have an eSIM, keep your carrier info handy (you may need to reactivate it after erasing)

Step-by-Step

Method 1: Erase with a Computer (Finder or iTunes)

  1. Update your computer software. Make sure your Mac is running macOS Catalina or later (use Finder) or your Windows PC has the latest iTunes.
  2. Connect your iPhone to the computer using a USB cable. If asked “Trust This Computer?”, tap “Trust” (you may need to enter your passcode—if you can’t, try another method).
  3. Open Finder or iTunes. On a Mac, open Finder and select your iPhone under Locations. On Windows, open iTunes and click the device icon near the top-left.
  4. Put your iPhone in Recovery Mode. The steps vary by model:
    • iPhone 8 or later (including SE 2nd gen and 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 (a computer icon and a cable).
    • iPhone 7/7 Plus: Press and hold the Side (or Top) button and the Volume Down button together until the recovery mode screen shows.
    • iPhone 6s and earlier, including SE 1st gen: Press and hold the Home button and the Top (or Side) button together until the recovery mode screen appears.
  5. When you see the recovery mode screen on your iPhone, a dialog appears on your computer: “There is a problem with the iPhone that requires it to be updated or restored.” Click Restore (not Update).
  6. Confirm the restore. Your computer will download the iOS software (this may take a while) and erase your iPhone. Keep it connected until the process finishes.
  7. Set up your iPhone as new. After the restore, your iPhone restarts and shows the “Hello” screen. Follow the on-screen setup steps. When asked for a passcode, you can set a new one.
  8. Restore from backup (optional). During setup, choose “Restore from iCloud Backup” or “Restore from Mac/PC” to get your data back. If you didn’t have a backup, you’ll start fresh.

Method 2: Erase with iCloud (Find My iPhone)

  1. Go to iCloud.com/find on any computer or phone browser and sign in with your Apple ID.
  2. Click “All Devices” at the top, then select your forgotten iPhone from the list.
  3. Click “Erase iPhone”. This remotely wipes the device and removes the passcode.
  4. Follow the on-screen prompts to confirm. If your iPhone is offline, the erase will start the next time it connects to the internet.
  5. After the erase completes, your iPhone will restart. Set it up as new and create a new passcode. You can restore from an iCloud backup during setup if you have one.

Common Mistakes

  • Using the wrong method for your iPhone model. The button combinations for Recovery Mode differ; using the wrong one may not trigger it.
  • Choosing “Update” instead of “Restore”. Update attempts to keep your data but often fails when the passcode is forgotten; Restore is the only reliable option.
  • Forgetting your Apple ID password. Without it, you cannot use iCloud or restore from a backup. You’ll need to reset the Apple ID password first at iforgot.apple.com.
  • Not backing up regularly. If you haven’t backed up recently, you’ll lose all data since your last backup. Enable automatic iCloud backups after setup.
  • Disconnecting the iPhone during restore. This can interrupt the process and leave your iPhone in a partial state.

Tips

  • Use a computer you trust. If you’ve never connected your iPhone to that computer, you may need to enter your passcode to trust it—which you can’t. In that case, use iCloud or try a different computer.
  • Keep your iPhone charged. Plug it into a power source during the restore to avoid it dying mid-process.
  • After erasing, set a passcode you’ll remember. Consider using a 6-digit numeric code, or an alphanumeric one, and store it in a password manager.
  • If you have an eSIM, you may need to contact your carrier to reactivate it after the erase, especially if you can’t access the original QR code or carrier app.

Troubleshooting

  • iPhone won’t enter Recovery Mode. Make sure you’re using the correct button sequence for your model and that the iPhone is connected to the computer. Try a different USB cable or port. If it still doesn’t work, force restart the iPhone (press Volume Up, Volume Down, then hold Side until the Apple logo appears) and try again.
  • Computer says “iPhone is disabled” or “not recognized”. This is normal when the passcode is forgotten. Proceed with Recovery Mode as described. If the computer doesn’t detect the iPhone at all, install the latest drivers or update iTunes/Finder.
  • Restore keeps failing or stuck. Check your internet connection, restart your computer, and try a different USB port. If the problem persists, try a different computer.
  • iCloud erase doesn’t start. Your iPhone must be connected to the internet (Wi-Fi or cellular) and have Find My iPhone enabled. If it’s offline, the erase will queue until it’s online. You can also put it in Lost Mode first to lock it, then erase.
  • After restore, iPhone asks for the previous owner’s Apple ID. This is Activation Lock. If you’re the original owner, sign in with your Apple ID. If you bought the phone second-hand and the previous owner didn’t remove it, you’ll need to contact them to disable Activation Lock.

Frequently Asked Questions

Can I change my passcode without erasing my iPhone?

No. If you’ve forgotten your passcode, Apple does not provide a way to bypass it without erasing the device. The only exception is if you have a recent backup—then you can restore after erasing.

Will I lose all my data if I erase my iPhone?

Yes, erasing removes all data and settings. However, if you have an iCloud or computer backup, you can restore your data after setting up a new passcode. Without a backup, data is lost.

What if I don’t have a computer or access to iCloud?

You’ll need to borrow a computer or use a friend’s device to access iCloud.com. There is no other official method. You can also visit an Apple Store or authorized service provider, but they will still erase the device.

How long does the restore take?

It depends on your internet speed and the iOS download size. Typically, it takes 10–30 minutes for the download, plus a few minutes for the erase and setup. The iPhone will restart automatically.

Can I use Recovery Mode if my iPhone is disabled for security reasons?

Yes, Recovery Mode works even if the iPhone is disabled. It’s the standard method to recover a forgotten passcode. Just follow the steps for your model.

What is Activation Lock and how do I avoid it?

Activation Lock is a security feature that requires your Apple ID to reactivate the iPhone after an erase. To avoid being locked out, make sure you know your Apple ID and password. If you bought a used iPhone, ensure the previous owner signed out of iCloud before you erase.

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

The whole Tech How-To bed →