Taxes on Selling a Business: Capital Gains and Planning

Short answer: A business sale is generally taxed as capital gain, ordinary income, or both, depending on entity type and whether the deal is an asset sale or a stock sale. Installment sales, charitable trusts, loss harvesting and timing may reduce the tax but rarely eliminate it, and most need to start years before closing. Results depend on individual circumstances.
Last updated November 20, 2026. Federal tax rates and thresholds are as of October 11, 2026, and the asset-allocation rules below are as of November 20, 2026. All are sourced in this guide.
Retirement should be a reward for years of risk-taking, long hours, and wise decisions. Yet for many business owners, the financial stakes are never higher than in the years leading up to retirement. Selling a business or transitioning ownership is more than just a liquidity event. It’s a complex process filled with tax traps and planning opportunities.
This guide walks through the main federal tax considerations when you sell a business, with the trade-offs that come with each. For the broader timeline owners work through before a sale, see our guide to business exit planning. To see how sale proceeds might support your retirement under your own assumptions, try the sell your business and retire calculator.
What federal capital gains tax rates apply when you sell a business?
Gain from selling a business you have held for more than one year is generally a long-term capital gain, taxed at 0%, 15% or 20% depending on your taxable income. Higher earners may also owe the 3.8% Net Investment Income Tax. The table shows the 2026 federal thresholds for two common filing statuses.
| Item | Single | Married filing jointly |
|---|---|---|
| 0% long-term rate applies up to taxable income of | $49,450 | $98,900 |
| 15% rate applies up to taxable income of | $545,500 | $613,700 |
| 20% rate applies above | $545,500 | $613,700 |
| 3.8% NIIT may apply above modified AGI of | $200,000 | $250,000 |
Sources: IRS Rev. Proc. 2025-32 (2026 capital gains thresholds) and the IRS Net Investment Income Tax page (NIIT thresholds). As of October 11, 2026. Thresholds for other filing statuses differ, and tax law changes, so confirm current figures with your CPA.
Not every dollar of a sale is taxed at these rates. In an asset sale, amounts allocated to items such as depreciation recapture, inventory or a non-compete may be taxed as ordinary income, and state taxes may apply as well. The IRS also notes that the taxable part of a gain from qualified small business stock can be taxed at up to 28% (IRS Topic no. 409).
How is the sale of goodwill and other assets taxed in an asset sale?
In an asset sale, the purchase price is generally allocated among the individual assets sold, and the allocation may change how each part is taxed. Buyer and seller typically report it on IRS Form 8594. Goodwill is allocated last, and gain on it may qualify for long-term capital gain treatment. Payments for a non-compete may be taxed as ordinary income, and gain on equipment may be ordinary income up to the depreciation previously claimed. Buyers and sellers often prefer different allocations, so the result depends on your entity type, asset basis and deal terms. Review it with your CPA before signing.
Sources: IRS Instructions for Form 8594 and IRS Publication 544. As of November 20, 2026. Tax law changes, and this is general education, not tax advice.
Start early, preferably three to five years in advance
Planning for taxes related to retirement or selling a business shouldn’t be done hastily. It’s best to start at least three to five years before you plan to make your exit. Many strategies require time to set up and must align with specific holding-period rules.
Starting early may allow you to manage your income better, avoid hitting higher tax brackets, and change your business structure if necessary. Planning ahead does not guarantee a lower tax bill, and some changes carry costs of their own.
Strategies that may reduce capital gains tax on a business sale
Consider the structure of your business
Your business entity determines how taxes will apply on exit. If you’re a C corporation, be prepared for double taxation: once at the corporate level when the business is sold and again at the personal level in distributions.
Converting to an S corporation can help in some cases, but beware the built-in gains tax if the conversion occurs less than five years before the sale.
Pass-through entities (S corps or LLCs) generally pass gains through to your return, where they can qualify for long-term capital gain rates.
Asset sale or stock sale: it makes a difference
Buyers often prefer asset sales because they step up the asset basis for depreciation. Sellers usually want a stock sale to secure capital gains treatment and avoid double taxation. The structure matters. In an asset sale, non-compete payments and gain attributable to prior depreciation or amortization may be taxed as ordinary income, while stock sales usually get long-term capital gains treatment.
Use installment sales to spread out the gain
To manage significant tax liabilities, you may structure the sale as an installment sale and recognize gain only when receiving payments. The key rule is: “An installment sale is a sale of property where you’ll receive at least one payment after the tax year of the sale”. Depreciation recapture must still be reported in the year of sale. The trade-off is that you carry the buyer’s credit risk while you wait for payments, and later tax rates may differ from today’s.
Take advantage of the qualified small business stock (QSBS) exclusion
Under Section 1202, owners of qualified small business stock may exclude a portion of their gain from federal tax, subject to specific requirements.
To qualify, the stock must be acquired at original issue from a C corporation with no more than $75 million in gross assets. The company must meet active business requirements, and the stock must be held for at least three years.
For stock issued after July 4, 2025 that meets the new OBBBA criteria, gains on stock held for three years qualify for a 50 percent exclusion, four years for 75 percent, and five years for the full 100 percent exclusion (26 U.S.C. § 1202, as of October 11, 2026).
The cap on eligible gain has increased to the greater of $15 million or ten times the investor’s basis for stock issued post-Act. For stock issued pre-Act, the limitation is $10 million or 10 times the shareholder’s tax basis, with no inflation adjustment.
These enhancements were enacted in the One Big Beautiful Bill Act, which was signed into law on July 4, 2025.
The exclusion can be a significant federal tax provision for founders, early employees, and investors in qualifying startups, but it applies only to stock that meets every requirement, and many business owners will not qualify.
Shift shares to family members in lower tax brackets
Transferring non-voting shares to adult children or grandchildren may shift capital gains into lower brackets. Be cautious of kiddie tax rules for those under age 24, and note that gifting means giving up ownership and may carry gift tax reporting requirements.
Also, the lifetime gift and estate tax exemption increased to $15 million per person ($30 million per married couple) starting in 2026 under the One Big Beautiful Bill Act, indexed annually for inflation (IRS Rev. Proc. 2025-32, as of October 11, 2026).
Use charitable strategies to offset gains
Charitable giving may reduce capital gains taxes. A Charitable Remainder Trust (CRT) can hold your business stock.
The trust can sell it without paying tax at the trust level and pays you income for a set term, though those payments may be taxable to you and the remainder goes to charity. A donor-advised fund (DAF) may also help. You may receive a deduction for the fair market value, subject to limits, and avoid tax on the gain in the donated shares. Both require planning and compliance, and gifts to charity are irrevocable.
Watch out for the net investment income tax
If your modified adjusted gross income exceeds $250,000 (married filing jointly) or $200,000 (single), a 3.8% Net Investment Income Tax (NIIT) may apply to part of your sale proceeds. Whether it applies to a business sale gain can depend on how involved you were in the business. Modeling your income and gains with a tax advisor can help you understand your exposure.
Don’t forget state and local taxes
Many states have their own capital gains rules. Others conform to federal rates. You’ll need to navigate multiple tax jurisdictions if your business operates across states. In some cases, changing your state of residence before a sale may affect your state tax bill, but only with bona fide relocation documentation.
Coordinate with your estate plan
Your business may be your most significant asset. Exiting the business provides an opportunity to revisit estate plans. Trusts like Spousal Lifetime Access Trusts (SLATs) or Intentionally Defective Grantor Trusts (IDGTs) may be worth discussing with your estate attorney as ways to transfer future appreciation. Each involves legal complexity and trade-offs, including giving up control or access to assets.
How can tax-loss harvesting reduce capital gains tax before or after a business sale?
When you sell a business, much of the proceeds are often taxed as capital gains, which can create a large tax bill in the year of sale. Tax-loss harvesting is one approach that may help reduce it.
What it is: selling investments in your portfolio (stocks, funds, and similar holdings) that are worth less than what you paid for them, which realizes a capital loss.
How it works against your business gain:
- Realized capital losses generally offset realized capital gains, dollar for dollar. If you realize a $1,000,000 capital gain from your business sale and harvest $200,000 of losses, you would generally be taxed on $800,000 of net gain.
- If your losses exceed your gains, you can use up to $3,000 per year ($1,500 if married filing separately) to offset ordinary income, and the rest carries forward to later years (IRS Topic no. 409).
- Portions of a sale taxed as ordinary income, such as depreciation recapture, are generally not offset by capital losses.
Limits and trade-offs: The wash-sale rule can disallow a loss if you buy substantially identical securities within 30 days before or after the sale (IRS Publication 550). Harvesting also resets your cost basis in the replacement holding, which may increase future gains, and it only helps if you hold investments with unrealized losses. Because the federal rate on a large gain may include the 3.8% NIIT, plus possible state tax, each dollar of loss that can be used may reduce your tax by some amount, but the result depends on your individual tax situation and may involve trade-offs.
Before the sale or after? Timing may matter, but the rules do not make one side better in every case. A net capital loss that is not used in the year it is realized can be carried forward and counted against later capital gains, which can include a business sale gain. Losses realized in the year of the sale, whether before or after closing, are generally netted against that same year’s gains, and a loss realized in a later tax year cannot reduce the earlier year’s gain. Harvesting ahead of a planned sale gives you more time to work around the wash-sale rule and to see how much gain the deal may produce, but it also means selling holdings before the final deal terms and closing date are known. Which timing may help more depends on your holdings, the closing date and your tax situation, so model both with your CPA. (Source: IRS Topic no. 409, as of November 20, 2026.)
Hypothetical example, for illustration only:
- Assumed business sale gain: $2,000,000
- Assumed harvested losses: $300,000 from a portfolio
- Net taxable gain: $1,700,000
- If the entire gain were taxed at an assumed 23.8% federal rate (20% plus the 3.8% NIIT), the federal tax calculation would be about $71,400 lower under these assumptions.
This hypothetical example is not a projection or a promise of any result. It ignores state taxes, your cost basis, ordinary-income portions of a sale, wash-sale and other loss limits, fees, and whether you have such losses available at all. Results vary and depend on individual circumstances.
The bottom line
There’s no one-size-fits-all solution when preparing to retire or sell a business. Tax rules evolve, and individual situations differ. Preparation is universal. Don’t wait until the deal is on the table. Working with your CPA, attorney, and financial advisor three to five years out gives more strategies time to be evaluated, although outcomes vary and depend on individual circumstances. You can also use the sell your business and retire calculator to explore how proceeds may fit your retirement plan.
Frequently asked questions
Do you pay capital gains tax when selling a business?
Usually, yes, on some or all of the gain. How much depends on your entity type, whether the deal is an asset sale or a stock sale, how long you held the business, and how the purchase price is allocated. Some parts of a sale, such as depreciation recapture or payments for a non-compete, may be taxed as ordinary income instead of capital gain.
What is the capital gains tax rate on selling a business?
For 2026, federal long-term capital gains are taxed at 0%, 15% or 20% depending on taxable income and filing status, and the 20% rate begins above $545,500 for single filers and $613,700 for married couples filing jointly. A 3.8% Net Investment Income Tax and state taxes may apply on top. Portions of the sale taxed as ordinary income use ordinary rates.
How can I avoid capital gains tax when selling my business?
For most owners, the tax is reduced or deferred rather than avoided entirely. Approaches that may help include installment sales, charitable vehicles, tax-loss harvesting, careful timing, and, for qualifying stock only, the Section 1202 exclusion. Each has requirements and trade-offs, and most need to be set up well before a sale, so review them with your CPA and attorney.
Is there a simple trick for avoiding capital gains tax on a business sale?
No single trick avoids the tax for most owners. Strategies such as installment sales, charitable vehicles, tax-loss harvesting and careful timing may reduce or defer it, but they rarely eliminate it, and each has requirements and trade-offs. Be cautious of any approach that promises to remove the tax entirely, and review options with your CPA and attorney well before a sale.
Does the Net Investment Income Tax apply when you sell a business?
It may. The 3.8% tax applies to the lesser of net investment income or the amount by which modified adjusted gross income exceeds $250,000 for married couples filing jointly or $200,000 for single filers. Whether, and how much, of a business sale gain counts as net investment income can depend on how involved you were in the business, so confirm the treatment with your CPA.
How far ahead should I plan the tax side of a business sale?
Many advisors suggest starting three to five years before a planned exit. Some strategies, such as changing entity structure, meeting holding-period requirements, or gifting ownership interests, take time to set up and may not be available once a buyer is at the table.
Planning a sale in the next few years?
At Integrity Wealth, we work with business owners who are preparing to sell on how tax planning, estate planning, and retirement planning fit together, and we coordinate with your CPA and attorneys along the way. Learn more about our business exit planning and tax planning services, or contact us to start a conversation about your timeline. Outcomes vary and depend on individual circumstances, and nothing here is tax or legal advice or a recommendation to buy, sell, or hold any security.
related news & insights.
Investment advisory services offered through Accurate Wealth Management LLC, an SEC Registered Investment Advisor. Registration does not imply any level of skill or training. Insurance services offered through Accurate Advisory Group Inc. Securities offered through AAG Capital, Inc. Member FINRA/SIPC. Information presented on this site is for educational purposes only. It should not be considered specific investment advice, does not take into consideration your specific situation, and does not intend to make an offer or solicitation for the sale or purchase of any securities or investment strategies. Investments involve risk and are not guaranteed. Be sure to consult with a qualified financial adviser and/or tax professional before implementing any strategy discussed herein.



