How to reset your Mac before selling itHow do I clear my Mac so I can sell it? You just have to reformat your hard drive and reinstall a clean version of OS X.
It is that time again. Time to decide whether to keep or replace your Mac laptop or desktop computer. If you are reading this article, chances are you've already come to the decision to replace your Mac, and you're thinking about selling your old model.
The first thing you should do before hitting the streets to sell your old Mac is clear it of any and all personal data. You don't want to accidentally sell your computer to a stranger when you are still logged into iCloud.
Step 1: Back up your Mac
Step 2: Sign out of everything
Step 3: Reformat your hard drive
Reinstall a clean Mac operating system
Step 1: Back up your Mac
If you already have your new Mac on hand, you can transfer all of your data from your old Mac or use an older Time Machine backup. If you don't have your new Mac yet, well ... then you probably shouldn't be selling your old one yet. But, if...
Source:
How to reset your Mac before selling it