How to Erase and Reset a Locked iPhone or iPad - MacRumors
Skip to Content

How to Erase and Reset a Locked iPhone or iPad

by

If you've forgotten the passcode for your iPhone or iPad, you can erase and reset or restore the device using your Apple ID and password. This article explains how.

ios 13 iphone ipad duo
iPhone passcodes are usually six digits long, but they can still be forgotten, especially if the device hasn't been used for a while. If you find yourself in this predicament, you have the option to erase and reset it, after which you can restore the contents from a backup.

If you enter the wrong passcode several times on an iPhone running an iOS version earlier than iOS 15.2, your iPhone will disable itself for a time and you'll need to connect it to a computer and restore it from a backup.

If the iPhone is running iOS 15.2 or later, you won't need to connect it to a Mac or PC to reset it. Instead, you'll get an option to erase it when it's in Security Lockout mode, and you'll be able to restore from an iCloud backup.

The series of steps below outline the actions you need to take in both cases.

How to Reset a Locked iPhone Running iOS 15.2

The following steps assume your iPhone or ‌iPad‌ is running iOS 15.2 or iPadOS 15.2 or later, and is connected to a cellular or Wi-Fi network. Note that if you restart your device when you see "Security Lockout" on the Lock Screen, you won't be able to reconnect to a Wi-Fi network until your device is unlocked.

  1. From your device's Lock Screen, try entering your passcode several times until it asks you to try again later. When you can, repeat this action until you see the Erase iPhone/‌iPad‌ option in the bottom corner of the screen.
  2. Tap Erase iPhone/iPad, then tap Erase iPhone/iPad again to confirm.
    Lock Screen

  3. Enter your ‌Apple ID‌ password to sign out of your Apple account on the device.
  4. Tap Erase iPhone/iPad once again to permanently delete all of your data and settings.
  5. When the iOS device restarts, follow the onscreen instructions to set it up again, restore your data and settings from a backup, and set a new passcode.

How to Restore a Locked iPhone Running iOS 15.1 or Earlier

  1. First, put your iPhone into DFU recovery mode.
  2. Next, connect it to a PC or Mac using a Lightning cable.
  3. Select your iPhone in the Finder sidebar on Mac, or in iTunes on the PC that it's connected to.
  4. Choose Restore when you see the option to Restore or Update. If the download takes more than 15 minutes and your device exits the recovery mode screen, let the download finish, then turn off your iPhone and start again.
    recovery mode iphone finder

  5. Wait for the process to complete.
  6. Disconnect your iPhone, then turn it on and set it up.

If you're planning on trading in an old iPhone for a new one, there are some steps you'll want to take beforehand to ensure it's de-linked from your accessories and accounts and that everything on it is erased.

Related Forum: iOS 15

Popular Stories

iphone 17 pro max battery 1 year

Three Years of 80% Charge Limits on iPhone: The Results

Tuesday October 6, 2026 12:59 pm PDT by
Since 2023, Apple's newer iPhones have had an 80 percent charge limit for those who want to extend battery lifespan. Charging to 80 percent instead of 100 percent is supposed to put less stress on the battery, improving longevity. For the last three years, I've used that setting on my iPhone. I started with the iPhone 15 Pro Max, then did the iPhone 16 Pro Max, and most recently, the iPhone...
MagSafe 3 Cable Midnight Feature

Apple Releases MagSafe 3 Charging Cable Firmware Update

Monday October 5, 2026 5:59 am PDT by
For the first time since February 2023, Apple has released a firmware update for the MagSafe 3 charging cable for the MacBook Pro and MacBook Air. Specifically, Apple last week released firmware version 3.2.0 for the USB-C to MagSafe 3 Cable. The previous firmware version for the cable was 3.1.12. It is unclear what is included in the latest firmware, as Apple does not publish release...
Black Apple Event Logo

Sources: Apple Planning Two Sets of Product Launches in October

Monday October 5, 2026 7:24 pm PDT by
Bloomberg's Mark Gurman recently reported that Apple plans to unveil an all-new home hub, a new HomePod mini, and a new Apple TV 4K on Tuesday, October 13, and MacRumors has since learned about another launch slated for later in the month. Apple is planning to unveil additional new products in the final week of October, according to multiple sources familiar with the matter. While we do...
Latest Stories
iPhone Air 2 Could Be as Thin as an Unfolded iPhone Duo
iPhone Air 2 Could Be as Thin as an Unfolded iPhone Duo
1 hour ago
New iPad Mini Rumored to Have 60Hz OLED Display Ahead of Launch
New iPad Mini Rumored to Have 60Hz OLED Display Ahead of Launch
3 hours ago
Gurman: OLED MacBook Pro Won't Be 'Significantly Thinner'
Gurman: OLED MacBook Pro Won't Be 'Significantly Thinner'
4 hours ago
Microsoft Launches $2,599 Surface Laptop Ultra to Take on MacBook Pro
Microsoft Launches $2,599 Surface Laptop Ultra to Take on MacBook Pro
12 hours ago
Google's SynthID AI Detector is Now Available to Everyone
Google's SynthID AI Detector is Now Available to Everyone
13 hours ago
ChatGPT Gets GPT-6 and New Intelligent UI With Visual Answers
ChatGPT Gets GPT-6 and New Intelligent UI With Visual Answers
14 hours ago
Get AirPods Pro 3 for $179, Apple Watch for $199, and More Before Prime Day Ends Today
Get AirPods Pro 3 for $179, Apple Watch for $199, and More Before Prime Day Ends Today
14 hours ago
Apple Watch Series 12 and Ultra 4 Score 4/10 for Repairability
Apple Watch Series 12 and Ultra 4 Score 4/10 for Repairability
15 hours ago
Apple Launches Creative Labs Program With The King's Trust
Apple Launches Creative Labs Program With The King's Trust
15 hours ago
Apple Watch Series 12, Ultra 4 Owners Report Skin Irritation
Apple Watch Series 12, Ultra 4 Owners Report Skin Irritation
18 hours ago
Boston's MBTA Testing New Charlie Card With Apple Wallet Support
Boston's MBTA Testing New Charlie Card With Apple Wallet Support
19 hours ago
Manchester's Bee Card Now Fully Supported in Apple Wallet
Manchester's Bee Card Now Fully Supported in Apple Wallet
21 hours ago
You Can Get Up to $149 Off Every New Mac Mini During Prime Day
You Can Get Up to $149 Off Every New Mac Mini During Prime Day
21 hours ago
Best Buy Takes $260 Off All iPhone Air Models During Techtober Sale
Best Buy Takes $260 Off All iPhone Air Models During Techtober Sale
22 hours ago
The Best Anker Prime Day Deals: Score Big on MagSafe Chargers and More
The Best Anker Prime Day Deals: Score Big on MagSafe Chargers and More
22 hours ago
12 New Things to Expect From Apple in October
12 New Things to Expect From Apple in October
22 hours ago
Prime Day Offers Best TV Prices of the Year From Samsung, Sony, and More
Prime Day Offers Best TV Prices of the Year From Samsung, Sony, and More
23 hours ago
First Look at LG's Smart Home Products Made With Apple
First Look at LG's Smart Home Products Made With Apple
23 hours ago
Apple Watch Ultra 3 and Ultra 4 See Record Discounts During Prime Day
Apple Watch Ultra 3 and Ultra 4 See Record Discounts During Prime Day
1 day ago
Apple Drops Intel Macs From Magic Mouse/Trackpad Compatibility Lists
Apple Drops Intel Macs From Magic Mouse/Trackpad Compatibility Lists
1 day ago
Apple Reportedly Waiting on Samsung for Ultimate Bezel-Free iPhone Display
Apple Reportedly Waiting on Samsung for Ultimate Bezel-Free iPhone Display
1 day ago
Apple's Own Home Security Camera Still Coming Next Year
Apple's Own Home Security Camera Still Coming Next Year
1 day ago
Unfolded iPhone Duo Lets You Preview Documents in a Two-Page Layout
Unfolded iPhone Duo Lets You Preview Documents in a Two-Page Layout
1 day ago
Formula 1 Coverage on Apple TV to Get Dolby Atmos Later This Month
Formula 1 Coverage on Apple TV to Get Dolby Atmos Later This Month
1 day ago
LG Making Doorbell, Lock, and Cameras for Apple's Home Hub
LG Making Doorbell, Lock, and Cameras for Apple's Home Hub
2 days ago
Apple to Report Q4 2026 Earnings on November 2
Apple to Report Q4 2026 Earnings on November 2
2 days ago
Three Years of 80% Charge Limits on iPhone: The Results
Three Years of 80% Charge Limits on iPhone: The Results
2 days ago
macOS 27.2 Further Hints at MacBook With Touch-Enabled OLED Display
macOS 27.2 Further Hints at MacBook With Touch-Enabled OLED Display
2 days ago
The 15 Best Apple Deals Under $200 for Prime Day
The 15 Best Apple Deals Under $200 for Prime Day
2 days ago
AirPods Pro 3 and AirPods Max 2 Get Big Price Drops for Prime Day
AirPods Pro 3 and AirPods Max 2 Get Big Price Drops for Prime Day
2 days ago