Wipe your hard drive completely before handing over your computer
Selling a used computer means removing every trace of your files, passwords, and personal information before it leaves your hands. A straightforward delete or even emptying the trash is not enough—deleted files can be recovered with basic tools. You need to overwrite the entire drive so that old data cannot be reconstructed.
The method depends on whether you are selling a Windows PC, Mac, or older machine, and whether you want to keep the operating system installed or wipe it completely. Most buyers expect to receive a computer with an operating system ready to use, so the most common approach is to reset the system to factory settings while securely erasing your data in the process.
Key Takeaways
- Windows and Mac both have built-in reset tools that wipe your data and reinstall the operating system in one process.
- Back up any files you want to keep before you start wiping, because the process is permanent and cannot be undone.
- Encrypting your drive before selling adds a layer of security if the wipe process is interrupted or incomplete.
- For older computers or those with sensitive data history, third-party wiping software overwrites the drive multiple times to prevent recovery.
- Remove your Microsoft or Apple account from the computer before wiping so the new owner can set up their own account without obstacles.
Back up your files before you wipe anything
Before you erase your drive, copy any files you want to keep to an external hard drive, USB flash drive, or cloud storage. This is your only chance to recover them—once the wipe process starts, those files are gone permanently.
Check your Documents, Pictures, Desktop, and Downloads folders. Look for email archives if you use Outlook or Thunderbird (web-based email like Gmail is already in the cloud). If you have financial records, tax documents, or photos stored only on this computer, copy them now. Take a few minutes to search for files you created in the past year and move them to your backup.
Remove your accounts from Windows before resetting
On Windows 10 or 11, go to Settings > Accounts > Your info. Look for any Microsoft account linked to the computer and sign out. If you have a local account (one that does not use an email address), you can leave it, but the new owner will likely want to create their own account during setup.
Next, go to Settings > System > Recovery and select "Reset this PC." Windows will ask whether you want to keep files or remove everything. Choose "Remove everything." You will then choose whether to reinstall Windows from the cloud or use local reinstall files. Cloud reinstall is simpler if your internet connection is stable. Windows will restart several times and take 20 to 45 minutes to complete.
After the reset finishes, the computer will boot to the Windows setup screen, where the new owner can create their own account. Do not create a new account yourself—let the buyer do that so they own it from the start.
Reset your Mac to factory settings
On a Mac running macOS 11 or later, restart the computer and hold Command + Option + R to boot into Recovery Mode. When the Utilities window appears, select "Erase Mac" from the menu. Choose your startup disk (usually called "Macintosh HD") and select the file system format—APFS is standard for newer Macs, HFS+ for older ones.
The erase process takes 5 to 15 minutes. When it finishes, the Mac will restart and show the setup screen. Do not complete the setup—the new owner will do that. If you want to reinstall macOS before selling, you can do that from Recovery Mode, but it is not required; the new owner can reinstall it themselves if needed.
If your Mac is older and does not support Recovery Mode, restart while holding Command + S to enter Single-User Mode, then use the diskutil command to erase the drive. This is more technical; if you are not comfortable with command-line tools, a third-party wiping tool (described below) is safer.
Use third-party wiping software for extra security
If you are concerned about data recovery or selling a computer with a history of sensitive information, use dedicated wiping software that overwrites your drive multiple times. These tools are more thorough than the built-in reset functions.
For Windows, DBAN (Darik's Boot Negator) is free and widely used. read it, burn it to a USB drive, boot from the USB, and let it run. It will overwrite your entire drive with random data several times. The process can take hours depending on drive size. For Mac, Permanent Eraser or find Empty Trash work, though the built-in erase function is usually sufficient.
After using third-party wiping software, you will need to reinstall Windows or macOS if you want the buyer to receive a working operating system. read the installer from Microsoft or Apple, create a bootable USB drive, and install it fresh on the wiped drive.
Encrypt your drive before selling if you are worried
If you want an extra safeguard while the computer is still in your possession, enable full-disk encryption before you wipe it. On Windows, turn on BitLocker (Settings > System > About > Device encryption). On Mac, enable FileVault (System Preferences > Security & Privacy > FileVault). This encrypts all data on the drive with a password only you know.
If the wipe process fails or is interrupted, the encrypted data cannot be read without the password. Once you have confirmed the wipe was successful and the computer is ready to sell, you can disable encryption. This step is optional but adds peace of mind if you are selling a computer that held sensitive information.
Physically remove the hard drive if you are selling for parts
If you are selling a broken computer or parting it out, and you do not trust the wipe process or the buyer, remove the hard drive yourself before handing over the machine. Most laptops and desktops have a removable drive—check your computer's manual or search online for the model number to find removal instructions.
Keep the drive and destroy it yourself using a drill, hammer, or degausser, or take it to an electronics recycler that specializes in find data destruction. This is the only way to may provide your data cannot be recovered, but it also means the buyer receives a computer with no storage, so it is only practical if you are selling the machine as non-functional or for parts.
Frequently Asked Questions
Can deleted files be recovered after I empty the trash?
Yes. Deleting a file only removes the reference to it; the data remains on the drive until it is overwritten. Recovery software can reconstruct deleted files for weeks or months after deletion. A factory reset or dedicated wiping tool overwrites that data, making recovery much harder or impossible.
Should I remove my SSD before selling a laptop?
If you have wiped the drive using the built-in reset tool or DBAN, removal is not necessary. If you are uncomfortable with the wipe process or the drive held very sensitive data, removing and destroying the SSD is the safest option. Many laptop SSDs are straightforward to access—check your model's manual first.
What if I forget to remove my Microsoft or Apple account before wiping?
If you wiped the computer but did not remove your account, the new owner will see a login screen asking for your password when they first turn it on. Contact Microsoft or Apple support with proof of purchase to remove the account remotely, or use the computer's recovery options to reset it again.
Do I need to reinstall Windows or macOS before selling?
No, but most buyers expect a working operating system. The built-in reset tools reinstall the OS automatically. If you use third-party wiping software, you will need to reinstall the OS yourself using a bootable USB drive and the installer from Microsoft or Apple.
How long does a full wipe take?
A Windows or Mac factory reset takes 20 to 45 minutes. DBAN can take several hours depending on drive size and the number of overwrite passes you choose. Plan for at least an hour if you are using third-party software, and do not interrupt the process once it starts.