To calculate a gain or loss on the sale of an asset, compare the cash received to the carrying value of the asset. The following steps provide more detail about the process:
If the consideration paid is scheduled to be paid well into the future, it is likely that a component of the sale price actually represents interest income, which you could consider breaking out from the gain or loss calculation and reporting separately.
The result of these journal entries appears in the income statement, and impacts the reported amount of profit or loss for the period in which the transaction is recorded. This gain or loss increases or decreases (respectively) the retained earnings balance reported in the balance sheet, so there is an indirect impact on the balance sheet, too.
ABC Company has a machine that originally cost $80,000 and against which $65,000 of accumulated depreciation has been recorded, resulting in a carrying value of $15,000. ABC sells the machine for $18,000. The entry to record the transaction is a debit of $65,000 to the accumulated depreciation account, a debit of $18,000 to the cash account, a credit of $80,000 to the fixed asset account, and a credit of $3,000 to the gain on sale of assets account. The net effect of this entry is to eliminate the machine from the accounting records, while recording a gain and the receipt of cash.