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 standby

Apple Retail Staff Told to Warn Against iPhone Duo Walk-In Purchases

Saturday October 17, 2026 2:30 pm PDT by
Some Apple retail employees have been told to warn customers against visiting to purchase an iPhone Duo without a pre-order on Friday, October 23. Apple Store employees told MacRumors that they have been advised that there will likely be no iPhone Duo stock available for walk-in purchases on launch day. Staff have been instructed to discourage customers without pre-orders from coming in...
M5 MacBook Pro

RIP, MacBook Ultra

Monday October 19, 2026 9:37 am PDT by
Apple today sent out invites for an experience in Los Angeles on Wednesday, October 28, and the "Pro and tell" tagline on the invitation likely means that the rumored MacBook models with touch-enabled OLED displays will stick with MacBook Pro branding instead of the once-rumored "MacBook Ultra" name. The long-rumored "iPhone Ultra" ended up being named iPhone Duo, so speculation that Apple...
iphone duo feature

Mark Gurman: Apple Made 'Major Mistake' With iPhone Duo Pre-Orders

Sunday October 18, 2026 7:33 am PDT by
Despite knowing that the iPhone Duo would face "severe supply constraints" due to manufacturing challenges, Apple chose to begin iPhone Duo pre-orders on Friday instead of waiting until it had more inventory ready, according to Bloomberg's Mark Gurman. In his Power On newsletter today, he called this decision a "major mistake." "Let me cut to the chase: Apple made a major mistake here," he...
Latest Stories
Here's What Apple's Apps Look Like on the iPhone Duo
Here's What Apple's Apps Look Like on the iPhone Duo
1 hour ago
iOS 27.3 May Expand RCS Support to Australia's Telstra in December
iOS 27.3 May Expand RCS Support to Australia's Telstra in December
3 hours ago
New Apple TV 4K Features 'Whole Room Audio' With Four HomePods
New Apple TV 4K Features 'Whole Room Audio' With Four HomePods
5 hours ago
Apple Now Sells DIY Repair Parts for iPhone 18 Pro and Two New Macs
Apple Now Sells DIY Repair Parts for iPhone 18 Pro and Two New Macs
5 hours ago
Amazon's HomeView Pre-Order Discount Returns, Plus Save on Apple TV 4K
Amazon's HomeView Pre-Order Discount Returns, Plus Save on Apple TV 4K
6 hours ago
Apple Says Mac Mini Assembly in U.S. to Begin Later This Year
Apple Says Mac Mini Assembly in U.S. to Begin Later This Year
6 hours ago
Apple Says Nearly 100 iPhone Duo and iPhone 18 Pro Parts Made in USA
Apple Says Nearly 100 iPhone Duo and iPhone 18 Pro Parts Made in USA
6 hours ago
Apple Watch Ultra 3 Hits New Low Price With Amazon's $299 Discount [Updated]
Apple Watch Ultra 3 Hits New Low Price With Amazon's $299 Discount [Updated]
6 hours ago
Apple's October 28 'Pro and Tell' Launch: What's Coming
Apple's October 28 'Pro and Tell' Launch: What's Coming
20 hours ago
Apple Limiting U.S. iPhone Duo Orders to Two Per Customer
Apple Limiting U.S. iPhone Duo Orders to Two Per Customer
20 hours ago
Apple Buys AI Audio Editing App Samplab
Apple Buys AI Audio Editing App Samplab
21 hours ago
EFF's Privacy Badger Anti-Tracking Extension Expands to Safari
EFF's Privacy Badger Anti-Tracking Extension Expands to Safari
22 hours ago
HomePod 27.2 Adds Sound Glow to Existing HomePod Models
HomePod 27.2 Adds Sound Glow to Existing HomePod Models
23 hours ago
Apple Starts Moving Up iPhone Duo Delivery Dates
Apple Starts Moving Up iPhone Duo Delivery Dates
1 day ago
tvOS 27.2 RC Lays Groundwork for HomePod Surround Sound
tvOS 27.2 RC Lays Groundwork for HomePod Surround Sound
1 day ago
Apple Says iPhone Duo Not Available on Walk-In Basis in Three Countries
Apple Says iPhone Duo Not Available on Walk-In Basis in Three Countries
1 day ago
Apple Seeds macOS Golden Gate 27.2 Release Candidate to Developers
Apple Seeds macOS Golden Gate 27.2 Release Candidate to Developers
1 day ago
Apple Releases iOS 27.2 Release Candidate
Apple Releases iOS 27.2 Release Candidate
1 day ago
Apple Seeds watchOS 27.2, tvOS 27.2 and visionOS 27.2 Release Candidates
Apple Seeds watchOS 27.2, tvOS 27.2 and visionOS 27.2 Release Candidates
1 day ago
Samsung Slashes Prices on Frame TVs With Biggest Savings Yet for 2026 Models
Samsung Slashes Prices on Frame TVs With Biggest Savings Yet for 2026 Models
1 day ago
RIP, MacBook Ultra
RIP, MacBook Ultra
1 day ago
Apple Announcing New Products Next Week: 'Pro and Tell'
Apple Announcing New Products Next Week: 'Pro and Tell'
1 day ago
GM Says Apple Wallet Car Keys Coming to These Vehicles
GM Says Apple Wallet Car Keys Coming to These Vehicles
1 day ago
Amazon Offers $900 Off 2026 16-Inch MacBook Pro With M5 Max Chip
Amazon Offers $900 Off 2026 16-Inch MacBook Pro With M5 Max Chip
1 day ago
Amazon Discounts New Mac Mini by Up to $149, Mac Studio by $200
Amazon Discounts New Mac Mini by Up to $149, Mac Studio by $200
2 days ago
Apple Expected to Release New Products on Next Four Fridays
Apple Expected to Release New Products on Next Four Fridays
2 days ago
Apple Reveals iPhone Duo's Battery Capacity
Apple Reveals iPhone Duo's Battery Capacity
2 days ago
Apple Planning 'HomeView Max' With 9-Inch, 360-Degree Screen
Apple Planning 'HomeView Max' With 9-Inch, 360-Degree Screen
2 days ago
Mark Gurman: Apple Made 'Major Mistake' With iPhone Duo Pre-Orders
Mark Gurman: Apple Made 'Major Mistake' With iPhone Duo Pre-Orders
2 days ago
Apple Retail Staff Told to Warn Against iPhone Duo Walk-In Purchases
Apple Retail Staff Told to Warn Against iPhone Duo Walk-In Purchases
3 days ago