How to Avoid Capital Gains Tax When Selling a Business
By Hans Goldstein, EA, enrolled agent, admitted to practice before the IRS · Updated
What are the key numbers for avoiding capital gains tax on a business sale in 2026?
| Number | Value | Primary source | As of |
|---|---|---|---|
| Federal long-term rate, married filing jointly | 0% to $98,900 of taxable income, 15% to $613,700, 20% above | Rev. Proc. 2025-32 | 2026 tax year |
| Federal long-term rate, single | 0% to $49,450, 15% to $545,500, 20% above | Rev. Proc. 2025-32 | 2026 tax year |
| Net investment income tax | 3.8% above $250,000 (joint) or $200,000 (single) of modified AGI | IRC 1411 | Thresholds not indexed |
| Qualified small business stock exclusion | 50% at 3 years, 75% at 4, 100% at 5 (stock acquired after July 4, 2025); limit the greater of $15,000,000 or 10 times basis per company | IRC 1202 | Read October 18, 2026 |
| Installment sale interest charge | Applies when installment obligations outstanding at year end exceed $5,000,000 | IRC 453A | Current law |
| Charitable remainder trust | Payout 5% to 50% a year; term up to 20 years; charity's remainder at least 10% | IRC 664(d) | Read October 18, 2026 |
| 1031 exchange deadlines | 45 days to identify, 180 days to receive; real property only | IRC 1031(a) | Read October 18, 2026 |
| Opportunity Zone deferral | Investments before 2027: gain included December 31, 2026. After 2026: fifth anniversary, 10% basis increase (30% rural) | IRC 1400Z-2 | Read October 18, 2026 |
| Federal estate tax basic exclusion | $15,000,000 per person for deaths in 2026 | Rev. Proc. 2025-32 | 2026 |
Can you avoid capital gains tax when you sell a business?
Almost never completely, and anyone promising otherwise is selling something. The honest list has three groups, and which group a strategy sits in matters more than its name.
- Erases the tax on part of the gain. Qualified small business stock (IRC 1202), a hold until death (IRC 1014) and growth inside an Opportunity Zone fund held 10 years (IRC 1400Z-2(c)). Each has hard entry rules, so most sellers do not qualify for any of them.
- Lowers the rate or the base. An installment sale that fills lower brackets each year, a charitable remainder trust that turns part of the gain into a deduction and a gift, a move to a lower-tax state before the sale, and a better allocation of the price.
- Moves the bill to later years. A Section 1042 ESOP sale, a Section 1031 exchange or Section 721 contribution of real estate, and an Opportunity Zone investment of the gain itself. The gain is still there, in a lower basis, until something ends the deferral.
For a seller the useful question is what you net on the same price, not whether the tax can be avoided. Numbers below are for the 2026 tax year (Rev. Proc. 2025-32).
Which strategy fits which business sale? The decision table
| Strategy | What it does to the bill | Fits an operating business sale? | The catch | Deep page |
|---|---|---|---|---|
| Installment sale (IRC 453) | Gain is taxed as principal arrives, so each year's slice can land in a lower bracket (2026 federal rates) | Yes, for goodwill and other capital assets | You hold the buyer's credit. Recapture and inventory profit are taxed in year one. Notes over $5,000,000 outstanding bring an interest charge (IRC 453A) | Installment sale of a business |
| Charitable remainder trust (IRC 664) | Trust sells without paying tax; you are taxed as it pays you; deduction for the charity's share | Yes, if the trust owns the interest before a binding sale. Not S corporation stock | Payout 5% to 50% (IRC 664(d)); charity's remainder must be at least 10%; the asset ends up with charity | Charitable remainder trust |
| Qualified small business stock (IRC 1202) | Excludes 50%, 75% or 100% of the gain at 3, 4 and 5 years (stock acquired after July 4, 2025) | Only a stock sale of an original-issue C corporation share | Cap of the greater of $15,000,000 or 10 times basis per company; asset-sale buyers defeat it | QSBS |
| ESOP sale (IRC 1042) | Defers gain on C corporation stock reinvested in qualified replacement securities | Yes, for a closely held C corporation | The plan must own at least 30% after the sale; reinvest within the window; basis carries over | ESOP and Section 1042 |
| Opportunity Zone fund (IRC 1400Z-2) | Defers the gain you invest within 180 days; growth can be excluded after 10 years | Yes, for the gain only, not the whole price | Locked up for years, fund fees, and for 2026 investments the deferral ends December 31, 2026 | Opportunity Zones |
| 1031 exchange (IRC 1031) | Defers all gain on real property exchanged for real property | No for the business itself. Yes for real estate the business owns | 45 days to identify and 180 days to close; only real property qualifies | 1031 exchange alternatives |
| 721 UPREIT (IRC 721) | Defers gain on real estate contributed to a REIT partnership | No for the business. Yes for owned real estate | You can never 1031 again; redemptions are taxable | 721 UPREIT |
| Hold until death (IRC 1014) | Resets basis to market value at death, so the built-in gain is never taxed | Only if you keep the business and its income | Estate tax starts above $15,000,000 per person in 2026 (Rev. Proc. 2025-32); installment notes get no step-up | Step-up at death |
| Move to a lower-tax state first | Removes state tax on gain sourced to where you live | Yes for a stock or interest sale, if the move is real and completed before closing | States tax gain sourced to property or a business located there; residency audits | Residency change |
Real estate your company owns is a separate question from the company. The building can sometimes go into a 1031 exchange or a 721 contribution even though the operating business cannot. See 1031 exchange alternatives for how those compare.
What does an installment sale save on a $4,000,000 business sale?
We ran one sale four ways on the Big Sale Tax engine, 2026 law (Rev. Proc. 2025-32). A married couple sells the assets of a manufacturing LLC for $4,000,000 of goodwill gain with $100,000 of other income each year. Taking everything at closing in Texas costs $786,400 of federal tax, and they keep $3,213,600.
Taking five yearly payments of $800,000 costs $640,200 of federal tax, and they keep $3,359,800, which is $146,200 more from the same price.
In California the same two choices cost $1,278,239 and $1,011,077 in federal and state tax together, a difference of $267,162.
The saving comes from rates, not magic: about two-thirds of each $800,000 slice is taxed at 15%, while in a one-year $4,000,000 sale about 86% of the gain lands above the $613,700 of taxable income where the 20% rate starts for a married couple in 2026 (Rev. Proc. 2025-32).
The cash-sale run also triggers $18,360 of alternative minimum tax; the five-year run triggers none.
Three things shrink or erase that saving. Depreciation recapture and ordinary items such as inventory profit are taxed in year one, so a real sale has a larger year-one bill than this goodwill-only example.
If the owners do not materially participate, the 3.8% tax (IRC 1411) applies and spreading helps less in some years. And the saving is only real if the buyer pays: the note is your risk, which is why a down payment, security and a guarantor from the buyer matter.
Which entity type are you selling, and why does it change the answer?
The tools open to you depend on what you hold, not what you want.
- LLC or S corporation, asset sale. Installment sale, charitable remainder trust (LLC interests held before a binding deal), Opportunity Zone investment of the gain, state residency. QSBS and Section 1042 do not apply. See capital gains tax on the sale of a business for the asset-by-asset split.
- C corporation, stock sale. QSBS (IRC 1202) if the shares were issued to you and the company stayed under the asset limit, Section 1042 if an ESOP buys, an installment sale of the shares, and personal goodwill carved out of the corporate sale. See C corporation sale and double tax.
- S corporation stock sale. A buyer who wants a stepped-up basis may ask for a Section 338(h)(10) election, which makes it a deemed asset sale. See Section 338(h)(10) and asset sale vs stock sale.
- Sole proprietor. Always an asset sale. Personal goodwill and the installment method are the main levers. See personal goodwill.
How much does your state change the bill?
A great deal, and it is the one lever you control before you sign. A single seller of a $3,000,000 business pays the same federal tax in every state, but the state layer runs from nothing in the nine states with no state tax on the gain to the high-tax states.
The Exit Tax Map shows what a single seller keeps at $1,000,000, $3,000,000 and $10,000,000 in all 50 states and DC, with every state rule dated and linked to its source.
In our own example the California owners pay $491,839 of state tax on a cash sale that costs Texas owners nothing at the state level.
Moving does not always change the bill. A state can tax gain from a business located there even after you leave, and some states bring installment gain forward when you move. Read state residency change before a sale before you rely on it, and note that California keeps taxing installment gain on stock sold while you were a resident.
What are the common mistakes when trying to avoid the tax?
- Picking a tool before knowing the entity. A 1031 exchange, a QSBS claim or an ESOP rollover each fails for the wrong entity type (IRC 1031, IRC 1202, IRC 1042).
- Signing first. A charitable remainder trust or a residency move that follows a binding sale agreement can be treated as your sale. Plan before the letter of intent turns into a contract.
- Ignoring the price allocation. The split across Form 8594 classes decides how much is ordinary income. See purchase price allocation.
- Treating a deferral as a saving. A Section 1042 rollover or an Opportunity Zone investment postpones the bill; compare what you net after the deferral ends, not the 2026 tax alone.
- Forgetting the 3.8% tax. Passive owners and C corporation shareholders usually owe it (IRC 1411). See net investment income tax on a sale.
What should you do before you sign a letter of intent?
Put three numbers side by side on your own deal: the cash-sale bill, the bill under the two or three strategies that fit your entity, and what the buyer would pay for each structure.
The best answer for the seller is sometimes a lower price on a better structure, and that comparison is what a Big Sale Tax Analysis runs. Start with the capital gains tax calculator for a cash-sale baseline, then bring your allocation and entity details to a CPA or attorney who will sign the return.
What to know
Most ways to keep more of a business sale lower the rate or move the bill to later years rather than erase it. The three that erase tax (IRC 1202, IRC 1014, IRC 1400Z-2(c)) have narrow entry rules.
A 1031 exchange and a 721 contribution reach the real estate your business owns but not the business. Always compare what you net after tax on the same price, with the buyer's risk and your own timing in the picture.
How much tax does this sale cause? A worked example
A married couple in Texas sells the assets of a manufacturing LLC they run for $4,000,000, all of it long-term gain on goodwill with no basis. $100,000 of other income. They materially participate, so no 3.8% net investment income tax (IRC 1411).
All paid at closing in 2026. Same sale, but the buyer pays $800,000 of gain a year for five years, 2026 through 2030, under an installment note (IRC 453). 2026 tables are held flat in later years.
Note interest is left out. Same $4,000,000 cash sale, but the owners live in California. The California owners take five yearly payments of $800,000 of gain.
Years after 2026 use the latest published California schedule and are projections.
| Engine run | Cash sale, Texas | Five yearly payments, Texas | Cash sale, California | Five yearly payments, California |
|---|---|---|---|---|
| Filing status | Married, joint | Married, joint | Married, joint | Married, joint |
| State | Texas | Texas | California | California |
| Tax years | 1 | 5 | 1 | 5 |
| Other income (wages, pension, interest) per year | $100,000 | $100,000 | $100,000 | $100,000 |
| Long-term capital gain | $4,000,000 | $4,000,000 | $4,000,000 | $4,000,000 |
| Federal income tax on the sale | $786,400 | $640,200 | $786,400 | $640,200 |
| Net investment income tax (3.8%) | $0 | $0 | $0 | $0 |
| State income tax on the sale | $0 | $0 | $491,839 | $370,877 |
| Total tax caused by the sale | $786,400 | $640,200 | $1,278,239 | $1,011,077 |
| Effective rate on the gain | 19.7% | 16.0% | 32.0% | 25.3% |
| Gain kept after these taxes | $3,213,600 | $3,359,800 | $2,721,761 | $2,988,923 |
Computed November 1, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table (California: FTB 2026 rate schedules; years after 2026 use the latest published tables and are projections).
"Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.
How much tax would you owe? Run your own numbers
2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules (California on the FTB 2026 schedules).
What was sold and years held only matter in a few states: Washington exempts real estate, Ohio and New Mexico treat a business sale differently, Arizona subtracts 25% for assets bought after 2011 and Oklahoma deducts gain on Oklahoma property held 5 years or more.
Tax shown is the tax caused by the sale. Excludes local taxes other than Maryland's county tax (3.2% used). Tick the active-owner box if you materially participate in the business. Education only.
Get this breakdown by email, plus the one-page Seller Tax Worksheet
We email you the numbers from this page (the gain and the federal, 3.8% and state pieces) with a one-page worksheet to fill in with your CPA: your gain line by line, the tax buckets, the 2026 thresholds and five questions to ask before you sign.
Also free: the book Same Sale, Different Tax, the same $1,000,000 gain taxed ten ways. Want it run on your sale? Book a free scope call to see whether the Big Sale Tax Analysis is worth it.

Who you will talk to
Hans Goldstein · Sacramento, California
Hans Goldstein: Tax & Exit Planning, an independent practice. Enrolled Agent, admitted to practice before the Internal Revenue Service. CA Insurance License #4273294, NPN 20602398.
- What happens first
- You fill in the short form for a free scope call, about 5 minutes. Hans reviews every one personally and replies within 1 business day. If it is a fit, you get a link to book the call.
- The scope call
- Fifteen minutes, free: price, timeline, what you are selling and what the money is for. Scope means you hear whether the analysis is worth it for your sale.
- What you get
- A written side-by-side comparison of your cash-sale baseline against every path that fits, year-by-year numbers, a written recommendation, and a review meeting with you and, if you like, your CPA and attorney.
- What it costs
- The scope call is free. The Big Sale Tax Analysis is $5,000 per household per transaction, only if you decide it is worth it. No retainer, no hourly billing, no obligation to use any strategy.
- How Hans is paid
- The $5,000 fee pays for analysis only and is not reduced or credited if you buy anything. You are never required to buy anything. No referral fees are paid to or received from brokers, CPAs or attorneys. Hans is also a licensed insurance producer with a separately owned insurance business. That business is not part of this engagement, and the analysis does not recommend insurance products. If you later choose an installment sale funded through an insurance company, that company pays Hans a commission through his separate insurance business. He may be compensated by that business if you use an insurance-funded installment sale. Hans is an Enrolled Agent (EA), admitted to practice before the Internal Revenue Service. He is not a CPA, attorney or registered investment adviser; the analysis models tax effects and does not recommend specific securities. Read the disclosures.
Book a free scope call or call 213-340-2018. Hans answers or calls back the same business day.
Frequently asked questions
How can I avoid capital gains tax when I sell my business?
Can I use a 1031 exchange when I sell my business?
Does an installment sale reduce capital gains tax or just delay it?
Is there a way to sell my business and pay no capital gains?
Do I pay capital gains tax if I sell my business and retire?
What is the tax on selling a business for $3 million?
Does a charitable remainder trust avoid capital gains tax on a business sale?
Sources
- IRC 1031, like-kind exchanges (Cornell LII)
- IRC 664, charitable remainder trusts (Cornell LII)
- IRC 1202, qualified small business stock (Cornell LII)
- IRC 1400Z-2, Opportunity Zones (Cornell LII)
- IRC 453, installment method (Cornell LII)
- IRC 453A, interest on deferred tax (Cornell LII)
- IRC 1042, sales to employee stock ownership plans (Cornell LII)
- IRC 1014, basis of property acquired from a decedent (Cornell LII)
- IRC 1411, net investment income tax (Cornell LII)
- Rev. Proc. 2025-32, 2026 inflation adjustments (IRS)
- IRS Instructions for Form 8594
Figures as of October 18, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
Ohio
Two rates for one gain: 2.75% on investment gains, 3% on business-sale gain after a $250,000 deduction, plus a new 2026 payroll-based deduction.
ReadSale of a business
Why one price becomes seven tax buckets, which pieces are ordinary income, and what an active owner can keep out of the 3.8% NIIT.
ReadAsset sale vs stock sale
Buyers want assets for the step-up, sellers want stock for one layer of capital gain; here is how the difference is measured and priced.
ReadC corporation sale
The corporate 21% plus the shareholder layer, and the five routes owners use to pay it once: stock sale, personal goodwill, QSBS, ESOP and a timed S election.
ReadInstallment sale of a business
Selling a business on a seller note: which assets spread, which are taxed in year one, and how to protect the note.
ReadInstallment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
Read