If you forgot your iPhone passcode, use your Mac or PC to reset it
![The iPhone Unavailable message appears on an iPhone after you incorrectly enter your passcode.](https://cdsassets.apple.com/live/7WUAS350/images/ios/ios-17-iphone-14-pro-iphone-unavailable.png)
Step 1: Make sure that you have a computer (Mac or PC)
Step 2: Turn off your iPhone
Unplug your iPhone from the computer if it’s connected. Turn off your iPhone using the method for your iPhone model: iPhone 8, iPhone 8 Plus, iPhone X and later, including iPhone SE (2nd and 3rd generation): Press and hold both the side button and the Volume down button until the power off slider appears. iPhone 7, iPhone 7 Plus, iPhone 6s, and iPhone 6: Press and hold the side button until the power off slider appears. iPhone SE (1st generation), iPhone 5s, and earlier: Press and hold the top button until the power off slider appears.
Drag the slider to turn off your iPhone, then wait a minute to make sure that it turns off completely.
Step 3: Put your iPhone in recovery mode
Get ready by finding the button on your iPhone that you'll need to hold in the next step: iPhone 8, iPhone 8 Plus, iPhone X and later, including iPhone SE (2nd and 3rd generation) use the side button. iPhone 7 and iPhone 7 Plus use the Volume down button. iPhone SE (1st generation), and iPhone 6s and earlier use the Home button.
Press and hold the correct button for your iPhone while immediately connecting your iPhone to the computer. Continue to hold the button while the Apple logo appears, and don't let go of the button until the image of a computer and cable appears.
![The recovery mode screen on your iPhone](https://cdsassets.apple.com/live/7WUAS350/images/ios/iphone-x-later-restore-screen.png)
Step 4: Restore your iPhone with your Mac or PC
Locate your iPhone in the Finder, or in iTunes or the Apple Devices app if you connect to a PC. (Learn how to find your connected iPhone .) Choose Restore when you see the option to Restore or Update. Your computer downloads software for your iPhone and begins the restore process. 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. Wait for the process to finish. When the process finishes, your device will restart and show a setup screen. Disconnect your iPhone from the computer, then set up and use your iPhone .
Need more help?