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 Kukatpally Wallpaper

Apple Just Released Five New Products

Wednesday December 2, 2026 6:12 am PST by
Apple this week released five new (RED) products, which are available online and at Apple Stores in the U.S. and dozens of other countries. The five new products with (RED) editions:AirPods Max 2 ($549) HomePod mini 2 ($149) Apple Watch Series 12 (Titanium) ($699) AirPods Pro 3 with Wrist Strap ($269) AirTag 2 with AirTag FineWoven Key Ring ($59)Apple is now using (RED) branding instead...
macbook proled candy

PROLED MacBook Pro Receives Massive $1,000 Amazon Discount [Update: Gone]

Wednesday December 2, 2026 6:14 am PST by
Apple's MacBook Pro with PROLED XDR is seeing a massive $1,000 discount right now on Amazon, undercutting the Black Friday price by over $700. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep the site running. The model in question is the 16-inch PROLED MacBook Pro with 36GB...
Mostly Screen iPhone Purple Feature 2027

iPhone 20 Pro's Redesign May Be Less Radical Than Expected

Wednesday December 2, 2026 5:05 am PST by
Apple's 20th-anniversary iPhone is unlikely to achieve a completely bezel-free design due to manufacturing costs and production challenges, according to a new rumor from South Korea. In a new post on Naver, the leaker and news aggregator known as "yeux1122" shared information attributed to sources at companies in South Korea. The account characterized the display plans as a "compromise with...
Latest Stories
Apple Raises AppleCare+ Prices for Several Macs
Apple Raises AppleCare+ Prices for Several Macs
28 minutes ago
Review: BMX's SolidSafe Duo is a Power Bank Tailor-Made for the iPhone Duo
Review: BMX's SolidSafe Duo is a Power Bank Tailor-Made for the iPhone Duo
1 hour ago
Apple's New (RED) AirPods Max 2 Now Available for $100 Off
Apple's New (RED) AirPods Max 2 Now Available for $100 Off
5 hours ago
The MacRumors Show: Apple's New (RED) Products and Siri AI Problems
The MacRumors Show: Apple's New (RED) Products and Siri AI Problems
5 hours ago
Disney+ App Now Optimized for iPhone Duo
Disney+ App Now Optimized for iPhone Duo
5 hours ago
AirPods 5 Drop to $99 for the First Time Ever on Amazon
AirPods 5 Drop to $99 for the First Time Ever on Amazon
7 hours ago
Apple Loses Early Appeal Bid in Apple Pay Fees Lawsuit
Apple Loses Early Appeal Bid in Apple Pay Fees Lawsuit
7 hours ago
WhatsApp Strengthens Built-In Spam Protections for Usernames
WhatsApp Strengthens Built-In Spam Protections for Usernames
9 hours ago
Jon Prosser Pushes for Year-Long Delay in iOS 26 Leaks Case
Jon Prosser Pushes for Year-Long Delay in iOS 26 Leaks Case
10 hours ago
BBC iPlayer App Gains UHD Streaming Support on Apple TV 4K
BBC iPlayer App Gains UHD Streaming Support on Apple TV 4K
11 hours ago
iPhone 18 Delays Linked to Memory Costs and Ternus Decisions
iPhone 18 Delays Linked to Memory Costs and Ternus Decisions
12 hours ago
WhatsApp Group Chats Now Work With Third-Party App in Europe
WhatsApp Group Chats Now Work With Third-Party App in Europe
12 hours ago
Apple Says More Than 400,000 Apps Now Optimized for iPhone Duo
Apple Says More Than 400,000 Apps Now Optimized for iPhone Duo
20 hours ago
Apple's iPhone Game of the Year Isn't Optimized for iPhone Duo
Apple's iPhone Game of the Year Isn't Optimized for iPhone Duo
23 hours ago
Four New Apple Arcade Games Available Today
Four New Apple Arcade Games Available Today
1 day ago
YouTube TV Price Climbs Again, Now Nearly $90 a Month
YouTube TV Price Climbs Again, Now Nearly $90 a Month
1 day ago
Some M5 Macs Have a Studio Display XDR Problem
Some M5 Macs Have a Studio Display XDR Problem
1 day ago
Cyber Week iPhone Deals: Get an iPhone Duo at No Cost for the Holidays
Cyber Week iPhone Deals: Get an iPhone Duo at No Cost for the Holidays
1 day ago
Apple's Former Software Design Chief Alan Dye on Why He Joined Meta
Apple's Former Software Design Chief Alan Dye on Why He Joined Meta
1 day ago
Meta Considers iPhone Rival and Revives Smartwatch Plans
Meta Considers iPhone Rival and Revives Smartwatch Plans
1 day ago
iPhone 20 Pro Titanium Rumors Grow as Material Orders Rise
iPhone 20 Pro Titanium Rumors Grow as Material Orders Rise
1 day ago
Apple Announces 'The Morning Show' Season 5 Release Date
Apple Announces 'The Morning Show' Season 5 Release Date
1 day ago
Apple Pay Promo Offers $25 Gift Card at Gorjana
Apple Pay Promo Offers $25 Gift Card at Gorjana
1 day ago
Apple Announces 2026 iPhone App of the Year and More
Apple Announces 2026 iPhone App of the Year and More
1 day ago
M6 MacBook Pro Cyber Week Deal Takes $250 Off Select Models
M6 MacBook Pro Cyber Week Deal Takes $250 Off Select Models
1 day ago
Apple Music Launches as a Native App in BMW and Mini Vehicles
Apple Music Launches as a Native App in BMW and Mini Vehicles
1 day ago
Proton Mail's iPhone App Adds Full-Text Search for Encrypted Email
Proton Mail's iPhone App Adds Full-Text Search for Encrypted Email
1 day ago
Apple Backs US Warning Over AI Threat to Encryption
Apple Backs US Warning Over AI Threat to Encryption
2 days ago
Apple's HomeView is Backordered Into February
Apple's HomeView is Backordered Into February
2 days ago
CARROT Weather Adds Almanac for Personal Weather History
CARROT Weather Adds Almanac for Personal Weather History
2 days ago