How Am I Taxed When I Sell My Business? Entity Type and Allocation

How you are taxed when you sell your business comes down to two decisions made during deal negotiations: whether the transaction is structured as an asset sale or a stock sale, and what type of entity you own. A clean stock sale of a long-held business can cost roughly 20% in federal capital gains tax. A C-Corporation asset sale can push the combined federal rate close to 40% after double taxation and surtaxes. Same business, radically different outcomes.

The pieces below walk through what actually drives your bill, in the order the choices get made.

Asset Sale or Stock Sale

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

In an asset sale, you keep the legal entity and sell individual pieces of it: equipment, inventory, real estate, customer lists, goodwill. The purchase price gets divided among those assets, and different asset types are taxed at different rates. The entity receives the cash, and if the entity is a C-Corporation, proceeds must then flow to the owners, triggering a second layer of tax.

In a stock sale, you sell your ownership interest directly to the buyer. 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, the 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 in the 20% bracket.

Buyers generally prefer asset sales because they can write up the tax basis of what they acquire and generate larger depreciation and amortization deductions going forward. Sellers generally prefer stock sales because the tax result is cleaner and often lower. Which side wins that argument shows up in the purchase price.

How Your Entity Type Sets the Ceiling

The legal form of your business determines whether sale proceeds get taxed once or twice, and whether portions get taxed at ordinary income rates instead of capital gains rates.

C-Corporations

C-Corporations create the most painful result 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 is left gets distributed to shareholders as a liquidating distribution and taxed again at the shareholder level, typically at the 20% qualified dividend or capital gains rate for top-bracket owners. Run the math on a dollar of profit: 21 cents to corporate tax, and roughly 15.8 cents of the remaining 79 cents to individual tax. Combined federal rate near 36.8%, before any surtaxes.

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

The Personal Goodwill Option

C-Corp owners stuck with an asset sale have one planning tool that can meaningfully reduce the double-tax hit: 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 sells it individually and pays one layer of capital gains tax on that slice.

Tax courts have recognized the strategy, but the IRS scrutinizes it. Courts look at whether the owner signed an employment agreement or noncompete with their own corporation that would have transferred the goodwill to the company, and whether client relationships were institutionalized through corporate contracts rather than personal ones. If either is true, the IRS will argue the goodwill already belonged to the corporation. This needs to be planned well before the sale.

S-Corporations, Partnerships, and LLCs

Pass-through entities avoid the double-tax problem. Profits flow through to owners and get 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 entity, the gain flows through to owners based on ownership percentages, and character depends on what was sold. Inventory generates ordinary income. Depreciated equipment triggers recapture. Goodwill produces capital gain. Owners report each category separately.

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

The Section 338(h)(10) Election

When a buyer insists on asset-sale tax treatment but the seller wants the legal simplicity of a stock sale, a 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 everything else. Contracts, licenses, and permits stay with the entity. The buyer gets stepped-up asset basis.

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. The seller ends up with the same tax result as an asset sale, so this isn’t a tax-saving device. It’s a structural tool for closing the gap in negotiations.

How the Purchase Price Gets Allocated

In any asset sale, the total price must be divided among the specific assets the buyer acquires, and that division is where the real tax fight happens. Both sides must agree on the allocation and report it consistently to the IRS on Form 8594, which breaks assets into seven classes.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 capital assets, and the buyer wants value allocated to what they can depreciate or expense quickly.

Inventory

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

Equipment and Depreciation Recapture

When you sell equipment, machinery, or other tangible personal property that you previously depreciated, Section 1245 claws back some of that benefit. Any gain up to the total amount of depreciation you previously claimed 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 exceeding the asset’s original cost qualifies for long-term capital gains rates.

If you took aggressive depreciation, particularly bonus depreciation or Section 179 expensing, expect a larger ordinary income hit on the sale. The depreciation saved tax at ordinary rates on the way in, and the IRS collects at the same rates on the way out.

Commercial Real Property

Real estate follows a different rule. Under Section 1250, gain attributable to depreciation claimed on commercial buildings is taxed at a special 25% rate, called the unrecaptured Section 1250 rate.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses The remaining gain above original cost is long-term capital gain at 0%, 15%, or 20%.

A caution: cost segregation studies done during ownership may have reclassified portions of a building as Section 1245 property. Those components face the harsher 1245 recapture rules, not the 25% real property rate.

Goodwill and Other Intangibles

Goodwill is the golden allocation for sellers. It represents the value of the business above the fair market value of its identifiable assets, and gain allocated to goodwill is taxed as long-term capital gain. Customer lists, trade names, and other intangibles generally receive the same treatment. Maximizing the goodwill allocation is the single most effective way to reduce a seller’s tax bill in an asset sale.

Covenants Not to Compete

Payments allocated to a covenant not to compete are ordinary income to the seller. There’s a tension in negotiations: the buyer amortizes both goodwill and noncompete covenants over 15 years, so the allocation is indifferent to them. To the seller, every dollar shifted from goodwill to a noncompete costs real money. Push back, but don’t expect zero to hold; the IRS will challenge an allocation that assigns nothing to a meaningful noncompete.

The 3.8% Net Investment Income Tax

On top of capital gains rates, an additional 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 aren’t indexed for inflation.

Whether NIIT applies to your sale depends on how actively you participated. Gain from selling an interest in a business where you materially participated is generally excluded from net investment income.8Internal Revenue Service. Questions and Answers on the Net Investment Income Tax If you were a passive owner who didn’t work in the business day to day, the gain gets hit with the full 3.8% surtax. That’s the difference between a 20% and a 23.8% effective federal rate on your long-term capital gain.

For C-Corp asset sales where proceeds come out as dividends, NIIT stacks on top of the dividend tax, pushing the combined effective federal rate from roughly 36.8% to nearly 40%.

Ways to Defer or Reduce the Tax

Several provisions can reduce or delay the tax hit. Each has eligibility requirements that must be in place before closing.

Qualified Small Business Stock

The Qualified Small Business Stock (QSBS) exclusion is the most powerful benefit available to founders and early investors in C-Corporations. For stock issued after July 4, 2025, the exclusion allows you to exclude 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 holding period. For stock issued after July 4, 2025: 50% of the gain is excluded 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 the time of 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. Certain service businesses, including health, law, engineering, accounting, and financial services, are excluded from qualifying.9Office of the Law Revision Counsel. 26 U.S. Code 1202 – Partial Exclusion for Gain From Certain Small Business Stock

Section 1045 Rollover

If you sell QSBS before hitting the five-year mark for the full exclusion, Section 1045 lets you defer the gain by reinvesting proceeds 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 is reduced by the deferred gain.

Installment Sales

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

Two limitations. The installment method isn’t available for sales of inventory or dealer property.11Office of the Law Revision Counsel. 26 U.S. Code 453 – Installment Method And if the total face amount of your outstanding installment obligations from non-farm property exceeds $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 interest charge erodes the benefit on larger deals.

Earnouts

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

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

How Transaction Costs Are Treated

Legal fees, accounting fees, brokerage commissions, and due diligence costs can easily consume 5% to 10% of a deal’s value. Their tax treatment depends on when they were incurred and what they were for.

Federal regulations generally require you to capitalize costs that “facilitate” the transaction, meaning they directly relate to structuring, documenting, or closing the deal.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. Appraisals, fairness opinions, document preparation, and regulatory approval costs fall into this category.

Costs incurred before you sign a letter of intent, such as early-stage market analysis or preliminary legal consultations, may be deductible as ordinary business expenses if they don’t relate to a specific transaction. Employee compensation spent on the deal, overhead, and costs under $5,000 are also generally deductible.

For success-based fees, like 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 was split.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.

What This Article Doesn’t Cover: State Tax

Everything above is federal tax only. Most states impose their own income tax on business sale proceeds, and rates vary widely. Some tax capital gains at the same rate as ordinary income; some offer partial exclusions or lower rates; a handful have no income tax at all. State taxes can add anywhere from nothing to over 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, and failure to do so can make the buyer liable for the seller’s unpaid state taxes, which is why buyers often insist on clearance certificates as a closing condition.

Self-Employment Tax

Capital gains from selling an ownership interest in a partnership or LLC are generally excluded from self-employment tax. The exclusion covers gains from the sale of capital assets, including the 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 for the exclusion. In an asset sale by a partnership, the inventory slice could be subject to self-employment tax on top of ordinary income tax, adding roughly 15.3% to the bill on that portion of the gain.