A journal entry for the sale of property does four things in one stroke: it debits the cash you received, debits accumulated depreciation to clear it off the books, credits the property account for its full recorded cost, and books a gain (as a credit) or loss (as a debit) to make the entry balance. If a mortgage gets paid off at closing or you carry back a note for the buyer, those show up as additional debits, but the gain-or-loss logic does not change.
The mechanics are simple once the numbers are right. Most errors come from the preparation, not the entry itself.
The Five Numbers You Need Before Booking It
Pull these figures from your fixed asset records and the closing statement:
- The property’s original recorded cost.
- Capitalized improvements added to basis over the years (new roof, HVAC replacement, added square footage, and similar items that were capitalized rather than expensed).
- Total accumulated depreciation booked against the property through the sale date.
- The gross sale price on the closing statement.
- Direct selling expenses: broker commissions, legal fees, title insurance, transfer taxes.
Original cost plus capitalized improvements is your adjusted cost basis. Adjusted cost basis minus accumulated depreciation is book value, which is the number the disposal entry will remove from your balance sheet. Gross sale price minus direct selling expenses is your net proceeds. The IRS treats selling expenses as a reduction of the amount realized rather than a separate deduction.1Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets
Net proceeds minus book value is your gain (if positive) or loss (if negative). That is the plug figure in the entry.
Update Depreciation Through The Closing Date First
This is where the entry most often goes wrong. If the sale closes partway through your fiscal year, record a depreciation entry covering the period from the start of the year (or your last depreciation posting) through the closing date before you record the disposal. Skip it and your accumulated depreciation balance is understated, book value is overstated, and the gain or loss will be off by the same amount.
Two conventions are common. One records depreciation to the nearest month, giving a full month for any month the asset was held fifteen days or more. The other is the half-year convention, which assigns six months of depreciation to any asset disposed of during the year regardless of the closing date. Your depreciation policy dictates which to use. Book the catch-up entry, then move to the disposal.
The Basic Entry: A Gain Example
Take a property with an adjusted cost of $600,000 and accumulated depreciation of $150,000. 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 |
The gain is a credit to a non-operating income account. Both columns total $700,000.
The Basic Entry: A Loss Example
Same pattern, different plug. A property with an adjusted cost of $400,000 and accumulated depreciation of $80,000 has a book value of $320,000. It sells for $280,000 cash after costs. The $40,000 shortfall is a loss, and it sits on the debit side.
| 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 |
Without the $40,000 loss debit, the entry would not balance. The loss fills the gap between what came in plus the depreciation you cleared, and the full cost coming off the books.
Where Closing Costs Go
Seller-paid closing costs (commissions, legal fees, title charges, transfer taxes) do not get their own expense line in the disposal entry. They reduce the cash figure. If the property sells for $500,000 gross and $25,000 goes to closing costs, you debit Cash for $475,000. That reduction automatically shrinks any gain or enlarges any loss by the same amount, which matches the IRS treatment of selling expenses as a reduction of the amount realized.1Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets
Adding A Mortgage Payoff
When an outstanding mortgage is paid off at closing, the sale eliminates a liability that has been sitting on your books. You add a debit to Mortgage Payable (or Notes Payable) for the remaining balance to zero it out. The Cash debit then reflects only what actually landed in your account after the payoff and closing costs.
Take a property with an adjusted cost of $400,000, accumulated depreciation of $100,000, and an outstanding mortgage of $180,000. It sells for $350,000 gross with $15,000 in closing costs. Net proceeds are $335,000. After the $180,000 mortgage payoff, $155,000 is deposited 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 is still net proceeds ($335,000) minus book value ($300,000), or $35,000. The mortgage payoff does not change the gain or loss. It only changes how the debit side splits between cash you keep and debt you extinguish.
When You Finance The Buyer
If you carry back a note for part of the purchase price, the debit side splits again. Instead of one large Cash debit, you debit Cash for the down payment and debit Notes Receivable for the loan amount. Cash plus Notes Receivable equals the net proceeds, and the gain or loss calculation is unchanged.
On a $400,000 net sale with $100,000 down and a $300,000 seller note, you debit Cash $100,000 and Notes Receivable $300,000. The rest of the entry is the same as any other disposal.
Seller financing raises a separate tax question. 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 Qualifying sellers recognize gain proportionally as payments come in, using a gross profit ratio (total gross profit divided by total contract price) applied to each year’s collections, and report the results 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.
Fully Depreciated Property
When a property’s accumulated depreciation equals its adjusted cost, book value is zero and every dollar of net proceeds is a gain. The entry still follows the same pattern.
A building with an adjusted cost of $200,000, fully depreciated, 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 PP&E credit are mirror images, wiping the asset off the books. Cash and Gain balance each other. The tax consequences are worth watching here because the entire gain is attributable to depreciation previously claimed.
Book Entry Versus Tax Treatment
The journal entry produces a single gain or loss number on your books. The tax return handles the layers separately, and none of it flows back into your general ledger.
Depreciable real property used in a trade or business and held more than a year is Section 1231 property.4Office of the Law Revision Counsel. 26 U.S. Code 1231 – Property Used in the Trade or Business and Involuntary Conversions Net Section 1231 gains for the year are treated as long-term capital gains; net Section 1231 losses are treated as ordinary losses.
Before any of the gain reaches capital gains rates, depreciation recapture applies. All or part of a gain on depreciable property can be recharacterized as ordinary income to the extent of prior depreciation.1Internal Revenue Service. Publication 544 (2025), Sales and Other Dispositions of Assets For real property (Section 1250 property), the portion of gain attributable to depreciation that would have been claimed under the straight-line method is unrecaptured Section 1250 gain, taxed at a maximum rate of 25% instead of the lower long-term capital gains rates that apply to the remaining gain.5Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Sales of business property are reported on IRS Form 4797, with the routing among Parts I, II, and III depending on holding period, property type, and whether the transaction produced a gain or a loss.6Internal Revenue Service. 2025 Instructions for Form 4797 The split between ordinary recapture and capital gain lives entirely on the tax return. Your books show one gain or loss line, calculated exactly as the examples above.