# How to reduce taxes on the sale of a business, by deadline

By James Ustby, CFP®, APMA®. Published 2026-11-05. Canonical URL: https://jamesustby.com/articles/reduce-taxes-on-sale-of-business

> How to reduce taxes on the sale of a business, ranked by deadline: some levers need years, some go in the purchase agreement, one runs after closing.

## Key takeaways

- Most legitimate ways to reduce taxes on the sale of a business have a deadline, and many of those deadlines fall before a buyer ever names a price.
- QSBS needs C corporation stock held more than 5 years (or at least 3 years for stock acquired after July 4, 2025), so it cannot be started 18 months before a sale and still give a full exclusion.
- Deal structure, price allocation and installment terms are set in the purchase agreement. Gifts of shares to family, a trust or charity get much weaker once the sale is practically certain.
- In our hypothetical $10,000,000 C corporation stock sale with a $500,000 basis, federal tax and the 3.8 percent tax come to $2,261,000 with no planning and $0 if every QSBS test is met. North Carolina adds $379,050 at 3.99 percent in the no-planning case.
- An installment note in the same example does not change the $2,261,000 total at flat top rates, but it moves $1,017,450 of it out of the year of sale.

## The short answer

You can reduce taxes on the sale of a business legally, but most of the levers have a deadline, and the earliest ones close years before closing day. QSBS needs C corporation stock held more than 5 years under the older rules. Deal structure, price allocation and installment terms have to be written into the purchase agreement. Gifts of shares to family, a trust or a charity are on firmest ground before a buyer has named a price.

One lever runs after the sale: an opportunity zone investment of the gain within 180 days. The table below ranks each lever by when it has to be in place and points to the page on this site that explains it in detail.

## Which levers reduce taxes on a business sale, and when must each be in place?

Read this table from the top. The higher a lever sits, the earlier it has to start. If you are 6 to 36 months from a sale, some rows may already be closed to you, and that is useful to know before you negotiate.

| Lever | What it does | Must be in place by | Where it is explained |
|---|---|---|---|
| Qualified small business stock (Section 1202) | Excludes some or all federal gain on qualifying C corporation stock | Stock acquired at original issue as C corporation stock, then held more than 5 years at the sale (acquired on or before July 4, 2025), or at least 3, 4 or 5 years for 50, 75 or 100 percent (acquired after July 4, 2025) | [Who qualifies for QSBS](https://jamesustby.com/articles/qsbs-section-1202-qualify) |
| Owner retirement plan contributions | Deducts contributions against ordinary income in the years before the sale | Each year while the business still pays you W-2 wages or earned income | [Cash balance plan for an owner](https://jamesustby.com/articles/cash-balance-plan-owner-contribution) |
| Gifts of shares to family or a trust | Moves future growth outside your estate at today's value | Before a price is set, using the $15,000,000 basic exclusion amount for 2026 | [When to start exit planning](https://jamesustby.com/articles/exit-planning-business-owner-start) |
| Material participation for the 3.8 percent tax | Can keep gain on S corporation or partnership interests partly or fully outside the net investment income tax | Your role in the business in the years before the sale | [What tax you pay when you sell](https://jamesustby.com/articles/selling-my-business-tax-implications) |
| Charitable remainder trust or donor-advised fund | Shares given before the sale are sold by the trust or charity, not by you | Before the sale is practically certain | This page, below |
| Stock sale vs asset sale, and the price allocation | Sets how much of the price is capital gain and how much is ordinary income | Letter of intent and purchase agreement; both sides file Form 8594 in an asset sale | [Asset sale vs stock sale](https://jamesustby.com/articles/asset-sale-vs-stock-sale-tax) |
| Installment sale | Reports gain as principal arrives instead of all at closing | Payment terms in the purchase agreement, before closing | [How an installment sale spreads tax](https://jamesustby.com/articles/installment-sale-capital-gains-tax) |
| Opportunity zone investment of the gain | Defers tax on the gain invested in a qualified opportunity fund | Within 180 days after the sale | [Opportunity zone fund in 2026 or 2027](https://jamesustby.com/articles/opportunity-zone-2026-or-2027-business-sale) |
| State of residence | North Carolina taxes residents at 3.99 percent for 2026 | Not a lever this page addresses | This page, below |

Each row is a legal mechanism in the tax code. None of them is a fit for every owner, and several carry costs or risks of their own. Your CPA and attorney decide which apply to you.

## What can only be started years ahead?

**QSBS.** Section 1202 excludes gain on stock in a C corporation, acquired at original issue, in a company that met the active business test during substantially all of your holding period. For stock acquired on or before July 4, 2025, the statute requires a holding period of more than 5 years. For stock acquired after that date, the exclusion is 50 percent at 3 years, 75 percent at 4 years and 100 percent at 5 years or more. The per-company cap is the greater of 10 times basis or a dollar limit: $10,000,000 for older stock and $15,000,000 for newer stock. If your company is an S corporation or LLC today, new C corporation stock issued now would reach its first tier no earlier than late 2029. The details are in [who qualifies for QSBS](https://jamesustby.com/articles/qsbs-section-1202-qualify).

**Retirement plan contributions.** The IRS says plan contributions can only be made from compensation, and that S corporation distributions are not earned income for retirement plans. After the sale, the wages usually stop, and so does the deduction. The years of contributions have to happen while you still draw a paycheck from the company.

**Gifts of shares.** The IRS gift tax FAQ treats any gift as taxable unless an exception applies, and values it at fair market value, the price between a willing buyer and a willing seller. A gift made before a buyer names a price can be valued on the business as it stands. The 2026 annual exclusion is $19,000 per recipient, and the basic exclusion amount for 2026 is $15,000,000 per person, under Rev. Proc. 2025-32. A gift does not erase income tax on the sale. The recipient generally takes your basis, so the gain moves with the shares.

**The 3.8 percent tax.** The net investment income tax is 3.8 percent of the smaller of net investment income or the amount over $250,000 of modified adjusted gross income (joint) or $200,000 (single). Section 1411(c)(4) limits the gain counted on the sale of an interest in a partnership or S corporation to what would be net investment income if the entity sold its assets. The IRS Q&A says gain on those interests is included to the extent the owner was passive. That exception does not cover C corporation stock.

## What has to go into the purchase agreement?

**Structure and allocation.** In a stock sale, owners sell shares and the gain is usually capital gain. In an asset sale, the price is split across asset classes, and the IRS Form 8594 instructions say both buyer and seller generally file the form, using the residual method, with goodwill and going concern value in Class VII. A C corporation that sells assets pays the 21 percent corporate tax in Section 11 before any cash reaches you. The comparison is in [asset sale vs stock sale](https://jamesustby.com/articles/asset-sale-vs-stock-sale-tax).

**Installment terms.** Section 453 applies the installment method when at least one payment arrives after the year of sale, unless you elect out. Recapture income is still recognized in the year of sale, and stock traded on an established market cannot use the method. Section 453A adds an interest charge when the sales price is over $150,000 and installment notes from the year still outstanding at year end exceed $5,000,000. The mechanics are in [how an installment sale spreads tax](https://jamesustby.com/articles/installment-sale-capital-gains-tax).

**Charitable transfers.** A charitable remainder trust is exempt from income tax under Section 664, must pay at least 5 percent and no more than 50 percent a year, and must leave a remainder worth at least 10 percent of the starting value to charity. Payments to you are taxed in tiers, ordinary income first, then capital gain, the IRS says. The timing risk is real. In Estate of Hoensheid (T.C. Memo. 2023-34), as summarized by Baker Tilly, a donor gave shares to a donor-advised fund two days before closing, and the Tax Court taxed him on the gain because the sale was practically certain. Charitable planning around a sale belongs with your attorney well before the deal is final; [a charitable remainder trust before selling a business](https://jamesustby.com/articles/charitable-remainder-trust-before-selling-business) covers the timing.

## What can still be done after closing?

The opportunity zone rules in Section 1400Z-2 let you defer capital gain by investing it in a qualified opportunity fund during the 180-day period beginning on the date of the sale. The IRS FAQ says only the amount of gain invested is deferred, and that ordinary gain does not qualify. Under the current rules, deferred gain is included by December 31, 2026. For amounts invested after December 31, 2026, the 2025 law changes the deferral to 5 years after the investment and adds a 10 percent basis increase after a 5-year hold. IRS Notice 2026-40 says a 2026 gain invested in 2027 within its 180 days can use the new rules; [whether to invest a 2026 gain in 2026 or 2027](https://jamesustby.com/articles/opportunity-zone-2026-or-2027-business-sale) shows the math.

After the wire lands, the work shifts to setting aside the tax, keeping cash safe and building a plan, covered in [what to do after selling your business](https://jamesustby.com/articles/what-to-do-after-selling-business). A large gain can also raise Medicare Part B and Part D premiums for owners on Medicare, since Medicare.gov says those premiums can be higher depending on income; see [IRMAA after selling a business](https://jamesustby.com/articles/irmaa-after-selling-business). How much of the proceeds it takes to retire is its own question, worked backward in [how much you need to sell your business for to retire](https://jamesustby.com/articles/how-much-business-sale-to-retire).

## Hypothetical example: what do two levers change on a $10,000,000 sale?

*Hypothetical example for illustration only, not a projection or a recommendation.* Walt, 58, married filing jointly, lives in North Carolina. In 2012 he formed a C corporation and bought all of its founding shares at original issue for $500,000. He sells the stock for $10,000,000. To keep the math sourced, we use 2026 rates for every year and assume his other taxable income already exceeds $613,700, the 2026 point where the 20 percent capital gains rate starts for joint filers under Rev. Proc. 2025-32. We ignore deal costs and interest on any note.

| No planning, all cash at closing | Amount |
|---|---|
| Sale price | $10,000,000 |
| Basis | $500,000 |
| Long-term capital gain | $9,500,000 |
| Federal capital gains tax at 20 percent | $1,900,000 |
| Net investment income tax at 3.8 percent | $361,000 |
| North Carolina tax at 3.99 percent | $379,050 |
| Total tax | $2,640,050 |
| Left after these taxes | $7,359,950 |

Because Walt sells C corporation stock, the active-owner exception in Section 1411(c)(4) does not apply, so the 3.8 percent tax is in the table.

**Lever one, QSBS.** Walt acquired his stock after September 27, 2010 and on or before July 4, 2025, so Section 1202(a)(4) sets the exclusion at 100 percent once the stock is held more than 5 years. His cap is the greater of $10,000,000 or 10 times his $500,000 basis, which is $5,000,000. The cap is $10,000,000, above his $9,500,000 gain.

| Federal tax on the gain | Stock does not qualify | Every Section 1202 test met |
|---|---|---|
| Gain | $9,500,000 | $9,500,000 |
| Excluded from income | $0 | $9,500,000 |
| Capital gains tax at 20 percent | $1,900,000 | $0 |
| Net investment income tax at 3.8 percent | $361,000 | $0 |
| Federal total | $2,261,000 | $0 |

The 3.8 percent tax drops too, because Section 1411 counts only gain taken into account in computing taxable income. How North Carolina treats excluded gain is a separate state question, so this table is federal only.

**Lever two, an installment note.** Now assume the stock does not qualify. Walt takes $5,500,000 at closing and a $4,500,000 note paid in five equal principal payments of $900,000. His gross profit percentage is $9,500,000 divided by $10,000,000, or 95 percent.

| Installment schedule | Principal received | Gain reported (95 percent) | Federal tax at 23.8 percent |
|---|---|---|---|
| Year of sale | $5,500,000 | $5,225,000 | $1,243,550 |
| Each of the next five years | $900,000 | $855,000 | $203,490 |
| Total over six years | $10,000,000 | $9,500,000 | $2,261,000 |

The total federal tax is the same $2,261,000, because we held the rate flat. What changes is timing: $1,017,450 of it moves out of the year of sale. The $4,500,000 note is under the $5,000,000 test in Section 453A. In real life, later years may land in lower brackets or higher ones, and the buyer may not pay. Run your own price and basis in the [business sale calculator](https://jamesustby.com/business-sale-calculator).

## What does North Carolina add?

The North Carolina Department of Revenue states that the individual income tax rate is 3.99 percent for 2026. Session Law 2026-41, signed July 7, 2026, sets 3.49 percent for 2027 through 2029 without revenue triggers, per the General Assembly's fiscal note. At 3.99 percent, the state tax on Walt's $9,500,000 gain is the $379,050 in his first table. Residency rules decide which state taxes a gain, and this page gives no advice on moving. If a move is on your mind for other reasons, raise the timing with your CPA before signing.

If the sale is still two or three years away, the free [Exit Readiness Scorecard](https://jamesustby.com/scorecard) shows which of the early rows above you still have time to use.

## The bottom line

The levers that reduce taxes on a business sale are mostly about timing. QSBS needs years of holding, retirement plan deductions need years of wages, and gifts are on firmest ground before a price exists. Structure, allocation and installment terms are fixed when the purchase agreement is signed, and the opportunity zone window closes 180 days after the sale. In Walt's hypothetical, one early fact (qualifying C corporation stock) moved federal tax from $2,261,000 to $0, while a late lever (an installment note) moved only when the tax was paid.

Which rows in the deadline table are still open for your company, and which ones closed while you were busy running it?

## Next steps if you own a business

- **Get the next one by email.** [The Liquidity Letter](#ll-foot-title) covers exits, cash and taxes for owners with millions on the line. Sign up in the box at the bottom of this page.
- **Run your own numbers.** The free [business sale calculator](https://jamesustby.com/business-sale-calculator) shows what you keep at your price, basis and structure under 2026 rates.
- **Talk it through.** If a sale is 6 to 36 months away, [book a free call](https://oncehub.com/jamesustby). Bring your entity type, your stock issue dates and basis, and any letter of intent or offer terms.

## Questions people ask next

### Can I avoid all tax when I sell my business?

Rarely. The main federal exclusion is Section 1202 for qualifying C corporation stock, and it has a per-company cap and strict tests. Most other levers defer tax, move it to a lower rate, or move future growth out of an estate rather than erase the gain.

### Is it too late to plan once I sign a letter of intent?

Not entirely, but the list gets shorter. Structure, allocation and installment terms can still be negotiated in the purchase agreement, and an opportunity zone investment can be made within 180 days after the sale. QSBS holding periods, years of retirement plan contributions and gifts made before a price is set cannot be added at that point.

### Does the 3.8 percent tax apply when I sell C corporation stock?

Generally yes, for an owner above the $250,000 joint or $200,000 single threshold. The statute's exception for active owners in Section 1411(c)(4) covers interests in partnerships and S corporations. Gain excluded under Section 1202 is not included in income, so it is outside the 3.8 percent tax too.

### Does an installment sale lower the total tax?

It changes when gain is reported. At the same rate every year, the total federal tax is the same, as our example shows. It can lower the total only if later years land in a lower bracket, and a note over $5,000,000 outstanding at year end can add an interest charge under Section 453A.

### Does giving shares to a donor-advised fund right before closing still work?

It may not. In Estate of Hoensheid (T.C. Memo. 2023-34), the Tax Court taxed the donor on the gain from shares given two days before closing because the sale was practically certain. The timing question belongs with your attorney before the deal is far along.

## Sources

- [26 U.S. Code Section 1202, Partial exclusion for gain from certain small business stock, (a)(1), (a)(4) to (a)(6), (b)(4), (d)(1) (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/1202#a_5)
- [26 U.S. Code Section 1202, (c)(1) and (c)(2), original issue and active business requirement (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/1202#c)
- [26 U.S. Code Section 1411, Imposition of net investment income tax (GovInfo)](https://www.govinfo.gov/link/uscode/26/1411)
- [26 U.S. Code Section 1411(c)(4), dispositions of interests in partnerships and S corporations (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/1411#c_4)
- [IRS, Questions and Answers on the Net Investment Income Tax](https://www.irs.gov/newsroom/questions-and-answers-on-the-net-investment-income-tax)
- [26 U.S. Code Section 453, Installment method (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/453#b)
- [26 U.S. Code Section 453A, interest on deferred tax, (b)(1) and (b)(2) (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/453A#b_2)
- [26 U.S. Code Section 1400Z-2, Special rules for capital gains invested in opportunity zones, with Pub. L. 119-21 amendments (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/1400Z-2)
- [IRS, Opportunity zones frequently asked questions](https://www.irs.gov/newsroom/opportunity-zones-frequently-asked-questions)
- [IRS Notice 2026-40, opportunity zone transition rules after Public Law 119-21](https://www.irs.gov/pub/irs-drop/n-26-40.pdf)
- [26 U.S. Code Section 664, Charitable remainder trusts (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/664)
- [IRS, Charitable remainder trusts](https://www.irs.gov/charities-non-profits/charitable-remainder-trusts)
- [26 U.S. Code Section 11, Tax imposed on corporations (Cornell LII)](https://www.law.cornell.edu/uscode/text/26/11)
- [IRS, Instructions for Form 8594, Asset Acquisition Statement](https://www.irs.gov/instructions/i8594)
- [IRS, Internal Revenue Bulletin 2025-45, Rev. Proc. 2025-32 (2026 capital gains thresholds, basic exclusion amount, gift annual exclusion)](https://www.irs.gov/irb/2025-45_irb)
- [IRS, Tax inflation adjustments for tax year 2026 (37 percent bracket thresholds)](https://www.irs.gov/newsroom/irs-releases-tax-inflation-adjustments-for-tax-year-2026-including-amendments-from-the-one-big-beautiful-bill)
- [IRS, Topic no. 409, Capital gains and losses (28 percent maximum on the taxable part of section 1202 gain)](https://www.irs.gov/taxtopics/tc409)
- [IRS, What's new, estate and gift tax ($15,000,000 basic exclusion amount for 2026)](https://irs.gov/businesses/small-businesses-self-employed/whats-new-estate-and-gift-tax)
- [IRS, Frequently asked questions on gift taxes](https://www.irs.gov/node/1609)
- [IRS, Property basis FAQ (basis of property received as a gift)](https://www.irs.gov/help-resources/tools-faqs/faqs-for-individuals/frequently-asked-tax-questions-answers/capital-gains-losses-and-sale-of-home/property-basis-sale-of-home-etc/property-basis-sale-of-home-etc)
- [IRS, Publication 561 (2025), Determining the Value of Donated Property](https://www.irs.gov/pub/irs-prior/p561--2025.pdf)
- [IRS, Retirement plan FAQs regarding contributions, S corporation](https://www.irs.gov/retirement-plans/retirement-plan-faqs-regarding-contributions-s-corporation)
- [North Carolina Department of Revenue, Tax Rate Schedules](https://www.ncdor.gov/taxes-forms/individual-income-tax/tax-rate-schedules)
- [Medicare.gov, Medicare costs (income-related premiums)](https://www.medicare.gov/basics/costs/medicare-costs)
- [Baker Tilly, Be careful to properly time pre-sale gifts (secondary source, summary of Estate of Hoensheid v. Commissioner, T.C. Memo. 2023-34)](https://www.bakertilly.com/insights/be-careful-to-properly-time-pre-sale-gifts)
- [North Carolina General Assembly, Fiscal Research Division, fiscal note on Senate Bill 257 (Session Law 2026-41), July 7, 2026](https://www3.ncleg.gov/Sessions/2025/FiscalNotes/Senate/PDF/SFN257v7.pdf)

---

Author: James Ustby, CFP®, APMA®, Wealth Advisor, LPL Financial, Durham and Chapel Hill, North Carolina. This material is for general information only and is not intended to provide specific advice or recommendations for any individual. Examples are hypothetical and for illustration only. Securities and advisory services offered through LPL Financial, a registered investment advisor. Member FINRA / SIPC. Certified Financial Planner Board of Standards Center for Financial Planning, Inc. owns and licenses the certification marks CFP® and CERTIFIED FINANCIAL PLANNER® in the United States to Certified Financial Planner Board of Standards, Inc., which authorizes individuals who successfully complete the organization’s initial and ongoing certification requirements to use the certification marks.
