• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • iPhone
  • Office
  • Google
  • Windows & Mac
  • Apps & Devices
  • WordPress
  • All guides
Home/iPhone/How to Unlock iPhone Without a Password (Forgot Passcode)
iPhone

How to Unlock iPhone Without a Password (Forgot Passcode)

By Matthew Burleigh · Updated October 29, 2026 · 11 min read

If you have forgotten your iPhone passcode, there is no legitimate way to unlock the phone and keep everything on it, except one: the previous passcode, if you changed it in the last 72 hours. Every other route Apple offers erases the iPhone and sets it up again, and you get your data back only from a backup made before you were locked out. Before you erase anything, unlocking without resetting explains the one Apple route that keeps your data and how to check for a backup. If the only way in is an erase, the article on factory resetting an iPhone with the buttons explains how recovery mode is entered with the buttons.

Start here: if you changed your passcode within the last 72 hours and the iPhone runs iOS 17 or later, you can unlock it with the old code and lose nothing. That method comes first below. These steps are written for iOS 27 and cover every iPhone model Apple supports, with notes where older iOS versions or older models differ. Use them only on an iPhone you own.

Two different locks, and what you need

Two separate credentials are involved, and mixing them up causes most of the confusion:

  • The passcode is the 4- or 6-digit (or custom) code you type on the Lock Screen. This is what you forgot.
  • The Apple Account password is the password for the account the iPhone is signed in to (formerly called Apple ID). You need it for every erase route, because of Activation Lock.

Activation Lock is a theft protection that turns on automatically with Find My. It stops anyone from setting up and using your iPhone, even after it has been completely erased, unless they sign in with the Apple Account and password it was linked to. Erasing removes the passcode, but it does not remove Activation Lock.

Before you start, gather:

  • Your Apple Account email or phone number and its password.
  • A Wi-Fi or cellular connection on the iPhone (for the on-phone methods).
  • A Mac or Windows PC and a cable that can charge the iPhone (only for the computer method), plus up to an hour.
  • A rough idea of when you last backed up to iCloud or a computer. A backup is the only way to get photos, messages and other data back after an erase.

Which route to use

Apple’s own order is: try the previous passcode, then reset on the iPhone itself, and use a computer only if neither works. Find My on another device is a remote alternative to the on-phone reset.

Your situation Use Keeps your data?
Changed the passcode in the last 72 hours, iOS 17 or later Previous passcode Yes
iOS 15.2 or later, Find My on, iPhone online, you know your Apple Account password Security Lockout reset on the iPhone No, erases
No option appears on the Lock Screen, older iOS, or the iPhone has no connection Recovery mode with a computer No, erases
You can’t use the locked iPhone’s screen but Find My was on Erase with Find My from a browser No, erases

Method 1: Unlock with your previous passcode (within 72 hours)

On iOS 17 and later, Apple’s Passcode Reset feature lets your old passcode unlock the iPhone for 72 hours after you change it. This is the only route that keeps your data. It needs a Wi-Fi or cellular connection, the iPhone must be signed in to your Apple Account, and Find My must be on. Apple’s page on resetting a forgotten passcode with your previous passcode has the full requirements.

  1. Keep trying passcodes on the Lock Screen until the iPhone Unavailable screen appears. You’ll see Forgot Passcode? at the bottom of the screen.
  2. Tap Forgot Passcode?.
  3. Tap Enter Previous Passcode. If you don’t see this option, the 72-hour window has passed or a requirement isn’t met; skip to Method 2.
  4. Enter your old passcode.
  5. Follow the prompts to create a new passcode. Your iPhone unlocks with all your data in place.

Pick a new passcode you’ll remember, and consider writing it somewhere safe that isn’t on the phone. If you changed the passcode because someone else knew the old one, you can stop the old code from working: go to Settings > Face ID & Passcode (or Touch ID & Passcode), enter your passcode, and tap Expire Previous Passcode Now.

Method 2: Erase from the Lock Screen (no computer needed)

Since iOS 15.2 you can erase a locked iPhone from the Lock Screen itself, so a computer is no longer required. This works only if Find My was turned on before you were locked out, the iPhone has a cellular or Wi-Fi connection, and you know your Apple Account password.

Warning: this permanently deletes everything on the iPhone. Photos, messages and app data that aren’t in a backup or synced to iCloud are gone for good. Make sure you’ve ruled out Method 1 first.

On iOS 17 and later, including iOS 27:

  1. Enter passcodes on the Lock Screen until iPhone Unavailable appears.
  2. Tap Forgot Passcode? at the bottom of the screen. The Security Lockout screen appears.
  3. Tap Start iPhone Reset.
  4. Enter your Apple Account password when asked. This signs the iPhone out of your account.
  5. Tap Erase iPhone to permanently delete your data and settings. If you use an eSIM, you’ll be offered the choice to keep it or delete it.
  6. Wait for the iPhone to restart, then follow the setup screens. You can restore from a backup and set a new passcode.

On iOS 15.2 through iOS 16, the screen offers an Erase iPhone option directly instead of the Security Lockout flow. On iOS 16 or earlier, contact your carrier for a new eSIM QR code before you erase, because the eSIM may be removed. Apple’s article on resetting your iPhone without a computer covers these older versions.

Method 3: Restore with a computer in recovery mode

Use this when Forgot Passcode? doesn’t appear, the iPhone can’t get online, or the reset in Method 2 fails. Recovery mode is a special startup state that lets a computer reinstall iOS. You need a Mac or Windows PC, a cable that can charge your iPhone, an internet connection, and up to 60 minutes. On a Mac you’ll use Finder; on Windows, the Apple Devices app.

Warning: choosing Restore erases the iPhone completely. Only a backup made before you forgot the passcode can bring your data back. The Update option won’t help: it reinstalls iOS but leaves the passcode in place, so the phone stays locked.

Find your model’s button first. You’ll hold it right after you plug the cable in:

iPhone model Button to hold
Face ID models, and iPhone 8 through iPhone SE (2nd and 3rd generation) Side button
iPhone 7 and iPhone 7 Plus Volume down button
iPhone 6s and earlier, and iPhone SE (1st generation) Home button

If your model isn’t listed, check Apple’s guide to resetting your iPhone with a computer for its button before you begin.

  1. Unplug the iPhone and turn it off. On a Face ID model, hold the side button and the volume down button until the power-off slider appears. On a model with a Home button, hold the side or top button. Drag the slider to turn it off.
  2. Plug the cable into your computer, but not into the iPhone yet.
  3. Plug the cable into the iPhone, then quickly press and hold your model’s button from the table. Don’t let go.
  4. Keep holding while the Apple logo appears, and don’t release the button until the iPhone shows the recovery mode screen (a computer and a cable).
  5. On a Mac, open Finder and select your iPhone under Locations in the sidebar. Allow the accessory to connect if asked. On Windows, open the Apple Devices app, select your iPhone, trust the connection if prompted, and go to General.
  6. When you’re offered Restore or Update, choose Restore. The computer downloads iOS and erases the iPhone.
  7. When it finishes, unplug the iPhone and follow the setup screens.

If the download takes more than 15 minutes, the iPhone leaves recovery mode on its own. Let the download finish, then put it back into recovery mode by repeating steps 1 to 4. No computer at all? An Apple Store or Apple Authorized Service Provider can do this restore for you, and it still erases the phone.

Method 4: Erase it with Find My from another device

If Find My was on, you can erase the iPhone remotely from any web browser. This is useful when the phone is out of reach, or when Method 2 isn’t available on the screen but the phone is still online.

Warning: this deletes everything on the iPhone. Once the erase runs, nothing on the phone can be recovered except from a backup, so check that you have one first.

  1. On a computer or another phone, go to icloud.com/find and sign in with your Apple Account. Enter a two-factor code if asked (it may go to another trusted device you own).
  2. Select the locked iPhone from your list of devices.
  3. Choose Erase This Device.
  4. Follow the prompts. You can add a phone number or message to show on the iPhone’s Lock Screen.

If the iPhone is offline, the erase starts the next time it connects. You can cancel a pending erase with Stop Erase Request. The Find My app on another Apple device signed in to your account can also erase the iPhone.

After the erase: getting past Activation Lock

When an erased iPhone starts up, it asks for the Apple Account and password it was signed in to. That’s Activation Lock, and it’s expected. Enter your details, then choose to restore from your iCloud or computer backup, or set the phone up as new. Set a new passcode during setup.

If you’ve forgotten the Apple Account password as well, reset it before you go further:

  • On another trusted Apple device already signed in to your account.
  • At iforgot.apple.com in a browser.
  • From the Apple Support app on a friend’s or family member’s iPhone: Support Tools > Reset Password > Help Someone Else.

If none of those works, Apple’s account recovery process can take several days or longer, by design. There’s no faster legitimate shortcut.

You’ll know everything worked when the iPhone reaches your Home Screen, your new passcode unlocks it, and your restored apps and photos start downloading. To return a phone to the setup screen yourself later, for example before selling it, see the steps to factory reset an iPhone while you still know the passcode.

A locked secondhand iPhone

A used iPhone can be locked in two ways, and they need different fixes.

It shows “iPhone Locked to Owner” or asks for someone else’s Apple Account. Activation Lock is on, and only the previous owner (or Apple, with proof) can remove it. Ask the seller to:

  1. Sign in at icloud.com/find with their Apple Account.
  2. Select the iPhone and choose Remove This Device.
  3. Tell you when it’s done, then restart the iPhone and continue setup.

If you can’t reach the seller and you bought the phone legitimately, you can file an Activation Lock support request with Apple using your proof of purchase. Apple’s page on removing Activation Lock explains the request. If the phone belongs to a business or school, its IT team has to release it.

It’s only passcode-locked. If a previous owner left a passcode on but you’re not seeing an Activation Lock screen, restore it with recovery mode (Method 3). If setup then asks for the previous owner’s Apple Account, you’re back to the Activation Lock situation above.

When buying used, a phone is ready for a new owner only if it starts at the Hello screen. Don’t accept one that shows Locked to Owner or asks for another person’s account, and keep your receipt. Buying from Apple or an Apple Authorized Reseller avoids the problem, and Apple notes that parts from an Activation Locked phone may not be eligible for warranty service.

When a step doesn’t go as expected

  • Forgot Passcode? never appears. The iPhone may be offline, Find My may have been off, or it may be running a version older than iOS 15.2. Use Method 3 instead.
  • Start iPhone Reset rejects your password. Check you’re using the Apple Account password, not the passcode. If you’ve forgotten it, reset it first using the options above.
  • The computer doesn’t show Restore. The iPhone probably isn’t in recovery mode. Turn it off and repeat the button step, holding the button until the recovery screen appears.
  • The iPhone leaves recovery mode mid-download. That’s the 15-minute timeout. Let the download finish, then turn the iPhone off, put it back into recovery mode and try the restore again.
  • The buttons don’t respond or the recovery screen never appears. Apple advises contacting Apple Support at this point.
  • You chose Update and the phone is still locked. Update doesn’t remove the passcode. Repeat Method 3 and choose Restore.
  • The Find My erase says it’s pending. The iPhone is offline. It erases as soon as it connects to Wi-Fi or cellular.

Avoid getting locked out again

  • Back up regularly, because a backup made before a lockout is the only thing that brings your data back after an erase. The steps to back up an iPhone to iCloud take a couple of minutes.
  • Keep Find My on in Settings > [your name] > Find My > Find My iPhone. It’s what makes Methods 1, 2 and 4 possible; if it’s off on another iPhone in your family, here’s how to set up Find My iPhone.
  • Think before turning on Erase Data at the bottom of Settings > Face ID & Passcode (Touch ID & Passcode on iPhone SE and iPhone Duo). It wipes the phone automatically after repeated wrong passcodes, which is good security but unforgiving with a curious child.
  • Store your Apple Account password in a safe place off the phone, since every reset route depends on it.

Locked out: what people ask

Can an unlock tool get me in without erasing my data?

No. Apart from the previous passcode within 72 hours, there is no legitimate way to remove a forgotten iPhone passcode and keep the data, and paid “unlock” or “bypass” apps that promise otherwise don’t change that. The passcode is what protects your data if the phone is ever lost or stolen, so a working way around it would help thieves just as much as owners. Apple’s methods are free and are the supported route.

Will Apple unlock my iPhone if I show proof that it’s mine?

Apple can help you reset the phone, at a store or through support, but the reset still erases it. Proof of purchase helps with Activation Lock, not with recovering data behind a forgotten passcode.

Is this the same as a carrier unlock?

No. A carrier (network) unlock lets the iPhone use another carrier’s SIM, and only your carrier can do it. You can check it in Settings > General > About > Carrier Lock, where “No SIM restrictions” means it’s already unlocked.

How many wrong tries do I get before the phone locks?

After several wrong attempts the iPhone shows iPhone Unavailable. Apple’s own pages don’t agree on an exact number, so don’t count on a fixed allowance; if you’re unsure of the code, stop guessing and check whether Method 1 applies.

Will I lose my photos if they were in iCloud Photos?

Photos and other data synced to iCloud stay in your account and come back when you sign in after the reset. What’s lost is anything stored only on the phone and not included in a backup.

Does this work on an iPad?

The ideas are the same (previous passcode, on-device reset, computer restore, Find My), but the buttons and some screens differ, so follow Apple’s separate iPad passcode article.

Once you’re back in, make a fresh backup straight away, so that if this ever happens again an erase costs you nothing but the time to restore.

Matthew Burleigh
Matthew Burleigh

Matt has been working with WordPress and creating content using this powerful content management system for years. While he has written about many other tech topics, WordPress is one of his favorites.

You can read his full bio here.

Join Our Free Newsletter

iPhone & tech guides

You may opt out at any time.
Read our Privacy Policy

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Pinterest (Opens in new window) Pinterest

Related

More iPhone guides

  • How to Turn Off Stolen Device Protection on iPhone
  • How to Check Call History on iPhone (Calls and Recents in iOS 27)
  • How to Lock an App on iPhone With Face ID, Without Hiding It
  • Why Is My iPhone 15 Showing the Wrong Time? Troubleshooting Guide
  • How to Permanently Delete Photos from iPhone
See all iPhone guides

Primary Sidebar

Join Our Free Newsletter

iPhone & tech guides

You may opt out at any time.
Read our Privacy Policy

Recent Posts

  • How to Use Safety Check on iPhone
  • How to Schedule an Email in Gmail
  • How to Use Hold Assist on iPhone
  • How to Use the Accessibility Checker in Word
  • How to Use the Journal App on iPhone

Site Info

  • Domain Name - Hostgator
  • Hosting - Cloudways
  • Theme Framework - Genesis
  • Child Theme - Smart Passive Income Pro
  • Site Speed - WP Rocket

Archives

  • November 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • June 2024
  • May 2024
  • December 2023
  • November 2023
  • October 2023
  • November 2022
  • October 2022
  • May 2022
  • July 2020
  • September 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • July 2018
  • December 2016
  • November 2016

Categories

  • Apps & Devices
  • Comments
  • Genesis
  • Getting Started
  • Google
  • Hosting
  • iPhone
  • Jetpack
  • Microsoft Office
  • Navigation
  • Plugins
  • Settings
  • Sidebar
  • Themes
  • Windows & Mac
  • WordPress
  • Writing

Clear, step-by-step answers for iPhone, Office, Google, Windows, Mac and WordPress. Find your problem, follow the steps, get back to what you were doing.

Topics

  • iPhone
  • Microsoft Office
  • Google
  • Windows & Mac
  • Apps & Devices
  • WordPress
  • All guides

WordPress

  • Getting Started
  • Writing
  • Settings
  • Navigation
  • Jetpack
  • Themes

Company

  • Affiliate Disclosure
  • Privacy Policy
  • FAQ
  • About
  • Contact

© 2026 Answer Your Tech. Not affiliated with Apple, Microsoft, Google or WordPress. All trademarks belong to their owners.