Do You Have to Pay Taxes If You Sell a Company? Taxes When Selling a Company: Federal, State, and Structure (2026)
Do you have to pay taxes if you sell a company? Yes, almost always. Taxes when selling a company depend on three things: deal structure, entity type, and the state you live in at closing. In the $10M worked example below, the same sale leaves the owner about $8.2M as a Texas S-corp asset sale and about $4.7M as a California C-corp asset sale, while a C-corp owner whose stock qualifies under Section 1202 (QSBS) can exclude much or all of the gain from federal tax.
Context: Why This Question Matters
Most first-time sellers anchor on the headline number their banker or broker quotes them. The check that actually clears, after federal capital gains, state income tax, depreciation recapture, and any double tax on a C-corp, is often 30 to 45 percent smaller. The IRS treats a business sale as a taxable event under Section 1001 of the Internal Revenue Code, and there is no general exemption for selling the company you built.
What changes is the rate. A poorly structured C-corp asset sale in California can hit a combined effective rate over 50 percent. A C-corp stock sale in Texas that qualifies for Qualified Small Business Stock treatment can bring federal tax on the gain to zero, up to the Section 1202 cap. The difference between those two outcomes on a $20M deal is roughly $10M of personal wealth, all driven by decisions made 6 to 60 months before the closing date.
The Detailed Answer
Yes. Selling a company is a taxable event. Owners usually pay federal long-term capital gains tax on goodwill and stock, ordinary income tax on depreciation recapture and inventory, possibly the 3.8% net investment income tax under Section 1411, and state income tax. C-corp asset sales add a corporate layer of tax before any money reaches the owner.
Three variables drive the answer to whether and how much you pay when you sell a company: deal structure, entity type, and state of residence at closing.
Variable 1: Asset sale versus stock sale. In an asset sale, the buyer purchases specific assets (equipment, inventory, goodwill, intangibles) and the seller allocates the purchase price across those asset classes under IRS Form 8594. Goodwill and going-concern value generate long-term capital gains, taxed at 20 percent federally for high earners. Depreciation recapture on Section 1245 property (equipment, vehicles, software) is taxed at ordinary rates up to 37 percent. Section 1250 real property recapture is capped at 25 percent. Per IRS Publication 544, the allocation is binding on both buyer and seller for tax purposes.
In a stock sale, the buyer purchases the equity of the entity. The seller treats the entire gain as long-term capital gain (assuming the stock was held more than 12 months), generally taxed at 20 percent federal plus the 3.8 percent Net Investment Income Tax under Section 1411 for high earners. Buyers usually resist stock sales because they inherit known and unknown liabilities and lose the step-up in asset basis they would get in an asset deal. That is why most private lower-middle-market deals close as asset sales.
Variable 2: Entity type. A C-corporation faces two layers of tax in an asset sale. The corporation pays 21 percent federal corporate tax on the gain, then the shareholder pays up to 23.8 percent (20 percent capital gains plus 3.8 percent NIIT) on the distribution of the after-tax proceeds. The combined effective rate lands near 39.8 percent federal before any state tax. The major exception is Section 1202 Qualified Small Business Stock, which can exclude the greater of $10M or 10x the original basis from federal capital gains tax if the C-corp stock was held more than 5 years and the company qualified as a QSB (under $50M in gross assets when the stock was issued, active trade or business, not in a disqualified industry). QSBS is one of the most valuable planning tools in the code.
An S-corporation or LLC taxed as a partnership is a pass-through. The gain flows to the owner’s personal return once, taxed at 20 percent federal capital gains for goodwill and intangibles, ordinary rates for recapture and inventory. There is no entity-level federal tax. An S-corp selling stock can also elect Section 338(h)(10), which treats the stock sale as an asset sale for tax purposes, giving the buyer the asset step-up they want while the seller still signs one transaction. Most strategic and private equity buyers will require this election if the target is an S-corp.
Variable 3: State tax. California taxes capital gains at ordinary rates up to 13.3 percent. New York hits 10.9 percent at the top bracket. New Jersey reaches 10.75 percent. Minnesota and Oregon both clear 9 percent at the top bracket, while Hawaii caps long-term capital gains at 7.25 percent (Hawaii Department of Taxation). Per the Tax Foundation 2026 state rate report, nine states have no income tax: Florida, Texas, Nevada, Washington, Tennessee, South Dakota, Wyoming, Alaska, and New Hampshire (whose interest and dividends tax was repealed starting in 2025). Washington is the exception for sellers: it levies a separate excise tax on large long-term capital gains, with a deduction for qualifying family-owned small businesses (Washington Department of Revenue). State of residence is determined at the moment of closing, which is why some owners relocate to a no-tax state 12 to 24 months before signing an LOI. The IRS and aggressive state revenue departments do scrutinize residency changes timed to a liquidity event, so the move has to be real.
2026 Federal Capital Gains Rates When Selling a Company
Most of the gain on a company sale is long-term capital gain if you held the business more than a year. The federal rate depends on your total taxable income in the year of sale, including the gain itself. For tax year 2026, the thresholds are set by IRS Revenue Procedure 2025-32:
| Federal rate on long-term gains | Single filers, taxable income | Married filing jointly, taxable income |
|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 |
| 15% | $49,451 to $545,500 | $98,901 to $613,700 |
| 20% | Over $545,500 | Over $613,700 |
Three adjustments change the real rate:
- Net investment income tax. Section 1411 adds 3.8% on investment income when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers. Those thresholds are fixed in the statute and not indexed for inflation. An owner who materially participates in an S-corp or partnership can often exclude the gain on active business assets from this tax, so confirm your status with your CPA.
- Ordinary income pieces. Depreciation recapture, inventory, receivables and payments for consulting or a non-compete are taxed at ordinary rates up to 37% federally (the top 2026 bracket in IRS Revenue Procedure 2025-32), not at capital gains rates.
- State tax. Most states tax capital gains as ordinary income, so the state rate sits on top of the federal rate.
A quick example of how the brackets work: a married couple with $100,000 of other taxable income who sell a business for a $300,000 long-term gain has $400,000 of total taxable income, all below the $613,700 threshold in the table. The federal capital gains tax is 15% of $300,000, or $45,000, before any net investment income tax or state tax. On a multimillion-dollar sale, nearly all of the gain lands in the 20% bracket, which is why the worked example below uses 20%. The 3.8% net investment income tax is left out because an owner-operator who materially participates in the business is generally outside it (IRC Section 1411(c)).
Worked Example: $10M Asset Sale of an S-Corp Manufacturer in Texas
Consider an owner-operator manufacturing business in Houston, organized as an S-corp, sold to a strategic buyer for $10M cash at closing. The Form 8594 allocation breaks down as: $7M goodwill and intangibles, $2M property and equipment (with $500K of accumulated depreciation since purchase), and $1M working capital (accounts receivable and inventory at book value).
| Component | Allocation | Tax Treatment | Federal Tax |
|---|---|---|---|
| Goodwill | $7,000,000 | Long-term capital gain, 20% (no NIIT for a materially participating owner, IRC Section 1411) | $1,400,000 |
| PP&E gain above basis | $1,000,000 | LTCG, 20% | $200,000 |
| Depreciation recapture | $500,000 | Ordinary, 37% | $185,000 |
| Working capital | $1,000,000 | Sold at book, no gain | $0 |
| Federal total | $10,000,000 | $1,785,000 | |
| Texas state tax | 0% personal income | $0 | |
| Net proceeds | $8,215,000 |
Run the same deal in California and the seller adds roughly $1.13M of state tax ($8M of capital gain plus $500K of ordinary recapture, $8.5M in total, all taxed at 13.3 percent), dropping net proceeds to around $7.08M. Same headline price, $1.13M difference, driven entirely by zip code.
Now run the same deal as a C-corp asset sale in California with no QSBS. The C-corp pays 21 percent federal plus 8.84 percent California corporate tax on the $8.5M gain (roughly $2.54M), leaving $7.46M to distribute. The shareholder pays 23.8 percent federal plus 13.3 percent California on the distribution (roughly $2.77M), netting $4.69M. The worked example shows the owner keeps about 47 percent of the same $10M sale, a 53 percent erosion. Source: IRS Pub 544 allocation rules, California FTB Form 540 capital gain treatment, IRC Section 1411 NIIT.
What Most Owners Get Wrong
Misconception 1: “Capital gains tax is 15 or 20 percent, so I’ll keep 80 percent.” That ignores the 3.8 percent NIIT, state income tax, depreciation recapture taxed at ordinary rates, and any C-corp double tax. The all-in effective rate on a typical private company sale runs 25 to 50 percent, not 20 percent. The 15 percent bracket only applies below $613,700 of total taxable income for married-filing-joint in tax year 2026 (IRS Revenue Procedure 2025-32), which most sellers blow past in the year of sale.
Misconception 2: “I’ll just sell stock and pay 20 percent.” Buyers will discount a stock deal by 10 to 25 percent of headline price to compensate for inheriting unknown liabilities and losing the asset step-up. The pre-tax gap often wipes out the post-tax savings, unless the seller has QSBS or another structural reason buyers will pay parity. The Section 338(h)(10) election bridges this for S-corps but accelerates the gain into the year of sale and can recharacterize portions as ordinary income.
Misconception 3: “I’ll move to Florida the month before closing and dodge state tax.” California, New York, and New Jersey have aggressive residency audit programs and apply a multi-factor domicile test (driver’s license, voter registration, primary residence, where your dog and accountant live, where you spent the most nights). A move 6 weeks before signing an LOI almost always fails. A move 18 to 24 months before, with a clean factual record, generally holds. The IRS and state authorities also apply “source income” rules to gain from in-state businesses, which can override residency in some cases.
How CT Acquisitions Approaches This
CT Acquisitions is an M&A advisory firm that works both sides of the table. No fee to you on buy-side introductions; sell-side mandates are paid on success at closing. Either way, the number that matters is your after-tax net, not the headline price: a higher-priced C-corp asset sale can leave an owner with less than a lower-priced S-corp stock sale with a 338(h)(10) election.
Whether we represent the seller or the acquirer, we model both sides of the tax outcome and proactively structure offers (asset versus stock, 338 elections, earnout deferral, installment notes under Section 453, rollover equity) that maximize seller net while staying inside the buyer’s IRR. Sellers thinking about an exit in the next 12 to 36 months can book a free consultation to walk through their entity type, basis, and state situation before they sign anything binding.
Related Questions
How can I reduce or defer taxes when I sell my company?
Five tools cover most situations: Qualified Small Business Stock under Section 1202 (up to $10M federal exclusion for qualifying C-corp stock held 5+ years), installment sales under Section 453 (spreads gain over multiple tax years), Opportunity Zone investment (defers and partially eliminates gain rolled into a QOF within 180 days), ESOP rollover under Section 1042 (defers all gain when 30%+ sold to an employee stock ownership plan and proceeds rolled into qualified replacement property), and Charitable Remainder Trusts. See our deeper breakdown at how to avoid capital gains tax on a business sale.
Is the sale of a business considered ordinary income or capital gain?
Both, in most cases. Per IRS Form 8594, the purchase price is allocated across asset classes. Goodwill, going-concern value, customer lists, and most intangibles produce long-term capital gain. Inventory, accounts receivable, depreciation recapture on equipment, and any consulting or non-compete payments produce ordinary income taxed at rates up to 37 percent federally. The split typically lands 70 to 85 percent capital gain and 15 to 30 percent ordinary on a service or distribution business, with higher ordinary share when there is heavy depreciated equipment.
Do I pay taxes on the sale price or just the profit?
Just the profit, technically the gain over your tax basis. Basis is what you paid for the business or assets, plus capital improvements, minus depreciation already taken. An owner who started a company from scratch with no cash investment has roughly zero basis, so almost the entire sale price is taxable gain. An owner who bought the business for $3M and sells for $8M has $5M of gain. Depreciation taken over the holding period reduces basis dollar for dollar and gets recaptured at ordinary rates on sale.
When do I have to pay the tax on a business sale?
For an all-cash deal closing in 2026, the tax is due with your 2026 federal return by April 15, 2027, with quarterly estimated payments potentially required in Q3 and Q4 of 2026 to avoid underpayment penalties. For an installment sale under Section 453, you pay tax pro-rata as you receive payments over multiple years. For an earnout, the tax timing follows the payment timing under installment rules, though imputed interest under Section 483 can complicate the allocation.
Does it matter if my company is an LLC, S-corp, or C-corp when I sell?
Yes, more than almost any other variable. LLCs taxed as partnerships and S-corps are pass-throughs with single-layer tax. C-corps face double tax in an asset sale unless QSBS applies. The entity choice you made at formation can cost or save 15 to 25 percentage points of your sale proceeds. Conversion from C-corp to S-corp triggers a 5-year built-in gains tax window under Section 1374, so the planning has to start years before the sale.
What to Do Next
The single highest-return hour you can spend before selling a company is with a transaction-experienced CPA or tax attorney reviewing your entity type, basis, state of residence, and likely deal structure. If you are 12 to 36 months from an exit, that conversation can change your net by 7 figures. If you are 30 days from signing an LOI, your options are narrower but still worth modeling.
Thinking about selling your company in the next 12 to 36 months?
CT Acquisitions is an M&A advisory firm that works both sides of the table. No fee to you on buy-side introductions; sell-side mandates are paid on success at closing. We will walk through your entity type, basis, state situation, and likely deal structure before you sign anything binding, and tell you straight whether your after-tax net justifies a sale now or 18 months from now.
Book a Free Consultation