How Am I Taxed When I Sell My Business? Asset vs. Stock, Entity, Recapture

When you sell your business, your federal tax bill is set by two decisions made during the deal: whether the transaction is structured as an asset sale or a stock sale, and what type of entity you own. Those two variables can move the same underlying sale from roughly a 20% federal capital gains hit on a long-held stock sale to nearly 40% on a C-Corporation asset sale once double taxation and surtaxes stack up. Everything else — allocations, elections, deferral strategies — operates inside that frame.

Asset Sale or Stock Sale

Every business sale falls into one of two categories, and the split drives almost everything else.

In an asset sale, you keep the legal entity and sell its individual pieces: equipment, inventory, real estate, customer lists, goodwill. The buyer chooses which assets to acquire, and the purchase price is divided among them. That division matters because each asset class is taxed at a different rate. The proceeds land in the entity first, and any cash that then flows out to the owners can trigger a second layer of tax depending on your entity type.

Buyers usually prefer asset sales. They can write the tax basis of what they buy up to the price they paid, which generates larger depreciation and amortization deductions going forward. That preference gives buyers leverage in negotiations, and sellers often accept the structure in exchange for a higher price.

In a stock sale, you sell your ownership interest directly. The buyer steps into your shoes as the new owner of the entity. You report the difference between what you received and your basis in the stock or membership interest as capital gain. If you held the interest more than a year, that gain is long-term capital gain, taxed at federal rates of 0%, 15%, or 20% depending on your total taxable income.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses Most business sellers land at 20%. The tradeoff is that the buyer inherits the company’s old, low tax basis in its assets, which often shows up as a lower offer than the same buyer would make on an asset deal.

How Your Entity Type Changes the Math

C-Corporations

C-Corporations produce the most painful outcome on an asset sale. The corporation pays tax at the 21% flat federal rate on the gain from selling its assets.2Worldwide Tax Summaries. United States – Corporate Taxes on Corporate Income Whatever remains is distributed to shareholders as a liquidating distribution, taxed again at the shareholder level. For top-bracket shareholders that second layer hits at the 20% qualified dividend or capital gains rate. On a dollar of profit, 21 cents goes to corporate tax and roughly 15.8 cents of the remaining 79 cents goes to individual tax, for a combined federal rate near 36.8% before any surtaxes.

A stock sale avoids this entirely. The corporation itself isn’t selling anything, so there’s no corporate-level tax. The shareholder pays one layer of capital gains tax on the difference between the sale price and their stock basis. That is why most C-Corp owners strongly prefer a stock deal.

Personal Goodwill in a C-Corp Asset Sale

C-Corp owners stuck in an asset sale have one meaningful planning tool: selling personal goodwill directly to the buyer, outside the corporate transaction. The theory is that a company’s value often depends on the owner’s personal relationships, reputation, and expertise. If that goodwill belongs to the owner rather than the corporation, the owner can sell it individually and pay only one layer of capital gains tax on that piece.

Tax courts have accepted this in several cases, but the IRS scrutinizes it. The key factors are whether the owner ever signed an employment agreement or noncompete with the corporation that would have transferred the goodwill to the entity, and whether client relationships were held through corporate contracts rather than personally. If either is true, the IRS will argue the goodwill was already corporate. This strategy has to be planned long before the sale, not assembled at closing.

Pass-Through Entities

S-Corporations, partnerships, and LLCs taxed as partnerships avoid the double tax because profits pass through to owners and are taxed once. The entity files an informational return and each owner receives a Schedule K-1 reporting their share of income, deductions, and gains.3Internal Revenue Service. Partners Instructions for Schedule K-1 (Form 1065)

In an asset sale by a pass-through, the gain flows through to owners by ownership percentage, and its character depends on what was sold: inventory is ordinary income, depreciated equipment triggers recapture, and goodwill is capital gain. Owners report each category on their personal returns.

Selling an ownership interest in a pass-through is generally capital gain, but partnerships and LLCs taxed under Subchapter K carry a wrinkle. Gain attributable to the partnership’s “hot assets,” which include unrealized receivables and inventory, is recharacterized as ordinary income.4Internal Revenue Service. Sale of a Partnership Interest The selling partner calculates that ordinary income portion separately, which reduces the amount qualifying for capital gains rates.

The Section 338(h)(10) Election

When a buyer insists on asset-sale tax treatment but everyone wants the legal simplicity of a stock sale, a joint Section 338(h)(10) election lets both sides treat a stock purchase as an asset purchase for federal tax purposes while keeping it a stock purchase for contracts, licenses, and permits. The buyer gets the stepped-up asset basis. The seller avoids the administrative work of transferring individual assets.

The election is only available when the seller is an S-Corporation or a corporate subsidiary, the buyer is a corporation, and the buyer acquires at least 80% of the stock. Both sides must agree. For the seller, the tax result matches an asset sale, so this is not a tax-saving device. It is a structural bridge when the buyer’s tax position drives the deal.

How the Price Gets Split Among the Assets

In any asset sale, the total price must be divided among the specific assets acquired, and that split is where the real tax fight sits. Both sides must agree on the allocation and report it consistently to the IRS on Form 8594, which breaks assets into seven classes ranging from cash equivalents to goodwill.5Internal Revenue Service. Instructions for Form 8594 – Asset Acquisition Statement Under Section 1060 Seller and buyer have opposite incentives. The seller wants value pushed toward goodwill and other capital assets, which are taxed at lower rates. The buyer wants value on assets that can be depreciated or expensed quickly.

Inventory

Gain from selling inventory is taxed as ordinary income at your full marginal rate. There is no capital gains treatment available. Buyers often push for a higher inventory allocation because they can expense that cost immediately as cost of goods sold on resale.

Equipment and Depreciation Recapture

When you sell equipment, machinery, or other tangible personal property you previously depreciated, the IRS claws back the benefit through recapture. Under Section 1245, any gain up to the total depreciation you previously claimed on the asset is taxed as ordinary income, not capital gain.6Office of the Law Revision Counsel. 26 U.S. Code 1245 – Gain From Dispositions of Certain Depreciable Property Only gain above the asset’s original cost qualifies for the long-term capital gains rate. Aggressive depreciation on the way in, including bonus depreciation and Section 179 expensing, means a larger ordinary income hit on the way out.

Commercial Real Property

Real estate follows a different rule. Under Section 1250, gain attributable to depreciation on commercial buildings is taxed at a special 25% rate, the unrecaptured Section 1250 rate.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses Gain above the building’s original cost is long-term capital gain at the standard 0%, 15%, or 20%. If a prior cost segregation study reclassified components of the building as Section 1245 property, those pieces face the harsher recapture rules described above.

Goodwill and Intangibles

Goodwill is the best allocation for a seller. It captures the value of the business above its identifiable assets, and gain allocated to it is long-term capital gain. Customer lists, trade names, and similar intangibles generally receive the same treatment. Maximizing the goodwill allocation is the single most effective way to lower a seller’s tax bill in an asset sale.

Covenants Not to Compete

Payments for a noncompete are taxed as ordinary income to the seller. The buyer gets the same 15-year amortization for either goodwill or a noncompete, so from the buyer’s perspective the choice is neutral. From the seller’s side, every dollar shifted from goodwill to a noncompete costs real money. Sellers should negotiate this hard, but the IRS will challenge an allocation that assigns zero to a meaningful noncompete.

The 3.8% Net Investment Income Tax

On top of capital gains rates, a 3.8% surtax may apply. The Net Investment Income Tax hits individuals with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly).7Internal Revenue Service. Topic No. 559, Net Investment Income Tax Those thresholds are not indexed for inflation.

Whether the NIIT applies to your sale depends on how actively you worked in the business. Gain from selling an interest where you materially participated, meaning it was not a passive activity, is generally excluded from net investment income.8Internal Revenue Service. Questions and Answers on the Net Investment Income Tax A passive owner, such as an investor who did not work in the business day to day, pays the full 3.8%. The difference is a 20% versus a 23.8% effective federal rate on long-term capital gain. For C-Corp asset sales where proceeds come out as dividends, the NIIT pushes the combined federal rate from around 36.8% toward 40%.

Ways to Reduce or Delay the Tax

Qualified Small Business Stock

The Qualified Small Business Stock exclusion is the most powerful benefit available to founders and early investors in C-Corporations. For stock issued after July 4, 2025, the exclusion covers gain up to $15 million or 10 times your adjusted basis in the stock, whichever is greater.9Office of the Law Revision Counsel. 26 U.S. Code 1202 – Partial Exclusion for Gain From Certain Small Business Stock Stock issued on or before that date follows the prior $10 million cap.

The exclusion percentage depends on the holding period. For stock issued after July 4, 2025: 50% at three years, 75% at four years, and 100% at five years or more.

To qualify, the stock must have been acquired directly from a domestic C-Corporation whose gross assets did not exceed $75 million at issuance (up from $50 million for stock issued before July 5, 2025). At least 80% of the corporation’s assets must be used in a qualified active trade or business throughout the holding period. Health, law, engineering, accounting, and financial services businesses are specifically excluded.

Section 1045 Rollover

If you sell QSBS before hitting the five-year mark for full exclusion, Section 1045 lets you defer the gain by reinvesting into new QSBS within 60 days. The original stock must have been held at least six months.10U.S. Government Publishing Office. 26 U.S. Code 1045 – Rollover of Gain From Qualified Small Business Stock to Another Qualified Small Business Stock Your basis in the replacement stock drops by the deferred gain, which pushes the tax bill forward. Useful when you’re exiting one startup and rolling into another qualifying venture.

Installment Sales

When the buyer pays over time rather than all at closing, the installment method spreads the tax bill across the years you actually receive payments. You calculate the ratio of total profit to total sale price, then apply that percentage to each payment. This can keep you in a lower bracket and smooth out a large event.

Two limits matter. The installment method is not available for inventory or dealer property.11Office of the Law Revision Counsel. 26 U.S. Code 453 – Installment Method And if your outstanding installment obligations from non-farm property exceed $5 million at year-end, you owe an interest charge on the deferred tax.12Office of the Law Revision Counsel. 26 U.S. Code 453A – Special Rules for Nondealers That charge erodes the benefit on larger deals, so the method works best below that threshold.

Earnouts and Contingent Payments

Earnouts tie part of the price to future performance. They are generally governed by the installment rules. If the maximum sale price can be determined, you calculate your gain percentage against that ceiling and apply it to payments as received. If the ceiling is unknown, the cost recovery method lets you recover your entire basis first and pay no tax until payments exceed what you invested.

One detail sellers often miss: the interest component of any deferred payment, including an earnout, is taxed as ordinary income regardless of the underlying asset character. Over several years that interest can be substantial.

Transaction Costs

Legal fees, accounting fees, brokerage commissions, and due diligence work can easily run 5% to 10% of the deal. Federal regulations require you to capitalize costs that “facilitate” the transaction, meaning they directly relate to structuring, documenting, or closing.13U.S. Government Publishing Office. Treasury Regulation 1.263(a)-5 – Amounts Paid to Facilitate an Acquisition of a Trade or Business Capitalized costs reduce your gain rather than producing an immediate deduction.

For success-based fees, such as a broker’s commission paid only if the deal closes, the IRS offers a safe harbor. You can elect to treat 70% of the fee as deductible and capitalize the remaining 30%, without documenting exactly how the advisor’s time split between facilitative and non-facilitative work.14Internal Revenue Service. Revenue Procedure 2011-29 The election is made on the return for the year the fee is paid, with a statement identifying the transaction and the amounts.

State Tax

Everything above is federal. Most states impose their own income tax on business sale proceeds, and rates vary widely. Some tax capital gains at ordinary income rates, some offer partial exclusions or lower rates, and a handful have no income tax at all. State tax can add anywhere from nothing to more than 13% on top of your federal bill. Some states also require sellers to notify the state tax authority of a bulk asset sale before closing; failing to do so can make the buyer liable for the seller’s unpaid state taxes.

Self-Employment Tax

Capital gain from selling an ownership interest in a partnership or LLC is generally excluded from self-employment tax, because the exclusion covers gains from capital assets including your partnership interest itself.15Internal Revenue Service. Self-Employment Tax for Partners Gain attributable to inventory held for sale to customers in the ordinary course of business does not qualify. In an asset sale by a partnership, the inventory piece can face self-employment tax on top of ordinary income tax, adding roughly 15.3% (the combined Social Security and Medicare rate) to that slice.