How to Record a Gain on Sale of Asset: Journal Entry and Example

To record a gain on sale of asset, the journal entry debits Cash for the proceeds and Accumulated Depreciation for the full balance tied to that asset, credits the asset account for its original cost, and credits Gain on Sale of Asset for the difference. The gain equals sale price minus net book value minus any selling costs. Get the numbers right before you post, and the entry itself is mechanical.

The Entry, With Numbers

Assume equipment that originally cost $50,000, has $33,000 in accumulated depreciation (net book value of $17,000), sells for $25,000, and carries $1,000 in legal fees to close. Net proceeds are $24,000 and the realized gain is $7,000.

  • Debit: Cash — $24,000
  • Debit: Accumulated Depreciation — $33,000
  • Credit: Equipment — $50,000
  • Credit: Gain on Sale of Asset — $7,000

Each line does specific work. The cash debit records what actually hit the bank. Debiting accumulated depreciation zeroes out the contra-asset balance for that piece of equipment. Crediting the equipment account removes the original cost from the books entirely. The credit to Gain on Sale of Asset is the plug that balances the entry and flows to the income statement as revenue for the period.1Lumen One Content. Asset Sale – Financial Accounting

In the ledger memo, include the sale date, the asset ID, and the buyer’s name so anyone reviewing later can trace the entry back to the bill of sale.

Numbers to Pull Before You Post

Four figures drive the entry: original cost from the fixed asset register, current accumulated depreciation from the contra-asset account, the sale price from the bill of sale, and any direct selling costs (broker commissions, legal fees, closing costs). The IRS defines the amount realized as total consideration received plus the fair market value of any property or services and any liabilities the buyer assumes, minus selling expenses.2Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets

Miss a fee and the gain will be overstated. Net book value is original cost less accumulated depreciation; the gain is whatever you receive above that book value after selling costs. With a $50,000 cost, $30,000 in depreciation, a $25,000 sale price, and $1,000 in fees, the arithmetic runs: $25,000 minus $20,000 book value equals $5,000, minus $1,000 in fees leaves a $4,000 gain.

Book Catch-Up Depreciation First

This is where the entry most often goes wrong. If your last depreciation entry was at year-end and you sell the asset mid-year, record the missing months of depreciation before you book the disposal. Otherwise accumulated depreciation is understated and your reported gain is too high.

Take equipment that depreciates $6,000 a year straight-line. Last entry December 31, sale closes June 30. Six months of depreciation, or $3,000, is still owed:

  • Debit: Depreciation Expense — $3,000
  • Credit: Accumulated Depreciation — $3,000

After posting, accumulated depreciation is $33,000 and net book value is $17,000. Now the disposal entry reflects the asset’s true value the day it left your hands. This is why the running example uses $33,000 rather than $30,000.

Two Ways to Handle Selling Expenses

You can net the selling costs against the cash proceeds, as in the entry above, so the debit to Cash reflects what actually arrived. Or you can debit Cash for the full sale price and post the selling expenses as a separate debit to an expense account, which reduces the gain indirectly. Either method produces the same effect on income. The net-proceeds approach is simpler for one-off disposals.

When the Buyer Signs a Note for Part of the Price

If the buyer pays part in cash and finances the rest through a promissory note, replace the missing cash with a debit to Notes Receivable. If the buyer pays $10,000 at closing and signs a $14,000 note, debit Cash $10,000 and Notes Receivable $14,000 instead of a single $24,000 cash debit. The rest of the entry is unchanged. As payments come in on the note, debit Cash and credit Notes Receivable.

If the Sale Produces a Loss Instead

When the sale price falls below net book value, the entry structure flips: instead of crediting Gain on Sale of Asset, you debit Loss on Sale of Asset for the shortfall.3Business LibreTexts. 4.7 Gains and Losses on Disposal of Assets Same asset, but the sale price is $12,000 with $1,000 in selling costs. Net proceeds $11,000, loss $6,000:

  • Debit: Cash — $11,000
  • Debit: Accumulated Depreciation — $33,000
  • Debit: Loss on Sale of Asset — $6,000
  • Credit: Equipment — $50,000

The loss reduces income for the period.

Fully Depreciated Asset

When accumulated depreciation equals original cost, net book value is zero and any proceeds become gain. The accumulated depreciation debit cancels the equipment credit, leaving cash on one side and gain on the other. For a fully depreciated $50,000 machine sold for $3,000:

  • Debit: Cash — $3,000
  • Debit: Accumulated Depreciation — $50,000
  • Credit: Equipment — $50,000
  • Credit: Gain on Sale of Asset — $3,000

A fully depreciated asset still sits on the balance sheet at gross cost offset by accumulated depreciation. It has to be formally removed with a disposal entry when sold or scrapped.

Where the Gain Lands on the Statements

Under ASC 360-10-45-5, a gain or loss on the sale of a long-lived asset that does not qualify as a discontinued operation goes into income from continuing operations before income taxes. If your income statement shows an “income from operations” subtotal, the gain belongs inside it.4Deloitte. 6.3 Income Statement Presentation for Disposals That Are Not Discontinued Operations Some companies present these gains in a non-operating section, particularly when the disposed asset was part of a distinct business. Practice varies, so consistency matters more than which line you pick.

On the balance sheet, both the historical cost and the accumulated depreciation disappear for that asset. Total assets fall by the net book value removed and rise by the cash received, so a gain grows the balance sheet by the amount of the gain. On the statement of cash flows, the full cash from the sale sits under investing activities. Because the gain is already in net income, it must be subtracted from net income in the operating section to avoid double-counting.

Tax Side: Recapture and Form 4797

The accounting gain and the taxable gain come from the same arithmetic, but the tax code adds depreciation recapture. If you deducted depreciation on the asset for years, the IRS wants some of that benefit back on sale.

Most tangible business equipment, vehicles, and machinery are Section 1245 property. On a sale of Section 1245 property at a gain, the portion of the gain attributable to prior depreciation is taxed as ordinary income rather than at capital gains rates. The statute says gain up to the depreciation previously allowed “shall be treated as ordinary income.”5Office of the Law Revision Counsel. 26 U.S. Code 1245 – Gain From Dispositions of Certain Depreciable Property In the running example, $33,000 in depreciation was taken and the gain is $7,000, so the entire $7,000 is recaptured as ordinary income. Only when the gain exceeds total depreciation does the excess reach for capital gains treatment under Section 1231.6Office of the Law Revision Counsel. 26 U.S. Code 1231 – Property Used in the Trade or Business and Involuntary Conversions

Business property sales are reported on IRS Form 4797, not Schedule D. Part III calculates the depreciation recapture, which then flows to Part II as ordinary income; any remaining Section 1231 gain sits in Part I.7Internal Revenue Service. Instructions for Form 4797 Selling expenses reduce the amount realized on the form, the same way they reduce it on the books.2Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets