The plain truth: if you’ve forgotten your iPhone or iPad passcode, nobody can unlock it for you, not even Apple. The only way back in is to erase the device and set it up again. Your photos, messages and apps come back only from a backup (iCloud or a computer). Anything that wasn’t backed up is gone.
An iPhone factory reset without the password is possible, and Apple gives you three official ways to do it. Each one erases the device and its old passcode. After that, you sign in with your Apple Account password, set a new passcode and restore your things from a backup. The same methods work on an iPad. This guide is for your own device only.
One thing to try first: if you changed your passcode in the last 72 hours, the lock screen may offer to let you use the old one. On iOS 17, iPadOS 17 and later, tap Forgot Passcode? and look for Enter Previous Passcode. If you remember the old code, you won’t have to erase anything.
Three ways to erase it: iPhone factory reset without the password
| Way | What you need | Best when |
|---|---|---|
| On the lock screen (Forgot Passcode?) | iOS or iPadOS 15.2 or later, Find My turned on, Wi-Fi or mobile data, your Apple Account password | The device is in your hand and online. No computer needed. |
| Find My on another device or iCloud.com | Another Apple device or any web browser, your Apple Account password, the locked device online | You’re away from the device, or the lock screen option doesn’t show. |
| Computer and recovery mode | A Mac or Windows PC, a cable, an internet connection, up to an hour | Nothing else works, Find My was off, or the device can’t get online. |
Apple suggests trying them in that order.
Way 1: Forgot Passcode? on the lock screen
This works on iOS and iPadOS 15.2 and later. The wording below is from iOS 17 and later, including iOS 26; on iOS 15.2 and 16 the button is called Erase iPhone (or Erase iPad) instead.
- Enter a passcode on the lock screen until you see iPhone Unavailable (or iPad Unavailable). The device makes you wait between tries.
- When it lets you, tap Forgot Passcode? in the bottom corner.
- On the Security Lockout screen, tap Start iPhone Reset (or Start iPad Reset).
- Enter your Apple Account password to sign out of your account on the device.
- Tap Erase iPhone (or Erase iPad) to delete all data and settings.
- When it restarts, follow the setup screens, restore from a backup and choose a new passcode.
No Forgot Passcode? button? It only appears when the device is online and Find My was turned on before you got locked out. Use Way 2 or Way 3.
Way 2: Find My, from another device or the web
Find My can erase a device from a distance, as long as the locked iPhone or iPad is switched on and connected to the internet.
From another iPhone, iPad or Mac
- Open the Find My app on a device signed in to the same Apple Account (or a Family Sharing member’s device).
- Tap Devices and choose the locked iPhone or iPad.
- Scroll down and tap Erase This Device, then confirm with your Apple Account password.
From a web browser
- Go to iCloud.com/find and sign in with your Apple Account.
- Open All Devices and pick the locked one.
- Choose Erase This Device and confirm.
Because the device isn’t lost, you can skip the phone number and message Find My offers. When the erase finishes, the device starts at the setup screen. Don’t choose Remove This Device if you plan to keep using it: that’s for selling or giving it away.
Way 3: a computer and recovery mode
This works even if Find My was off. You need a Mac or a Windows PC, a cable that charges the device, and an internet connection. Which app you use depends on the computer:
- Mac with macOS Catalina or later (including macOS 26 Tahoe): Finder.
- Older Mac (Mojave or earlier): iTunes.
- Windows 11 or Windows 10: the Apple Devices app from the Microsoft Store. Older Windows setups can use iTunes.
Step 1: turn the device off
- iPhone with Face ID: hold the side button and a volume button until the power-off slider appears, then drag it.
- iPhone with a Home button: hold the side (or top) button until the slider appears, then drag it.
- iPad without a Home button: hold the top button and a volume button, then drag the slider.
- iPad with a Home button: hold the top button, then drag the slider.
Wait about a minute before the next step.
Step 2: start recovery mode
Plug the cable into the computer first. Then press the right button while you connect the device, and keep holding through the Apple logo until you see a picture of a computer and a cable.
- iPhone with Face ID, iPhone 8, 8 Plus and SE (2nd and 3rd generation): hold the side button.
- iPhone 7 and 7 Plus: hold the volume down button.
- iPhone 6s and earlier, SE (1st generation): hold the Home button.
- iPad without a Home button (connected): press and release volume up, press and release volume down, then hold the top button.
- iPad with a Home button (connected): hold the Home button and the top button together.
If the passcode screen appears instead, turn the device off and start again.
Step 3: restore
- Find the device on the computer: in the Finder sidebar under Locations on a Mac, or in the sidebar of the Apple Devices app on Windows.
- When asked to Restore or Update, choose Restore.
- Wait while the computer downloads the software and erases the device. If the download takes longer than 15 minutes, the device may leave recovery mode: let the download finish, then repeat Steps 1 and 2.
- When the device shows the Hello screen, unplug it and set it up.
If the buttons don’t respond and you can’t reach the computer-and-cable screen, the device probably needs a repair visit.
After the erase: Activation Lock
An erased iPhone or iPad isn’t free for anyone to use. If Find My was on, Activation Lock asks for the Apple Account email and password that were on it before. This is what stops a thief from erasing a stolen phone and keeping it, so you can’t skip it.
If you’ve forgotten that password too, reset it first from another device or the web. Our guide on how to find your Apple ID password walks through the options, including account recovery when you can’t get in at all. If the device was bought second-hand and still shows someone else’s account, only the previous owner can remove it.
Getting your things back
During setup, the Transfer Your Apps & Data screen lets you choose where your data comes from:
- From iCloud Backup: sign in and pick the most recent backup. iCloud Photos, contacts, notes and other synced items come back once you sign in, even without a full backup.
- From Mac or PC: use Finder, Apple Devices or iTunes to restore a backup made on that computer. If the backup was encrypted, you’ll need its password.
- Don’t transfer anything: start fresh if you have no backup.
Messages, app data and files that lived only on the device and were never backed up can’t be recovered. Treat it as a lesson for next time: turn on iCloud Backup or make regular computer backups.
Keeping the important codes safe
Pick a passcode you can remember but others can’t guess, and write nothing on the device itself. The details that get you through a reset, your Apple Account password, its recovery key if you set one up, and your backup password, belong somewhere safe outside the phone. A password manager is a good home for them, as long as you can open it from another device. PassHulk keeps them encrypted in your vault and works in the web vault and on a Mac or Android, too. To be clear, PassHulk can’t unlock an iPhone or iPad: it just makes sure you have the passwords the reset will ask for.
Questions people ask
Can I unlock my iPhone without erasing it?
Only with the passcode, or with your previous passcode within 72 hours of changing it (iOS 17 and later). Apple has no way to bypass a forgotten passcode. Websites and apps that promise to unlock it without erasing are not something to trust with your device.
How do I reset an iPad without the password?
Exactly like an iPhone: tap Forgot Passcode? on the lock screen, erase it with Find My, or use a computer and recovery mode. Only the recovery mode buttons differ.
How many wrong tries before the iPhone erases itself?
It only erases itself after 10 wrong passcodes if you turned on Erase Data in Face ID (or Touch ID) & Passcode settings. Otherwise it locks for longer and longer, then shows iPhone Unavailable with the reset option.
Can I factory reset an iPhone without the Apple Account password?
Recovery mode erases it without the Apple Account password, but Activation Lock will ask for it afterwards. Reset the Apple Account password first so you can finish setup.



