The sale of a business is recorded with a single compound journal entry on the closing date that debits everything the seller received (cash, notes receivable, assumed liabilities, and accumulated depreciation balances), credits every asset leaving the books at its historical cost, and plugs the difference as a gain or loss on sale. The mechanics are ordinary double-entry bookkeeping. The work is in the preparation: closing the books through the sale date, calculating the gain, and knowing which structure you are actually recording.
Close the Books Through the Sale Date First
The entry will only be as accurate as the balance sheet it draws from. Before you write a single line, update every account to reflect the business as it stands the moment before it changes hands.
Accrue the revenue earned and expenses incurred through closing. Services performed but not yet billed become accounts receivable. Payroll earned but not yet paid becomes an accrued liability. You want a full accrual-basis snapshot, not a cash-basis approximation.
Run partial-period depreciation and amortization through the closing date on every fixed asset and intangible. This reduces net book value, which directly moves the gain figure.
Revalue inventory. Under current GAAP, entities using FIFO or average cost measure inventory at the lower of cost and net realizable value; LIFO users still apply the older lower-of-cost-or-market rule. Write down anything that has slipped below recorded cost.
Then reconcile. Match bank statements to the general ledger, age the receivables and write off what won’t collect, and clear any intercompany discrepancies. Any surprise discovered after closing becomes a restatement.
Calculate the Gain or Loss
The gain is the number that will balance the journal entry, but you compute it first so you know what to plug.
Gain (or Loss) = Total Consideration Received − Net Book Value of Assets Transferred − Transaction Costs
Total consideration is everything of value the seller receives: cash at closing, the present value of any seller financing, and the book value of liabilities the buyer agrees to assume. Assumed liabilities count because the seller is being relieved of an obligation.
Net book value is the historical cost of each transferred asset less accumulated depreciation and amortization, after the pre-sale cleanup. You can get the same figure from the equity side: total assets minus accumulated depreciation minus total liabilities.
Transaction costs are the investment banking, legal, and accounting fees paid to get the deal done. For tax purposes, these facilitative costs reduce the amount realized on the disposition rather than being separately deducted.1GovInfo. 26 CFR 1.263(a)-5 Amounts Paid to Facilitate Certain Transactions For the gain calculation, the effect is the same either way: higher costs, smaller gain.
A Worked Example
A business sells for $15,000,000 in cash with the buyer assuming $4,000,000 in liabilities. Total consideration is $19,000,000. The transferred assets have a historical cost of $20,000,000 and accumulated depreciation of $6,000,000, so adjusted asset value is $14,000,000. Transaction costs are $500,000. The gain is $19,000,000 − $14,000,000 − $500,000 = $4,500,000. That $4,500,000 is the figure that makes the journal entry balance.
The Compound Journal Entry
One entry, posted on the legal closing date, does three things at once: records what the seller received, strips out everything the seller gave up, and recognizes the gain or loss.
On the debit side:
- Cash, for whatever was collected at closing.
- Notes receivable, at present value, for any seller financing.
- Each liability the buyer assumed, debited to remove it from the seller’s books.
- Accumulated depreciation and accumulated amortization, debited to zero out those contra-asset credit balances.
On the credit side:
- Every transferred asset account at its full historical cost (receivables, inventory, fixed assets, goodwill, and anything else going with the business), credited to zero.
- Gain on sale of business, credited for the plug figure. If the deal produced a loss, that goes on the debit side instead.
Using the numbers above:
| Account | Debit | Credit |
|---|---|---|
| Cash | $15,000,000 | |
| Accounts Payable (assumed by buyer) | $4,000,000 | |
| Accumulated Depreciation | $6,000,000 | |
| Accounts Receivable | $1,500,000 | |
| Inventory | $3,500,000 | |
| Fixed Assets (at cost) | $14,000,000 | |
| Goodwill | $1,000,000 | |
| Gain on Sale of Business | $4,500,000 | |
| $25,500,000 | $25,500,000 |
Notice the $500,000 of transaction costs doesn’t get its own line. In this presentation the $15,000,000 cash figure is already net of those costs. If the costs were paid separately, cash would come in at $15,500,000 and the costs would be handled by a separate credit to cash or a reduction of the gain line. Debits must equal credits either way.
Once posted, this entry wipes the entire sold operation off the seller’s financial statements. What’s left on the books is the cash or notes received, the recognized gain, and the equity accounts.
Asset Sale vs. Stock Sale
The entry above assumes an asset sale, where the buyer takes specified assets and specified liabilities. If the deal is structured as a stock sale, the accounting is a different animal, and most of the complexity disappears from the company’s books.
In a stock sale, the buyer purchases the owner’s shares or membership units. The entity itself keeps breathing with every asset, liability, and equity account intact; only the ownership shifts. The individual shareholder records the cash received, removes the cost basis of the shares sold, and books the difference as a capital gain or loss. The company’s general ledger doesn’t change.
Derecognizing individual assets, allocating consideration across them, and recapturing depreciation are asset-sale problems. In an asset sale, total consideration must be allocated across every transferred asset at fair market value under the residual method of IRC Section 1060.2Office of the Law Revision Counsel. 26 USC 1060 – Special Allocation Rules for Certain Asset Acquisitions Both buyer and seller then file Form 8594 to report that allocation with their returns for the year of sale, and the agreement in the purchase contract generally binds both parties.3Internal Revenue Service. Instructions for Form 8594
How the Entry Changes for an Installment Sale
If the seller finances part of the price and at least one payment arrives after the close of the tax year, the deal qualifies for installment reporting. The installment method lets the seller spread gain recognition across the years payments are received. Losses don’t qualify; a loss sale recognizes the full loss in the year of sale.4Internal Revenue Service. Installment Sale Income – Form 6252
The closing entry resembles the cash version with two differences. Notes receivable carries a much larger balance, and a deferred gain account absorbs the portion of the gain tied to future payments. The seller debits cash for the down payment, debits notes receivable for the remaining principal at present value, debits accumulated depreciation and any assumed liabilities, and credits every asset account at cost. The plug then splits between a gain recognized account (the share attributable to the down payment) and a deferred gain on sale account (the share attributable to future payments). As each installment lands, the seller debits cash, credits notes receivable, and recognizes a proportional slice of the deferred gain.
Watch for one trap. Depreciation recapture under Sections 1245 and 1250 cannot be deferred. All recapture must be recognized in the year of sale, no matter how little cash the seller actually received that year.5Office of the Law Revision Counsel. 26 USC 453 – Installment Method Only gain above the recapture figure spreads out. A seller planning to stretch the tax hit over a five-year note can still owe a substantial bill in year one on the recapture piece alone.
Earnouts and other contingent consideration follow installment rules by default.6eCFR. 26 CFR 15a.453-1 – Installment Method Reporting for Sales of Real Property and Casual Sales of Personal Property The seller records a receivable for the estimated earnout at closing and adjusts the gain in later years as contingent payments are received or forfeited. Form 6252 then gets filed for the year of sale and every subsequent year until the obligation is fully paid or disposed of.4Internal Revenue Service. Installment Sale Income – Form 6252
Post-Closing Working Capital Adjustments
Most purchase agreements include a working capital true-up. The seller estimates working capital (current assets minus current liabilities, usually excluding cash) as of closing and that estimate is baked into the price. A few months later the buyer’s accountants verify the actual figure. If actual is lower than estimate, the seller owes the buyer the difference; if higher, the buyer owes the seller.
The follow-up entry is simple. If the seller pays money back, debit gain on sale of business and credit cash. If the seller receives additional consideration, debit cash and credit gain on sale of business.
The timing matters for tax. Where possible, arrange for the true-up calculation and payment to settle before the seller files the return for the year of sale. If the adjustment lands after filing, the seller may need to amend the return and refile Form 8594 with updated allocation figures.3Internal Revenue Service. Instructions for Form 8594
What Happens to the Gain After the Entry Posts
Once the sale entry is on the books, the seller’s entity holds cash or notes, the recognized gain, and its equity accounts. The route from there to a zero balance sheet depends on entity type.
For a corporation, the gain closes to retained earnings at period end, which increases equity available for distribution. When the corporation distributes the remaining cash to shareholders as a liquidating dividend, the entry debits retained earnings and credits cash. Those liquidating distributions get reported on Form 1099-DIV for any shareholder receiving $600 or more, with cash in Box 9 and noncash distributions at fair market value in Box 10.7Internal Revenue Service. Instructions for Form 1099-DIV
For a sole proprietorship, the gain is credited directly to the owner’s capital account, and the distribution entry debits capital and credits cash, bringing capital to zero. Partnerships work the same way, except the gain is allocated among partners according to the profit-sharing ratio in the partnership agreement; each partner’s capital account is credited for their share and then debited when they take their distribution. The target in every case is a zero balance across all accounts once the final distribution is made.
Tax character sits outside the journal entry itself. The books record one aggregate gain, but the IRS treats each asset as separately sold, with ordinary income on inventory and receivables, Section 1245 recapture on depreciable personal property and amortizable Section 197 intangibles including goodwill, and Section 1250 treatment on real property.8Internal Revenue Service. Sale of a Business That analysis drives the return, not the ledger entry, and warrants its own conversation with a tax advisor before closing.