Start with a full backup if you want to keep anything

Before you erase anything, decide what you want to keep. If you have files, photos, or settings you need later, back them up to an external drive or cloud storage first. This takes 30 minutes to a few hours depending on how much data you have, but it prevents the permanent loss of something you'll regret.

Use your laptop's built-in backup tool: on Windows, open Settings > System > Storage > Advanced Storage Options > Backup Options. On Mac, open System Settings > General > Time Machine and connect an external drive. Both will walk you through the process. If you prefer cloud storage, Google Drive, OneDrive, or Dropbox all let you upload files before you wipe the machine. You can also back up to a USB external drive from any electronics retailer — a 1TB drive costs $50 to $80 and holds years of files.

Key Takeaways

  • Back up any files you want to keep before erasing anything, since the deletion process is permanent.
  • Sign out of all accounts — email, cloud storage, social media, banking — before you start the wipe, or the new owner may be locked out of the machine.
  • Use your operating system's built-in reset tool (Windows Reset or Mac Erase and Reinstall) rather than third-party software, because it removes the operating system itself.
  • On Windows, choose "Remove everything" during reset; on Mac, erase the drive first, then reinstall the operating system.
  • After the wipe is complete, turn on the laptop once to confirm it boots to the setup screen, then turn it off before handing it over.

Sign out of every account before you erase

If you don't sign out first, the new owner will inherit your accounts and you'll be locked out of your own devices. Go through Settings and sign out of your Microsoft account (Windows), Apple ID (Mac), Google account, OneDrive, iCloud, and any other cloud services you use. Check your browser too — sign out of email, banking, social media, and any other sites where you stay logged in.

On Windows, open Settings > Accounts and look for "Your info" or "Sign in options" to see what's connected. On Mac, open System Settings > General > Login Items and System Settings > iCloud to disconnect. Spend five minutes clicking through your installed programs — Spotify, Adobe, Microsoft Office — and sign out of those too. The goal is to leave nothing that requires your password. If you use a password manager like 1Password or LastPass, sign out of that as well.

Wipe the drive using your operating system's built-in reset

Windows and Mac both include a reset tool that removes all your files and reinstalls a clean copy of the operating system. This is more thorough than deleting files one by one, because it removes the operating system itself and everything hidden beneath it. Third-party wiping software exists, but the built-in tools are faster, more reliable, and designed specifically for your machine.

On Windows 10 or 11: Open Settings > System > Recovery. Click "Reset this PC" and choose "Remove everything." Windows will ask whether to remove files only or also remove the drive. Choose "Remove files and clean the drive" — this takes longer but is more secure. The process takes 30 minutes to an hour. When it finishes, your laptop will restart and show the Windows setup screen, as if it just came from the factory.

On Mac: Restart your laptop and hold Command + R until you see the Apple logo. This boots into Recovery Mode. Open Disk Utility from the Utilities menu, select your main drive (usually called "Macintosh HD"), and click "Erase." Choose APFS as the format and give it a generic name like "Macintosh HD." After erasing, close Disk Utility and select "Reinstall macOS" from the Utilities menu. This downloads and installs a fresh copy of the operating system. The whole process takes one to two hours depending on your internet speed.

Turn it on once to confirm it boots properly

After the reset finishes, power on the laptop one more time. You should see the initial setup screen — the Windows welcome screen or the Mac setup assistant — which means the wipe worked and the new owner can set it up as their own machine. Don't go through the setup yourself; just confirm it appears, then shut down.

If the laptop doesn't boot to the setup screen, or if it asks for a password, something went wrong. Repeat the reset process. This is rare, but it's worth checking before you hand the machine over. A successful boot to setup takes less than a minute and gives you confidence the machine is ready to sell.

What to do if you forgot to sign out of an account

If you've already wiped the drive and realize you left yourself signed in somewhere, the good news is that the account is no longer on that laptop. The new owner won't have access to your email or cloud storage because the operating system was completely replaced. However, you should still change your passwords for any accounts that were on the machine, just to be safe. This takes 10 minutes and prevents anyone from using old session data if they somehow recover it.

Go to the website for each account — Gmail, Microsoft, your bank, social media — and change the password from a different device. You can also check your account's login history or active sessions to see if anything unusual appears. Most services let you sign out of all devices at once, which is an extra layer of protection.

Selling a Mac with FileVault or a Windows laptop with BitLocker encryption

If you turned on full-disk encryption (FileVault on Mac or BitLocker on Windows), the reset process still works, but you may need your encryption password. On Mac, if you don't have the password, you'll need to use your Apple ID to unlock the drive before you can erase it. On Windows, you may need your Microsoft account password. If you've forgotten either, you can still reset the machine, but the process takes longer because Windows or Mac has to decrypt the drive first.

The safest approach: if you remember your encryption password, use it. If you don't, proceed with the reset anyway — it will work, just more slowly. The new owner will not inherit any encryption, because the drive is completely wiped and reinstalled. You can check whether encryption is on by opening System Preferences > Security & Privacy on Mac, or Settings > System > Device encryption on Windows.

Frequently Asked Questions

Is deleting files one by one enough, or do I need to do a full reset?

Deleting files one by one is not enough. Deleted files can sometimes be recovered with special software, and your accounts will still be signed in. A full reset using Windows Reset or Mac Erase and Reinstall removes everything, including hidden system files and your accounts, and reinstalls the operating system from scratch.

What if I don't have an external drive to back up my files?

Use cloud storage instead. Google Drive, OneDrive, Dropbox, and iCloud all let you upload files for free up to a certain amount. Upload what you need before you start the reset process. You can download them later on any other device.

How long does the whole process take?

Backing up files takes 30 minutes to a few hours depending on how much you have. Signing out of accounts takes 10 to 15 minutes. The actual reset takes 30 minutes to two hours depending on your laptop model and internet speed. Plan for three to four hours total if you're backing up a lot of data.

Will the new owner be able to see my old files after I reset?

No. A full reset removes all files and reinstalls the operating system. The new owner will see a blank machine with only the operating system installed, just like a brand-new laptop from the store.

Do I need to remove the hard drive myself?

No. A software reset is sufficient and is what most buyers expect. You don't need to open the laptop or remove any hardware. If you're concerned about security, a full reset is more thorough than physically removing the drive.