← Back to Blog

Capital Gains Tax When Selling a Business: How to Minimize It

11 min read

How Capital Gains Tax Works on Business Sales

When you sell a business, the IRS wants its cut. How much you owe depends on how the deal is structured, what you are selling (assets vs. stock), and how long you owned the business. Understanding the tax mechanics before you sell can save you tens of thousands - or even hundreds of thousands - of dollars.

The core concept is simple: you pay tax on the gain. The gain is the difference between what you receive (the sale price) and your basis (what you originally paid or invested, adjusted for depreciation and improvements). But the details get complicated fast because different parts of a business are taxed at different rates.

Short-Term vs. Long-Term Capital Gains

The federal tax code distinguishes between short-term and long-term capital gains:

TypeHolding PeriodTax Rate (2026)
Short-term capital gainsLess than 1 yearTaxed as ordinary income (10-37%)
Long-term capital gainsMore than 1 year0%, 15%, or 20% depending on income

Most business sellers qualify for long-term capital gains rates because they have owned the business for more than one year. The difference is significant. A seller in the 37% ordinary income bracket who qualifies for the 20% long-term capital gains rate saves 17 cents on every dollar of gain. On a $500,000 gain, that is $85,000 in tax savings just from the holding period.

There is also the 3.8% Net Investment Income Tax (NIIT) that applies to high earners (individuals with modified adjusted gross income above $200,000, or $250,000 for married filing jointly). This surtax applies to capital gains, making the effective top rate 23.8% for long-term gains.

Asset Sale vs. Stock Sale: Tax Implications

The structure of the deal - whether you sell assets or stock - has a massive impact on taxes.

Asset Sale Tax Treatment

In an asset sale, you are selling individual business assets: equipment, inventory, customer lists, goodwill, non-compete agreements, and so on. Each asset class is taxed differently:

Asset ClassTax TreatmentRate
InventoryOrdinary income10-37%
Equipment (depreciation recapture)Ordinary income up to amount of depreciation takenUp to 37% on recapture, then capital gains on excess
Real estate (depreciation recapture)Section 1250 recapture at 25%, remainder as capital gains25% on recapture, 0-20% on remainder
GoodwillLong-term capital gains (if held >1 year)0%, 15%, or 20%
Non-compete agreementOrdinary income10-37%
Customer lists / intangiblesLong-term capital gains0%, 15%, or 20%
Accounts receivableOrdinary income10-37%

The purchase price allocation (IRS Form 8594) determines how much of the total price is assigned to each asset class. This allocation must be agreed upon by buyer and seller and reported consistently by both parties. For a full comparison of deal structures, see our guide on asset vs. stock purchase.

Stock Sale Tax Treatment

In a stock sale, you sell your ownership interest (shares or membership units) in the company. The entire gain is treated as a single capital gain - either short-term or long-term depending on how long you held the stock.

For sellers, stock sales are simpler and usually result in lower taxes because:

  • The entire gain is capital gains (no ordinary income components)
  • No depreciation recapture
  • No separate treatment of inventory or non-compete
  • One calculation instead of multiple asset classes

However, buyers generally prefer asset purchases because they get a stepped-up basis in the assets, allowing for more depreciation and amortization deductions. This tension often affects the negotiated price - buyers may pay more in an asset sale to compensate the seller for the less favorable tax treatment.

Section 1231 Gains

Section 1231 of the tax code applies to gains on the sale of business property held for more than one year (equipment, real property, certain intangibles). Here is the key benefit: Section 1231 gains are treated as long-term capital gains, but Section 1231 losses are treated as ordinary losses.

This is the best of both worlds. If you sell business property at a gain, you get the favorable capital gains rate. If you sell at a loss, you get the more valuable ordinary loss deduction. However, there is a lookback rule: if you had Section 1231 losses in the prior 5 years, gains are recharacterized as ordinary income to the extent of those prior losses.

Depreciation Recapture

Depreciation recapture is one of the most misunderstood (and painful) tax consequences of selling a business. Here is how it works:

When you own business equipment or real estate, you take depreciation deductions each year, reducing your taxable income. When you sell those assets, the IRS "recaptures" those deductions by taxing the gain attributable to depreciation at higher rates.

Section 1245 Recapture (Equipment, Vehicles, Furniture)

All depreciation taken on Section 1245 property is recaptured as ordinary income when sold. If you bought equipment for $100,000, took $80,000 in depreciation (leaving a $20,000 basis), and sell for $90,000, the $70,000 gain is ordinary income (the $80,000 depreciation minus the $10,000 loss below original cost... actually the gain is $90,000 - $20,000 = $70,000, and $70,000 is recaptured as ordinary income up to the $80,000 of depreciation taken).

Section 1250 Recapture (Real Estate)

For real estate, depreciation recapture is taxed at a maximum rate of 25% (unrecaptured Section 1250 gain). Any gain above the original cost is taxed at regular capital gains rates (0-20%). This is more favorable than equipment recapture, which is taxed at full ordinary income rates.

Bonus Depreciation and Section 179

If you used bonus depreciation or Section 179 expensing to deduct the full cost of equipment in the year of purchase, all of that depreciation is subject to recapture when you sell. This means the tax benefit you got up front is partially given back when you exit. Plan for this.

Strategies to Minimize Capital Gains Tax

Now for the part everyone cares about. Here are the legitimate strategies to reduce your tax bill when selling a business:

1. Installment Sale

An installment sale spreads the gain over multiple tax years. Instead of receiving the full purchase price at closing and paying all the tax in one year, you receive payments over time (through seller financing) and report the gain proportionally as payments are received.

How it helps: If your $500,000 gain would push you into the 20% capital gains bracket in a single year, spreading it over 5 years at $100,000 per year might keep you in the 15% bracket. That saves you 5% on each dollar of gain - potentially $25,000 on a $500,000 gain.

Installment sales also help with the NIIT. By keeping your annual income below the threshold ($200K single / $250K married), you avoid the additional 3.8% tax on investment income.

For more on structuring seller financing, see our seller financing guide.

2. Qualified Small Business Stock (QSBS) Exclusion

Under Section 1202 of the tax code, if your business is a C-corporation and you meet certain requirements, you may be able to exclude up to $10 million (or 10x your basis, whichever is greater) of capital gains from the sale of qualified small business stock.

Requirements:

  • Must be a C-corporation (not an S-corp, LLC, or partnership)
  • Corporation must have had gross assets under $50 million at the time the stock was issued
  • You must have held the stock for at least 5 years
  • The corporation must be an active business (not holding company, financial, or professional services)
  • Stock must have been acquired at original issuance (not on the secondary market)

If you qualify, this is the single most powerful tax benefit available. Excluding $10 million in gains at the 23.8% combined rate saves you $2.38 million in federal taxes. Not many small business sellers qualify, but those who do benefit enormously.

3. Opportunity Zone Investment

If you reinvest capital gains from a business sale into a Qualified Opportunity Zone Fund within 180 days, you can defer the tax on those gains until 2026 (or when you sell the Opportunity Zone investment, whichever comes first). If you hold the Opportunity Zone investment for 10+ years, any additional gains on that investment are tax-free.

This strategy is best for sellers who want to reinvest their proceeds into real estate or businesses in designated Opportunity Zones. The deferral is valuable, and the exclusion of future gains is even more valuable for long-term investors.

4. Charitable Remainder Trust (CRT)

A CRT is an irrevocable trust that provides income to you for a period of time, with the remaining assets going to charity. Here is how it works for a business sale:

  1. Before the sale, you transfer business assets or stock to the CRT
  2. The CRT sells the business (the trust is tax-exempt, so no capital gains tax on the sale)
  3. The full sale proceeds are invested in the trust
  4. The trust pays you income for a set period (your lifetime, or up to 20 years)
  5. When the trust terminates, remaining assets go to the charity you designated
  6. You get a charitable income tax deduction in the year you fund the trust

The trade-off: you do not keep the principal. It eventually goes to charity. But you avoid capital gains tax, get an income stream, and receive a charitable deduction. This works best for sellers who are charitably inclined and want steady income rather than a lump sum.

5. Asset Allocation to Maximize Capital Gains Treatment

In an asset sale, the purchase price allocation determines your tax bill. As a seller, you want to allocate as much of the price as possible to assets taxed at capital gains rates (goodwill, customer relationships) and minimize allocation to assets taxed as ordinary income (inventory, non-compete agreements).

The buyer has the opposite incentive - they want to allocate to depreciable assets and inventory for faster tax deductions. This is a negotiation. But knowing the tax impact of each allocation decision gives you leverage. Work with your accountant to model different allocation scenarios and quantify the tax difference.

6. S-Corp Election Timing

If you operate as a C-corporation, converting to an S-corporation before selling can help avoid double taxation. In a C-corp asset sale, the corporation pays tax on the gain, and then you pay tax again when you distribute the proceeds (double taxation). An S-corp is a pass-through entity, so the gain is taxed only once at the shareholder level.

However, there is a built-in gains (BIG) tax that applies if you convert from C-corp to S-corp and sell assets within 5 years of the conversion. After the 5-year recognition period, the BIG tax no longer applies. Plan ahead.

7. State Tax Planning

State capital gains taxes vary widely:

  • States with no income tax (and thus no capital gains tax): Texas, Florida, Nevada, Wyoming, Washington, Tennessee, South Dakota, New Hampshire (no tax on earned income, but taxes interest/dividends), Alaska
  • California taxes capital gains as ordinary income - up to 13.3%
  • New York's top rate is 10.9% (plus NYC local tax)
  • Many states tax capital gains at 4-6%

Some sellers relocate to no-income-tax states before selling. This is legal if you genuinely establish residency, but the IRS and state tax authorities scrutinize moves that happen shortly before a sale. You typically need to be a resident for at least one full tax year before the sale to make this defensible.

Stock vs. Asset Sale Tax Comparison

To illustrate the difference, here is a simplified example for a business selling for $1,000,000:

FactorAsset SaleStock Sale
Sale price$1,000,000$1,000,000
Original basis$200,000$200,000
Gain$800,000$800,000
Inventory allocated$100,000 (ordinary income)N/A
Equipment recapture$50,000 (ordinary income)N/A
Non-compete$50,000 (ordinary income)N/A
Goodwill$600,000 (capital gains)N/A
Estimated federal tax~$191,000~$160,000
Tax savings (stock vs asset)-~$31,000

These numbers are illustrative. Your actual tax depends on your income level, state taxes, and specific allocation. But the pattern holds: stock sales are generally more tax-efficient for sellers.

Working with a Tax Advisor

Business sale tax planning is not a DIY project. The strategies above interact with each other and with your personal tax situation in ways that require professional guidance. Here is what a good tax advisor does for a business sale:

  • Models different deal structures (asset vs. stock) and quantifies the tax impact
  • Optimizes purchase price allocation in an asset sale
  • Structures installment sale terms to minimize annual tax liability
  • Evaluates QSBS eligibility and documents compliance
  • Coordinates with your estate plan and retirement planning
  • Manages state tax exposure and residency planning
  • Ensures proper reporting on Forms 8594, 4797, Schedule D, and others

Hire a CPA or tax attorney with specific experience in business sales. General tax preparers may miss significant planning opportunities. The advisor's fee will pay for itself many times over.

Common Mistakes

  • Not planning early enough: Many tax strategies (QSBS, S-corp conversion, state residency change) require years of advance planning. If you start thinking about taxes after signing the LOI, you have already missed opportunities.
  • Ignoring depreciation recapture: Sellers who took aggressive depreciation deductions are often surprised by the recapture tax. Model this before negotiating the deal.
  • Accepting a bad purchase price allocation: The allocation is negotiable. Do not let the buyer's accountant drive the allocation without input from yours.
  • Forgetting state taxes: Federal taxes get all the attention, but state capital gains taxes can add 5-13% depending on where you live.
  • Mixing personal and business finances: If your financials are messy, the IRS may challenge your basis calculations or characterize some proceeds differently than you expect.
  • Not considering installment sale: Many sellers default to an all-cash close without evaluating whether an installment sale would save significant taxes.

How This Helps Buyers

As a buyer, understanding the seller's tax situation gives you negotiating leverage. If you know that an asset sale costs the seller more in taxes, you can propose deal structures that benefit both sides. For example:

  • Offer a slightly higher price in an asset sale to compensate for the seller's higher tax bill
  • Propose seller financing to give the seller installment sale benefits
  • Structure the purchase price allocation to be tax-efficient for both parties
  • Understand why sellers prefer stock sales and be prepared to discuss it

For more on how deal structure and price interact, read our guides on exit strategies and seller financing. Use our valuation calculator to model different scenarios and understand how deal structure affects total cost.

Key Takeaways

  • Long-term capital gains rates (0-20%) are significantly lower than ordinary income rates (10-37%)
  • Asset sales result in a mix of capital gains and ordinary income depending on purchase price allocation
  • Stock sales are generally more tax-efficient for sellers
  • Depreciation recapture can create a surprising tax bill on equipment and real estate
  • Installment sales, QSBS exclusion, Opportunity Zones, and CRTs are legitimate strategies to reduce or defer taxes
  • State taxes matter and vary dramatically by jurisdiction
  • Start tax planning years before the sale, not months
  • Hire a tax advisor with specific business sale experience

Ready to analyze deals with tax implications in mind? Sign up for BuyerEdge to get AI-powered deal analysis tools that help you evaluate businesses, model deal structures, and negotiate from a position of knowledge.

Ready to streamline your due diligence?

Upload your docs and get a full due diligence report in 5 minutes.

Try BuyerEdge free