The journal entry for the sale of property removes the asset’s full cost from your books, clears its accumulated depreciation, records the money coming in, and uses a gain or loss account to make the debits equal the credits. It touches at least four accounts at once because you are unwinding an asset that has sat on your balance sheet and depreciated for years. Get the underlying numbers right, update depreciation through the closing date, and the entry itself is mechanical.
The Numbers You Need Before You Post Anything
Pull five figures from your records and the closing statement before opening the general ledger.
Start with the property’s original recorded cost. Add every capital improvement that was capitalized into basis over the years: a full roof replacement, a new HVAC system, added square footage. Routine maintenance and minor repairs stay out. Original cost plus capitalized improvements gives you the adjusted cost basis, which the IRS defines as acquisition cost plus capital improvements, less casualty losses and other decreases.1Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets
The third figure is total accumulated depreciation booked against the property through the sale date. Adjusted cost basis minus accumulated depreciation equals book value, the unexpensed investment still on your balance sheet.
The last two come from closing. The gross sale price is one. The other is the total of direct selling expenses: broker commissions, legal fees, title insurance, transfer taxes. The IRS treats those selling expenses as a reduction of the amount realized rather than as separate deductions, and your book entry handles them the same way.
Update Depreciation Through the Closing Date First
This is where most disposal entries go wrong. If the sale closes partway through your fiscal year, record depreciation from the last entry through the disposal date before you touch the disposal itself. Skip this step and your accumulated depreciation balance is understated, book value is overstated, and the gain or loss you calculate will be off by the missing months.
Your company’s depreciation policy dictates the method. Some entities record depreciation to the nearest month, treating any month held fifteen days or more as a full month. Others use a half-year convention that automatically assigns six months of depreciation in the year of disposal regardless of the actual closing date. Whichever applies, make that entry, then move to the disposal with an up-to-date accumulated depreciation figure.
Calculating Gain or Loss
Book value is adjusted cost basis minus total accumulated depreciation, including the partial-year entry you just recorded. Net proceeds are gross sale price minus direct selling expenses. Net proceeds minus book value is your gain or loss.
Take a commercial building purchased for $500,000 with $30,000 in capitalized improvements. Adjusted basis is $530,000. With $130,000 of accumulated depreciation, book value is $400,000. Sell it for $475,000 gross with $25,000 in commissions and closing costs, and net proceeds of $450,000 exceed book value by $50,000, a gain. Sell it for $375,000 with the same $25,000 in costs, and net proceeds of $350,000 fall $50,000 short of book value, a loss.
The Entry When There Is a Gain
Assume a property with an adjusted cost of $600,000 and accumulated depreciation of $150,000, so book value is $450,000. It sells for $550,000 cash after closing costs. The $100,000 excess over book value is the gain.
| Account | Debit | Credit |
|---|---|---|
| Cash | $550,000 | |
| Accumulated Depreciation | $150,000 | |
| Property, Plant, and Equipment | $600,000 | |
| Gain on Sale of Assets | $100,000 | |
| Totals | $700,000 | $700,000 |
Two things go on the debit side: the cash received and the accumulated depreciation you are clearing. Two things go on the credit side: the asset’s full cost coming off and the gain. A gain is credited to a non-operating income account, not to revenue.
The Entry When There Is a Loss
Now take a property with an adjusted cost of $400,000 and accumulated depreciation of $80,000. Book value is $320,000. It sells for $280,000 cash after costs. The $40,000 shortfall is a loss.
| Account | Debit | Credit |
|---|---|---|
| Cash | $280,000 | |
| Accumulated Depreciation | $80,000 | |
| Loss on Sale of Assets | $40,000 | |
| Property, Plant, and Equipment | $400,000 | |
| Totals | $400,000 | $400,000 |
The loss sits on the debit side, filling the gap between what you collected plus the depreciation you cleared and the asset’s full cost coming off. Without the $40,000 loss debit, the entry is out of balance.
When the Property Is Fully Depreciated
A fully depreciated property has accumulated depreciation equal to its adjusted cost, and book value of zero. Every dollar of net proceeds becomes a gain. Assume a building with an adjusted cost of $200,000, fully depreciated, that sells for $75,000 cash.
| Account | Debit | Credit |
|---|---|---|
| Cash | $75,000 | |
| Accumulated Depreciation | $200,000 | |
| Property, Plant, and Equipment | $200,000 | |
| Gain on Sale of Assets | $75,000 | |
| Totals | $275,000 | $275,000 |
The accumulated depreciation debit and the property credit are mirror images, wiping the asset off the books. The cash and the gain are mirror images too.
Where Closing Costs Go
Seller-paid closing costs are not expensed as separate line items. They reduce the cash you actually received, which in turn shrinks any gain or enlarges any loss by the same amount. If a property sells for $500,000 gross and you pay $25,000 in commissions and other costs, you debit Cash for $475,000. No separate expense account is needed; the closing costs are already embedded in the disposal calculation through the reduced cash figure.
Adding a Mortgage Payoff
If an outstanding mortgage gets paid off at closing, add one more line to the entry. The mortgage is a liability on your books, and the sale eliminates it. You debit Mortgage Payable (or Notes Payable) for the remaining balance to zero it out, and the Cash debit reflects only what actually landed in your account after payoff and costs.
Take a property with an adjusted cost of $400,000, accumulated depreciation of $100,000 (book value $300,000), and a mortgage balance of $180,000. It sells for $350,000 gross with $15,000 in closing costs, so net proceeds are $335,000. After the mortgage payoff, $155,000 goes to the seller.
| Account | Debit | Credit |
|---|---|---|
| Cash | $155,000 | |
| Accumulated Depreciation | $100,000 | |
| Mortgage Payable | $180,000 | |
| Property, Plant, and Equipment | $400,000 | |
| Gain on Sale of Assets | $35,000 | |
| Totals | $435,000 | $435,000 |
The gain still equals net proceeds ($335,000) minus book value ($300,000). The mortgage payoff doesn’t change the gain; it just changes how the debit side splits between cash in your pocket and debt being eliminated. You received $335,000 of value from the buyer, but $180,000 went straight to the bank.
Adding Seller Financing
If you finance part of the purchase for the buyer, the debit side splits again. Instead of debiting Cash for the full net proceeds, debit Cash for the down payment and debit Notes Receivable for the loan amount. The gain or loss calculation doesn’t change. Cash plus Notes Receivable still equals net proceeds, and the entry still balances.
If a property sells for $400,000 net of costs with $100,000 down and you carry a $300,000 note, you debit Cash for $100,000 and Notes Receivable for $300,000. Everything else stays the same.
Seller financing raises a separate question on the tax side. Under federal law, an installment sale is any disposition where at least one payment arrives after the close of the tax year in which the sale occurs.2Office of the Law Revision Counsel. 26 U.S. Code 453 – Installment Method If the sale qualifies, gain is recognized proportionally as payments come in rather than all at once, and it is reported on IRS Form 6252.3Internal Revenue Service. About Form 6252, Installment Sale Income The installment method applies automatically unless you elect out on the return for the year of sale, and revoking that election later requires IRS consent.
The Book Entry Is Not the Tax Return
The journal entry captures a single gain or loss on disposal. Federal tax treatment layers on top: depreciation recapture may recharacterize part of a gain as ordinary income, the balance of a Section 1231 gain may qualify for long-term capital gains treatment, and business property sales flow through IRS Form 4797.4Internal Revenue Service. 2025 Instructions for Form 4797 None of that changes the entry you post in your accounting system. The split between ordinary recapture and capital gain happens on the tax return, not in the general ledger.