To unlock an iPhone you use every day, wake the screen, glance at it and swipe up from the bottom (Face ID), or press the Home button with a registered finger (Touch ID). If neither works, type your passcode. If you are locked out because you forgot the passcode, see “iPhone Unavailable,” or need the phone to work with another carrier, the fix depends on which lock you are facing, and some of those fixes erase the phone.
The instructions below are written for iOS 27, the current version in October 2026, and checked against Apple’s support documentation. Where older versions or Home button models work differently, that is noted in the step.
Find your lock type first
“Unlock” can mean four different things on an iPhone. Match what you see on the screen to the right section.
- The phone works and you just want to get past the Lock Screen: go to Unlock your iPhone with Face ID, Touch ID or your passcode.
- You forgot the passcode, or the screen says “iPhone Unavailable” or “Security Lockout”: go to If you forgot your passcode. These methods erase the iPhone.
- A SIM card or eSIM from another carrier won’t work, or you see “SIM Not Supported”: go to Carrier lock. A carrier unlock does not erase anything.
- After an erase or on a used phone, setup asks for an Apple Account email and password you don’t have, or shows “iPhone Locked to Owner”: go to Activation Lock.
A fifth, less common case is a “Locked SIM” or “SIM PIN” prompt. That is a lock on the SIM card itself, not the phone, and it is covered at the end of the carrier section.
Unlock your iPhone with Face ID, Touch ID or your passcode
Every unlock method on the Lock Screen depends on a passcode. Face ID and Touch ID are faster ways to prove it’s you, but the passcode is always the backup, and iPhone will ask for it from time to time. If you haven’t set up Face ID yet, adding Face ID to your iPhone walks through the setup screens. If you think someone has seen you type it, it’s wise to change your passcode right away.
iPhone with Face ID (no Home button)
- Wake the iPhone by raising it, tapping the screen, or pressing the side button.
- Look at the screen. Face ID works best with the phone about 10 to 20 inches from your face.
- Swipe up from the bottom edge of the screen to go to the Home Screen.
- If Face ID doesn’t recognize you, swipe up anyway and enter your passcode on the keypad.
iPhone with a Home button (Touch ID)
- Press the Home button with a finger you registered for Touch ID and leave it there for a moment.
- The iPhone unlocks and opens the Home Screen. If you’d rather unlock by resting your finger without pressing, turn on Rest Finger to Open in Settings > Accessibility > Home Button.
- If Touch ID fails, press the Home button again and enter your passcode.
Why iPhone sometimes asks for the passcode instead
It isn’t a fault when Face ID stops working and the keypad appears. According to Apple’s Face ID security documentation, the passcode is required when:
- The iPhone was just turned on or restarted.
- It hasn’t been unlocked for more than 48 hours.
- The passcode hasn’t been used in the last 6.5 days and Face ID hasn’t unlocked it in the last 4 hours.
- It received a remote lock command, such as Mark As Lost in Find My.
- Five face-matching attempts in a row failed.
- Someone held the side button and a volume button for 2 seconds to bring up the power-off or Emergency SOS screen.
The last item is useful on purpose: if you ever need to stop someone from unlocking your phone with your face, squeeze those two buttons and the passcode becomes mandatory for the next unlock.
Unlocking while wearing a mask or sunglasses
Two options help when your face is partly covered:
- Face ID with a mask works on iPhone 12 and later with iOS 15.4 or later, in portrait orientation only. Turn it on in Settings > Face ID & Passcode.
- Unlock with Apple Watch works on any Face ID iPhone with iOS 14.5 or later and an Apple Watch Series 3 or later with watchOS 7.4 or later. The watch needs a passcode, wrist detection turned on, and must be unlocked on your wrist. Go to Settings > Face ID & Passcode, enter your passcode, and under Unlock with Nearby Devices turn on your watch.
Unlock with Apple Watch doesn’t check your identity with Face ID; it trusts the unlocked watch on your wrist. When it unlocks the phone, the watch taps you and shows a Lock iPhone button, which forces a passcode on the next unlock. It also can’t approve Apple Pay or saved passwords. Apple’s Unlock with Apple Watch article lists the full requirements.
If you forgot your passcode or see “iPhone Unavailable”
After five wrong passcode attempts, iPhone shows an “iPhone Unavailable” screen. If you don’t remember the passcode, every method Apple documents gets you back in by erasing the iPhone and setting it up again. The one exception is Method 1 below.
Before you erase anything, know what you’ll lose. Erasing deletes all photos, messages, apps and settings stored on the phone. You get them back only if you have an iCloud backup or a computer backup made before the lockout. Anything synced to iCloud (such as iCloud Photos, Contacts or Notes, if you had them turned on) comes back when you sign in again. If you’re not sure whether a backup exists, the iPhone backup guide explains where backups are stored, so you can check from another device or computer before you choose.
You’ll also need your Apple Account password for Methods 2 and 3 and to get past Activation Lock afterward. If you don’t know it, reset it first using Apple’s Apple Account password reset steps, from another device or a browser.
Apple’s order is: try Method 1, then Method 2, and use a computer only if neither works.
Method 1: Use your old passcode (changed it in the last 72 hours)
If you recently changed your passcode and the new one slipped your mind, iOS 17 and later (including iOS 27) let you unlock with the previous passcode for 72 hours after the change. Nothing is erased. The iPhone needs a Wi-Fi or cellular connection, and Find My must be on.
- Enter the wrong passcode five times until the iPhone Unavailable screen appears.
- Tap Forgot Passcode? at the bottom of the screen.
- Tap Enter Previous Passcode.
- Type your old passcode, then follow the prompts to create a new passcode right away.
Apple describes this in its Passcode Reset article. If more than 72 hours have passed, or you never changed the passcode, the Enter Previous Passcode option won’t appear.
Method 2: Reset the iPhone from the Lock Screen (no computer)
This works on iOS 15.2 and later as long as, before the lockout, the iPhone was signed in to your Apple Account with Find My turned on, and it currently has a Wi-Fi or cellular connection. The steps below are for iOS 17 through iOS 27.
Warning: the last step permanently erases everything on the iPhone.
- Keep entering the passcode on the Lock Screen until the iPhone Unavailable screen appears.
- Tap Forgot Passcode? in the bottom corner. If it isn’t there, the phone has no network connection or Find My was off; skip to Method 4.
- On the Security Lockout screen, tap Start iPhone Reset.
- Enter your Apple Account password. This signs the phone out of your account.
- If the phone has an eSIM, choose whether to keep it or delete it. Keeping it saves you from contacting your carrier to set it up again.
- Tap Erase iPhone. The iPhone erases its data and restarts.
- When the Hello screen appears, set the phone up, choose to restore from your backup if you have one, and create a new passcode.
On iOS 15.2 through iOS 16, the screen is a little different: after the lockout, tap Erase iPhone in the bottom corner, then follow the prompts to confirm, enter your Apple Account password, and erase. If you use an eSIM on these versions, ask your carrier for a QR code to set the eSIM up again before you start. Apple’s article on resetting a locked iPhone without a computer covers both versions.
Method 3: Erase the iPhone from another device or a browser
If you can’t use the locked phone’s screen, but Find My was on, you can erase it remotely with the same result as Method 2. You need your Apple Account password and access to another device or computer.
- On a computer or another device, go to icloud.com/find and sign in with the Apple Account used on the locked iPhone. You can also use the Find My app on another Apple device signed in to the same account.
- Select the locked iPhone from the device list.
- Select Erase This Device, then follow the prompts. You can skip the optional phone number and message.
- If the iPhone is online, it erases right away. If it’s off or offline, the erase waits until it next connects.
- Set up the phone from the Hello screen and restore your backup.
Activation Lock stays on after a remote erase, so have your Apple Account password ready for setup. Apple’s iCloud guide to erasing a device in Find Devices has more detail, including how to cancel a pending erase.
Method 4: Restore the iPhone with a computer in recovery mode
Use this when the Forgot Passcode? option doesn’t appear, the phone has no connection, or Find My was off. You need a Mac or Windows PC, a cable that can charge the iPhone, an internet connection, and up to an hour. On a Mac, you use Finder. On Windows, you use the Apple Devices app from the Microsoft Store.
Warning: choosing Restore erases the iPhone and installs the latest iOS.
- Unplug the iPhone from the computer and turn it off. On Face ID models, hold the side button and either volume button until the slider appears, then drag it. On Home button models, hold the side or top button until the slider appears, then drag it.
- Plug the cable into the computer, but not the iPhone yet.
- Find the right button for your model: the side button for Face ID iPhones, iPhone 8, iPhone 8 Plus, and iPhone SE (2nd and 3rd generation); the volume down button for iPhone 7 and iPhone 7 Plus; the Home button for iPhone 6s and earlier and iPhone SE (1st generation).
- Hold that button and, while holding it, connect the cable to the iPhone. Keep holding through the Apple logo until you see the recovery mode screen, which shows a computer and a cable. If you see the passcode screen instead, turn the phone off and try again.
- On a Mac, open Finder and select the iPhone under Locations. On Windows, open Apple Devices and select the iPhone. Allow the accessory to connect or trust the device if asked.
- When the computer offers Restore or Update, choose Restore. Update reinstalls iOS without erasing, which leaves the forgotten passcode in place.
- Wait for the software to download and install. If the download takes more than 15 minutes and the iPhone leaves the recovery screen, let the download finish, then turn the iPhone off and repeat steps 3 and 4.
- When the iPhone shows the Hello screen, disconnect it and set it up, restoring from a backup if you have one.
The button timing is explained in more detail in putting an iPhone in recovery mode, and Apple’s own article on using a computer to reset your iPhone and passcode is the official reference. If you don’t have a computer, an Apple Store or Apple Authorized Service Provider can do this for you.
How to tell the reset worked
You’ll see the Hello screen in several languages. During setup, the iPhone asks for the Apple Account that was on it (Activation Lock). Enter yours, then pick your backup on the Apps & Data screen. The restore can take a while depending on backup size, and restoring an iPhone from a backup explains that part. Set a passcode you’ll remember, and add Face ID or Touch ID so you rarely need to type it.
Carrier lock: use your iPhone with a different carrier
Some iPhones sold through a carrier are locked to that carrier’s network. The phone works normally, but a SIM or eSIM from another company won’t activate. Only the carrier that locked the phone can remove this lock; Apple can’t do it. A carrier unlock doesn’t erase your data.
Check whether the iPhone is already unlocked
- Open Settings.
- Tap General, then About.
- Scroll to Carrier Lock. If it says No SIM restrictions, the phone is unlocked and you can insert another carrier’s SIM or add its eSIM now. Anything else means it is still locked.
The Carrier Lock line is there on iOS 14 and later. For more ways to check, including on a used phone before you buy it, read how to check if your iPhone is unlocked.
Ask your carrier to unlock it
- Find your IMEI, the number carriers use to identify the phone. Go to Settings > General > About and scroll down to IMEI. It’s also printed on the barcode label of the original box.
- Look up your current carrier’s device unlock policy on its website or in its app. Each carrier sets its own eligibility rules, so read them before you apply.
- Submit the unlock request online, in the carrier’s app, by phone, or in a store, and give the IMEI when asked.
- Wait for the carrier to confirm. Apple notes this can take a few days, so check the status with the carrier if you haven’t heard back.
- Check Settings > General > About > Carrier Lock again. It should now say No SIM restrictions.
Finish the unlock
What you do next depends on what you’ll use with the phone:
- A SIM card from another carrier: remove the old SIM, insert the new one, and the iPhone activates on the new network.
- An eSIM from another carrier: set up the new carrier’s eSIM using its instructions. The Settings screens are shown in activating an eSIM on iPhone.
- No other SIM or eSIM yet: Apple’s instructions are to back up the iPhone, erase it, and restore it from that backup to complete the unlock.
Apple’s article How to unlock your iPhone for use with a different carrier covers these steps. If you still see a “SIM not supported” message after the carrier confirms, check the Carrier Lock line once more; if it doesn’t say No SIM restrictions, the unlock hasn’t gone through yet and the carrier needs to finish it.
“Locked SIM” or a SIM PIN prompt
If the status bar shows Locked SIM, or the phone asks for a SIM PIN after a restart, that’s a separate PIN on the SIM or eSIM, not your iPhone passcode or a carrier lock. Enter your SIM PIN, or turn the feature off in Settings > Cellular > SIM PIN. Don’t guess: too many wrong entries lock the SIM and require a PUK code, and wrong PUK entries can disable the SIM permanently. Contact the carrier that issued the SIM for the PUK or a replacement. See Apple’s SIM PIN article.
Activation Lock: the phone asks for someone’s Apple Account
Activation Lock turns on automatically when Find My is set up. It ties the iPhone to that person’s Apple Account, and the account password is needed to turn off Find My, erase the phone, or activate it again. Erasing the phone does not remove it. That’s the point: a stolen iPhone stays useless to anyone else.
If it’s your own Apple Account
- On the Activation Lock screen, enter the Apple Account email or phone number and password used to set up the iPhone, or the iPhone’s passcode if the screen offers that option.
- If you’re not sure which account it was, try the email addresses and phone numbers you normally use with Apple services. Apple’s page on finding your Apple Account lists other places to look.
- If you know the account but not the password, reset the password from another device or a browser, then return to the Activation Lock screen.
If you bought the iPhone used
Contact the seller or previous owner. They can remove the lock in either of two ways:
- Enter their Apple Account password on the Activation Lock screen while they have the phone, or
- Remove it remotely: sign in at icloud.com/find, select the iPhone, and choose Remove This Device. Then continue setup on your iPhone.
If you’re shopping for a used iPhone and see an “iPhone Locked to Owner” screen, Apple’s advice is not to take ownership of it. A phone that shows its Hello screen with no Apple Account prompt after an erase is ready for a new owner.
If a company or school owns the iPhone
Phones managed by an employer or school can be locked to the organization. Contact its IT department or device manager to have the lock released.
If you can’t reach the owner but have proof of purchase
Apple accepts Activation Lock support requests from people who have proof of purchase documentation for the device. Start the request from Apple’s How to remove Activation Lock page, and have your proof of purchase ready. Apple’s overview of Activation Lock for iPhone and iPad explains how the lock works and what to check before buying or selling.
What about unlock software and bypass services?
You’ll find paid programs that claim to remove a passcode, “bypass” Activation Lock, or unlock a carrier lock by IMEI. They aren’t covered here, for three reasons. Passcode-removal programs can only do what Apple’s free recovery-mode restore already does, and they erase the phone the same way. Activation Lock is checked on Apple’s servers, so no download on your computer can legitimately remove it. And these tools ask for access to your phone, your computer, or your Apple Account, which puts your data and privacy at risk, and Apple can’t support or repair problems they cause. The official routes above cost nothing.
When the steps don’t work
- No Forgot Passcode? option on the lock screen: it appears only on iOS 15.2 or later, with a Wi-Fi or cellular connection, when the phone is signed in to an Apple Account with Find My on. A phone with no SIM and no known Wi-Fi network won’t show it. Use Method 4.
- The computer doesn’t see the iPhone in recovery mode: try a different cable or USB port and repeat the button steps from the beginning. If the buttons don’t respond at all, the phone needs service.
- The iPhone leaves recovery mode during the download: this happens when the download takes more than 15 minutes. Let it finish, then put the phone back into recovery mode and choose Restore again.
- Face ID keeps failing: make sure nothing covers the camera area at the top of the screen, hold the phone 10 to 20 inches away, and add an alternate appearance in Settings > Face ID & Passcode if you wear glasses or your look changes a lot.
- The carrier says the phone is unlocked but the new SIM won’t work: check Carrier Lock under Settings > General > About. If it doesn’t say No SIM restrictions, go back to the carrier. If it does, restart the phone and contact the new carrier about activating the line.
- Activation Lock appears after you reset your own phone: this is expected. Enter the Apple Account password you used before the reset.
Other things people ask about unlocking an iPhone
Can Apple tell me my passcode or unlock my phone without erasing it?
No. Every forgotten-passcode option Apple documents ends with an erase, apart from the 72-hour previous-passcode window on iOS 17 and later. An Apple Store or Apple Authorized Service Provider can do the recovery-mode restore for you if you have no computer, but the result is the same: the phone is erased and you restore from a backup.
Does a carrier unlock remove Activation Lock, or the other way around?
No. They’re unrelated. A carrier unlock lets the phone use other networks but leaves the Apple Account link in place. Removing Activation Lock lets you set up the phone but doesn’t change which carriers it accepts. A used phone may need both.
Will erasing the iPhone also remove my eSIM?
On iOS 17 and later, the lock-screen reset asks whether to keep or delete the eSIM. On iOS 16 and earlier, plan to get a QR code or transfer method from your carrier before you erase.
I bought my iPhone directly from Apple. Is it carrier locked?
Don’t assume either way; check. Settings > General > About > Carrier Lock gives the current answer for your phone in a few seconds.
How do I avoid getting locked out again?
Turn on iCloud Backup so a reset costs you nothing, keep Find My on so the lock-screen reset is available, and store your passcode and Apple Account password in a safe place. Setting up Face ID or Touch ID means you’ll type the passcode less often, though you’ll still need it after every restart, so use one you can remember.
If you’re still stuck after trying the method for your lock type, Apple Support can check the device with you, by phone or at an Apple Store.

Matthew Burleigh writes and edits the guides on Solve Your Phone. He has worked in information technology since 2003, supporting small businesses, managing IT and consulting, and he started publishing tech tutorials in 2008. He earned both a bachelor’s and a master’s degree in computer science at Arizona State University.
On this site he focuses on smartphones: iPhone and Android settings, the apps that come with your phone, fixing common problems, and moving your data from one phone to another. He also runs Solve Your Tech, which covers Windows, Microsoft Office and other software.
Every guide here is compared against the current support documentation from Apple, Google or the phone’s manufacturer, and he works through the steps on his own phones whenever he has the right model and software version. Each article shows the date it was last updated. If a step no longer matches what you see on your phone, let him know through the contact page and he’ll check it.