A factory reset erases almost everything on your device and returns it to the state it left the factory

A factory reset wipes your device clean: all your photos, messages, apps you installed, browsing history, saved passwords, and personal settings disappear. The operating system itself stays, but it reverts to the default version without your customizations. After the reset completes, your device looks and behaves like it did the day you unboxed it — you'll see the initial setup screen asking you to choose a language and sign in.

The reset does not touch the hardware. Your screen, battery, processor, and camera remain unchanged. What changes is the software layer — the digital stuff stored on your device's storage drive.

Key Takeaways

  • A factory reset removes all personal data, installed apps, photos, messages, and custom settings from your device.
  • You cannot undo a factory reset, so back up anything you want to keep before you start the process.
  • The reset does not remove malware if it is embedded in the device firmware, though it removes most common infections.
  • After a reset, you will need to sign back into your accounts and reinstall apps you want to use.
  • A factory reset does not delete data from cloud services like Google Drive or iCloud — only data stored directly on the device.

What gets deleted and what stays

Everything stored directly on your device's storage drive gets erased: photos in your camera roll, text messages, email drafts, downloaded files, browser bookmarks, saved WiFi passwords, and any app data those apps created. If you use a password manager or banking app, the saved login information in those apps vanishes. Your device's name, your preferred language, and any custom home screen layouts all reset to factory defaults.

Data that lives in the cloud does not get deleted. If you use Google Photos, your photos are still on Google's servers. If you use iCloud, your notes and contacts sync back to Apple's servers. If you use Outlook or Gmail, your emails remain in those accounts. The reset only removes the local copies on your device — the originals stay where they are stored online.

The operating system itself stays on your device. You do not lose iOS, Android, Windows, or macOS. What you lose is the version customized to you — the apps you added, the settings you changed, the files you saved.

Why people do factory resets

The most common reason is to remove malware or spyware. If your device is running slowly, showing ads you did not click, or behaving strangely, a factory reset can remove most infections because malware typically stores itself in the same places your personal files do. Resetting clears those out.

People also reset devices before selling or giving them away, to ensure the new owner does not inherit their data. A reset is more thorough than simply deleting files, because deleted files can sometimes be recovered with specialized tools — a factory reset overwrites the storage space.

Some people reset when a device is sluggish or buggy after months of use. A fresh operating system sometimes runs faster than one cluttered with old app data and temporary files, though this effect varies depending on your device and how full it is.

What you need to do before resetting

Back up anything you want to keep. On Android, open Settings, go to System, and look for Backup options — most devices back up to your Google account automatically, but verify it is turned on. On iPhone, go to Settings, tap your name, select iCloud, and check that the categories you care about (Photos, Notes, Contacts) are toggled on. On Windows, open Settings, go to System, and look for Backup options to save files to OneDrive or an external drive. On Mac, open System Settings, go to General, and set up Time Machine with an external drive.

Write down any account passwords you might need after the reset. Your email password is the most important one — you will need it to sign back in. If you use two-factor authentication (a code sent to your phone or generated by an app), make sure you have access to that method before you reset.

Charge your device fully. A factory reset can take 15 minutes to an hour depending on your device and how much data is on it. If your battery dies during the process, your device may not restart properly.

How to start a factory reset

On Android, open Settings, go to System (or About Phone on some devices), scroll to Reset options, and tap Erase all data. You will be asked to confirm. On iPhone, open Settings, go to General, scroll to Transfer or Reset, tap Erase All Content and Settings, and confirm. On Windows, open Settings, go to System, select Recovery, and click Reset this PC. On Mac, restart your device, hold Command and R during startup to enter Recovery Mode, go to Utilities, open Terminal, and type specific commands — or use the simpler route of going to System Settings, General, Transfer or Reset, and selecting Erase All Content and Settings (on newer Macs).

The exact steps vary by device model and operating system version. If you are unsure, search for "[your device model] factory reset" to find the precise steps for your hardware.

What happens after the reset completes

Your device restarts and shows the initial setup screen — the same one you saw when you first turned it on. You will choose your language, connect to WiFi, and sign into your account (Google account for Android, Apple ID for iPhone, Microsoft account for Windows, Apple ID for Mac). Once you sign in, your device begins downloading your backed-up data: contacts, calendar events, and photos if you backed them up to the cloud.

You will need to reinstall apps you want to use. Open your app store (Google Play Store, Apple App Store, Microsoft Store, or Mac App Store), go to your library or account section, and reinstall the apps you had before. Most apps will restore their data if you sign into them with your account.

Passwords for websites and apps are not restored automatically. You will need to sign in again, and your browser will ask if you want to save the password. If you use a password manager like Bitwarden or 1Password, sign into it first, then use it to fill in passwords for other apps.

Factory reset and malware: what it does and does not do

A factory reset removes most common malware because typical infections store themselves in the same writable storage space as your files. Clearing that space removes them. However, a factory reset does not remove malware embedded in the device firmware — the low-level software that runs before the operating system loads. Firmware-level infections are rare and usually only found on devices that have been physically compromised or targeted by sophisticated attackers.

If you suspect your device has malware, a factory reset is a reasonable step. But if the malware returns after the reset, or if you believe your device was targeted by a state-level actor or criminal organization, a reset alone may not be enough — you may need to replace the device or consult a security professional.

Frequently Asked Questions

Can I undo a factory reset?

No. A factory reset is permanent. Once it completes, the data is gone unless you backed it up beforehand. Some data recovery services claim they can retrieve deleted files, but recovery is not may provide and costs money. The safest approach is to back up before you reset.

Will a factory reset remove my Google or Apple account?

The reset removes your account from the device, but the account itself still exists. You will need to sign back in after the reset. If you forget your password, you can recover it through Google's or Apple's account recovery process before you reset.

Does a factory reset delete files I stored in Google Drive or OneDrive?

No. Files stored in cloud services remain on those services' servers. The reset only removes the local copies on your device. When you sign back in after the reset, you can download them again.

How long does a factory reset take?

Most resets take 15 to 45 minutes, depending on your device model, how much data is on it, and how old the device is. Older devices or those with a lot of storage may take longer. Keep your device plugged in and do not interrupt the process.

Will a factory reset fix a slow device?

Sometimes. If slowness is caused by accumulated app data, temporary files, or minor software corruption, a reset can help. If slowness is caused by hardware failure (a failing battery, overheating, or a damaged storage drive), a reset will not fix it.