How to Avoid Capital Gains Tax When Selling a Business: 8 Legal Strategies (2026 Owner Guide)

Christoph Totter · Managing Partner, CT Acquisitions

20+ home services M&A transactions across HVAC, plumbing, pest control, roofing · Updated May 15, 2026

“How do I avoid capital gains tax when selling my business?” is one of the most-Googled questions among business owners over 55. It’s also one of the most dangerous questions, because the honest answer is uncomfortable: you can’t entirely avoid it. What you can do — legally, ethically, and with full IRS approval — is defer it, reduce it, or in specific cases eliminate the federal portion. This guide walks through the eight strategies that actually work, who qualifies for each, and what they cost.

Anyone telling you that you can avoid capital gains tax entirely without a structural change is either selling you an aggressive tax shelter or doesn’t understand the law. The IRS has specific code sections that allow gain exclusion (Section 1202), gain deferral (Section 1042, Section 1031, Opportunity Zones), and gain spreading (installment sales). Each has rigid requirements. Each has been tested in court. Each has saved real owners real money. None of them are loopholes — they’re tools Congress wrote into the tax code on purpose.

This guide is for owners selling a business with $1M+ EBITDA who want to understand what’s legitimately possible before they engage advisors. The eight strategies below cover roughly 95% of legal capital gains planning for lower middle market sales. Some require advance planning of 12-24 months. Some require specific entity structures that must be put in place years before sale. All of them require both an M&A tax attorney and a CPA — this article is not a substitute for professional advice, and nothing here constitutes tax or legal counsel for your specific situation.

The single most expensive mistake we see owners make is engaging tax counsel after the LOI is signed. By that point, most of these strategies are foreclosed.

Throughout this guide we’ll reference what we observe across the 76 active U.S. lower middle market buyers we work with directly. That data point matters because tax structure isn’t just about your tax position — it’s about whether your realistic buyers will agree to the structure. A Section 1042 ESOP rollover only works if you sell to an ESOP. A 338(h)(10) election only works with a corporate buyer. Knowing which structures your specific buyer pool typically agrees to is information sell-side advisors generally don’t have because they don’t see the same buyers across deals. We do.

How to avoid capital gains tax when selling a business — Section 1202 QSBS, ESOP rollover, installment sale, Opportunity Zones
There’s no legal way to “avoid” capital gains tax entirely — but eight IRS-recognized strategies can defer, reduce, or in some cases eliminate it. Most require 12-24 months of advance planning.

“There is no magic strategy that lets you keep 100% of a business sale tax-free. But there are eight legal, IRS-recognized structures that can defer the tax for decades, reduce it by half, or in the right circumstances eliminate the federal portion entirely — and most owners don’t hear about them until it’s too late to use them. Sell-side brokers earn their fee on the headline price, not on what you actually net. We’re a buy-side partner. Different incentive structure. Different conversation.”

TL;DR — the 90-second brief

  • You can’t legally “avoid” capital gains tax on a business sale — but you can defer, reduce, or in specific cases eliminate it through eight IRS-recognized strategies. Anyone promising you can avoid tax entirely without a structural change is selling a tax shelter you should run from.
  • Section 1202 (Qualified Small Business Stock) is the single most powerful tool — up to $10M (or 10x basis, whichever is greater) of gain excluded from federal tax for qualifying C-corp shareholders who held stock for 5+ years. Most LMM owners don’t know they qualify.
  • Section 1042 ESOP rollovers can defer capital gains tax indefinitely for C-corp owners selling to an Employee Stock Ownership Plan, if proceeds are reinvested in Qualified Replacement Property within 12 months.
  • Installment sales spread the gain over multiple tax years, often keeping more of the gain in the 15% bracket instead of 20%, and deferring the 3.8% NIIT exposure. Useful when buyer pays a meaningful portion as a seller note.
  • Across the 76 buyers we work with directly, we see roughly 40% of sub-$10M deals leave $200K-$700K of after-tax proceeds on the table simply because the seller engaged tax counsel after the LOI was signed instead of 12-18 months before. Sell-side brokers don’t optimize for after-tax outcomes — they’re paid on the closing, not on what you net. We’re a buy-side partner; the buyer pays us; we can introduce you to M&A tax attorneys who specialize in your specific buyer pool.

Key Takeaways

  • Section 1202 QSBS exclusion can eliminate up to $10M of federal capital gains tax for C-corp shareholders meeting strict requirements (5-year hold, qualifying business, $50M asset cap at issuance).
  • Section 1042 ESOP rollovers defer capital gains indefinitely if you sell 30%+ to an ESOP and reinvest in Qualified Replacement Property within 12 months.
  • Installment sales spread gain across multiple years, often dropping the marginal rate from 20% + 3.8% NIIT to 15% in early years.
  • Opportunity Zone investments defer existing gains and reduce/eliminate gains on the QOZ investment itself if held long enough.
  • Charitable Remainder Trusts (CRTs) defer gain, generate a current charitable deduction, and produce lifetime income — but the principal goes to charity at death.
  • State residency planning (moving to TX/FL/WY) can save $300K-$1M+ on a $5M deal but requires genuine 18-24 month domicile change, not just a mailing address.

First, the honest answer: you can’t fully avoid capital gains tax on a business sale

There is no legal strategy in the U.S. tax code that lets you sell a profitable business and pay zero federal tax in a single move. The IRS knows what a sale looks like. Anyone selling you a strategy that promises full tax avoidance — offshore trusts, captive insurance schemes, listed transactions — is selling you something the IRS has already flagged as abusive. Those strategies create audit risk that often costs more than the tax you tried to avoid.

What you CAN do is reduce, defer, or in specific cases eliminate the federal portion of your tax bill. Reduce: pay 15% instead of 23.8%, by spreading the gain across multiple years. Defer: pay nothing now, pay later (sometimes decades later, sometimes never). Eliminate: in qualifying QSBS situations, exclude up to $10M of federal capital gain entirely — tax-free, with full IRS approval. Each strategy has specific qualifying conditions. Most require advance planning. None of them are tricks.

The current 2026 federal capital gains landscape: long-term capital gains rates are 0%, 15%, or 20% depending on total taxable income. Add 3.8% Net Investment Income Tax (NIIT) for high earners. State taxes range from 0% (Texas, Florida, Wyoming, Tennessee, Nevada, etc.) to 13.3% (California). For a typical LMM owner, the effective combined rate on a business sale is 20-37% depending on state. The strategies below either reduce that rate, defer when you pay it, or in QSBS cases eliminate the federal portion entirely.

Critical disclaimer: nothing in this guide is tax or legal advice for your specific situation. Every strategy below requires engagement with an M&A tax attorney AND a CPA. The savings are real, but so are the requirements — and getting any of these wrong creates IRS audit exposure that can cost more than the tax you tried to save. Use this guide to understand what’s possible, then engage qualified professionals. Engaging them 12-18 months before going to market is dramatically better than engaging them after the LOI is signed.

Strategy 1: Section 1202 Qualified Small Business Stock (QSBS) exclusion

Section 1202 of the Internal Revenue Code lets qualifying C-corp shareholders exclude up to $10M (or 10x their basis, whichever is greater) of federal capital gain from a stock sale. If you qualify, that $10M of gain is excluded entirely from federal tax — not deferred, not taxed at a reduced rate, eliminated. For a married couple with founders’ stock, the exclusion can effectively double via gifting strategies. This is the single most powerful capital gains tool in the tax code, and most LMM owners don’t know they qualify.

Who qualifies for QSBS: the business must be a domestic C-corp at the time stock was issued; the corporation’s gross assets at the time of stock issuance (and immediately after) must be $50M or less; the corporation must conduct a “qualified trade or business” (most operating businesses qualify; service businesses in health, law, finance, accounting, consulting do NOT); the shareholder must hold the stock for at least 5 years before sale; the stock must have been issued after August 10, 1993.

Who doesn’t qualify (common disqualifications): S-corp shareholders (must be C-corp). LLC members (unless you converted to C-corp years ago and held). Owners of professional service firms (medical, legal, accounting, consulting, financial advisory, investment management, performing arts, athletics — all excluded). Anyone who acquired stock via secondary purchase (must be original issue from the corporation). Anyone who held less than 5 years. Anyone whose business held more than $50M of assets at the time of stock issuance.

Realistic savings on QSBS: for a qualifying owner with $10M of gain, the savings are roughly $2.38M of federal tax (20% capital gains + 3.8% NIIT applied to $10M). For owners with gain above $10M, the excess is taxed at standard capital gains rates — QSBS only protects the first $10M (or 10x basis). For owners with founder shares acquired at low basis, this is one of the highest-leverage tax decisions in the entire code.

When to engage an advisor on QSBS: if you currently operate as an S-corp or LLC and are 6+ years from a contemplated sale, talk to a tax attorney NOW about converting to C-corp to start the QSBS clock. Conversion is irrevocable and has its own consequences (corporate-level tax on subsequent profits, potential loss of pass-through deductions), so the math has to work. For owners already operating as a qualifying C-corp, document everything — original issuance dates, asset levels at issuance, qualified-business status throughout the holding period. QSBS is heavily audited; proper documentation is non-negotiable.

RequirementThresholdCommon Failure Point
Entity typeDomestic C-corporationS-corp and LLC owners don’t qualify
Asset cap at issuance$50M or less in gross assetsCompanies that grew past $50M before issuance
Holding period5+ years before saleOwners who sold at year 4
Qualified tradeMost operating businesses qualifyHealth, law, finance, consulting do NOT qualify
Stock acquisitionOriginal issuance from corporationSecondary purchases don’t qualify
Maximum exclusion$10M or 10x basis (whichever greater)Gains above the cap are taxed normally

Strategy 2: Installment sales (spreading gain across years)

An installment sale lets you receive payment for your business across multiple tax years instead of all at once. Each year, you pay capital gains tax only on the portion of payment received that year. The IRS calls this “deferred recognition,” and Section 453 of the tax code authorizes it. The mechanics are straightforward: you sell the business with 30-40% paid at closing and the remainder paid as a seller note over 3-7 years. Each annual payment includes interest (taxed as ordinary income) and principal (allocated proportionally between basis recovery and capital gain).

The tax benefit comes from staying in lower brackets across more years. Recall that the federal capital gains rate jumps from 15% to 20% at $533,400 single / $600,050 MFJ in 2026. A seller who recognizes $4M of gain in one year is firmly in the 20% bracket for most of it, plus 3.8% NIIT. The same seller who recognizes $1M of gain across each of 4 years can keep more of it in the 15% bracket and reduce or avoid NIIT in some years. The savings on a $4M gain can range from $200K to $400K depending on filing status and other income.

Installment sales work best when: the buyer is willing to pay a meaningful portion (30%+) as a seller note. The seller has confidence the buyer will pay (the note is the deferred-tax mechanism but also represents real credit risk). The seller doesn’t need 100% of proceeds at closing for retirement, debt repayment, or reinvestment. The deal size is large enough that bracket arbitrage produces meaningful savings (typically $2M+ of expected gain).

Risks of installment sales: if the buyer defaults on the note, you may have already paid tax on principal you never received (though there are recovery mechanisms). If tax rates rise during the installment period, you pay the higher rate on later payments. The 1099-S form filed at closing reports the total sale price — the IRS knows about your installment treatment from year one. Installment sales are NOT available for all asset types: inventory and depreciable assets often must be recognized in year one. Your CPA should run the math before agreeing to an installment structure.

Realistic savings on installment sales: for a $5M LMM deal with $4M of gain, spreading across 4 years can save $150K-$350K of federal tax depending on the seller’s other income and filing status. State savings can add $50K-$200K depending on residency. The structure also defers when the tax is due, providing a time-value-of-money benefit even when total tax doesn’t change.

Strategy 3: Section 1042 ESOP rollover (the indefinite tax deferral option)

Section 1042 of the tax code lets a C-corp owner who sells 30%+ of the company to an Employee Stock Ownership Plan (ESOP) defer capital gains tax indefinitely. If the seller reinvests sale proceeds into Qualified Replacement Property (QRP) — typically a portfolio of U.S. operating company stocks and bonds — within 12 months of the sale, federal capital gains tax is fully deferred until the QRP is sold. With proper estate planning, the QRP can pass to heirs at a stepped-up basis, eliminating the deferred gain entirely.

Who qualifies for Section 1042: the company must be a C-corporation (S-corp owners have a different ESOP path with its own benefits but no Section 1042). The seller must have held the stock for 3+ years. The ESOP must own at least 30% of the company immediately after the sale. The seller must reinvest in QRP within 12 months (the QRP definition is technical — talk to your tax attorney). Certain family members are excluded from being employees who participate in the ESOP.

Why ESOPs are powerful for the right owner: 100% of the federal capital gain is deferred indefinitely. With a step-up at death, the gain can be eliminated entirely. The company gets ongoing tax benefits (ESOP-owned C-corp portions, or tax-free status for 100% S-corp ESOPs). The legacy aspect — employees become owners — matters to many founders. For owners who want to retire gradually rather than fully exit, ESOPs offer flexibility C-suite handoffs don’t.

Why ESOPs aren’t for every owner: valuations are typically lower than strategic or PE buyer valuations (often 80-90% of market). ESOP transactions are heavily regulated by the DOL and require independent valuation, fairness opinions, and ongoing administration. The transaction takes 6-12 months to set up. The seller must reinvest in QRP — which means continued exposure to public markets rather than diversification into other asset classes. Most ESOP transactions involve seller financing, so the seller still has ongoing risk in the company. ESOPs make sense for ~10-15% of LMM exits in our experience — but for that subset, they’re extraordinary.

Realistic savings on Section 1042: 100% deferral of federal capital gains tax indefinitely. On a $10M C-corp sale with $9M of gain, that’s $2.14M of federal tax deferred (and potentially eliminated at death via step-up). Plus state tax savings vary. The ongoing tax benefits to the company itself (an ESOP-owned S-corp pays no federal income tax on the ESOP-owned portion) can be worth millions over time, though they accrue to the company and employees rather than the seller.

Strategy 4: Section 1031 like-kind exchange (real-estate-only, but useful)

Section 1031 lets you defer capital gains tax on the sale of real estate by reinvesting proceeds into other “like-kind” real estate within strict timeframes. Important: since the 2017 Tax Cuts and Jobs Act, Section 1031 applies ONLY to real property — not to business equipment, goodwill, intellectual property, or business interests generally. So 1031 doesn’t help most LMM business sellers directly. But if your business owns the real estate it operates from, 1031 can apply to that portion of the sale.

How it works in a business-with-real-estate sale: the deal is typically structured so the operating business and the real estate are sold separately. The business is sold at capital gains rates (or whatever structure you negotiate). The real estate is sold via a 1031 exchange — meaning the seller has 45 days to identify replacement real estate and 180 days to close on it, with all proceeds held by a Qualified Intermediary in the meantime. If the rules are followed precisely, the gain on the real estate is deferred until the replacement property is sold.

When 1031 makes sense for business sellers: you own the building your business operates from, and the building has substantial appreciation. You want to maintain real estate exposure (continuing to be a landlord or commercial real estate investor) rather than diversifying into other asset classes. You can identify suitable replacement property within 45 days — this is the part most sellers underestimate. You’re comfortable with the ongoing complexity of 1031 reporting and replacement property management.

Common 1031 mistakes: trying to apply 1031 to business assets that aren’t real estate (no longer allowed). Missing the 45-day identification deadline. Using a non-qualified intermediary or accidentally taking constructive receipt of proceeds. Identifying replacement property that doesn’t qualify as “like-kind” (the definition is broader than most expect — commercial buildings can swap for raw land, etc., but there are limits).

Realistic savings on 1031: if your business sale includes $1M of real estate gain, deferring that gain can save $238K of federal tax (20% + 3.8% NIIT) plus state tax. The deferral can compound across multiple 1031 exchanges over decades, and a step-up at death can eliminate the gain entirely. For owners who own substantial real estate as part of their business, 1031 is a meaningful but underused tool.

Strategy 5: Opportunity Zone investments (defer + reduce + potentially eliminate)

Qualified Opportunity Zones (QOZ) were created by the 2017 Tax Cuts and Jobs Act to incentivize investment in designated low-income census tracts. For sellers with capital gains, QOZ investments offer three layers of benefit: defer existing gains, partially reduce them after holding the QOZ investment for 5-7 years, and potentially eliminate gain on the QOZ investment itself if held for 10+ years.

How it works: after selling your business, you have 180 days to invest the gain (only the gain, not the basis) into a Qualified Opportunity Fund (QOF). The QOF must invest at least 90% of its assets in qualifying property within designated Opportunity Zones. Your original gain is deferred until you sell the QOF investment OR until December 31, 2026 (whichever comes first — this date may be extended by future legislation but is currently the statutory deadline).

The three benefits stack: Benefit 1 — deferral: the original capital gain isn’t taxed until 2026 or sale of the QOF, whichever comes first. Benefit 2 — basis step-ups: if you hold the QOF investment for 5 years, your basis in it increases by 10% (effectively reducing the deferred gain by 10%); 7 years gets you another 5%. Benefit 3 — appreciation exclusion: if you hold the QOF investment for 10+ years and then sell, all appreciation in the QOF investment itself is excluded from federal capital gains tax entirely.

Important nuances: you only invest the GAIN, not the full sale proceeds. So if you sell for $5M with $1M basis, you have $4M of gain to potentially invest. The QOF must be a real, qualifying investment vehicle — you can’t self-direct into a single property without the proper fund structure. Many QOFs have lost money since 2018, so the “exclude appreciation after 10 years” benefit only matters if the investment actually appreciates. Diligence the fund manager carefully.

When QOZ makes sense: you have substantial gain you want to defer. You’re comfortable with illiquid real estate or operating-business investments in designated zones. You have 10+ year time horizon for the QOZ investment itself. You’re working with a sophisticated tax attorney who can vet the QOF properly. This isn’t a strategy for owners who need liquidity at closing — it requires reinvesting gain into a long-duration illiquid investment.

Strategy 6: Charitable Remainder Trusts (CRTs) and charitable structures

A Charitable Remainder Trust (CRT) is an irrevocable trust that holds appreciated business interests, sells them tax-free at the trust level, pays you (or your beneficiary) an income stream for life or a fixed term of years, and ultimately distributes the remainder to a charity of your choice. It produces three tax benefits: deferral of capital gains tax (the trust sells the business, not you, and the trust is tax-exempt), a current charitable deduction for the present value of the charitable remainder, and reduced estate tax exposure since assets are removed from your estate.

How a CRT typically works in a business sale: before the sale closes, you transfer some or all of your business interest to the CRT. The CRT then sells the business to the buyer, tax-free at the trust level (CRTs are exempt from capital gains tax). The trust invests the proceeds and pays you an annual income (typically 5-10% of the trust value) for life or for a term of up to 20 years. At your death (or end of term), whatever remains in the trust goes to your designated charity. You get an immediate charitable deduction in the year you fund the trust, equal to the present value of the future charitable remainder.

Who CRTs are right for: owners with strong philanthropic intent (the charitable remainder is a real gift — this is not a tax dodge). Owners with substantial appreciated business interests who want lifetime income rather than liquidity. Owners with high income who can use the charitable deduction (the deduction is limited to a percentage of AGI per year, with carryforward). Owners with estates large enough that estate tax is a real concern.

Who CRTs are NOT right for: owners who want to maximize wealth for their heirs (the principal goes to charity, not to family). Owners who don’t have strong philanthropic intent (you’re really making a charitable gift; this isn’t a loophole). Owners who need full proceeds at closing for debt repayment or reinvestment. CRTs are irrevocable — once you fund one, you can’t take it back.

Realistic savings on a CRT: the capital gains tax on the business sale is fully deferred at the trust level. You receive lifetime income on the full pre-tax sale proceeds (rather than the after-tax amount), which compounds the benefit. You receive a current charitable deduction worth typically 15-30% of the gift value. Combined, the after-tax benefit on a $5M deal can exceed $1.5M depending on age, expected return, and charitable deduction utility — but the principal does eventually go to charity, so this is not pure tax savings.

Strategy 7: State residency planning (the “move to Florida” option)

State capital gains rates vary from 0% to 13.3% across the U.S. Texas, Florida, Wyoming, Tennessee, Nevada, South Dakota, Alaska, New Hampshire, and Washington (with caveats) have no state tax on capital gains for individuals. California, New York, New Jersey, Hawaii, Oregon, and Minnesota have rates of 9-13.3%. On a $5M gain, the difference between Florida and California state tax is approximately $665K.

Establishing residency in a no-tax state before sale is a real, IRS-recognized strategy — but it requires genuine domicile change. The state you’re leaving (especially CA, NY, NJ, MA) will scrutinize the move heavily and try to claim residency for the year of sale. To survive that scrutiny, you must actually live in the new state — primary home there, driver’s license there, voter registration there, doctors there, social calendar there, time spent there. Just buying a Florida condo and forwarding mail doesn’t work.

How long you need to establish residency: ideally 18-24 months before the sale. Some sellers move 12 months out and survive scrutiny; some move 24 months out and still face challenges if they retain too many ties to the old state. The longer the establishment period, the cleaner the argument. The state-tax authorities in CA and NY are especially aggressive on this issue.

What “genuine domicile” actually requires: primary residence (and usually selling the old one, or at least making the new one demonstrably primary). Driver’s license and vehicle registration in the new state. Voter registration in the new state. Mailing address, banking, and financial accounts shifted. Doctors, dentists, accountants, attorneys based in the new state. Time spent in the new state — typically more than half the year, ideally substantially more. Membership in clubs, churches, and social organizations in the new state. Estate planning documents (will, trusts) updated to reflect the new state of domicile.

When state residency planning makes sense: your expected gain is large enough that the savings justify the disruption ($300K+ of potential state tax savings is the rough threshold). You have flexibility in where you live. You’re willing to genuinely relocate, not just establish a paper presence. You have 18-24 months to plan the sale. For owners who can do this, it’s often the simplest and largest tax-saving strategy in the entire toolkit. For owners with strong family or business ties to the old state, the disruption may not be worth it.

Strategy 8: Section 338(h)(10) elections and structural negotiation

A Section 338(h)(10) election is a tax structuring tool that lets parties treat a stock sale as an asset sale for tax purposes only. It’s used in roughly 30-40% of LMM transactions where the legal structure is a stock sale. From the seller’s tax perspective, 338(h)(10) typically INCREASES the immediate tax bill (because some portions of the deal that would have been long-term capital gains in a pure stock sale become depreciation recapture or other ordinary income). But sellers can negotiate a higher purchase price as compensation for agreeing to the election.

Why this is a tax strategy at all: buyers gain real tax value from 338(h)(10) (basis step-up enables 15-year amortization of goodwill, generating ongoing tax deductions). The present value of that tax benefit to the buyer is typically 5-15% of the deal value. If the seller can extract that value as a higher purchase price — even after paying additional tax from the election — the after-tax proceeds increase. The math has to work case by case, but in many situations a properly negotiated 338(h)(10) leaves the seller with more after-tax cash than a pure stock sale at lower price.

When 338(h)(10) is available: the target must be an S-corp or a member of a consolidated C-corp group. The buyer must be a corporation. Both parties must consent to the election. LLC sellers and individual S-corp sellers can’t use 338(h)(10), but similar effects can be achieved through other elections (Section 336(e), partnership elections under 754, F-reorganizations). A good M&A tax attorney will identify which structural option produces the best after-tax outcome for your specific entity type and deal.

How to negotiate the 338(h)(10) premium: have your CPA calculate the additional tax burden the election creates for you (typically 5-15% of deal value). Have your M&A attorney quantify the buyer’s tax benefit (typically 5-15% of deal value, often slightly higher than your additional tax). The market premium for sellers agreeing to 338(h)(10) is typically 5-10% of headline price — but it’s a negotiation, not a formula. Buyers who refuse to pay any premium are essentially asking you to give them tax value for free. That’s a structural choice, and it has a price.

Realistic savings from structural negotiation: a properly negotiated 338(h)(10) typically nets the seller an additional $100K-$500K on a $5M deal compared to taking buyer-friendly terms without negotiation. The savings come from extracting the buyer’s tax benefit as a higher headline price. This isn’t avoiding tax — it’s redistributing value across the transaction so both parties end up better off than they would in a default structure. It requires advance planning and explicit LOI language, not last-minute negotiation.

Comparing the eight strategies: which applies to your situation

Most owners will use 2-4 of these strategies in combination, not just one. A typical sophisticated LMM exit might combine: state residency planning (Strategy 7) + installment sale on the seller-financed portion (Strategy 2) + 338(h)(10) election negotiated for additional purchase price (Strategy 8) + QSBS exclusion if it applies (Strategy 1). Layered properly, the savings can compound to 30-50% of the default tax bill.

The applicability of each strategy depends on your entity type, deal size, time horizon, and personal goals. Section 1202 QSBS only works for qualifying C-corps with 5+ year holds. Section 1042 ESOP rollover requires C-corp + ESOP. Section 1031 like-kind exchange only applies to real estate. Charitable Remainder Trusts only make sense for owners with philanthropic intent. State residency planning only matters if you currently live in a high-tax state. Some strategies are stackable; some are mutually exclusive. The right combination requires sitting down with a tax attorney, going through your specific facts, and running the numbers.

The strategies that generally apply broadly: installment sales (work for almost any entity type if buyer agrees), state residency planning (works for any seller in a high-tax state), and structural negotiation including 338(h)(10) where eligible. These three should be on the table for almost every LMM seller. The other five are more situationally specific but can produce massive savings when they apply.

What we observe across the 76 buyers we work with directly: different buyer archetypes have different willingness to engage on tax structure. Search funders typically want clean stock sales with minimal structural complexity. Lower middle market PE firms often prefer 338(h)(10) elections and will pay for them. Strategic acquirers vary widely — some are sophisticated tax buyers; others want simple. Family offices often have unique tax positions that affect their preferences. Knowing which structures your realistic buyer pool typically agrees to is information that helps you plan tax structure before going to market — which is exactly when these strategies need to be in motion.

StrategyBest ForLead TimeRealistic Savings
1. QSBS Section 1202Qualifying C-corp shareholders, 5+ year hold5+ yearsUp to $2.4M (eliminates federal tax on $10M of gain)
2. Installment SaleAny seller with seller note portion0-6 months$150K-$400K bracket arbitrage on $4M gain
3. ESOP Section 1042C-corp owners with employee succession goal12-18 months100% federal capital gains deferral indefinitely
4. Section 1031 (Real Estate)Owners with appreciated business real estate0-6 monthsDefer 23.8% federal + state on real estate gain
5. Opportunity ZonesOwners with 10+ year illiquid horizon0-6 monthsDefer + reduce + eliminate appreciation after 10 years
6. Charitable Remainder TrustPhilanthropic owners with appreciated interests6-12 monthsDefer gain + charitable deduction + lifetime income
7. State ResidencyOwners in high-tax states (CA, NY, NJ)18-24 months$300K-$1M+ on $5M deal
8. 338(h)(10) + StructureS-corp sellers to corporate buyers0-3 months (LOI)$100K-$500K on $5M deal

Worked example: combining strategies on a $7M sale

Let’s walk through a realistic combined-strategy example. Mark owns a 14-year-old commercial HVAC company in California. He operates as an S-corp. He’s 58, has $400K of W-2-equivalent income, and is selling for $7M with $6M of expected gain. His default tax outcome (no planning) would be approximately $1.43M federal (20% + 3.8% NIIT on $6M) + $798K California state tax = $2.23M total tax. After-tax proceeds: roughly $4.77M.

Now consider what changes with planning starting 24 months before sale: Strategy 7 — Mark establishes residency in Texas 20 months before sale. Saves $798K of California state tax. Strategy 2 — Mark agrees to receive $2M as a 5-year seller note (installment sale). The $2M of gain is recognized $400K/year for 5 years, keeping more in the 15% bracket. Saves approximately $90K of federal tax. Strategy 8 — Mark negotiates a 338(h)(10) election with the corporate buyer in exchange for a $400K higher purchase price. Net after additional tax: approximately $200K of additional after-tax proceeds.

Combined effect: $798K state tax saved + $90K bracket arbitrage saved + $200K negotiation premium captured = approximately $1.09M of additional after-tax proceeds on a $7M deal. After-tax proceeds increase from $4.77M to roughly $5.86M. Additional advisor cost (M&A tax attorney + state-tax attorney + structural counsel): roughly $80K-$120K. Net benefit: approximately $970K-$1.01M.

What this required: engaging a tax attorney 24 months before sale (not after the LOI). Mark’s willingness to genuinely relocate to Texas. Negotiation of the 338(h)(10) premium in the LOI rather than as an afterthought. CPA running the installment-sale math to confirm bracket benefits. None of this is exotic. None of it is a tax shelter. All of it is straightforward application of existing tax code.

What Mark CAN’T do: Section 1202 QSBS doesn’t apply because he’s an S-corp (would’ve required converting to C-corp 5+ years before sale). Section 1042 ESOP rollover doesn’t apply because he’s S-corp (different ESOP path available with different benefits). Section 1031 doesn’t apply unless he owns the building (he doesn’t in this example). Opportunity Zone reinvestment is an option but he wants liquidity, not a 10-year illiquid investment. CRT doesn’t apply because he wants to leave wealth to his children, not charity. The four strategies that DO apply produced ~$1M of additional after-tax proceeds.

Common mistakes owners make trying to “avoid” capital gains tax

Mistake 1: Engaging a tax attorney AFTER the LOI is signed. By the LOI, the structural decisions are largely set. Asset vs. stock, 338(h)(10) status, allocation philosophy, installment terms — these get specified in the LOI. Tax counsel engaged after signing is doing damage control, not optimization. The single highest-ROI thing an owner can do 12-18 months before sale is engage a tax attorney.

Mistake 2: Relying on aggressive tax shelters or offshore structures. If a strategy promises full tax avoidance without a structural change, the IRS likely has it on a listed-transactions or reportable-transactions list. The penalties for using listed transactions can exceed the original tax. Stick with IRS-recognized strategies in the existing tax code — QSBS, Section 1042, installment sales, Opportunity Zones, CRTs. These work because Congress wrote them into law.

Mistake 3: Assuming “my CPA will handle it.” Most CPAs are excellent at compliance and ongoing tax planning. M&A tax structuring is a different specialty — QSBS analysis, personal goodwill carve-outs, 338(h)(10) negotiation, ESOP feasibility, multistate tax planning. Your existing CPA is essential for compliance, but you generally need a separate M&A tax attorney for the structural decisions. They’re complementary, not substitutes.

Mistake 4: Optimizing taxes in isolation from the buyer’s position. Many of these strategies require buyer cooperation (338(h)(10), installment sales, even structural choices like asset vs. stock). Different buyer types have different preferences. A tax structure that maximizes your after-tax outcome but eliminates 80% of your buyer pool isn’t actually optimal. Knowing which of your realistic buyers will agree to which structures is essential information for tax planning.

Mistake 5: Underestimating state tax exposure. California, New York, New Jersey, Hawaii, Oregon, and Minnesota all have significant capital gains rates (9-13.3%). On a $5M gain, state tax can exceed $665K. Many owners focus on federal-only strategies and overlook state planning entirely. State residency planning often produces the largest single savings of any strategy — but only if started 18-24 months before sale.

Mistake 6: Skipping the cost-vs-savings analysis. Some strategies (CRTs, ESOPs) involve substantial setup costs and ongoing administration. They produce meaningful tax savings but also reduce flexibility, liquidity, or wealth-transfer options. The right strategies for you depend on more than just minimizing tax — they depend on your liquidity needs, family situation, philanthropic intent, and risk tolerance. Run the full math, not just the tax math.

Considering selling your business?

We’re a buy-side partner. Not a sell-side broker. Not a sell-side advisor. We work directly with 76+ buyers — search funders, family offices, lower middle-market PE, and strategic consolidators — who pay us when a deal closes. You pay nothing. No retainer, no exclusivity, no 12-month contract, no tail fee. We can introduce you to M&A tax attorneys who specialize in goodwill structuring for your specific buyer pool, and we can tell you which of our buyers typically agree to 338(h)(10), personal goodwill carve-outs, or asset-vs-stock structures — before you sit down with anyone. Try our free valuation calculator for a starting-point range first if you prefer.

Book a 30-Min Call

When to engage a tax attorney (and what they actually do)

M&A tax attorneys do specific things that general business attorneys and CPAs don’t: structural deal review (entity choice, asset vs stock, 338(h)(10) feasibility); QSBS qualification analysis and documentation; Section 1042 ESOP feasibility; state residency analysis and domicile-establishment planning; installment-sale structuring; Opportunity Zone diligence; CRT design and funding; personal goodwill carve-out structuring; Form 8594 allocation negotiation. These are M&A-specific specialties — not general tax practice.

Cost is typically $25,000-$150,000 for a sophisticated LMM transaction. Compared to total advisor and broker fees of 3-10% of sale price, this is a small line item. The savings on a properly structured deal frequently exceed the legal cost by 10-30x. On a $5M deal, $80K of tax-attorney fees commonly produces $500K-$1M of after-tax savings. The ROI is among the highest in the entire deal process.

When to engage them: 12-18 months before going to market, ideally. Multi-year strategies (state residency, QSBS conversion, ESOP feasibility) require advance setup. State residency moves require 18-24 months to survive scrutiny. ESOP transactions take 6-12 months to set up. Even the simpler strategies (installment sales, allocation negotiation) need to be on the table during LOI discussions, not after.

Coordinating with your CPA, M&A attorney, and (if applicable) wealth advisor: the tax attorney handles structure; the CPA handles compliance; the M&A attorney handles deal documents; the wealth advisor handles post-sale investment and estate planning. All four should be talking before the LOI is signed. The most expensive moment in any business sale is the LOI signing — that’s when structural options narrow rapidly. Have your team in place before that moment.

Conclusion

There is no legal way to fully avoid capital gains tax on a profitable business sale. There are eight legal, IRS-recognized ways to defer it, reduce it, or in qualifying QSBS cases eliminate the federal portion of it. Used in combination, with 12-24 months of advance planning and proper professional support, these strategies can save 30-50% of the default tax bill on a typical LMM exit — often $500K to $2M+ on a $5M-$10M sale. The owners who get those savings engage tax attorneys 12-18 months before going to market. The owners who don’t, leave that money on the table they’ll never recover. Sell-side brokers don’t optimize for after-tax outcomes — they’re paid on the closing, not on what you net. We’re a buy-side partner. Different incentive structure. We don’t charge sellers; the buyer pays us. That changes who gets honest answers about deal structure, and when. If you’re considering selling within the next 12-36 months, the highest-ROI thing you can do this quarter is talk to an M&A tax attorney about which of these strategies apply to your specific situation — and a buy-side partner who can tell you which of your realistic buyers will actually agree to the structures that matter most. Nothing in this article is tax or legal advice for your specific circumstances. Always consult your own M&A tax attorney and CPA before structuring any transaction.

Frequently Asked Questions

Can I really avoid all capital gains tax when selling my business?

No. There is no legal U.S. tax strategy that eliminates capital gains tax entirely on a profitable business sale in a single move. What you can do legally is defer the tax (Section 1042 ESOP rollover, Opportunity Zones, installment sales), reduce it via lower brackets or state planning, or in QSBS-qualifying situations exclude up to $10M of federal gain entirely. Anyone promising full tax avoidance without a structural change is selling an aggressive shelter the IRS likely has on a listed-transaction list.

What is the Section 1202 QSBS exclusion?

Section 1202 of the Internal Revenue Code lets qualifying C-corp shareholders exclude up to $10M (or 10x basis, whichever is greater) of federal capital gain from a stock sale. The corporation must have been a C-corp at issuance with $50M or less in gross assets, the shareholder must have held the stock for 5+ years, and the business must be a qualified trade (most operating businesses qualify; service businesses in health, law, finance, accounting, consulting, and similar professional services do not). For qualifying owners, this can eliminate roughly $2.38M of federal tax.

How does an installment sale reduce capital gains tax?

An installment sale lets you receive sale proceeds across multiple tax years, recognizing gain proportionally each year. By spreading $4M of gain across 4 years, more of it stays in the 15% bracket instead of jumping to 20% + 3.8% NIIT. Savings on a typical $5M deal range from $150K-$400K depending on filing status and other income. The buyer typically pays 30-40% at closing and the rest as a seller note over 3-7 years. Installment sales work best when the seller doesn’t need 100% of proceeds at closing and trusts the buyer’s creditworthiness.

What is Section 1042 and how does an ESOP rollover defer capital gains?

Section 1042 lets a C-corp owner who sells 30%+ of the company to an Employee Stock Ownership Plan defer capital gains tax indefinitely if proceeds are reinvested in Qualified Replacement Property (QRP) within 12 months. The deferred gain isn’t recognized until the QRP is sold — and with a step-up at death, the gain can be eliminated entirely. ESOPs make sense for ~10-15% of LMM exits where the owner has employee succession goals. Valuations are typically 80-90% of strategic/PE prices, but 100% of federal capital gains tax is deferred.

Does Section 1031 like-kind exchange apply to selling a business?

Only to real estate. Since the 2017 Tax Cuts and Jobs Act, Section 1031 applies exclusively to real property — not to business assets, goodwill, equipment, or intellectual property. If your business owns the real estate it operates from, you can structure that real estate portion as a 1031 exchange (45-day identification, 180-day closing, qualified intermediary required). For business interests themselves, 1031 is no longer available.

How do Opportunity Zone investments help with capital gains?

Qualified Opportunity Zone (QOZ) investments offer three layers of benefit: defer existing gains until 2026 or sale of the QOF (whichever first); 10-15% basis step-ups at 5 and 7 years of holding; and complete exclusion of appreciation on the QOZ investment itself if held for 10+ years. You only invest the gain (not the full proceeds) within 180 days of sale. This requires illiquid 10+ year horizon and careful diligence on the QOF manager — many QOFs have lost money since 2018.

Should I move to Texas or Florida before selling my business?

If you currently live in California (13.3%), New York (10.9%), or another high-tax state, and your expected gain is $2M+, the math often favors establishing residency in a no-tax state (TX, FL, WY, TN, NV) before sale. Required: 18-24 months of genuine domicile change — primary home, driver’s license, voter registration, doctors, banking, time spent. State tax authorities scrutinize the move heavily. On a $5M gain, the savings can exceed $665K compared to staying in California.

What is a Charitable Remainder Trust and when does it make sense?

A Charitable Remainder Trust (CRT) is an irrevocable trust that holds appreciated business interests, sells them tax-free at the trust level, pays you lifetime income, and distributes the remainder to charity at your death. Benefits: capital gains deferral, current charitable deduction, lifetime income on pre-tax proceeds, estate-tax reduction. Caveats: the principal goes to charity, not heirs; the trust is irrevocable; you need genuine philanthropic intent. CRTs work for owners with strong charitable goals, not for tax avoidance alone.

How much can a 338(h)(10) election save (or cost)?

A 338(h)(10) election typically increases the seller’s tax bill by 5-15% of deal value because portions of the deal that would have been long-term capital gains become depreciation recapture or other ordinary income. But the buyer gains roughly 5-15% of deal value in tax benefits (basis step-up + 15-year goodwill amortization). Properly negotiated, the buyer pays a 5-10% premium on the headline price to compensate the seller. Net effect: typically $100K-$500K additional after-tax proceeds on a $5M deal — if negotiated explicitly in the LOI, not as an afterthought.

When should I engage a tax attorney for a business sale?

Ideally 12-18 months before going to market — or 18-24 months if state residency planning or QSBS conversion is in play. M&A tax attorneys handle structural decisions (entity choice, asset vs stock, 338(h)(10) feasibility, QSBS analysis, ESOP feasibility, state-tax planning, personal goodwill structure) that mostly get locked in at the LOI. Engaging them after the LOI is signed limits options to damage control rather than optimization. Cost: $25K-$150K typically; savings frequently exceed cost by 10-30x.

Can I combine multiple capital gains strategies in one sale?

Yes — most sophisticated exits use 2-4 strategies in combination. A typical layered structure might include: state residency planning (Strategy 7) + installment sale on the seller-note portion (Strategy 2) + 338(h)(10) negotiated for additional purchase price (Strategy 8) + QSBS exclusion if it applies (Strategy 1). Properly layered, savings can compound to 30-50% of the default tax bill. Some strategies are mutually exclusive (e.g., can’t use both QSBS and 1042 on the same shares); a tax attorney runs the combined math.

Why do sell-side brokers not focus on after-tax outcomes?

Sell-side brokers and M&A advisors are paid as a percentage of the headline sale price, not as a percentage of your after-tax proceeds. Their economic incentive is to maximize the gross deal value — which doesn’t always align with maximizing what you net after federal tax, state tax, allocation, and structural choices. The structural decisions that move 15-30% of after-tax proceeds (asset vs. stock, 338(h)(10), allocation, QSBS qualification, ESOP feasibility) often get glossed over in a sell-side process. That’s why engaging an M&A tax attorney directly — separate from your broker — matters so much.

How is CT Acquisitions different from a sell-side broker or M&A advisor?

We’re a buy-side partner, not a sell-side broker. Sell-side brokers represent you and charge you 8-12% of the deal (often $300K-$1M) plus monthly retainers, run a 9-12 month auction process, and require 12-month exclusivity. We work directly with 76+ buyers — search funders, family offices, lower middle-market PE, and strategic consolidators — who pay us when a deal closes. You pay nothing. No retainer, no exclusivity, no contract until a buyer is at the closing table. For tax-structuring questions specifically, we can introduce you to M&A tax attorneys who specialize in your specific buyer pool, and we can tell you which of our buyers typically agree to 338(h)(10), installment sales, personal goodwill carve-outs, or specific allocation philosophies — before you sit down with anyone. That’s information sell-side advisors don’t have because they don’t see the same buyers across deals. Nothing in this article is tax or legal advice; always consult your own M&A tax attorney and CPA.

Related Guide: How Much Tax When You Sell a Business — Federal capital gains, state taxes, and the structural choices that move 15-25% of net proceeds.

Related Guide: How Is Goodwill Taxed When Selling a Business — Personal vs. enterprise goodwill, allocation negotiation, and the C-corp double-tax problem.

Related Guide: Selling a Business: Complete Tax Guide — Federal, state, and structural tax decisions for LMM business owners.

Related Guide: Selling an ESOP-Owned Company — How Section 1042 rollovers work and when ESOPs make sense for owner succession.

Want a Specific Read on Your Business?

30 minutes, confidential, no contract, no cost. You leave with a read on your local buyer market and a likely valuation range.

CT Acquisitions is a trade name of CT Strategic Partners LLC, headquartered in Sheridan, Wyoming.
30 N Gould St, Ste N, Sheridan, WY 82801, USA · (307) 487-7149 · Contact

Leave a Reply

Your email address will not be published. Required fields are marked *