Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / How to avoid capital gains tax on a business sale
Selling a business

How to Avoid Capital Gains Tax When Selling a Business

Short answerYou can usually keep more of a business sale, but "avoid" is rarely the right word. Most strategies lower the rate or move the bill to later years. Only three erase tax: the qualified small business stock exclusion (IRC 1202, up to $15,000,000 of gain per company for stock acquired after July 4, 2025), the basis step-up at death (IRC 1014), and the 10-year exclusion on growth inside an Opportunity Zone fund. In our $4,000,000 example, taking the price over five years instead of at closing cuts the federal bill from $786,400 to $640,200.

By , 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?

Page updated . Statutory limits are from the Code sections linked, read on law.cornell.edu on October 18, 2026; the 2026 thresholds are from Rev. Proc. 2025-32 (IRS).
NumberValuePrimary sourceAs of
Federal long-term rate, married filing jointly0% to $98,900 of taxable income, 15% to $613,700, 20% aboveRev. Proc. 2025-322026 tax year
Federal long-term rate, single0% to $49,450, 15% to $545,500, 20% aboveRev. Proc. 2025-322026 tax year
Net investment income tax3.8% above $250,000 (joint) or $200,000 (single) of modified AGIIRC 1411Thresholds not indexed
Qualified small business stock exclusion50% 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 companyIRC 1202Read October 18, 2026
Installment sale interest chargeApplies when installment obligations outstanding at year end exceed $5,000,000IRC 453ACurrent law
Charitable remainder trustPayout 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 deadlines45 days to identify, 180 days to receive; real property onlyIRC 1031(a)Read October 18, 2026
Opportunity Zone deferralInvestments before 2027: gain included December 31, 2026. After 2026: fifth anniversary, 10% basis increase (30% rural)IRC 1400Z-2Read October 18, 2026
Federal estate tax basic exclusion$15,000,000 per person for deaths in 2026Rev. Proc. 2025-322026

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

StrategyWhat it does to the billFits an operating business sale?The catchDeep 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 assetsYou 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 shareYes, if the trust owns the interest before a binding sale. Not S corporation stockPayout 5% to 50% (IRC 664(d)); charity's remainder must be at least 10%; the asset ends up with charityCharitable 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 shareCap of the greater of $15,000,000 or 10 times basis per company; asset-sale buyers defeat itQSBS
ESOP sale (IRC 1042)Defers gain on C corporation stock reinvested in qualified replacement securitiesYes, for a closely held C corporationThe plan must own at least 30% after the sale; reinvest within the window; basis carries overESOP and Section 1042
Opportunity Zone fund (IRC 1400Z-2)Defers the gain you invest within 180 days; growth can be excluded after 10 yearsYes, for the gain only, not the whole priceLocked up for years, fund fees, and for 2026 investments the deferral ends December 31, 2026Opportunity Zones
1031 exchange (IRC 1031)Defers all gain on real property exchanged for real propertyNo for the business itself. Yes for real estate the business owns45 days to identify and 180 days to close; only real property qualifies1031 exchange alternatives
721 UPREIT (IRC 721)Defers gain on real estate contributed to a REIT partnershipNo for the business. Yes for owned real estateYou can never 1031 again; redemptions are taxable721 UPREIT
Hold until death (IRC 1014)Resets basis to market value at death, so the built-in gain is never taxedOnly if you keep the business and its incomeEstate tax starts above $15,000,000 per person in 2026 (Rev. Proc. 2025-32); installment notes get no step-upStep-up at death
Move to a lower-tax state firstRemoves state tax on gain sourced to where you liveYes for a stock or interest sale, if the move is real and completed before closingStates tax gain sourced to property or a business located there; residency auditsResidency 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 runCash sale, TexasFive yearly payments, TexasCash sale, CaliforniaFive yearly payments, California
Filing statusMarried, jointMarried, jointMarried, jointMarried, joint
StateTexasTexasCaliforniaCalifornia
Tax years1515
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 gain19.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

Start from the price allocation (Form 8594)

Goodwill gain $4,000,000. Equipment: adjusted basis $0, gain $0, of which $0 is 1245 recapture. Ordinary sale items $0. Total gain $4,000,000.

The gain, by tax bucket (filled in from the numbers above; edit to override)
Federal on the sale$786,400
NIIT$0
State$0
Total tax, held over a year$786,400
Effective rate19.7%
If held one year or less$1,565,911

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.

Free: your numbers and a worksheet

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.

Hans Goldstein
Enrolled Agent, admitted to practice before the IRS

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

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.

Hans Goldstein

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?
You usually cannot avoid it entirely, but you can often lower it. An installment sale spreads the gain across years so more of it falls in the 15% bracket, qualified small business stock can exclude up to $15,000,000 of gain per company if you qualify, and a state move can remove state tax. Real estate your business owns may qualify for a 1031 exchange. The right choice depends on your entity type and your buyer.
Can I use a 1031 exchange when I sell my business?
Not for the business itself. Since 2018 a 1031 exchange covers real property only (IRC 1031(a)), so goodwill, equipment and inventory are taxable. If your company owns its building and you sell the real estate separately, that piece can be exchanged into other real property within 45 days to identify and 180 days to close.
Does an installment sale reduce capital gains tax or just delay it?
Both can happen. The gain is taxed as principal is paid, so you delay each slice. Because each year's slice is taxed at that year's rates, the total can also be lower: in our 2026 example of a $4,000,000 sale, five yearly payments cut the federal bill by $146,200. Recapture is still taxed in year one and you carry the buyer's credit risk.
Is there a way to sell my business and pay no capital gains?
Only for narrow cases: qualified small business stock held 5 years (IRC 1202), assets held until death (IRC 1014), and growth in an Opportunity Zone fund held 10 years (IRC 1400Z-2(c)). There is no general exemption for retirement. The Section 121 home-sale exclusion covers a main home only.
Do I pay capital gains tax if I sell my business and retire?
Yes. Retirement does not change the tax on a sale. There is no age-based exclusion for a business; the 2026 federal long-term rates are 0%, 15% or 20% depending on taxable income (Rev. Proc. 2025-32), plus the 3.8% net investment income tax if you did not materially participate (IRC 1411), plus state tax.
What is the tax on selling a business for $3 million?
For a single seller with no other income and an asset sale in 2026, the federal total is the same in every state and the state tax runs from zero to over 10 percent of the gain. The Exit Tax Map lists the total and what you keep in all 50 states and DC at $1M, $3M and $10M: see the Exit Tax Map.
Does a charitable remainder trust avoid capital gains tax on a business sale?
It defers and spreads it rather than erasing it. The trust sells without paying tax, then pays you 5% to 50% of its value for life or up to 20 years (IRC 664(d)), and you are taxed as you are paid. You also get a deduction for the charity's share, and the charity's remainder must be at least 10% at funding.
How Hans helps: the Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. See how the analysis works.
Book a free scope callCall Hans