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 MacBook Pro with PROLED XDR Display family lineup feature

Apple Announces OLED MacBook Pro With Touch Display

Wednesday October 28, 2026 10:11 am PDT by
Apple today announced a new high-end MacBook Pro, which is available in 14-inch and 16-inch sizes. The new device has a PROLED XDR display that supports touch gestures, and a glowing rear Apple logo. Pricing on the MacBook Pro starts at $2,899 for the 14-inch model and $3,399 for the 16-inch model. Apple says the MacBook Pro has the "world's best display in a pro laptop." The PROLED...
Apple MacBook Pro 14 in with M6 hero

Apple Announces New 14-Inch MacBook Pro With M6 Chip

Tuesday October 27, 2026 6:01 am PDT by
Apple today announced a refreshed 14-inch MacBook Pro featuring the M6 chip, upgraded connectivity specifications, and more. The M6 chip in the MacBook Pro features a 12-core CPU with 2 super cores, 4 performance cores, and 6 efficiency cores, paired with a 12-core GPU. This is up from the M5 chip with a 10-core CPU with 4 super cores and 6 efficiency cores, paired with a 10-core GPU. M6...
apple pro tell logo

Apple Opened Pre-Orders for Five New Products This Week

Wednesday October 28, 2026 2:49 am PDT by
Apple opened pre-orders for five new products on Wednesday, October 28, including its first touchscreen MacBook Pro models. Pre-orders opened for the following new products: iPad mini with OLED display and A20 Pro chip iMac with M6 chip 14-inch MacBook Pro with M6 chip 14-inch MacBook Pro with OLED touchscreen 16-inch MacBook Pro with OLED touchscreen Pre-orders for the iPad mini,...
Latest Stories
Apple Executive Comments on New iPad Mini Lacking 120Hz Display
Apple Executive Comments on New iPad Mini Lacking 120Hz Display
4 hours ago
Here's a Hands-On Look at HomePod Mini 2's New Two-Tone Colors
Here's a Hands-On Look at HomePod Mini 2's New Two-Tone Colors
4 hours ago
Apple Lowers App Store Fees in Taiwan Starting October 31
Apple Lowers App Store Fees in Taiwan Starting October 31
5 hours ago
HomeView Pre-Order Returns to $289.99 on Amazon
HomeView Pre-Order Returns to $289.99 on Amazon
6 hours ago
Apple Avoids Showing Pinched Fingers on iPad Mini Page in South Korea
Apple Avoids Showing Pinched Fingers on iPad Mini Page in South Korea
6 hours ago
Old 'Popcorn Time' App Left Hundreds of Thousands of Macs at Risk
Old 'Popcorn Time' App Left Hundreds of Thousands of Macs at Risk
7 hours ago
You Can Turn Off the New MacBook Pro's Touchscreen Functionality
You Can Turn Off the New MacBook Pro's Touchscreen Functionality
8 hours ago
MacBook Pro Mini-LED vs. OLED Buyer's Guide: Every Difference
MacBook Pro Mini-LED vs. OLED Buyer's Guide: Every Difference
9 hours ago
Where to Pre-Order Apple's New MacBooks, iPad Mini, and iMac
Where to Pre-Order Apple's New MacBooks, iPad Mini, and iMac
10 hours ago
Apple Releasing HomePod Mini 2 Tomorrow With These New Features
Apple Releasing HomePod Mini 2 Tomorrow With These New Features
12 hours ago
How macOS Adapts Its Controls for Touch on the New MacBook Pro
How macOS Adapts Its Controls for Touch on the New MacBook Pro
12 hours ago
Just Got an iPhone Duo? Try These Features First
Just Got an iPhone Duo? Try These Features First
14 hours ago
Apple Announced Scott Forstall's Departure 14 Years Ago Today
Apple Announced Scott Forstall's Departure 14 Years Ago Today
14 hours ago
Best Buy Opens Pre-Orders for PROLED XDR MacBook Pro With $100 Bonus Gift Cards
Best Buy Opens Pre-Orders for PROLED XDR MacBook Pro With $100 Bonus Gift Cards
1 day ago
Here's Everything Apple Announced This Week
Here's Everything Apple Announced This Week
1 day ago
Here's a Real-World Look at the New MacBook Pro's Glowing Apple Logo
Here's a Real-World Look at the New MacBook Pro's Glowing Apple Logo
1 day ago
How Accurate Were Rumors About Apple's OLED Touchscreen MacBook Pro?
How Accurate Were Rumors About Apple's OLED Touchscreen MacBook Pro?
1 day ago
Apple Has 8 New Products Available for Pre-Order
Apple Has 8 New Products Available for Pre-Order
1 day ago
iPhone Duo: Turn the Hinge Into an App Launcher
iPhone Duo: Turn the Hinge Into an App Launcher
1 day ago
OLED MacBook Pro vs. Mini-LED MacBook Pro: Size and Weight Compared
OLED MacBook Pro vs. Mini-LED MacBook Pro: Size and Weight Compared
1 day ago
Best Buy Offering Up to $100 Gift Cards With iPad Mini 8 and M6 MacBook Pro Pre-Orders
Best Buy Offering Up to $100 Gift Cards With iPad Mini 8 and M6 MacBook Pro Pre-Orders
1 day ago
Adding Touch Didn't Cost the MacBook Pro Any Battery Life
Adding Touch Didn't Cost the MacBook Pro Any Battery Life
1 day ago
Apple Releases Redesigned Mac Chargers and 'World Travel Adapter Kit'
Apple Releases Redesigned Mac Chargers and 'World Travel Adapter Kit'
1 day ago
Apple Executives Explain Why the MacBook Pro Finally Has a Touch Screen
Apple Executives Explain Why the MacBook Pro Finally Has a Touch Screen
1 day ago
New MacBook Pro Features Deeper Bass and Improved Closed-Lid Audio
New MacBook Pro Features Deeper Bass and Improved Closed-Lid Audio
1 day ago
New MacBook Pro Offers Up to 16TB of Storage, Double Previous Limit
New MacBook Pro Offers Up to 16TB of Storage, Double Previous Limit
1 day ago
Apple's New Touchscreen MacBook Pro Costs Up to $14,549
Apple's New Touchscreen MacBook Pro Costs Up to $14,549
1 day ago
Apple Brings Dynamic Island to Mac for the First Time
Apple Brings Dynamic Island to Mac for the First Time
1 day ago
Mac Studio With M5 Ultra Now Available With 512GB RAM for $22,299
Mac Studio With M5 Ultra Now Available With 512GB RAM for $22,299
1 day ago
Illuminated Apple Logo Returns to MacBook Pro After 10 Years
Illuminated Apple Logo Returns to MacBook Pro After 10 Years
1 day ago