Installment Sale Calculator

Home / Articles

Selling a Business: Tax Implications and Capital Gains Explained

By Hans Goldstein · Updated 2026-09-27

The tax on selling a business depends on what you are really selling. In an asset sale, the price is split among inventory, equipment, real estate, goodwill and other assets, and each piece is taxed under its own rule: goodwill and real estate usually as long-term capital gain (0%, 15% or 20% federally), equipment recapture and inventory as ordinary income (up to 37%). In a stock sale, you generally have one capital gain on your shares. The structure and the price allocation often matter more than the headline price.

This guide covers asset sales vs stock sales, how the price allocation works, how each asset is taxed, C corporation double tax, the NIIT, installment sales, California, and a worked $5 million example. To compare a cash sale with seller financing on your own numbers, use the calculator.

Asset sale vs stock sale

Asset sale Stock (or membership interest) sale
What is sold The business's assets, one by one Your ownership in the entity
Who prefers it Usually the buyer (new depreciation, fewer inherited liabilities) Usually the seller (simpler, mostly capital gain)
Seller's tax Each asset taxed on its own character Generally capital gain on the shares
C corporation Tax at the corporation, then again when proceeds are distributed One layer at the shareholder level
Partnership or LLC interest n/a Capital gain, except your share of "hot assets" (recapture, receivables, inventory) is ordinary (§751)

Sole proprietors and single-member LLCs taxed as sole proprietors always have an asset sale for tax purposes: there is no stock to sell.

For S corporations and partnerships, the gain flows through to the owners' returns. For S corporation stock and partnership interests, including how the installment method applies, see installment sales of stock and partnership interests.

Purchase price allocation: where the tax is decided

In an asset sale of a going business, buyer and seller must allocate the price among the assets using the residual method of §1060, and both report it on Form 8594. The price fills seven classes in order:

Class What it holds Seller's tax character (usual)
I Cash and general deposit accounts No gain
II Actively traded personal property, CDs, foreign currency Capital
III Accounts receivable and other debt instruments, mark-to-market assets Ordinary for a cash-method seller whose receivables have no basis
IV Inventory and property held for sale to customers Ordinary
V All other assets: equipment, vehicles, furniture, buildings, land Equipment gain up to depreciation is ordinary (§1245); buildings and land are §1231 with a 25% layer for building depreciation
VI §197 intangibles other than goodwill: customer lists, noncompetes, licenses Depends on the asset; a noncompete payment is ordinary income to you
VII Goodwill and going concern value Usually long-term capital gain

A written allocation both parties sign is generally binding on both (§1060(a)). The buyer wants more on equipment and short-lived assets it can write off fast. You want more on goodwill. Negotiate the allocation with the price, not after closing.

How each piece is taxed

Piece of the sale Federal treatment Can it be deferred on a note?
Inventory Ordinary income No (§453(b)(2)(B))
Equipment gain up to prior depreciation, §179 and bonus Ordinary (§1245 recapture), up to 37% No, taxed in year of sale (§453(i))
Building depreciation (straight line) Unrecaptured §1250 gain, ordinary rates capped at 25% Yes, and it comes out of the first payments (Reg. §1.453-12)
Building and land appreciation §1231 gain, usually long-term capital rates Yes
Goodwill you built yourself Long-term capital gain Yes
Noncompete or consulting paid to you Ordinary income Not sale price; taxed as received or earned

The equipment line is covered in detail in Section 1245 recapture. One more rule: under §1231, if you had net §1231 losses in the prior five years, part of this year's §1231 gain can be treated as ordinary. Your CPA will check.

C corporations: two layers of tax

If your business is a C corporation and you sell assets, the corporation pays tax on its gain at the 21% corporate rate (§11(b)). When the corporation distributes the remaining cash to you, you pay tax again on the distribution. That is why owners of C corporations usually push for a stock sale, and buyers push back.

A possible exception: gain on qualified small business stock (§1202) in a C corporation may be partly or fully excluded if you meet the holding period and other tests. For stock acquired after July 4, 2025, the exclusion can begin after three years of holding; for earlier stock the holding period is more than five years. The per-issuer cap is the greater of $10 million ($15 million for stock acquired after July 4, 2025) or ten times your basis, and the corporation's gross assets must not have exceeded $75 million ($50 million for stock issued before July 5, 2025) when the stock was issued (§1202(a), (b), (d)). The tests are technical. Have your CPA confirm eligibility before you rely on it.

The 3.8% net investment income tax

The 3.8% NIIT (§1411) applies to net investment income for taxpayers above $250,000 of modified AGI on a joint return. Whether your business gain counts depends on whether the business was passive to you:

Worked example: $5 million asset sale

Simple example. Married filing jointly, the owner materially participated, no other income in the sale year, 2026 standard deduction and federal brackets (Rev. Proc. 2025-32). Federal income tax only, cash sale, no selling costs, no state tax.

A business sells its assets for $5,000,000, allocated like this:

Asset Price Basis Gain Character
Inventory $400,000 $300,000 $100,000 Ordinary
Equipment (cost $1,000,000, $800,000 depreciation) $600,000 $200,000 $400,000 All §1245 recapture, ordinary
Building and land ($400,000 straight-line depreciation taken) $1,500,000 $900,000 $600,000 $400,000 unrecaptured §1250 + $200,000 §1231
Noncompete paid to the owner $200,000 $0 $200,000 Ordinary
Goodwill $2,300,000 $0 $2,300,000 Long-term capital
Total $5,000,000 $1,400,000 $3,600,000

That $3,600,000 of income sorts into three rate buckets:

Bucket Amount Federal tax
Ordinary (inventory, equipment recapture, noncompete) $700,000 $171,269 (after the $32,200 standard deduction)
Unrecaptured §1250 (25% cap applies at this income) $400,000 $100,000
Long-term capital gain (all above the 15% band) $2,500,000 $500,000
Total $3,600,000 $771,269

Allocation matters. If the parties could support $100,000 less for equipment and $100,000 more for goodwill, this seller's federal tax would fall by about $17,300 in this example: $100,000 comes out of the 35% ordinary bracket, and the lower ordinary income lets about $45,900 of the capital gain drop into the 15% band. The allocation has to reflect real values; a buyer and seller cannot simply assign numbers.

Seller financing. On a seller note, the inventory and equipment recapture would still be taxed in year one. The noncompete is not part of the sale price for the installment method. The building's 25% layer, the §1231 gain and the goodwill could be spread over the years you are paid. The mechanics and a worked note example are in seller financing a business sale, and the method itself is explained in the installment sale guide.

State tax: California

California taxes capital gains as ordinary income with no lower rate, and adds a 1% surcharge on taxable income over $1 million, which is not doubled for joint filers (R&TC §17043). A California seller with a large one-year gain can reach the top 13.3% state rate on most of it. California also does not follow federal bonus depreciation, so the state gain on equipment is often smaller than the federal gain. See installment sales in California for how payments are taxed if you move after the sale.

Ways to reduce or spread the tax

Bottom line

A business sale is many sales at once. Goodwill and real estate appreciation get capital gain rates and can be spread on a note. Inventory, equipment recapture and noncompete payments are ordinary income, and recapture and inventory are taxed in the year of sale no matter how you are paid. The purchase price allocation, the asset vs stock choice and your state decide most of the bill. Run a cash sale against seller financing in the calculator, and read the free book if the sale includes real estate you rent out.

Questions to ask your CPA

Run your own numbers. Compare a cash sale, seller financing and a structured installment sale side by side, free.

Open the calculator Get the free book

Educational only, not tax, legal or investment advice. Examples are illustrative. Have your CPA or tax attorney review your facts before you act. Hans Goldstein is a licensed insurance agent (CA Insurance License #4273294) and is not a CPA or attorney. He is paid a commission only if a structured installment sale is funded; seller financing pays him nothing. Disclosures.