1. Find the asset's book value as of the sale date. Book value is original cost minus accumulated depreciation. Both numbers live on the fixed asset account in your chart of accounts, or wherever your depreciation schedule tracks them if that's separate from QuickBooks.
2. Record any depreciation that hasn't been posted yet. If depreciation up to the sale date isn't already entered, do that first, debit Depreciation Expense, credit Accumulated Depreciation, so book value is accurate before you calculate what you gained or lost on the sale.
3. Open a journal entry for the sale. Go to + New, then Journal entry.
4. Debit the proceeds and the accumulated depreciation. Debit the bank or Undeposited Funds account for whatever you actually received, and debit the Accumulated Depreciation account tied to this asset for the full balance built up on it, clearing it out.
5. Credit the fixed asset account for its original cost. This removes the asset from your books entirely, not just the depreciated portion of it.
6. Post the plug to a gain or loss account. If the entry doesn't balance yet, that's the gain or loss. Sold for more than book value: add a credit line to a Gain on Sale of Asset income account. Sold for less: add a debit line to a Loss on Sale of Asset expense account. Create either account first if you don't already have it, then save the entry.