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

apple welcome home event

Apple Product Launch Announced for October 13: 'Welcome Home'

Thursday October 8, 2026 9:04 am PDT by
Apple today announced an upcoming product launch that will take place on Tuesday, October 13. We are expecting Apple's announcement to focus on new smart home products, including the long-rumored smart home hub, a new Apple TV 4K, and a refreshed HomePod mini. Subscribe to the MacRumors YouTube channel for more videos. The home hub is an all-new device that's like a cross between an iPad and...
MacBook Pro Ultra Feature 1

Apple to Launch Touchscreen OLED MacBook Pro and OLED iPad mini on October 27

Thursday October 8, 2026 1:31 pm PDT by
Apple will introduce new OLED touchscreen MacBook Pro models and an OLED iPad mini "on or around" Tuesday, October 27, reports Bloomberg. The launch will also include an M6 14-inch MacBook Pro and an M6 iMac. The October 27 follows Apple's October 13 debut of a new smart home hub, a revamped Apple TV 4K, and a refreshed HomePod mini. Earlier this month, MacRumors reported that Apple would do ...
October 13 Welcome Home Event Image

Apple's October 13 Launch: What's Coming

Thursday October 8, 2026 3:59 pm PDT by
Apple is planning to introduce new products on Tuesday, October 13, Apple marketing chief Greg Joswiak announced today. It won't be a traditional Apple event, but Apple has invited some members of the media to New York City to get some hands-on time with whatever's introduced. Subscribe to the MacRumors YouTube channel for more videos. Those of us not invited to the New York Experience are...
Latest Stories
Rumor: Apple to Announce New Partnership With ADT
Rumor: Apple to Announce New Partnership With ADT
11 hours ago
AirPods 5 vs. AirPods 5 With Wireless Charging Case Buyer's Guide
AirPods 5 vs. AirPods 5 With Wireless Charging Case Buyer's Guide
23 hours ago
Accessory Deals This Weekend: Save on TVs, Headphones, and Smart Home Gear
Accessory Deals This Weekend: Save on TVs, Headphones, and Smart Home Gear
1 day ago
Apple's All-New Home Hub Will Be Revealed October 13: What to Expect
Apple's All-New Home Hub Will Be Revealed October 13: What to Expect
1 day ago
Apple Announcing HomePod Mini 2 Next Week With These New Features
Apple Announcing HomePod Mini 2 Next Week With These New Features
1 day ago
A New Apple TV 4K is Finally Coming on Tuesday
A New Apple TV 4K is Finally Coming on Tuesday
1 day ago
Top Stories: Apple's 'Welcome Home' Launch on October 13 and More
Top Stories: Apple's 'Welcome Home' Launch on October 13 and More
1 day ago
Apple Stores Will Add Your Name to iPhone Duo's Startup Screen
Apple Stores Will Add Your Name to iPhone Duo's Startup Screen
2 days ago
SpaceX Inches Closer to Becoming a U.S. Carrier
SpaceX Inches Closer to Becoming a U.S. Carrier
2 days ago
Apple Potentially Behind 'HomeView' Trademark Filed Alongside 'homeOS' Last Year
Apple Potentially Behind 'HomeView' Trademark Filed Alongside 'homeOS' Last Year
2 days ago
Mark Your Calendar: Six Important Apple Dates Coming Up This Month
Mark Your Calendar: Six Important Apple Dates Coming Up This Month
2 days ago
MacRumors Giveaway: Win an Apple Watch Series 12 and a Nylon Band From Southern Straps
MacRumors Giveaway: Win an Apple Watch Series 12 and a Nylon Band From Southern Straps
2 days ago
First Apple TV 4K Now 'Vintage' Ahead of New Model Coming on Tuesday
First Apple TV 4K Now 'Vintage' Ahead of New Model Coming on Tuesday
2 days ago
The MacRumors Show: Apple's Smart Home Products Are Coming
The MacRumors Show: Apple's Smart Home Products Are Coming
2 days ago
Apple Shares Fall After News of iPhone 18 Pro Order Cuts
Apple Shares Fall After News of iPhone 18 Pro Order Cuts
2 days ago
Leak Details iPhone Features for Apple's LG Home Accessories
Leak Details iPhone Features for Apple's LG Home Accessories
2 days ago
Prime Day Leftover Deals: AirPods Max 2 for $429, Mac Mini for $779.99, and More
Prime Day Leftover Deals: AirPods Max 2 for $429, Mac Mini for $779.99, and More
2 days ago
Every M5 MacBook Air Now $200 Off on Amazon
Every M5 MacBook Air Now $200 Off on Amazon
2 days ago
Mac Shipments Fall, But Apple Still Gains Ground in Shrinking Market
Mac Shipments Fall, But Apple Still Gains Ground in Shrinking Market
2 days ago
Apple Reportedly Cuts iPhone 18 Pro Orders After Price Hike Dampens Demand
Apple Reportedly Cuts iPhone 18 Pro Orders After Price Hike Dampens Demand
2 days ago
Apple Signs Hiring and Licensing Deal With AI Podcast Startup Huxe
Apple Signs Hiring and Licensing Deal With AI Podcast Startup Huxe
2 days ago
Apple's October 13 Launch: What's Coming
Apple's October 13 Launch: What's Coming
3 days ago
Anthropic Says Users Can't Be Needlessly Cruel to Claude
Anthropic Says Users Can't Be Needlessly Cruel to Claude
3 days ago
Apple to Launch Touchscreen OLED MacBook Pro and OLED iPad mini on October 27
Apple to Launch Touchscreen OLED MacBook Pro and OLED iPad mini on October 27
3 days ago
Apple Now Pushing iPhone Users Still on iOS 26 to Install iOS 27
Apple Now Pushing iPhone Users Still on iOS 26 to Install iOS 27
3 days ago
Apple Has a New M&A Chief as Ternus Reshuffles Leadership
Apple Has a New M&A Chief as Ternus Reshuffles Leadership
3 days ago
Prepare for Apple's New Home Hub With These HomeKit Accessory Deals
Prepare for Apple's New Home Hub With These HomeKit Accessory Deals
3 days ago
Tim Cook Says He's 'Not Meddling' With Apple's New CEO John Ternus
Tim Cook Says He's 'Not Meddling' With Apple's New CEO John Ternus
3 days ago
Tim Cook Explains Why He Stepped Down as Apple CEO Before iPhone Duo Launch
Tim Cook Explains Why He Stepped Down as Apple CEO Before iPhone Duo Launch
3 days ago
Apple Product Launch Announced for October 13: 'Welcome Home'
Apple Product Launch Announced for October 13: 'Welcome Home'
3 days ago