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 Duo Display Cracking

Apple Alerts Stores to iPhone Duo's Display Cracking Issue

Friday October 30, 2026 3:20 pm PDT by
In a memo shared with Apple Stores and Apple Authorized Service Providers this week, and later obtained by MacRumors, Apple provided technicians with guidance on how to diagnose and address the iPhone Duo's inner display cracking issue. If a customer reports the issue, Apple advised technicians to inspect the iPhone Duo and repair or replace it in accordance with their standard procedures....
Everything New Your iPhone Can Do on iOS 27

14 New Things Your iPhone Can Do in iOS 27.2

Friday October 30, 2026 12:42 pm PDT by
Apple released iOS 27.2 on October 26, bringing enhancements to Siri AI, adding Suggestions in Messages, and sneaking in a string of smaller additions across Photos, Podcasts, Games, Apple TV, and FaceTime. iOS 27.2 is available to download to your device now via Settings ➝ General ➝ Software Update. Note that some features may not be available in all regions or on all iPhone models....
Pinched iPad Mini

Apple Avoids Showing Pinched Fingers on iPad Mini Page in South Korea

Thursday October 29, 2026 11:52 am PDT by
In the U.S. and most other countries, Apple's website shows the new iPad mini being held by pinched fingers, but this is not the case in South Korea. The new iPad mini shown with pinched fingers on Apple's website in the U.S. On its South Korean website, Apple simply shows an image of the iPad mini on its own. The new iPad mini shown without pinched fingers on Apple's website in South Korea ...
Latest Stories
Nearly Every M5 MacBook Air Now $200 Off on Amazon
Nearly Every M5 MacBook Air Now $200 Off on Amazon
8 hours ago
Apple's HomeView Ships With Six-Month-Old Software
Apple's HomeView Ships With Six-Month-Old Software
10 hours ago
Three New iPads Rumored to Launch in First Half of 2027
Three New iPads Rumored to Launch in First Half of 2027
10 hours ago
Apple Offers Steps to Fix Daylight Saving Time Bug on Apple Watch
Apple Offers Steps to Fix Daylight Saving Time Bug on Apple Watch
14 hours ago
Apple Watch Ultra 4 Hits All-Time Low Price With Amazon's $99 Discount
Apple Watch Ultra 4 Hits All-Time Low Price With Amazon's $99 Discount
1 day ago
Reminder: Apple's Big Discount on Beats 360 Ear Cushions Ends Today
Reminder: Apple's Big Discount on Beats 360 Ear Cushions Ends Today
1 day ago
Here's a New Tour of Apple's HomeView Software
Here's a New Tour of Apple's HomeView Software
1 day ago
Apple Reveals New iPad Mini's Battery Capacity
Apple Reveals New iPad Mini's Battery Capacity
1 day ago
Top Stories: Apple's Big MacBook Pro, iPad mini and iMac Updates
Top Stories: Apple's Big MacBook Pro, iPad mini and iMac Updates
1 day ago
'Pluribus' Season 2 Reportedly Starts Production Today
'Pluribus' Season 2 Reportedly Starts Production Today
2 days ago
iPhone 18 Pro Sales Surge in China, Offsetting Decline in U.S. and Japan
iPhone 18 Pro Sales Surge in China, Offsetting Decline in U.S. and Japan
2 days ago
HomeView Software 27.2: Wallpapers, Control Center, and More
HomeView Software 27.2: Wallpapers, Control Center, and More
2 days ago
Apple Alerts Stores to iPhone Duo's Display Cracking Issue
Apple Alerts Stores to iPhone Duo's Display Cracking Issue
2 days ago
iOS 27.3 Will Enable These Apple Intelligence Features in China
iOS 27.3 Will Enable These Apple Intelligence Features in China
2 days ago
Apple Says iOS 27.3 Beta Coming Next Week
Apple Says iOS 27.3 Beta Coming Next Week
2 days ago
Apple's Flash Storage Suppliers Are Finally 'Getting Their Revenge'
Apple's Flash Storage Suppliers Are Finally 'Getting Their Revenge'
2 days ago
14 New Things Your iPhone Can Do in iOS 27.2
14 New Things Your iPhone Can Do in iOS 27.2
2 days ago
iPhone Duo Review: One Week Later
iPhone Duo Review: One Week Later
2 days ago
Samsung Mocks iPhone Duo Display Cracks in New Ad Campaign
Samsung Mocks iPhone Duo Display Cracks in New Ad Campaign
2 days ago
The MacRumors Show: OLED MacBook Pro, iPad Mini 8, and More
The MacRumors Show: OLED MacBook Pro, iPad Mini 8, and More
2 days ago
MacBook Pro With Touch Display: 15 More Details Revealed
MacBook Pro With Touch Display: 15 More Details Revealed
2 days ago
Russia Places Apple on State Surveillance Registry
Russia Places Apple on State Surveillance Registry
2 days ago
Halloween Weekend Brings Discounts on Apple Accessories and Pre-Orders
Halloween Weekend Brings Discounts on Apple Accessories and Pre-Orders
2 days ago
Apple Has Released More Than 25 New Products in the Past Two Months
Apple Has Released More Than 25 New Products in the Past Two Months
2 days ago
Local Code Launches as Free, Private AI Assistant Tool for Mac
Local Code Launches as Free, Private AI Assistant Tool for Mac
2 days ago
Apple Acquires Ascend.io
Apple Acquires Ascend.io
2 days ago
HomePod Mini 2 Launches Today: All the New Features
HomePod Mini 2 Launches Today: All the New Features
3 days ago
AirTag 2 4-Pack Drops to New Low Price of $69.99
AirTag 2 4-Pack Drops to New Low Price of $69.99
3 days ago
Rian Johnson's iPhone Camera App Goes Viral
Rian Johnson's iPhone Camera App Goes Viral
3 days ago
Where Did All the iPhone Duos Go? Mostly to Apple's Stores
Where Did All the iPhone Duos Go? Mostly to Apple's Stores
3 days ago