Restore your iPhone, iPad or iPod to factory settings using a computer
A factory restore erases the information and settings on your iPhone, iPad or iPod and installs the latest version of iOS, iPadOS or iPod software.
If you can't access a computer and your device works, you can erase and restore your device without a computer.
Get your device ready
Update your Mac or PC. If you're using iTunes, make sure that you have the latest version.
If you want to save the information on your iPhone, iPad or iPod, make a backup.
Go to Settings > [your name] > Find My, tap Find My iPhone, then turn Find My iPhone off.
Restore your device to factory settings
Switch to the Finder on your Mac, or open the Apple Devices app on your PC. If your PC doesn’t have the Apple Devices app, or your Mac is running macOS Mojave or earlier, open iTunes instead. Find out which macOS your Mac is using.
Connect your device to your computer.
If a message asks for your device's passcode or to Trust This Computer, follow the onscreen steps. Get help if you’ve forgotten your passcode.
Find out what to do if your iPhone, iPad, or iPod touch is unresponsive or won't turn on. Or get help if your device doesn't appear on your computer.
Click Restore [device]*. If you’re signed in to Find My, you need to sign out before you can click Restore.

Click Restore again to confirm. Your computer erases your device and installs the latest iOS, iPadOS or iPod software.

After your device has been restored to factory settings, it will restart.
* Restoring an iPhone doesn't delete your eSIM. Find out how to erase your eSIM, if you need to erase it.
Get help
Find out what to do if you see an error message.
Find out how to restore your device from a backup.
Need more help?
Tell us more about what's happening and we'll suggest what you can do next.