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

1password deal blue

1Password Security Breach: What Was Accessed and What Wasn't

Wednesday November 25, 2026 1:09 pm PST by
Popular password management app 1Password today said it experienced a security breach earlier this month. 1Password says some customer names and email addresses were accessed, but no customer vault contents were compromised. On November 19, 1Password saw indications that an employee's GitHub account had been breached and began investigating. The company says the breached GitHub account was...
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 -...
ipad pro prime

Apple Has iPads Running macOS Internally, Says Gurman

Wednesday November 25, 2026 4:55 am PST by
Apple has iPads running macOS internally and has had them "for some time," according to Bloomberg's Mark Gurman, although he says no work is currently being done to bring the Mac operating system to iPads. Speaking on his latest Power On podcast, Gurman said there is "no work being done to consumerize macOS on the iPad." Rather, Apple will continue to bring Mac features and apps like Final Cut ...
Latest Stories
The 50+ Best Apple Black Friday Deals on AirPods, iPads, MacBooks, and More
The 50+ Best Apple Black Friday Deals on AirPods, iPads, MacBooks, and More
29 minutes ago
Apple's M6 and PROLED MacBook Pro Reach New Low Prices for Black Friday
Apple's M6 and PROLED MacBook Pro Reach New Low Prices for Black Friday
33 minutes ago
The MacRumors Show: iPhone Air 2 and iPhone 18 Are Coming
The MacRumors Show: iPhone Air 2 and iPhone 18 Are Coming
40 minutes ago
Apple Store in Brisbane Reopening Next Month With New Design
Apple Store in Brisbane Reopening Next Month With New Design
1 hour ago
The 60+ Best Black Friday Accessory Deals on iPhone Chargers, TVs, Headphones, and More
The 60+ Best Black Friday Accessory Deals on iPhone Chargers, TVs, Headphones, and More
2 hours ago
GTA VI Now (Barely) Running on Apple Silicon Macs
GTA VI Now (Barely) Running on Apple Silicon Macs
2 hours ago
The Best Black Friday Streaming Deals on Apple TV, Disney+, and More
The Best Black Friday Streaming Deals on Apple TV, Disney+, and More
3 hours ago
Apple TV's 'Carême' Wins International Emmy for Best Drama
Apple TV's 'Carême' Wins International Emmy for Best Drama
3 hours ago
iPhone 18 Production Delay Leaves Apple Little Time Before Launch
iPhone 18 Production Delay Leaves Apple Little Time Before Launch
4 hours ago
The Best Black Friday AirPods Deals
The Best Black Friday AirPods Deals
5 hours ago
The Best Black Friday Deals on Apple Home Products
The Best Black Friday Deals on Apple Home Products
5 hours ago
The Best Black Friday iPhone Deals
The Best Black Friday iPhone Deals
5 hours ago
The Best Black Friday iPad Deals
The Best Black Friday iPad Deals
5 hours ago
The Best Black Friday Apple Watch Deals
The Best Black Friday Apple Watch Deals
5 hours ago
The Best Black Friday AirTag Deals
The Best Black Friday AirTag Deals
5 hours ago
The Best Black Friday Mac Deals
The Best Black Friday Mac Deals
5 hours ago
iPhone Share of US Smartphone Market Hits 57% as Rivals Slip
iPhone Share of US Smartphone Market Hits 57% as Rivals Slip
6 hours ago
iPhone 20 Pro Rumored to Feature 3D-Printed Titanium Frame
iPhone 20 Pro Rumored to Feature 3D-Printed Titanium Frame
8 hours ago
Apple's Official 2026 Black Friday Offer Starts Rolling Out
Apple's Official 2026 Black Friday Offer Starts Rolling Out
1 day ago
Halide Adds Fill Light Feature for iPhone Duo
Halide Adds Fill Light Feature for iPhone Duo
1 day ago
MacBook Air Black Friday Deals Now Live With Massive $399 Savings
MacBook Air Black Friday Deals Now Live With Massive $399 Savings
1 day ago
Amazon Discounts All MacBook Neo Models by $99 for Black Friday
Amazon Discounts All MacBook Neo Models by $99 for Black Friday
1 day ago
Kodak Launches Unique AirTag Rival With E-Ink Display
Kodak Launches Unique AirTag Rival With E-Ink Display
1 day ago
Here's Why the Apple Store is Going Down
Here's Why the Apple Store is Going Down
1 day ago
Apple Still Working on Giant Foldable iPad That Could Cost $5,000
Apple Still Working on Giant Foldable iPad That Could Cost $5,000
1 day ago
iPhones Dominate China's Weak Singles' Day Smartphone Sales
iPhones Dominate China's Weak Singles' Day Smartphone Sales
1 day ago
iPhone 20 Pro Could Feature Ceramic in Limited-Edition Model
iPhone 20 Pro Could Feature Ceramic in Limited-Edition Model
1 day ago
Apple Faces Korean Regulator Review Over iPhone 16 AI Advertising
Apple Faces Korean Regulator Review Over iPhone 16 AI Advertising
1 day ago
Apple Watch Ultra 4 Hits New Best-Ever Price of $649.99 for Black Friday
Apple Watch Ultra 4 Hits New Best-Ever Price of $649.99 for Black Friday
1 day ago
New Apple Store Opening in India, Download the Special Wallpaper Now
New Apple Store Opening in India, Download the Special Wallpaper Now
2 days ago
Related Apple News: Entertainment | Sport | Buyers Guide | Ipad | Culture