The legal ways to avoid capital gains tax on a business sale fall into five federal strategies: the Section 1202 qualified small business stock exclusion, an Employee Stock Ownership Plan rollover under Section 1042, an installment sale under Section 453, a charitable remainder trust, and a Qualified Opportunity Fund investment. One of them (QSBS) can eliminate the federal tax entirely. The others defer it, spread it over years, or trade the lump sum for an income stream. Federal long-term capital gains rates run from 0% to 20%, plus a 3.8% Net Investment Income Tax once modified adjusted gross income crosses $250,000 for joint filers or $200,000 for single filers.1Internal Revenue Service. Topic No. 559, Net Investment Income Tax Which strategies you can actually use depends first on how the deal is structured.
Stock Sale or Asset Sale Comes First
Whether you are selling ownership interests (stock in a corporation, membership units in an LLC) or the individual assets of the business determines which tools are on the table.
In a stock sale, the gain is typically a single long-term capital gain measured against your basis in the shares. Buyers usually resist this structure because they inherit the company’s liabilities and cannot step up the basis of the underlying assets.
In an asset sale, each category of property has its own tax treatment. Depreciated equipment and furniture trigger depreciation recapture at ordinary income rates. Real estate can generate unrecaptured gain taxed up to 25%. Goodwill is taxed at capital gains rates. Buyer and seller both file Form 8594 to report how the price was allocated across the seven asset classes.2Internal Revenue Service. Instructions for Form 8594 Asset Acquisition Statement Under Section 1060
The QSBS exclusion and the ESOP rollover apply only to stock sales of C corporations. The installment sale and charitable remainder trust work in both structures. That distinction alone eliminates most options for many sellers.
Qualified Small Business Stock Exclusion
Section 1202 lets founders and early investors exclude a large share of the gain from federal tax when they sell qualifying stock. When it fits, it is the strongest tool available because the tax can go to zero rather than just being pushed forward.
The company has to be a domestic C corporation whose aggregate gross assets never exceeded $75 million at any point before and immediately after the stock was issued. You must have acquired the stock at original issue in exchange for cash, property, or services (not from another shareholder). And at least 80% of the corporation’s assets have to be actively used in a qualified trade or business.3Office of the Law Revision Counsel. 26 USC 1202 – Partial Exclusion for Gain from Certain Small Business Stock
How Much You Can Exclude
The percentage of gain you can exclude and the holding period depend on when the stock was issued. For stock acquired on or before July 4, 2025, the holding period is more than five years, and the exclusion tier depends on the acquisition window: 50% for stock acquired between August 11, 1993 and February 17, 2009; 75% for stock acquired from February 18, 2009 through September 27, 2010; and 100% for stock acquired after September 27, 2010 through July 4, 2025.
For stock issued after July 4, 2025, the rules changed under the One Big Beautiful Bill Act. The minimum hold dropped to three years, with the exclusion starting at 50% and rising to 100% at five years. The per-seller gain cap rose from $10 million (or ten times the adjusted basis of the stock, whichever is greater) to $15 million (or fifteen times the adjusted basis). Excluded gain is no longer an alternative minimum tax preference item for stock issued after the Act’s enactment.3Office of the Law Revision Counsel. 26 USC 1202 – Partial Exclusion for Gain from Certain Small Business Stock
Industries That Do Not Qualify
Not every C corporation qualifies. Section 1202 excludes businesses in health, law, engineering, architecture, accounting, consulting, financial services, and brokerage. Banking, insurance, financing, and leasing are also out, as are farming, mining, and hospitality businesses such as hotels and restaurants.4Office of the Law Revision Counsel. 26 U.S. Code 1202 – Partial Exclusion for Gain from Certain Small Business Stock Any business whose principal asset is the reputation or skill of its employees is disqualified. Technology companies, manufacturers, and retailers most commonly qualify.
ESOP Rollover Under Section 1042
Section 1042 lets the owner of a closely held C corporation defer capital gains tax by selling shares to an Employee Stock Ownership Plan and reinvesting the proceeds. This is a deferral, not an exclusion, but it can push a large bill decades into the future.
The company has to be a domestic C corporation at the time of the sale, and its stock cannot be readily tradable on an established securities market. You must have held the shares for at least three years before the transaction. After the sale closes, the ESOP must own at least 30% of the total value of the corporation’s outstanding stock.5Internal Revenue Service. Rev. Rul. 2000-18
To complete the deferral, you have to reinvest the proceeds in qualified replacement property in a window that opens three months before the sale and closes twelve months after. Qualified replacement property means securities issued by domestic operating corporations whose passive investment income does not exceed 25% of gross receipts. The deferred gain attaches to the new securities by reducing their basis, so the tax comes due when those replacement securities are eventually sold.
The Allocation Trap
Shares the ESOP acquired through a Section 1042 transaction cannot be allocated to the seller, to family members related to the seller, or to anyone who owns more than 25% of the company’s stock. The restriction runs for ten years after the sale or until any loan the ESOP used to buy the shares is repaid, whichever is later.6Internal Revenue Service. Chapter 8 Examining Employee Stock Ownership Plans A narrow exception exists for lineal descendants, but only if total allocations to all such descendants stay below 5% of the Section 1042 shares held by the plan. Violations trigger excise taxes.
Installment Sale
Section 453 spreads the taxable gain across multiple years by tying recognition to when you actually receive payments. It works for both asset sales and stock sales, and any sale where at least one payment arrives after the close of the tax year of the sale automatically qualifies unless you elect out.7Office of the Law Revision Counsel. 26 USC 453 – Installment Method
Each payment splits into three pieces: a return of basis (not taxed), capital gain (taxed at capital gains rates), and interest (taxed at ordinary income rates). The gain portion is set by the gross profit ratio, which is total profit divided by contract price, applied to every principal payment.
If a business sells for $2 million with a $1 million adjusted basis, the gross profit ratio is 50%, so a $200,000 principal payment generates $100,000 of taxable gain in that year. By keeping annual recognized gain low, you can stay in the 15% capital gains bracket instead of crossing into the 20% bracket or triggering the 3.8% NIIT.
The Interest Charge on Big Deals
Section 453A adds a wrinkle for large transactions. If the sale price exceeds $150,000 and the total face amount of your outstanding installment obligations arising during the tax year exceeds $5 million at year-end, the IRS charges interest on the deferred tax liability.8Internal Revenue Service. Publication 537 (2025), Installment Sales That charge can eat into the bracket-management benefit on very large deals. You report installment income each year on Form 6252.
Charitable Remainder Trust
A charitable remainder trust is a tax-exempt entity that can sell your business shares without paying immediate capital gains tax, letting the full proceeds compound inside the trust. The trust pays you an income stream for a set term or your lifetime, then distributes whatever remains to a qualified charity.
Timing is the whole game. You have to transfer the shares to the trust before any binding agreement to sell the company exists. If a sale is already locked in when you make the transfer, the IRS treats the gain as yours under the assignment-of-income doctrine and the strategy collapses. Once the trust legitimately owns the shares, it sells and reinvests with no upfront capital gains hit.
The structural rules: the annual payout to the donor must fall between 5% and 50% of the trust’s value, and the present value of the charitable remainder interest, calculated using Section 7520 rates, must equal at least 10% of the net fair market value of the property contributed.9eCFR. 26 CFR 1.664-1 – Charitable Remainder Trusts Higher interest rates make the 10% test easier. Lower rates make it harder, especially for younger donors who would receive payments for decades.
Self-Dealing Rules
Once the trust exists, the donor and trustee are “disqualified persons” under the same self-dealing rules that apply to private foundations. Trust income and assets cannot be used for the donor’s benefit beyond the scheduled payout. Manipulating the timing of asset sales inside the trust to maximize the donor’s personal benefit has been treated as prohibited self-dealing even when the donor never takes physical possession of trust property.10Internal Revenue Service. Self-Dealing and Other Tax Issues Involving Charitable Remainder Unitrusts Violations trigger excise taxes; repeated violations can bring a 200% penalty on the amount involved.
The other tradeoff: you are giving up the assets permanently. The income stream replaces the lump sum, and the remainder goes to charity. Some sellers pair the trust with a life insurance policy held outside it to replace the gifted assets for heirs, at added complexity and cost.
Qualified Opportunity Funds in 2026
The Qualified Opportunity Zone program originally offered three benefits: short-term deferral of capital gains, a partial basis step-up for holding five or seven years, and a permanent exclusion of appreciation after ten years.11Internal Revenue Service. Opportunity Zones Two of those three are effectively gone.
All deferred gains invested in a Qualified Opportunity Fund must be recognized by December 31, 2026, whether or not you have sold the fund interest.12Internal Revenue Service. Opportunity Zones Frequently Asked Questions For a seller acting today, investing the gain in a QOF provides little to no deferral benefit because the recognition date arrives at year-end. The basis step-ups tied to five- and seven-year holds required investment by the end of 2021 and 2019 respectively, so those are no longer reachable for new investors.13RSM US LLP. Mark Your Calendar: Opportunity Zone Tax Deferrals End in 2026
What survives is the ten-year appreciation exclusion. Hold a QOF investment for at least ten years, and the tax basis of that investment adjusts to fair market value on the date you sell it. Any appreciation in the fund over that decade is never taxed.12Internal Revenue Service. Opportunity Zones Frequently Asked Questions The benefit applies to the QOF investment itself, separate from the original deferred gain. A seller who invests in a QOF in 2026, pays the tax on the original gain at year-end, and then holds for ten years still walks away from a decade of appreciation tax-free. The fund must keep at least 90% of its assets in designated Opportunity Zones to stay qualified.
Depreciation Recapture Survives Most Strategies
Focus only on the capital gains rate and you can miss the piece that often produces the largest single line on the tax bill. When you sell tangible personal property like equipment, vehicles, and furniture that you previously depreciated (Section 1245 property), the IRS requires you to recapture the depreciation by taxing that portion of the gain at ordinary income rates, which can run as high as 37%. This covers all depreciation claimed on the asset, including Section 179 and bonus depreciation deductions.14Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Real estate is different. Depreciation recapture on Section 1250 property (buildings and structural components) is taxed at a maximum rate of 25% rather than full ordinary income rates. Only the portion of the gain attributable to depreciation gets this treatment; appreciation above original cost still qualifies for normal capital gains rates.
QSBS can eliminate the issue for a qualifying stock sale because the entire gain is excluded. A charitable remainder trust or installment sale can spread or defer recognition but does not change the character of the income. In an asset sale, recapture on the depreciated portion of the price is usually unavoidable. Sellers who claimed aggressive depreciation should model this separately.
Forms You Have to File
Missing a form can invalidate an election or bring penalties, so match the paperwork to the strategy.
- Form 8949 and Schedule D report all capital gains and losses from the sale of business interests.15Internal Revenue Service. Instructions for Form 8949
- Form 8594 is filed by both buyer and seller when a group of assets making up a trade or business changes hands, allocating the price across the seven asset classes.2Internal Revenue Service. Instructions for Form 8594 Asset Acquisition Statement Under Section 1060
- Form 6252 is filed by installment sellers for the year of sale and every subsequent year a payment arrives.
- Form 8997 is filed annually by any investor holding a Qualified Opportunity Fund investment, and in 2026 it will report the mandatory inclusion of any remaining deferred gains.16Internal Revenue Service. Form 8997 – Initial and Annual Statement of Qualified Opportunity Fund Investments
One boundary worth naming: none of these federal strategies eliminate state capital gains tax. State rates range from zero in states without an income tax to roughly 13% or more in the highest-tax states, and that layer sits on top of whatever federal result you engineer.