What a factory reset does and when you need one

A factory reset wipes your device back to the state it left the manufacturer — erasing all your files, apps, accounts, and settings. It does not fix hardware problems like a broken screen or dead battery, and it does not remove malware that lives in your device's firmware. But it does clear out software clutter, remove stubborn apps you cannot uninstall normally, and give you a clean slate if you are selling the device or handing it to someone else.

You need a factory reset when your device has become slow or unstable after months of use, when you want to remove all traces of your personal data before giving it away, or when you are troubleshooting a software problem and want to rule out conflicts between apps. It is also the standard step before selling a used phone or tablet.

A factory reset takes 15 minutes to an hour depending on your device and how much data is on it. Everything will be gone afterward, so back up anything you want to keep first.

Key Takeaways

  • Back up your files, photos, and account information before you start, because a factory reset erases everything on your device.
  • Sign out of your accounts (Google, Apple, Microsoft) before resetting, or you may get locked out of your own device afterward.
  • The reset process is different for Windows, Mac, iPhone, iPad, and Android — each has its own menu path and confirmation steps.
  • After the reset completes, your device will restart and ask you to set it up as if it were brand new.

Back up your data before you reset

Decide what you want to keep. Photos, documents, email, and browser bookmarks can all be recovered if you back them up first. On Windows, use File Explorer to copy important folders to an external drive or cloud storage like OneDrive or Google Drive. On Mac, use Time Machine to create a full backup to an external drive, or copy individual folders to cloud storage.

For phones and tablets, use your device's built-in backup. On iPhone and iPad, go to Settings > [Your Name] > iCloud and turn on iCloud Backup, then tap Back Up Now. On Android, go to Settings > Google > Manage Your Google Account > Backup and make sure Backup is turned on. Both will save your photos, contacts, and app data to your cloud account so you can restore them after the reset.

If you use a password manager, export your passwords or write down the ones you will need after the reset. If you have two-factor authentication turned on for any accounts, make sure you have a backup method (like a recovery code) saved somewhere safe.

Sign out of accounts before resetting

This step prevents you from being locked out of your own device after the reset. On Windows, go to Settings > Accounts and note which accounts are signed in. On Mac, go to System Settings > General > Login Items and check which accounts are active. On iPhone, iPad, or Android, go to Settings and look for your Apple ID, Google Account, or Microsoft Account.

Sign out of each account before you reset. On iPhone and iPad, go to Settings > [Your Name] and scroll to the bottom, then tap Sign Out. On Android, go to Settings > Accounts, select each account, and tap Remove Account. On Windows and Mac, you can sign out from the account settings menu, though you can also sign back in immediately after the reset if you prefer.

If you have a PIN or password on your device, you will need it to complete the reset — the system will ask you to confirm your identity before it erases everything.

Factory reset on Windows

Go to Settings > System > Recovery. Under Reset this PC, click Reset PC. Windows will ask whether you want to Keep My Files or Remove Everything. Choose Remove Everything if you want a complete wipe. Click Next.

Windows will ask how you want to remove your files. Local Removal is faster and is fine for personal use. Secure Removal takes longer but overwrites the deleted data so it cannot be recovered — use this if you are selling or giving away the device. Click Next, review the summary, and click Reset.

Your device will restart and begin the reset process. This can take 30 minutes to an hour. When it finishes, you will see the Windows setup screen, just like when the device was new. You can then set up Windows with a new account or sign back into your existing Microsoft Account.

Factory reset on Mac

Go to System Settings > General > Transfer or Reset. Click Erase All Content and Settings. Mac will warn you that this action cannot be undone and will ask for your password. Enter your password and click Continue.

If you have FileVault encryption turned on (which most modern Macs do), Mac will ask whether you want to keep your recovery key. If you might need to recover files later, save the key somewhere safe. If you are selling the Mac, you can skip this.

Mac will restart and begin erasing. This usually takes 15 to 30 minutes. When it finishes, you will see the Mac setup screen. You can set up a new account or sign back in with your Apple ID.

Factory reset on iPhone or iPad

Go to Settings > General > Transfer or Reset > Erase All Content and Settings. If you have Find My turned on, you will need to enter your Apple ID password. If you have a screen lock, you will need your passcode.

Tap Erase Now and confirm. Your device will restart and begin the reset. This usually takes 10 to 20 minutes. When it finishes, you will see the setup screen. You can restore from your iCloud backup (which will bring back your photos, contacts, and app data) or set up as a new device.

If you are selling or giving away the device, do not restore from backup — just set it up as new and sign out before handing it over.

Factory reset on Android

Go to Settings > System > Reset Options > Erase All Data (Factory Reset). The exact path varies by phone maker — Samsung uses Settings > General Management > Reset > Factory Data Reset, while Google Pixel uses Settings > System > Reset Options > Erase All Data.

Android will ask you to confirm your Google Account password. Enter it, then tap Erase Everything. Your device will restart and begin the reset. This usually takes 10 to 20 minutes. When it finishes, you will see the setup screen. You can sign back into your Google Account to restore your photos, contacts, and app data, or set up as a new device.

What to do after the reset is complete

Your device will restart and ask you to set it up. You can sign back into your accounts and restore your backup. On iPhone and iPad, you will be asked whether to restore from iCloud backup — choose this if you want your old data back. On Android, sign into your Google Account during setup and it will restore your photos, contacts, and apps automatically. On Windows and Mac, sign into your Microsoft or Apple account and choose to restore from backup if you saved one.

If you are giving the device to someone else, do not sign back in. Just complete the initial setup and hand it over unsigned. They will be able to set up their own account when they first use it.

If your device feels slow or unstable after the reset, give it a few hours to finish indexing and updating apps in the background. If problems continue, the issue may be hardware-related rather than software.

Frequently Asked Questions

What if I forgot my password and cannot complete the reset?

On Windows, you can reset a forgotten password from the login screen by clicking "Reset Password" and answering your security questions. On Mac, use another admin account to reset the password, or use Recovery Mode. On iPhone, iPad, and Android, you will need your Apple ID or Google Account password to complete the reset — if you have forgotten it, you will need to recover that account first through Apple or Google's account recovery process.

Can I undo a factory reset?

No. A factory reset is permanent. If you backed up your data beforehand, you can restore it after the reset. If you did not back up, the data is gone. Some data recovery services claim to recover deleted files, but they are expensive and do not always work.

Will a factory reset remove viruses or malware?

A factory reset removes most malware that lives in your apps and files, but not malware embedded in your device's firmware. If you suspect a serious infection, a factory reset is a good first step, but it is not a may provide. After resetting, avoid the websites or downloads that infected you in the first place.

How long does a factory reset take?

Most factory resets take 15 minutes to an hour, depending on your device and how much data is on it. Older devices or those with a lot of storage may take longer. During the reset, your device will restart multiple times — do not turn it off or unplug it.

Do I need to remove my SIM card or SD card before resetting?

No. A factory reset only erases the device's internal storage, not removable cards. Your SIM card will continue to work, and your SD card will keep its files. If you want to erase an SD card too, you can do that separately through your device's storage settings.