Guides

Taxes on Selling a Business: Capital Gains Rates & Rules

How taxes on selling a business work: 2025 IRS capital gains rates (0%, 15%, 20%), asset vs. stock sales, Form 8594 allocation, and final tax filings.

Prepared by Aldro Accounting · Updated · Sources checked · Editorial policy

The quick answer

Selling a business held over 1 year triggers 0%, 15%, or 20% federal capital gains rates in 2025 under IRS Topic 409. High-income sellers may also owe a 3.8% Net Investment Income Tax plus state income taxes. In an asset sale, the IRS taxes each asset separately, so inventory and depreciation recapture face ordinary income tax rates.

2025 Federal Capital Gains Tax Rates and Special Rate Caps

Your holding period sets the baseline tax rate when you sell business capital assets or corporate stock. Holding an asset for more than 1 year produces a long-term capital gain or loss. Holding an asset for 1 year or less produces a short-term gain taxed as ordinary income at graduated federal rates. You count your holding period from the day after you acquired the asset through the day you sell it.

For tax years beginning in 2025, federal long-term capital gains rates are 0%, 15%, or 20% based on overall taxable income. For most individuals, the rate on net capital gain goes no higher than 15%.

Three statutory rules push federal tax rates above 20% on specific business exits. Unrecaptured Section 1250 gain from selling depreciable real property faces a maximum 25% rate. Any taxable gain from Section 1202 qualified small business stock or collectibles faces a maximum 28% rate. Sellers with significant investment income may also owe the 3.8% Net Investment Income Tax under IRS property basis FAQs.

If you sell your business at a net capital loss, you can offset other capital gains dollar for dollar. Excess capital losses offset up to $3,000 of ordinary income per year, or $1,500 if married filing separately. Any unused net capital loss carries forward to future years on Schedule D (Form 1040).

Asset Sale vs. Entity Sale: How Deal Structure Changes Your Tax Bill

Under IRS Sale of a Business guidance, selling a business usually is not treated as selling 1 single asset. Unless you transfer corporate stock or a partnership interest, the IRS treats a lump-sum sale as selling every asset separately. You must classify transferred items as capital assets, depreciable business property, business real property, or inventory held for customers.

Buyers and sellers pull in opposite directions when choosing between an asset purchase and a stock purchase. Buyers prefer asset purchases because their tax basis steps up to the amount paid for each acquired asset. Sellers prefer selling corporate stock certificates because stock sales usually realize capital gain or loss. An asset sale exposes you to ordinary income tax on inventory, receivables, and prior depreciation.

Selling an interest in a partnership or multi-member LLC sits between a stock sale and an asset sale. A partnership interest is treated as a capital asset when sold, producing capital gain on goodwill. However, any gain or loss tied to unrealized receivables or inventory items is taxed as ordinary gain or loss. If a Section 754 election is in effect, the buyer adjusts inside asset basis under Section 743(b).

Your legal entity also determines whether sale proceeds face 1 layer of tax or 2. Sole proprietorships, partnerships, and S corporations pass gains through to the owners' returns. In a C corporation liquidation, the corporation recognizes gain on liquidating sales or fair-market-value distributions, except qualifying Section 332 controlled-corporation distributions.

Special rules apply if you sell property to a family member or controlled business. Under IRS Publication 544, gain recognized on a sale to a related person can be taxed as ordinary income. This rule applies to depreciable property transactions and controlled partnership transactions.

Purchase Price Allocation and Form 8594 (The Residual Method)

Whenever transferred assets make up a trade or business, both buyer and seller must use the residual method. Assets form a trade or business if goodwill or going concern value could attach to them. Assets also qualify if their use constitutes an active trade or business under Internal Revenue Code Section 355.

Under the residual method, you first reduce total consideration by cash and checking or savings accounts, excluding certificates of deposit. You then allocate the remaining consideration across business asset categories in a set IRS order up to fair market value. Every remaining dollar above fair market value lands in goodwill and going concern value.

How you divide the purchase price in your contract changes your net after-tax proceeds. Dollars assigned to inventory, receivables, or depreciated equipment can trigger ordinary income. Dollars assigned to goodwill qualify for capital gains rates, and both parties must attach Form 8594 to their returns.

  • Cash and checking or savings accounts: Subtracted first from total consideration, producing zero gain or loss.
  • Accounts receivable and inventory: Treated as noncapital assets, generating ordinary income or loss.
  • Depreciable equipment and machinery: Subject to ordinary income recapture up to prior depreciation, with excess gain under Section 1231.
  • Business real estate: Held over 1 year, taxed under Section 1231 and the 25% maximum unrecaptured Section 1250 rate.
  • Goodwill and going concern value: Captures the residual price above fair market value of other assets, producing capital gain.

Worked Example: Calculating Net Taxable Gain With Debt and Depreciation

Your taxable gain rarely matches the cash wire you receive at closing. Gain equals your amount realized minus your adjusted basis in the transferred property. Amount realized includes cash received, the fair market value of property or buyer notes, and seller debts the buyer assumes. You subtract direct selling expenses, such as broker commissions and legal fees, to find your net amount realized.

Your adjusted basis starts with your original cost to buy the asset. You add permanent capital improvements with a useful life of more than 1 year and subtract casualty losses and depreciation. Under IRS depreciation FAQs, you must reduce basis by the greater of depreciation allowed or legally allowable.

Buyer-assumed loans and unpaid taxes increase your taxable gain even though they hand you zero cash at closing. The table below walks through the official business building sale calculation. In IRS Publication 544, the $3,000 assumed tax bill and $17,000 assumed mortgage are included in the $140,000 total before selling expenses.

Depreciation Recapture and Section 1231 Rules

Real property or depreciable property used in your business and held longer than 1 year produces Section 1231 gain or loss when sold. Before any gain gets capital gains rates, you must recognize ordinary income from depreciation recapture. On tangible depreciable property, gain is taxed as ordinary income up to total depreciation allowed or allowable. Only gain above your original unadjusted cost enters Section 1231.

P.L. 119-21, enacted July 4, 2025, expanded Section 1245 recapture rules. Qualified production property placed in service after July 4, 2025 under a Section 168(n) election is treated as Section 1245 property. Qualified sound recording productions starting in tax years ending after July 4, 2025 reduce basis by Section 181 expensing and Section 168(k)(2) bonus depreciation. Clean vehicle credits under Sections 25E, 30D, and 45W also expired on September 30, 2025.

Business buildings and structural components generally fall under Section 1250 real property rules. Ordinary income recapture applies to additional depreciation claimed above straight-line recovery. Remaining gain tied to straight-line depreciation is unrecaptured Section 1250 gain, capped at a 25% federal rate. Appreciation above original cost plus improvements flows into Section 1231.

You combine all Section 1231 gains and losses for the year in Part I of Form 4797. If there is an overall loss, that loss is reported as an ordinary loss. An overall net gain is taxed as a long-term capital gain, subject to a 5-year lookback rule. Prior nonrecaptured net losses under that lookback rule convert current net gain into ordinary income.

Ways to Defer or Exclude Capital Gains on a Business Sale

Non-corporate shareholders selling Section 1202 qualified small business stock can exclude part of their gain or elect a rollover. C corporations cannot make either election. Eligible sellers can elect to roll over capital gain from qualified small business stock into replacement qualified small business stock.

Under that rollover election, you recognize gain only if your amount realized exceeds the replacement stock's cost. You must reduce your basis in the replacement stock by the deferred gain. Any taxable portion of Section 1202 gain is capped at 28%, and eligible sellers can also defer capital gains through a Qualified Opportunity Fund.

Business or rental real estate can use a Section 1031 like-kind exchange on Form 8824 to postpone tax. You must exchange real property for like-kind real property without taking actual or constructive receipt of the cash. Using a safe-harbor qualified intermediary or qualified trust avoids constructive receipt during the transfer.

Seller financing lets you collect payments over multiple years instead of taking 1 lump sum. As the legacy U.S. Small Business Administration guide notes, a gradual sale uses a long-term payment plan. Transfers for a buyer's note follow Publication 537 installment rules, though extending a note's maturity with significant changes can trigger a taxable exchange.

Final IRS Tax Returns, State Dissolution, and Seller Checklist

Before listing your company, value all tangible, real, and intangible assets using the income, market, or assets approach. Have an attorney review a written sales agreement listing inventory, adjustments, broker fees, and assumed liabilities. In the year you close, IRS Closing a Business rules require a final federal income tax return for your entity.

Partnerships and corporations check the final return box near the top of the front page, plus the final K-1 box on Schedule K-1. You must also file Form 4797 if closing drops business use of prior Section 179 property to 50% or less. At the state level, SBA Manage Your Business guidance notes annual report fees can exceed $300.00 alongside state income and franchise taxes. Failing to dissolve your LLC or corporation in every registered state leaves you exposed to ongoing taxes.

  • Lock in contract allocations: Agree on residual method asset values before closing so both parties file matching Forms 8594.
  • File your final entity return: Submit Schedule C (plus Schedule SE if net earnings are $400 or more), Form 1065, Form 1120, or Form 1120-S.
  • Report corporate dissolutions: File Form 966 if your C or S corporation adopts a resolution or plan to dissolve or liquidate stock.
  • Attach sale schedules: File Form 4797 for business property and recapture, Form 8594 for asset sales, and Form 8949 with Schedule D for capital gains.
  • Check estimated taxes and payroll: Pay required estimated taxes, check the closed-business box on Form 941 (line 17) or Form 944 (line 14) and Form 940 (box d), and file Forms W-2, W-3, and Form 8027 if applicable.
  • Report contractor payments: File Form 1099-NEC (with Form 1096 on paper) for any contractor paid at least $600 in your final calendar year.
  • Cancel your EIN: After filing all returns and paying taxes owed, mail a cancellation letter with your legal name, EIN, address, and closure reason to Internal Revenue Service, Cincinnati, OH 45999.
  • Dissolve state registrations and keep records: File state dissolution forms, keep property records until the tax limitation period expires, and keep employment tax records at least 4 years (general guidelines advise 3 to 7 years).

Common questions

Is the sale of a business taxed as capital gains or ordinary income?

It depends on whether you sell an ownership interest or business assets. Corporate stock held over 1 year usually produces long-term capital gain, whereas an asset sale taxes each asset separately. Goodwill qualifies for capital gains rates, while inventory, receivables, and depreciation recapture face ordinary income tax.

How do you report purchase price allocation when selling a business?

Both the buyer and the seller must allocate total consideration using the residual method and attach Form 8594 to their federal returns. Consideration is reduced first by cash and checking or savings accounts, then assigned to tangible and intangible assets up to fair market value, leaving the rest in goodwill.

How are partnership interests taxed compared to corporate stock when sold?

Selling corporate stock certificates usually results in capital gain or loss. A partnership interest is also treated as a capital asset when sold, except any gain or loss tied to unrealized receivables or inventory items is taxed as ordinary gain or loss.

What happens to prior depreciation deductions when you sell business equipment or real estate?

You must reduce basis by the greater of depreciation allowed or allowable and report recapture on Form 4797. Gain on depreciable equipment is taxed as ordinary income up to prior depreciation, while unrecaptured Section 1250 gain on business real property faces a maximum 25% federal rate.

Can you roll over or defer capital gains tax from selling a business?

Yes, if your sale meets specific IRS rules. Non-corporate sellers of qualified small business stock can elect to roll gain into replacement qualified small business stock, real estate sellers can use a Section 1031 exchange on Form 8824, and seller-financed notes can use installment reporting.

What final IRS forms must you file after selling and closing your business?

You must file a final return for your structure (Schedule C, Form 1065, Form 1120, or Form 1120-S), plus Form 966 for corporate dissolutions. Asset sellers also attach Form 8594, Form 4797, Form 8949, and Schedule D, finalize payroll on Forms 941, 940, and W-2, and file Form 1099-NEC for contractors paid $600 or more.

The cheapest way to get your business taxes done for you: $599 flat for the year.

Business tax filing is $599 USD a year, and it covers everything tax for that year.

What's included

$599 a year covers everything tax for that tax year.

  • Every business return for the year. All the federal and state business returns you need for the tax year: Schedule C, 1065, 1120-S or 1120, and their state returns.
  • More than one state. Multi-state returns are included at the same price.
  • Your personal return. The owner’s personal return (Form 1040) is included when it’s needed for the business income.
  • Extensions and reminders. Extensions (Form 7004 or 4868) and quarterly estimate reminders are included.
  • Information returns. 1099-NEC forms are included in the tax price.
  • City and excise returns. City and local business tax returns, and state excise returns such as Washington B&O, are included in the yearly price.
  • Franchise tax reports. State franchise tax reports, such as the Texas franchise tax report, are included.
  • Estimated tax and instalment amounts. We work out your quarterly estimated tax payments and tell you what to pay and when.
  • Unfiled past years. Each unfiled prior-year return is $599 per tax year, the same flat price.
  • Bookkeeping at $20 a month. Unlimited bank and card accounts, monthly reconciliation and monthly statements.

Basic inventory tracking for online stores, such as Shopify, is included. Full cost-of-goods reconciliation is $299 per tax year in the US, with tax filing; in Canada, and without tax filing, it's quoted separately. Payroll processing and sales-tax filing aren’t included in bookkeeping. Prices are in USD. Our team prepares and files your return.

Sources

This guide explains general rules from the sources listed. It isn’t tax advice for your situation.

Related