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 2026 Black Friday Event Hero

Apple Announces 2026 Black Friday Event, Here's What You Can Get

Thursday November 19, 2026 9:11 am PST by
Apple's annual four-day Black Friday through Cyber Monday shopping event is returning on Friday, November 27 through Monday, November 30 in many countries, including the United States, Canada, Australia, New Zealand, France, Germany, Italy, Spain, the United Kingdom, Belgium, the Netherlands, Sweden, Thailand, and others. In the U.S., Apple's terms and conditions say the promotion begins on...
bug security vulnerability issue fix larry

iPhone Users Targeted in Major Website Security Breach

Tuesday November 17, 2026 4:41 am PST by
Hackers used some of the world's most popular websites to distribute malware designed to steal cryptocurrency and exploit vulnerabilities in iPhones and iPads this week, according to a new security investigation. Reuters reports that websites associated with 178 organizations were affected by the attack on Monday, November 16, including the likes of Zoom, BBC, CNN, HSBC, Salesforce, and...
apple design award 2025

Apple Announces 2025 Design Award Winners Ahead of WWDC 2025

Tuesday June 3, 2025 10:14 am PDT by
As we wait for WWDC to kick off next Monday, Apple today announced the winners of its annual Apple Design Awards, recognizing apps and games for their innovation, ingenuity, and technical achievement. The 2025 Apple Design Award winners are listed below, with one app and one game selected per category: Delight and Fun - CapWords (App) and Balatro (Game) Innovation - Play (App) and PBJ -...
Latest Stories
MacBook Pro Black Friday Deals Are Here: Get Up to $250 Off M6 and PROLED XDR
MacBook Pro Black Friday Deals Are Here: Get Up to $250 Off M6 and PROLED XDR
10 hours ago
Apple is Building an AI Agent That Can Use Apps and Code
Apple is Building an AI Agent That Can Use Apps and Code
10 hours ago
Black Friday Deal: Apple TV Streaming Service for $6.99/Month
Black Friday Deal: Apple TV Streaming Service for $6.99/Month
11 hours ago
AirPods Black Friday Deals Hit Pro 3 at $179 and Max 2 at $429
AirPods Black Friday Deals Hit Pro 3 at $179 and Max 2 at $429
11 hours ago
Second iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
Second iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
11 hours ago
Google's Gemini Can Now Control Apps on Your Mac
Google's Gemini Can Now Control Apps on Your Mac
13 hours ago
iPhone Duo vs. Samsung Galaxy Z Fold8: Which is Better?
iPhone Duo vs. Samsung Galaxy Z Fold8: Which is Better?
15 hours ago
Apple Executive in Charge of iPhone's Camera App Reportedly Retires
Apple Executive in Charge of iPhone's Camera App Reportedly Retires
15 hours ago
Apple Announces 2026 Black Friday Event, Here's What You Can Get
Apple Announces 2026 Black Friday Event, Here's What You Can Get
16 hours ago
Sonos Black Friday Sale Takes Up to 25% Off Speakers, Soundbars, and More
Sonos Black Friday Sale Takes Up to 25% Off Speakers, Soundbars, and More
16 hours ago
Apple TV to Stream Female 'F1 Academy' Races in U.S. Starting in 2027
Apple TV to Stream Female 'F1 Academy' Races in U.S. Starting in 2027
16 hours ago
Tomorrow Marks the End of a 28-Year Era at Apple
Tomorrow Marks the End of a 28-Year Era at Apple
18 hours ago
Amazon Takes $200 Off Every Apple Studio Display for Black Friday
Amazon Takes $200 Off Every Apple Studio Display for Black Friday
18 hours ago
UK Loses Secrecy Fight Over Apple 'Backdoor' Order
UK Loses Secrecy Fight Over Apple 'Backdoor' Order
19 hours ago
Beats 360 Black Friday Deal Arrives With Massive $100 Discount on Amazon
Beats 360 Black Friday Deal Arrives With Massive $100 Discount on Amazon
19 hours ago
Apple Music Radio Now Reaches Over 50 Million Monthly Listeners
Apple Music Radio Now Reaches Over 50 Million Monthly Listeners
19 hours ago
Future Macs Could Get Brighter, Longer-Lasting OLED Displays in 2030
Future Macs Could Get Brighter, Longer-Lasting OLED Displays in 2030
20 hours ago
Apple Faces 'Planned Obsolescence' Trial Over iPhone Repairs
Apple Faces 'Planned Obsolescence' Trial Over iPhone Repairs
20 hours ago
Apple May Cancel OLED iMac
Apple May Cancel OLED iMac
21 hours ago
Instagram Now Lets You Save Songs to Apple Music
Instagram Now Lets You Save Songs to Apple Music
1 day ago
Apple Releases Safari Technology Preview 257 With Bug Fixes and Performance Improvements
Apple Releases Safari Technology Preview 257 With Bug Fixes and Performance Improvements
1 day ago
HomeView 27.2.1 Update Fixes Siri Bugs
HomeView 27.2.1 Update Fixes Siri Bugs
2 days ago
Apple Card Offers New Users Double Daily Cash for a Year
Apple Card Offers New Users Double Daily Cash for a Year
2 days ago
Apple Releases 27.2.1 HomeView Software Update
Apple Releases 27.2.1 HomeView Software Update
2 days ago
Amazon Offering $100 Off Nearly All M4 iPad Air Models
Amazon Offering $100 Off Nearly All M4 iPad Air Models
2 days ago
Apple's Fall Creator Studio Updates Now Live
Apple's Fall Creator Studio Updates Now Live
2 days ago
iPhone 20 Pro Rumored to Return to Titanium
iPhone 20 Pro Rumored to Return to Titanium
2 days ago
Target's Early Black Friday Event Offers Savings on Apple, TVs, and Accessories
Target's Early Black Friday Event Offers Savings on Apple, TVs, and Accessories
2 days ago
Apple Announces 2026 App Store Award Finalists
Apple Announces 2026 App Store Award Finalists
2 days ago
iPhone Duo 2 Likely to Retain Touch ID as Face ID Remains Uncertain
iPhone Duo 2 Likely to Retain Touch ID as Face ID Remains Uncertain
2 days ago