Capital Gains Tax on Selling a Business: What Gets Taxed?
On this page 4 sections
A proposed sale price cannot determine your federal capital-gains tax by itself. Federal tax treatment begins with what you sold: individual business assets, corporate stock, a partnership interest, or corporate assets followed by a liquidating distribution.
In an applicable asset sale, the analysis goes deeper. The price is allocated among the assets, and each asset has its own selling expense, adjusted basis, gain or loss, and tax character. Inventory can produce ordinary business income. Depreciation can turn gain into ordinary recapture income. Other qualifying business-property gain may enter section 1231 analysis before any amount receives long-term capital-gain treatment. If the buyer pays over time, some results may follow the payment schedule while others remain taxable in the sale year.
That means one negotiated sale can produce several federal tax results, recognized on different schedules. This article explains that framework using the IRS’s machine-shop example. It provides a federal orientation, not an estimate or recommended tax position for your transaction.
What was sold: business assets, corporate stock, a partnership interest, or corporate assets in liquidation?
The federal analysis starts with the legal subject of the sale.
In an asset sale, the business generally isn’t treated as one taxable object. The transferred assets are treated separately when determining gain or loss. A single agreement and total price can therefore lead to multiple property-level calculations.
In a corporate-stock sale, the shareholder begins with the stock being sold. The IRS says a sale of an owner’s corporate stock usually produces capital gain or loss. That starting point differs from a corporation selling its underlying assets.
In a partnership-interest sale, the analysis begins with the ownership interest, which is generally treated as a capital asset. However, the part of the gain or loss attributable to unrealized receivables or inventory receives ordinary treatment. Even a sale that begins with an ownership interest can contain more than one character of income.
A corporate asset liquidation can create two distinct results: one when the corporation disposes of its assets and another when the shareholder receives a liquidating distribution. It shouldn’t be treated as though the shareholder simply sold stock to a buyer.
These distinctions identify the federal starting point; they don’t determine which structure is preferable or calculate the result for a particular seller. For a broader discussion of the practical differences, see asset sale versus stock sale.
The rest of this article follows an asset sale because the IRS’s Publication 537 contains a detailed educational example involving the sale of a machine shop. It shows how one $220,000 price becomes several gains with different character and timing. It isn’t a template or comparable transaction for your company.
How allocation and adjusted basis turn one sale price into separate gains
When a trade or business is sold for a lump sum in a transaction subject to the residual method, the consideration is allocated among the transferred business assets. The total sale price still matters, but it no longer acts as the amount to which one tax rate can be applied.
The IRS machine-shop example begins with a $220,000 total sale price. The example also has $11,000 of selling expense. Because that expense equals 5% of the total price, Publication 537 allocates an amount equal to 5% of each asset’s selling price to that asset. This 5% allocation is a fact of the example, not a general percentage for business sales.
Selected rows show what happens next:
| Asset | Allocated sale price | Selling expense | Adjusted basis | Gain or gross profit |
|---|---|---|---|---|
| Inventory | $10,000 | $500 | $8,000 | $1,500 |
| Land | $42,000 | $2,100 | $15,000 | $24,900 |
| Machine A | $71,000 | $3,550 | $63,800 | $3,650 |
| Goodwill | $18,500 | $925 | $0 | $17,575 |
Each row stands on its own. For the land, subtracting the $2,100 selling expense and $15,000 adjusted basis from the $42,000 allocated price produces a $24,900 gain. Machine A has a much higher allocated price, but its $63,800 adjusted basis and $3,550 selling expense leave only $3,650 of gain.
Goodwill demonstrates another part of the residual method. The example first allocates $201,500 of the price to the assets other than goodwill. The remaining $18,500 is assigned to goodwill. After its $925 selling expense and zero adjusted basis, the example has $17,575 of gross profit on that row.
The important comparison isn’t simply which asset received the largest share of the price. Adjusted basis changes the result. The land and Machine A received allocated prices of $42,000 and $71,000, respectively, yet the land generated $24,900 of gain while Machine A generated $3,650.
Allocation therefore answers only the first property-level question: how much of the negotiated consideration belongs to each asset? Adjusted basis and selling expense then determine the gain or loss for that asset. A closer look at the allocation subject is available in our guide to purchase-price allocation and Form 8594.
Those calculations still don’t tell you how each gain will be taxed. A figure in the gain column isn’t automatically capital gain.
Why business-sale gain is not automatically capital gain
The machine-shop example produces at least three distinct federal character questions: ordinary income from inventory, ordinary income from depreciation recapture, and section 1231 treatment for remaining qualifying business-property gain.
The inventory row produces $1,500 of ordinary business income. It doesn’t enter the installment computation used for the example’s land, building, and goodwill. Calling the entire sale a capital transaction would miss that ordinary-income result.
Machine A reaches ordinary income for a different reason. The machine has $27,200 of depreciation claimed, an adjusted basis of $63,800, and a $3,650 gain after selling expense. Because the gain is less than the depreciation claimed, Publication 537 treats all $3,650 as depreciation-recapture income.
The same treatment applies to all the gain on Machine B and the truck in the example. Their recapture amounts are:
- Machine A: $3,650
- Machine B: $760
- Truck: $799
Together, the three assets produce $5,209 of depreciation-recapture income. This is ordinary income even though the equipment was part of the same $220,000 sale that also included land, a building, inventory, and goodwill.
Depreciation recapture doesn’t necessarily settle the character of every dollar of gain on business property. IRS Publication 544 explains that when depreciable property is sold at a gain, all or part of the gain may be recognized as ordinary income under the recapture rules. Any remaining gain on qualifying property then enters section 1231 analysis.
Section 1231 generally covers real property or depreciable personal property used in a trade or business and held for more than one year. Its result depends on the taxpayer’s broader section 1231 position, rather than on an isolated asset row.
A net section 1231 loss is ordinary. A net section 1231 gain is ordinary to the extent of nonrecaptured section 1231 losses from the previous five years. Any remainder is treated as long-term capital gain.
That sequence matters because “gain” and “capital gain” aren’t interchangeable. The calculation may establish that an asset was sold at a gain, but its tax character can still depend on what the asset was, how much depreciation was allowed or allowable, whether gain remains after recapture, and the taxpayer’s current and prior section 1231 results.
The machine-shop example makes the first two character results explicit: its inventory gain is ordinary business income, and the $5,209 of equipment gain is depreciation-recapture income. The available facts don’t justify assigning one final capital-gain label to all the remaining gain. Section 1231 and any other applicable rules must be resolved before the seller can determine how much, if any, receives long-term capital-gain treatment.
Once the transaction has been divided by tax character, the buyer’s payment schedule introduces a separate question: when are those amounts recognized?
Can seller financing defer tax on a business sale?
Seller financing can spread qualifying gain over the years in which principal payments are received, but it doesn’t necessarily defer every tax consequence from the sale. In a multiple-asset transaction, gain and payments are allocated and figured separately by asset.
The machine-shop example illustrates the split. The buyer pays $100,000 at closing and gives the seller a $120,000 note. Of the total $220,000 selling price, $108,500 belongs to the land, building, and goodwill included in the installment-sale computation:
- Land: $42,000
- Building: $48,000
- Goodwill: $18,500
Those amounts total $108,500, or 49.3% of the $220,000 total price. The inventory, machines, and truck account for the other $111,500, or 50.7%, and are outside this installment computation.
As a result, Publication 537 doesn’t put the full $100,000 down payment into the installment calculation. It multiplies the principal payment by 49.3%:
$100,000 × 49.3% = $49,300
Only $49,300 of the down payment enters the computation for the land, building, and goodwill. The example then applies separate gross-profit percentages for those assets:
| Installment asset | Gross-profit percentage | 2025 installment income |
|---|---|---|
| Land | 22.95% | $11,314 |
| Building | 8.85% | $4,363 |
| Goodwill | 16.20% | $7,987 |
| Total | 48.00% | $23,664 |
The $49,300 installment portion of the down payment therefore produces $23,664 of installment income for 2025. Later principal payments on the buyer note are divided using the same 49.3% allocation before the separate gross-profit percentages are applied.
That calculation doesn’t move every other result onto the buyer note’s schedule. The inventory remains outside the example’s installment computation. So do Machine A, Machine B, and the truck, whose gains are fully treated as depreciation recapture.
Publication 544 states that applicable section 1245 or section 1250 depreciation recapture is taxable as ordinary income in the year of sale, even if no payment is received that year. Whether your transaction has such recapture, how much it has, and whether installment treatment is otherwise available require transaction-specific analysis.
The timing split leads to a practical judgment: we don’t think the percentage of the price you receive in cash is a reliable proxy for the percentage of taxable income recognized that year. In the IRS example, a $100,000 down payment doesn’t become $100,000 of installment-method proceeds. Only $49,300 feeds that computation, while inventory and fully recaptured equipment gain follow different rules.
Seller financing therefore doesn’t turn the entire buyer note into deferred capital gain. It may spread qualifying gain, but the sale must first be separated by asset and character. For the commercial considerations apart from this federal tax framework, see deal terms and payment structure.
An estimate that applies one capital-gains rate to the entire sale price skips the decisions that determine what is taxed and when. Begin with what was sold. For an applicable asset sale, calculate gains separately. Resolve ordinary income, depreciation recapture, and section 1231 treatment. Then determine which amounts may follow the payment schedule and which remain taxable in the sale year.
Only after those questions are answered can the seller’s own facts and applicable rates produce a transaction-specific federal conclusion.
Primary records and practitioner guidance2 sources
- [q030_pub537] Internal Revenue Service — Publication 537, Installment Sales
The machine-shop example used for the article's sale price, selling expense, allocation, basis, gross profit, depreciation recapture, installment-sale percentage, and 2025 installment-income figures. Limit: The publication supplies an educational federal example, not a market comparable, transaction template, taxpayer-specific result, state tax answer, or recommended filing position. Accessed 2026-08-18.
- [q030_pub544] Internal Revenue Service — Publication 544, Sales and Other Dispositions of Assets
Depreciation recapture can produce ordinary income, remaining gain can enter section 1231 analysis, and applicable recapture may be taxable in the sale year even when installment reporting otherwise applies. Limit: The publication does not classify the reader's property, determine section 1231 results, calculate recapture, establish installment eligibility, or choose a tax position. Accessed 2026-08-18.
Read the editorial standards or report a correction.