Skip to main content

Capital Gains on the Sale of a Business: Federal Tax Implications

By Sparkwise Editorial Team · Updated November 6, 2026

Selling a business typically generates multiple types of taxable income at once: ordinary income from depreciation recapture,[2] 25% unrecaptured Section 1250 gain on real estate,[3] and long-term capital gain on goodwill and appreciated assets. The total effective tax rate depends heavily on the sale structure (asset sale vs. stock sale), the types of assets sold, and whether installment sale treatment or QSBS exclusions apply.

Asset Sale: Taxing Each Asset Separately

In an asset sale, the buyer and seller agree on the allocation of the purchase price across asset categories, reported on IRS Form 8594[6] (Asset Acquisition Statement). The allocation determines the tax character of gain for the seller:

  • Class I (Cash): No gain or loss
  • Class II (Certificates of deposit, readily marketable stock): Capital gain
  • Class III (Accounts receivable): Ordinary income (face value)
  • Class IV (Inventory): Ordinary income
  • Class V (Machinery, equipment, furniture, vehicles — §1245 property): Ordinary income up to prior depreciation (§1245 recapture),[2] then §1231 gain[1]
  • Class VI (Intangibles under IRC §197): Ordinary income up to amortization recapture, then §1231 gain[1] or capital gain
  • Class VII (Goodwill): Capital gain — typically the most favorable category

Buyers generally prefer to allocate purchase price to depreciable assets (Classes V and VI) for future depreciation deductions; sellers prefer goodwill (Class VII) for capital gain treatment. The allocation must be arm's-length and both parties must report consistently.

Depreciation Recapture: The Hidden Ordinary Income

If you depreciated equipment over its useful life, the IRS "recaptures" those deductions when you sell at a gain. Section 1245 applies to personal property (equipment, vehicles, machinery):

Example: You purchased equipment for $100,000, took $60,000 in total depreciation, and sell for $90,000. Adjusted basis = $40,000. Total gain = $50,000. §1245 recapture = $50,000 (all gain up to prior depreciation of $60,000) taxed as ordinary income. No §1231 capital gain component (the gain did not exceed the recapture amount).

If you had sold for $120,000 instead: total gain = $80,000. §1245 recapture = $60,000 (prior depreciation) ordinary income. §1231 gain = $20,000 (excess above recapture) taxed at long-term rates.

Stock Sale: Cleaner Capital Gain Structure

When the seller owns a corporation and sells the stock (not the underlying assets), the seller recognizes a single gain: stock sale proceeds − stock basis. For C-corp stock held over one year, this is long-term capital gain taxed at 0%/15%/20% rates. No depreciation recapture applies at the stock level (recapture was embedded in the corporation's assets but does not "pass through" to the shareholder on a stock sale). This is why stock sales are typically preferred by sellers and asset sales preferred by buyers.

For S-corporation stock sales, the rules are more complex due to inside gain built into assets. An S-corp may recognize built-in gains tax if the S-corp was converted from a C-corp within the prior 5 years (IRC §1374).

Section 1202: Qualified Small Business Stock Exclusion

If you own stock in a qualifying C-corporation (QSBS under IRC §1202)[4] and meet the requirements, you may exclude up to 100% of the gain on the sale:

  • Domestic C-corporation during substantially all of your holding period (active business requirement)
  • Aggregate gross assets at the time the stock was issued of no more than $50 million (stock issued on or before July 4, 2025) or $75 million (stock issued after July 4, 2025)[4]
  • Stock acquired at original issuance (not secondary market)
  • Holding period: more than 5 years for stock issued on or before July 4, 2025; for later-issued stock, 3 years (50% exclusion), 4 years (75%) or 5 years (100%)[4]
  • You are not a corporation
  • The business is a qualified trade or business (most technology, manufacturing, and product companies qualify; professional services like law, consulting, finance, and restaurants typically do not)

The per-issuer exclusion cap is the greater of $10 million or 10× your adjusted basis for stock issued on or before July 4, 2025, and the greater of $15 million (inflation-indexed after 2026) or 10× basis for stock issued after that date, under changes made by the One Big Beautiful Bill Act.[4] Excluded gain is not subject to the 3.8% NIIT; under the 50% and 75% tiers, the non-excluded portion is taxed at up to 28%.[4] This is one of the largest single tax preferences in the IRC for startup founders and early investors.

Installment Sales: Spreading the Tax Over Time

If the buyer pays over multiple years (seller financing), the seller can report gain proportionally as payments are received (IRC §453).[5] The gross profit ratio = gross profit ÷ contract price. Each payment × gross profit ratio = recognized gain. This allows tax deferral and potentially keeps income in lower brackets across multiple years. However, depreciation recapture under §1245 and §1250 must be reported in full in the year of sale — it cannot be spread across installment payments.[2][3]

Use our capital gains tax calculator to model the federal and state capital gains tax on a business sale — enter total gain, basis, and income level for your estimated liability.

Frequently Asked Questions

Sources

  1. IRC §1231 — Property used in the trade or business (§1231 gain/loss character)
  2. IRC §1245 — Gain from dispositions of certain depreciable property (ordinary recapture)
  3. IRC §1250 — Gain from dispositions of certain depreciable realty (§1250 recapture and 25% rate)
  4. IRC §1202 — Partial exclusion for gain from certain small business stock (QSBS exclusion), as amended by the One Big Beautiful Bill Act (P.L. 119-21) for stock issued after July 4, 2025
  5. IRC §453 — Installment method of reporting gain
  6. IRS Form 8594 — Asset Acquisition Statement (purchase price allocation)

Calculate capital gains tax on a business sale

Enter your total gain, income, and state to estimate federal and state capital gains tax — model different sale structures and installment scenarios.

Open Capital Gains Tax Calculator
Run your own numbersCapital Gains Tax Calculator