The fastest way back in: use Find My iPhone

If you have Find My iPhone turned on and you know the Apple ID and password linked to your device, you can reset your iPhone remotely without visiting an Apple Store. This works whether your phone is in your hand or across the country. You do not need to remember your screen lock code.

Go to iCloud.com on any computer or another device, sign in with your Apple ID, and open Find My. Select your iPhone from the list of devices. Choose "Erase iPhone" — this wipes the device completely, including the forgotten password. After the wipe finishes, you can set up the phone again and create a new screen lock code. The whole process takes about 10 minutes.

If you do not remember your Apple ID password either, you will need to reset that first. Go to iforgot.apple.com, enter your Apple ID email address, and follow the steps to verify your identity — usually through a recovery email or phone number you set up when you created the account.

Key Takeaways

  • Find My iPhone lets you erase your device remotely if you know your Apple ID password, and you can set a new screen lock code after the wipe.
  • If you do not have Find My turned on, you will need to use a computer and iTunes or Finder to restore your iPhone through recovery mode.
  • Apple's account recovery process can take several days if you cannot verify your identity through email or phone, so start it as soon as you realize you are locked out.
  • You will need proof of purchase or your device serial number if you visit an Apple Store, and the process there typically takes one to two hours.

Recovery mode: the path when Find My is off

If Find My iPhone is not turned on, you will need a Mac or Windows computer with iTunes (Windows) or Finder (Mac) installed. Connect your iPhone to the computer with a USB cable. The computer will recognize the device and prompt you to enter your screen lock code — but you can skip this step by putting the phone into recovery mode, which bypasses the lock entirely.

To enter recovery mode, hold down the power button and volume down button at the same time for about 10 seconds until you see the recovery mode screen (it shows a cable and iTunes icon on older phones, or a cable and computer icon on newer ones). Release the buttons. On your computer, Finder or iTunes will now show an option to restore the iPhone. Click it. The software will read the current iOS version and install it on your phone, erasing everything including the forgotten password.

After the restore finishes, you will see the setup screen. You can now create a new screen lock code. If you want to restore your photos, messages, and other data, you will need a backup — either from iCloud or from a previous iTunes backup on the same computer.

What to do if you do not have a computer at home

If you do not own a Mac or Windows computer, you have two options: borrow one from a friend or family member, or visit an Apple Store. The process is the same on any computer — you just need access to one with Finder or iTunes and a USB cable.

An Apple Store can also perform the reset for you. Bring your iPhone and a form of ID. The staff will verify that you own the device (usually by checking your receipt or looking up your device serial number in Apple's system), then restore the phone in-store. This typically takes one to two hours. There is no charge for this service if your device is under warranty or if you own an AppleCare+ plan, but some stores may charge a fee if neither applies — ask before they start.

Resetting your Apple ID password if you are locked out of that too

If you cannot remember your Apple ID password and you do not have Find My iPhone available, you will need to reset your Apple ID before you can erase your device. Go to iforgot.apple.com on any computer or phone and enter the email address associated with your Apple ID.

Apple will ask you to verify your identity. The fastest route is usually a verification code sent to a recovery email address or phone number you set up when you created your account — you will receive the code within seconds and can reset your password when ready. If you do not have access to those recovery methods, Apple can verify your identity through your device serial number or receipt of purchase, but this process can take several days.

Once your Apple ID password is reset, go back to iCloud.com, sign in, and use Find My to erase your iPhone. If you still do not have Find My available, use the recovery mode method on a computer instead.

Preventing this from happening again

After you regain access to your iPhone, turn on Find My iPhone when ready. Go to Settings, tap your name at the top, select Find My, then Find My iPhone, and toggle it on. You will need to enter your Apple ID password. This setting stays on even if someone else uses your phone, so it protects you if you forget your code in the future.

Write down your Apple ID password in a find place — a password manager like iCloud Keychain, 1Password, or Bitwarden, or a physical notebook kept somewhere safe at home. Do not store it in a note on your phone itself, because you will not be able to access it if you are locked out. If you use a password manager, make sure you remember the master password or keep it written down separately.

Consider using Face ID or Touch ID instead of a numeric code. These biometric methods are harder to forget, and you can still reset them through your Apple ID if needed. You can set both up in Settings under Face ID & Passcode or Touch ID & Passcode.

What happens to your data during a reset

When you erase your iPhone to regain access, everything on the device is deleted — photos, messages, apps, settings, all of it. The only way to recover this data is if you have a backup. If you use iCloud, your photos, messages, contacts, and most app data are backed up automatically as long as you were signed into your Apple ID before you got locked out.

After you set up your iPhone again, you can sign back into your Apple ID and restore from your iCloud backup. This puts your data back on the phone. If you do not have an iCloud backup, you can restore from a backup you made on a computer using iTunes or Finder, if one exists. If you have neither, your data cannot be recovered.

Frequently Asked Questions

Can I reset my iPhone password without erasing the phone?

No. If you forget your screen lock code, the only way to regain access is to erase the device completely. Apple does this intentionally — it prevents someone else from accessing your phone if they steal it. After the erase, you can set a new code without losing data if you restore from a backup.

How long does it take to restore my iPhone from a backup?

The erase itself takes 5 to 15 minutes depending on your phone model. Restoring from an iCloud backup can take 30 minutes to several hours depending on how much data you have and your internet speed. Restoring from a computer backup is usually faster, typically 15 to 45 minutes.

What if I do not remember my Apple ID email address?

If you set up your iPhone with an Apple ID but cannot remember the email, you can see it on the phone itself — go to Settings, tap your name at the top, and it displays your Apple ID email. If you are locked out and cannot access Settings, an Apple Store can look it up using your device serial number or receipt of purchase.

Will resetting my iPhone delete my iCloud photos?

No. Your iCloud photos are stored in Apple's servers, not on your phone. Erasing your iPhone only removes the local copies on the device. When you sign back into your Apple ID after the reset, your photos reappear automatically.

Can I reset my iPhone password over the phone with Apple support?

Apple support can walk you through the reset process and help you verify your identity, but they cannot reset your password for you remotely. You will need to perform the erase yourself using Find My iPhone, recovery mode on a computer, or by visiting a store in person.