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 screen crack in store

Crackgate? iPhone Duo Owners Report Screens Breaking Along the Hinge

Friday October 23, 2026 11:05 am PDT by
Some iPhone Duos are already experiencing hinge issues that cause display cracks, based on photos shared on Reddit and the MacRumors forums. Almost all of the display faults are right along the hinge, and most result in a line of bright pixels across one side of the screen. An iPhone Duo owner in Australia said his device cracked after being opened fewer than 20 times, and there was no...
Apple Music iPod Page Not Found

Apple Music Has a Hidden iPod You Can Play With

Friday October 23, 2026 7:11 am PDT by
Apple Music has a 404 page easter egg on the web: a functional iPod that appears when you load a page that does not exist, such as music.apple.com/macrumors. "Page Not Found," says Apple. "Give this a spin instead." Apple is clever with this. If you navigate to music.apple.com/ipod instead, the page says "Looking for something?" instead of "Page Not Found." The easter egg is only...
iphone duo screen crack

Apple Responds to iPhone Duo Display Cracking Reports

Monday October 26, 2026 10:20 am PDT by
Shortly after the iPhone Duo launched, a few users reported hinge issues that were causing cracks in the inner display. Apple has now responded to the reports in a statement to MacRumors, saying a small number of units are affected. The response to iPhone Duo from early users has been incredibly positive, and we are seeing exciting things from developers who are rapidly updating their apps...
Latest Stories
iOS 27.2 Features: Everything New in iOS 27.2
iOS 27.2 Features: Everything New in iOS 27.2
8 minutes ago
Why Can't iPhone Duo Users Make Eye Contact on FaceTime?
Why Can't iPhone Duo Users Make Eye Contact on FaceTime?
15 minutes ago
iOS 27.2 Fixes Over 160 Security Vulnerabilities
iOS 27.2 Fixes Over 160 Security Vulnerabilities
1 hour ago
iPhone AI Images and Edits Now Have a Hidden Watermark
iPhone AI Images and Edits Now Have a Hidden Watermark
2 hours ago
iOS 27.2 Lets You Watch Four Live Sports Streams on iPhone
iOS 27.2 Lets You Watch Four Live Sports Streams on iPhone
3 hours ago
iOS 27.2 Expands Dual Capture to Group FaceTime
iOS 27.2 Expands Dual Capture to Group FaceTime
3 hours ago
Here's Why Apple's Next Pre-Orders Begin on Wednesday at 10:10 AM
Here's Why Apple's Next Pre-Orders Begin on Wednesday at 10:10 AM
3 hours ago
Apple Says Siri AI Will Support Even More Languages Later This Year
Apple Says Siri AI Will Support Even More Languages Later This Year
4 hours ago
Apple Releases iOS 27.2 With New Siri AI Languages
Apple Releases iOS 27.2 With New Siri AI Languages
5 hours ago
Apple Releases macOS Golden Gate 27.2
Apple Releases macOS Golden Gate 27.2
5 hours ago
Apple Releases watchOS 27.2 With Siri AI Enhancements
Apple Releases watchOS 27.2 With Siri AI Enhancements
5 hours ago
Apple Releases HomePod 27.2 Software With Sound Glow for Existing HomePods
Apple Releases HomePod 27.2 Software With Sound Glow for Existing HomePods
5 hours ago
Apple Releases tvOS 27.2 With HomePod Surround Sound Support
Apple Releases tvOS 27.2 With HomePod Surround Sound Support
5 hours ago
Apple Releases visionOS 27.2
Apple Releases visionOS 27.2
5 hours ago
iPad Mini 2024 vs. 2026 Buyer's Guide: Should You Upgrade?
iPad Mini 2024 vs. 2026 Buyer's Guide: Should You Upgrade?
5 hours ago
Apple Responds to iPhone Duo Display Cracking Reports
Apple Responds to iPhone Duo Display Cracking Reports
6 hours ago
iPhone Duo: Watch Video Above an App in Portrait Mode
iPhone Duo: Watch Video Above an App in Portrait Mode
6 hours ago
AirPods Pro Hearing Aid Feature Launching in These Canadian Provinces
AirPods Pro Hearing Aid Feature Launching in These Canadian Provinces
7 hours ago
New iPad Mini Announced Today Has More Than 12 New Features
New iPad Mini Announced Today Has More Than 12 New Features
7 hours ago
Apple Raises iPad and Mac Trade-In Values
Apple Raises iPad and Mac Trade-In Values
8 hours ago
New iPad Mini Gains Adaptive True Tone Flash
New iPad Mini Gains Adaptive True Tone Flash
8 hours ago
Quickly Silence iPhone Duo Without a Ring/Mute Switch
Quickly Silence iPhone Duo Without a Ring/Mute Switch
8 hours ago
Anker Launches Halloween Sale With Sitewide Discounts and Labubu Bundles
Anker Launches Halloween Sale With Sitewide Discounts and Labubu Bundles
9 hours ago
OLED iPad Mini Fast Charge Needs a 35W Adapter, Sold Separately
OLED iPad Mini Fast Charge Needs a 35W Adapter, Sold Separately
9 hours ago
Apple Brings TechWoven to iPad With All-New $79 iPad Mini Smart Folio
Apple Brings TechWoven to iPad With All-New $79 iPad Mini Smart Folio
9 hours ago
All Current iPads Now Feature a Landscape Front Camera
All Current iPads Now Feature a Landscape Front Camera
9 hours ago
OLED iPad Mini Starts at $699 After Second Price Hike This Year
OLED iPad Mini Starts at $699 After Second Price Hike This Year
9 hours ago
New iPad Mini Available in Just Two Colors
New iPad Mini Available in Just Two Colors
9 hours ago
512GB OLED iPad Mini Gets Extra CPU Core and Dual Neural Engine
512GB OLED iPad Mini Gets Extra CPU Core and Dual Neural Engine
10 hours ago
New iPad Mini Offers Nano-Texture Display on Select Models
New iPad Mini Offers Nano-Texture Display on Select Models
10 hours ago