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

MacBook Neo 2 on Yellow Feature

Apple Reportedly Plans to Release These Products in February or March

Sunday November 22, 2026 7:32 am PST by
Apple plans to unveil an iPhone 18e, iPhone 18, updated entry-level iPad, and new MacBook Neo and MacBook Air models around February or March next year, according to the latest word from Bloomberg's Mark Gurman. In his Power On newsletter today, Gurman said Apple has some additional products planned for the first half of 2027, including the iPhone Air 2 and new iPad Air and iPad Pro models,...
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...
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
Amazon Discounts All MacBook Neo Models by $99 for Black Friday
Amazon Discounts All MacBook Neo Models by $99 for Black Friday
5 minutes ago
Kodak Launches Unique AirTag Rival With E-Ink Display
Kodak Launches Unique AirTag Rival With E-Ink Display
1 hour ago
Here's Why the Apple Store is Going Down
Here's Why the Apple Store is Going Down
1 hour 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
2 hours ago
iPhones Dominate China's Weak Singles' Day Smartphone Sales
iPhones Dominate China's Weak Singles' Day Smartphone Sales
2 hours ago
iPhone 20 Pro Could Feature Ceramic in Limited-Edition Model
iPhone 20 Pro Could Feature Ceramic in Limited-Edition Model
3 hours ago
Apple Faces Korean Regulator Review Over iPhone 16 AI Advertising
Apple Faces Korean Regulator Review Over iPhone 16 AI Advertising
4 hours 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
4 hours ago
New Apple Store Opening in India, Download the Special Wallpaper Now
New Apple Store Opening in India, Download the Special Wallpaper Now
11 hours ago
Redesigned OLED MacBook Air Could Launch in 2027 or 2028
Redesigned OLED MacBook Air Could Launch in 2027 or 2028
16 hours ago
AirPods Pro 3 for $149 is One of The Best Black Friday Deals This Year
AirPods Pro 3 for $149 is One of The Best Black Friday Deals This Year
16 hours ago
1Password Security Breach: What Was Accessed and What Wasn't
1Password Security Breach: What Was Accessed and What Wasn't
18 hours ago
WhatsApp Finally Adds Scheduled Messages
WhatsApp Finally Adds Scheduled Messages
19 hours ago
Get Apple's Cheapest iPad for $379 During Amazon's Black Friday Sale
Get Apple's Cheapest iPad for $379 During Amazon's Black Friday Sale
19 hours ago
Rumor: iOS 28 to Revamp Notifications
Rumor: iOS 28 to Revamp Notifications
19 hours ago
iPhone 18 Pro Max Battery Exhausts a Toy Cyclops in New Apple Ad
iPhone 18 Pro Max Battery Exhausts a Toy Cyclops in New Apple Ad
22 hours ago
$799 Smart Glasses Promise Vision Pro-Style Controls in a 45g Frame
$799 Smart Glasses Promise Vision Pro-Style Controls in a 45g Frame
22 hours ago
How To Get an iPhone Duo or iPhone 18 Pro at No Cost Through T-Mobile for Black Friday
How To Get an iPhone Duo or iPhone 18 Pro at No Cost Through T-Mobile for Black Friday
23 hours ago
Apple Has an iPhone Notifications Problem
Apple Has an iPhone Notifications Problem
23 hours ago
Amazon Sweetens Black Friday Deals on PROLED MacBook Pro
Amazon Sweetens Black Friday Deals on PROLED MacBook Pro
1 day ago
Apple Has iPads Running macOS Internally, Says Gurman
Apple Has iPads Running macOS Internally, Says Gurman
1 day ago
Apple Is Far From Done With 2026: Here's What's Still Coming
Apple Is Far From Done With 2026: Here's What's Still Coming
1 day ago
Threads App for iPad Now Available
Threads App for iPad Now Available
1 day ago
Claude Now Lets You Install Artifacts as Desktop Apps
Claude Now Lets You Install Artifacts as Desktop Apps
1 day ago
Tidal Bans AI Music, While Apple Music Sticks to Labels
Tidal Bans AI Music, While Apple Music Sticks to Labels
2 days ago
Add Holiday Lights and Snow to Your Mac With Festivitas
Add Holiday Lights and Snow to Your Mac With Festivitas
2 days ago
Meta's Muse AI Agent Comes to Instagram DMs
Meta's Muse AI Agent Comes to Instagram DMs
2 days ago
Google Says Apple's iOS Browser Rules Offer 'Choice on Paper, Not in Practice'
Google Says Apple's iOS Browser Rules Offer 'Choice on Paper, Not in Practice'
2 days ago
Walmart App Rolls Back Apple Pay Support After Just Weeks
Walmart App Rolls Back Apple Pay Support After Just Weeks
2 days ago
Black Friday Discount Hits 512GB MacBook Neo at $699 ($100 Off)
Black Friday Discount Hits 512GB MacBook Neo at $699 ($100 Off)
2 days ago