A factory reset puts a computer back to a fresh copy of its operating system. It is the usual last step before you sell, give away or recycle a laptop, and it can also fix a PC that has become slow or unstable when nothing else has worked.1,4 Both Windows and macOS have a built-in reset, so you don't need a USB stick or a disc for most modern computers.1,5
This guide covers Windows 11 and Windows 10, and Macs running macOS Monterey 12 or later, with notes for older Macs.1,4,6
Back up first
A reset can delete your personal files, apps and settings. Copy anything you want to keep to an external drive or cloud storage before you start, and check the copy opens.1,5
Before you start: back up and gather what you need
On Windows, the built-in Windows Backup app can copy your Desktop, Documents, Pictures, Videos and Music folders to OneDrive, along with many of your settings and a list of your installed apps. You need to be signed in with a Microsoft account, and a free account includes 5 GB of OneDrive storage, so larger collections may need an external drive instead.2 If you're not sure what "the cloud" means here, our guide to what the cloud is explains it simply.
On a Mac, Apple recommends backing up with Time Machine before you erase anything.5

Two other things are worth having to hand:
- Your BitLocker recovery key, if your Windows PC's drive is encrypted. Microsoft says you may need it during the reset.1
- A list of apps you'll need to reinstall. A Windows reset removes the apps you installed yourself, and Dell notes it also removes drivers you added.1,3
If you're only resetting because the computer is slow, try our fixes for a slow computer and for a full disk first. They take less time and keep everything in place.
How to reset a Windows 11 or Windows 10 PC
The reset option is in Settings and works the same way on Windows 11 and Windows 10.1
Open Settings, then go to System > Recovery. You can also click Start, type reset and choose Reset this PC.1,3
Under Recovery options, select Reset PC.1
Choose Keep my files or Remove everything (see the next section for which to pick).1
Choose Cloud download or Local reinstall when asked.1
Review the settings, then follow the on-screen instructions to start the reset.1
The reset takes a while. Microsoft warns that the screen can stay black for a long time, sometimes more than 15 minutes, and the computer may restart by itself. Don't switch it off or restart it yourself during this time, because that can make the reset fail.1
When it finishes, you will see the Windows setup screens. If you backed up with Windows Backup, sign in with the same Microsoft account during setup and choose to restore your files and settings.2
Keep my files or Remove everything?
- Keep my files reinstalls Windows and keeps your personal files, but removes your apps and settings. Use it to fix a problem on a computer you're keeping.1 An option called Restore preinstalled apps decides whether the apps your PC's manufacturer installed come back.1
- Remove everything reinstalls Windows and deletes your personal files, apps and settings. Use it before you sell or give the PC away.1
If you're passing the computer on, turn on Clean data under the reset settings (Dell's guide calls the choice Remove files and clean the drive). It takes longer but makes your old files much harder to recover.1,3 Microsoft points out that this is aimed at home users and does not meet government or industry data-erasure standards.1
Cloud download or Local reinstall?
Cloud download fetches a fresh copy of Windows from Microsoft, including the latest updates, so you'll need an internet connection. It is the better choice if Windows files on the PC are damaged. Local reinstall uses files already on the computer, which is quicker on a slow connection but may leave you with updates to install afterwards.1,7
If Windows won't start
You can also reset from the Windows Recovery Environment (Windows RE), a repair menu that works outside Windows. Once you're in it, choose Troubleshoot, then Reset this PC.1 If your PC is stuck on a crash screen, our guide to the Windows blue screen may help you get back in first.

Note that a reset is not the same as the manufacturer's original factory image. Dell, for example, says the reset reinstalls Windows 11 and removes the apps Dell installed, rather than restoring the computer exactly as it came.3
How to factory reset a Mac
Newer Macs have a feature called Erase All Content and Settings. It needs macOS Monterey 12 or later and either a Mac with Apple silicon or an Intel Mac with the Apple T2 Security Chip.4,5
Choose Apple menu > System Settings.4
Click General in the sidebar, scroll down and click Transfer or Reset.4,5
Click Erase All Content and Settings.4
Enter your Mac's administrator password, and your Apple Account password if asked.4,5
Review what will be removed, then confirm with Erase All Content & Settings and follow the prompts.4,5
This erases all your files, apps, settings and user accounts. It also signs you out of iCloud and other Apple services and turns off Find My and Activation Lock, so the next owner can set the Mac up as their own.5
After the erase, the Mac restarts. It may ask you to reconnect a Bluetooth keyboard or mouse and to choose a Wi-Fi network.4 If you're selling or trading it in, don't continue through the setup screens: press and hold the power button until the Mac turns off, so the new owner starts from scratch.4
On macOS Monterey, the option is in a slightly different place: open System Preferences, then choose Erase All Content and Settings from the System Preferences menu in the menu bar.4
Older Macs
If your Mac can't use Erase All Content and Settings, Apple suggests doing it in steps: sign out of iCloud and of Messages, sign out of iTunes on macOS Mojave or earlier, and unpair any Bluetooth accessories you're keeping. Then start up from macOS Recovery, erase the drive with Disk Utility and reinstall macOS. On Intel Macs, Apple also recommends resetting NVRAM.6
When to get help
If the reset fails part-way through, keeps restarting, or your PC asks for a BitLocker recovery key you don't have, contact your computer's manufacturer or Microsoft Support.1,3 For a Mac that won't start up or erase, Apple Support can help, and if you have AppleCare you can cancel or transfer the plan before you sell.6 If you're also handing over a phone, follow our checklist for selling or recycling an old phone.
Common questions
Will a factory reset remove viruses?
Remove everything reinstalls Windows and deletes your apps and files, so unwanted software installed on the computer is removed along with everything else.1 Restoring old files from a backup could bring a problem file back, so only restore what you need.
Will I lose the latest Windows updates?
A reset reinstalls Windows rather than going back to an old setup. Cloud download includes the latest updates, while Local reinstall may not, so check Windows Update afterwards.1 If an update is stuck, see our guide to Windows Update stuck before you reset.
How long does a factory reset take?
It depends on the computer and the options you choose. Cleaning the drive takes noticeably longer than a quick reset, and Microsoft warns the screen may stay black for more than 15 minutes during the process.1
