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 Roundup: iPadOS 15
Related Forum: iOS 15

Related Stories

iOS 15 banner public beta red

How to Install the iOS 15 Public Beta

Wednesday June 30, 2021 11:11 am PDT by
After promising to release iOS and iPadOS 15 to the public in July, Apple today seeded new iOS and iPadOS 15 beta updates to its public beta testing group, giving them the opportunity to try out the new software ahead of its fall launch. Signing up to get the iOS and iPadOS 15 beta is super easy, and can be done by enrolling an iPhone or iPad in Apple's free Apple Beta Software Program....
ipad kids playing

How to Limit What a Toddler Can Do When You Hand Over Your iPhone or iPad

Monday December 20, 2021 3:58 am PST by
If you've ever handed your iPhone or iPad to a baby or toddler to entertain them while you do something else, you'll probably know just how easily their little fingers can navigate into all manner of screens and settings they shouldn't be messing with. Fortunately, Apple includes a feature in iOS that allows you to keep your device locked into a single app and control which features are...
MAsk On Face ID iOS 15

iOS 15.4: How to Set Up Face ID With a Mask

Friday January 28, 2022 10:46 am PST by
In iOS 15.4, currently in beta, Apple has added a handy new feature that allows you to unlock your iPhone with Face ID and authenticate Apple Pay payments even when you're wearing a mask. In previous versions of iOS going back to iOS 14.5, it is possible to unlock your iPhone while wearing a mask, but only if you're also wearing an Apple Watch as an extra layer of security. The new option...
image 40

How to Restore Apple Watch Using Your iPhone

Thursday March 17, 2022 3:38 pm PDT by
Following the release of watchOS 8.5 for Apple Watch and iOS 15.4, you can now restore an Apple Watch that has a problem using a nearby iPhone. Before the updates were released, some Apple Watch models needing to be restored had to be mailed to an Apple Repair Center. In many cases, however, this is no longer a requirement thanks to the latest software updates, and you can restore a...
ios 13 iphone ipad duo

How to Erase Your iPhone or iPad

Thursday April 8, 2021 4:28 pm PDT by
Erasing your iPhone or iPad is a good idea when it comes to selling the device, giving it away, or taking it to a store for repairs. It's also one way to start afresh if your device's storage is nearing full capacity, so it's worth knowing how it's done. Before you erase anything though, you should back up your device, just in case. You can back up your data to iCloud, but we'd advise you...
watchOS 8 on Apple Watch feature

How to Authorize Apple TV Purchases on Apple Watch

Tuesday March 22, 2022 10:42 am PDT by
Following the release of watchOS 8.5 for Apple Watch and tvOS 15.4 for Apple TV, it's now possible to confirm Apple TV purchases from your wrist. This new method of verifying content purchases works for both one-time purchases like movies as well as in-app purchases on Apple TV. The following steps show how it works. Update your Apple TV to tvOS 15.4 (Settings -> System -> Software...
passwords system preferences

macOS 12.3: How to Add Notes to iCloud Keychain Entries

Tuesday February 8, 2022 3:07 pm PST by
In macOS Monterey 12.3, currently in beta, Apple has added the ability for users to add notes to account entries in iCloud Keychain. This article explains how it's done. Slowly but surely with each iteration of macOS, Apple has been improving ‌iCloud‌ Keychain to put it on equal footing with rival third-party password managers such as 1Password. And in macOS 12.3, it continues that...
shortcuts automation

iOS 15.4: How to Turn Off Notifications for Personal Automations in Shortcuts

Monday February 7, 2022 1:01 pm PST by
Apple's Shortcuts app is a great part of iOS because it includes tools that allow you to automate almost any action you can think of. But there is one aspect of it that has often annoyed users, and that's the lack of a setting that turns off notifications. Whenever Shortcuts runs an automation (let's say, disable rotation lock when a particular app is opened) it does so in the background....

Popular Stories

iphone 14 pro max vs 13 max 2

Camera Comparison: iPhone 14 Pro Max vs. iPhone 13 Pro Max

Thursday September 29, 2022 7:44 am PDT by
The iPhone 14 Pro and Pro Max introduce some major improvements in camera technology, adding a 48-megapixel lens and low-light improvements across all lenses with the new Photonic Engine. We've spent the last week working on an in-depth comparison that pits the new iPhone 14 Pro Max against the prior-generation iPhone 13 Pro Max to see just how much better the iPhone 14 Pro Max can be. Subscrib ...
tony blevins car

Apple Procurement VP Departs Company After Vulgar TikTok Comment

Thursday September 29, 2022 12:38 pm PDT by
Tony Blevins, Apple's vice president of procurement, is set to depart the company after he made a crude comment about his profession in a recent TikTok video, reports Bloomberg. Blevins was in a video by TikTok creator Daniel Mac, who was doing a series on the jobs of people he spotted with expensive cars. After seeing Blevins in an expensive Mercedes-Benz SLR McLaren, Mac asked Blevins what ...
Dark Sky App Featured

Dark Sky Removed From iOS App Store Ahead of Upcoming Shutdown

Wednesday September 28, 2022 4:27 pm PDT by
The Dark Sky weather app that's owned by Apple is no longer available for download in the U.S. App Store, suggesting that it has been removed ahead of schedule. Apple acquired Dark Sky back in March 2020 and has since incorporated elements of the app into the Weather app available on the iPhone (and soon, the iPad). Dark Sky remained available for purchase as a standalone weather app...
adaptive transparency airpods pro

iOS 16.1 Beta Brings Adaptive Transparency to Original AirPods Pro

Thursday September 29, 2022 1:08 pm PDT by
The third beta of iOS 16.1 that was released earlier this week expands the Adaptive Transparency feature introduced with the second-generation AirPods Pro to the original AirPods Pro. As noted on Reddit, first-generation AirPods Pro owners who also have the AirPods beta software will now see an "Adaptive Transparency" toggle in the AirPods section of the Settings app. The 5A304A beta...
tim cook malala

Tim Cook: Not Too Long From Now, You'll Wonder How You Led Your Life Without AR

Thursday September 29, 2022 7:26 am PDT by
Speaking at Università Degli Studi di Napoli Federico II in Naples, Italy, Apple CEO Tim Cook said that not too long from today, people will wonder how they led a life without augmented reality, stressing the "profound" impact it will have on the not so distant future. At the university, Cook was awarded an Honorary Degree in Innovation and International Management and also sat down for a...
iPhone 15 to Switch From Lightning to USB C in 2023 feature sans arrow

Kuo: iPhone 14 Pro Max Popularity Could Lead to More Differentiation Between iPhone 15 Pro and iPhone 15 Pro Max

Wednesday September 28, 2022 10:22 am PDT by
Apple has seen high demand for the 6.7-inch iPhone 14 Pro Max, which could lead the company to further differentiate the next-generation iPhone 15 Pro and Pro Max, according to Apple analyst Ming-Chi Kuo. Apple could add exclusive features to the iPhone 15 Pro Max in an effort to encourage more people to purchase the larger and more expensive device. Kuo last week said that Apple asked...
iOS 16 Wallpaper Spectrum Feature

Five Wallpaper Apps to Check Out for iOS 16's New Lock Screen Depth Effect

Thursday September 29, 2022 9:08 am PDT by
One of the biggest new features in iOS 16 is a completely redesigned iPhone Lock Screen. The new Lock Screen is entirely customizable, letting you change the colors and fonts, add widgets and new wallpapers, and more to make your iPhone uniquely yours. Of course, even before iOS 16, you could customize your Lock Screen with a wallpaper of your choice. iOS 16 takes the Lock Screen wallpaper...
apple watch ultra deuglify 1

Apple Watch Ultra User Mods Titanium Casing to 'Deuglify' Design

Tuesday September 27, 2022 8:05 am PDT by
An Apple Watch Ultra user has modified their new device's casing to add a brushed finish and remove the orange color of the Action Button in an effort to make it more visually appealing. The Apple Watch Ultra offers the first complete redesign of the Apple Watch since the product line's announcement in 2014, and while the design has been met with praise from many users, some have criticized...
mx mechanical keyboard logitech

Logitech Launches New 'Designed for Mac' Mice and Keyboards

Wednesday September 28, 2022 12:01 am PDT by
Logitech today announced the launch of several new mice and keyboards that have been developed for use with Apple's Macs, including Logitech's first mechanical keyboard that has been optimized for the Mac. The MX Mechanical Mini for Mac Keyboard has a keyboard layout designed for Macs, with tools to customize shortcuts with Logi Options+. The keyboard uses Tactile Quiet low-profile switches...
iphone 14 iphone 14 plus in hand feature

iPhone 14 Is Secretly Hiding a Beloved Mac Feature

Friday September 30, 2022 3:24 am PDT by
The iPhone 14 and iPhone 14 Pro models bring over a longstanding Mac feature, but the setting to enable it is off by default. The feature, which is actually a new accessibility option, allows the iPhone to play a startup chime like the Mac. When enabled, the sound comes alongside a new shutdown chime. The Mac has featured a startup chime since 1987's Macintosh II, and the iconic "bong"...