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

iOS 28 AI

Apple Taking New Approach to Developing iOS 28 and macOS 28

Sunday November 8, 2026 7:42 am PST by
Apple has made a change to its development process for iOS 28, macOS 28, and corresponding software updates, according to Bloomberg's Mark Gurman. In his Power On newsletter today, he said Apple separates development of each year's new operating systems into three major stages. Typically, he said each stage consists of four weeks of coding followed by a four-week "convergence" period where...
apple pro tell logo

Apple Launching Two More New Products This Friday

Monday November 9, 2026 4:22 am PST by
The Apple launches keep coming! The company is set to release two new products on Friday, November 13: the all-new Apple HomeView and the fourth-generation Apple TV 4K, both of which have been available to pre-order since mid-October. Apple HomeView: Apple's new smart home display, powered by Apple Intelligence with Siri AI, for entertainment and managing the home. Available in tabletop and...
Apple Store Downtown Detroit

Apple Store Subscription Sign-Up Controversy Exposed

Sunday November 8, 2026 7:28 pm PST by
In a series of YouTube videos shared over the past two weeks, electronics technician and consumer rights advocate Louis Rossmann has exposed a controversy in which some Apple Store employees have allegedly signed up customers for auto-renewing subscription trials for Apple One and other services without their informed consent. Here is how the process works at Apple Stores in the United...
Latest Stories
Apple's Holiday Gift Guide Highlights iPhone Duo and More
Apple's Holiday Gift Guide Highlights iPhone Duo and More
3 hours ago
Three Workers Die at Tata iPhone Parts Plant in India
Three Workers Die at Tata iPhone Parts Plant in India
3 hours ago
iCloud Mail, Calendar, Contacts and More Experiencing Outage [Updated]
iCloud Mail, Calendar, Contacts and More Experiencing Outage [Updated]
4 hours ago
Apple's Claris Testing 'Harbor' App for Local AI on Macs
Apple's Claris Testing 'Harbor' App for Local AI on Macs
4 hours ago
iFixit's PROLED MacBook Pro Teardown Reveals Logo LEDs
iFixit's PROLED MacBook Pro Teardown Reveals Logo LEDs
6 hours ago
10 Free iPhone Duo Apps Worth Downloading
10 Free iPhone Duo Apps Worth Downloading
7 hours ago
Apple Releases New AirPods Firmware
Apple Releases New AirPods Firmware
7 hours ago
Amazon Begins Early Black Friday Sale, Featuring Sitewide Discounts on Tech and Decor
Amazon Begins Early Black Friday Sale, Featuring Sitewide Discounts on Tech and Decor
10 hours ago
Apple Announces Swift Student Challenge Ahead of WWDC 2027
Apple Announces Swift Student Challenge Ahead of WWDC 2027
10 hours ago
Next iPad Air Likely to Have These 10 New Features
Next iPad Air Likely to Have These 10 New Features
10 hours ago
iPad Mini 2021 vs. 2026 Buyer's Guide: Is It Worth Upgrading?
iPad Mini 2021 vs. 2026 Buyer's Guide: Is It Worth Upgrading?
10 hours ago
New Apple TV Sign Language Feature Announced
New Apple TV Sign Language Feature Announced
11 hours ago
Disable Touch on MacBook Pro PROLED XDR and When Using Sidecar
Disable Touch on MacBook Pro PROLED XDR and When Using Sidecar
12 hours ago
Anker's Early Black Friday Sale Surprises With Mystery Boxes and Big Discounts
Anker's Early Black Friday Sale Surprises With Mystery Boxes and Big Discounts
12 hours ago
Apple Arcade Adding These Four Games in December
Apple Arcade Adding These Four Games in December
12 hours ago
OLED iPad Air Rumored to Launch in Two Sizes in Early 2027
OLED iPad Air Rumored to Launch in Two Sizes in Early 2027
14 hours ago
The Original iPod Went on Sale 25 Years Ago Today
The Original iPod Went on Sale 25 Years Ago Today
15 hours ago
Apple Maps Could Factor Parking Into Your Arrival Time
Apple Maps Could Factor Parking Into Your Arrival Time
15 hours ago
Waze Now Alerts Drivers to Nearby Cyclists Using Garmin LiveTrack
Waze Now Alerts Drivers to Nearby Cyclists Using Garmin LiveTrack
16 hours ago
iPhone 20 Pro: Ten Big Changes That Could Redefine Apple's Flagship
iPhone 20 Pro: Ten Big Changes That Could Redefine Apple's Flagship
16 hours ago
Here's What Apple Fixed in iOS 27.2.1 and macOS 27.2.1
Here's What Apple Fixed in iOS 27.2.1 and macOS 27.2.1
1 day ago
Webex Gets iPhone Duo Support
Webex Gets iPhone Duo Support
1 day ago
Meta's Muse AI Agent Comes to Apple Watch
Meta's Muse AI Agent Comes to Apple Watch
1 day ago
Anker Launches Eufy Security Cam With Auto-Tracking Light
Anker Launches Eufy Security Cam With Auto-Tracking Light
1 day ago
macOS 27.2.1 Fixes eMudhra Certificate Flaw in Command-Line Tools
macOS 27.2.1 Fixes eMudhra Certificate Flaw in Command-Line Tools
1 day ago
Anthropic Launches Claude Fable 5.2 and Mythos 5.2
Anthropic Launches Claude Fable 5.2 and Mythos 5.2
1 day ago
Apple Releases macOS Golden Gate 27.2.1
Apple Releases macOS Golden Gate 27.2.1
1 day ago
Apple Releases iOS 27.2.1 With Bug Fixes
Apple Releases iOS 27.2.1 With Bug Fixes
1 day ago
Apple Releases watchOS 27.2.1 and visionOS 27.2.1 With Security Fixes
Apple Releases watchOS 27.2.1 and visionOS 27.2.1 With Security Fixes
1 day ago
Apple Watch Ultra 4 Gets $99 Amazon Discounts, Starting at $699.99
Apple Watch Ultra 4 Gets $99 Amazon Discounts, Starting at $699.99
1 day ago