How Is Gain Measured on Sale of Business: The Complete Tax Mechanics Guide (2026)
How is gain measured on sale of business comes down to a one-line formula buried in IRC Section 1001: Amount Realized minus Adjusted Basis equals Gain. The trap is that this single line splits into seven asset classes, three depreciation recapture regimes, and a tax-character mix that routinely turns a “20 percent capital gains deal” into a 30-plus percent effective federal bill. Sellers who skip the math lose six and seven figures to the IRS that careful structuring would have kept.
Stop guessing at your after-tax number.
Most owners get an offer, multiply by 0.8, and assume they walk with that. The Form 8594 allocation buyers push at the table can move your federal tax by 15 to 20 points. Buyers pay our fee, not you.
Book a Free ConsultationWhat This Actually Means: Amount Realized Minus Adjusted Basis
The statutory rule lives in IRC Section 1001(a): “The gain from the sale or other disposition of property shall be the excess of the amount realized over the adjusted basis.” Five words do all the work. “Amount realized” is what the seller actually pockets, in cash and the fair market value of any property received, plus liabilities the buyer assumes. “Adjusted basis” is what the seller originally paid for the asset, increased by capital improvements, and reduced by depreciation deductions taken over the holding period.
For a single asset, that math is clean. For a business, it almost never is. A business is not a single asset for tax purposes. Per IRC Section 1060 and the regulations underneath it, a sale of a going concern is treated as the sale of each underlying asset, separately, with its own basis, its own holding period, and its own tax character. The buyer and seller must agree on how the total purchase price is allocated across seven defined asset classes, and both must file IRS Form 8594 reporting the same allocation. Mismatched 8594s are an automatic audit flag.
That allocation is the single most important number in the deal after price. It determines whether a given dollar of gain is taxed at 37 percent ordinary or 20 percent long-term capital gains, a 17-point spread that on a $10 million sale is worth roughly $1.7 million pre-state-tax. The IRS does not pick the allocation. The buyer and seller negotiate it, and the side with the better advisor usually wins.
The Seven Things You Need to Understand About Gain Measurement
1. Asset Sale Versus Stock Sale Changes Everything
The first fork in the road is whether the transaction is structured as an asset sale or a stock (equity) sale. In an asset sale, the buyer buys the individual assets of the business (equipment, inventory, customer lists, goodwill, and so on) and the seller’s entity keeps the cash. In a stock sale, the buyer buys the equity interests in the entity itself, and the seller is selling personal property (the stock or LLC interests).
For asset sales, gain measurement runs through Section 1060 and the seven-class allocation framework. Each asset has its own basis and its own character. For stock sales, gain measurement is a single calculation: sale price minus the seller’s adjusted basis in the stock. For most individual sellers of C-corp or S-corp stock held longer than a year, the resulting gain is long-term capital gain, taxed at 20 percent federal (plus the 3.8 percent Net Investment Income Tax under IRC Section 1411 for high earners). No depreciation recapture, no asset-by-asset character split. That is why sellers almost always prefer stock sales and buyers almost always prefer asset sales. The American Bar Association’s M&A Committee has reported for years that roughly 85 percent of private middle-market deals close as asset sales, which means sellers are doing the harder math.
2. The Seven Asset Classes Under IRC Section 1060
When you file Form 8594, every dollar of the purchase price has to land in one of these seven classes:
| Class | Asset Type | Typical Tax Character to Seller |
|---|---|---|
| Class I | Cash and general deposit accounts | No gain (sold at face) |
| Class II | Actively traded securities, CDs, foreign currency | Capital gain or loss |
| Class III | Accounts receivable, mark-to-market assets | Ordinary income |
| Class IV | Inventory and stock in trade | Ordinary income |
| Class V | All other tangible assets (equipment, vehicles, real estate) | Section 1245 or 1250 recapture, then capital gain |
| Class VI | Section 197 intangibles other than goodwill (customer lists, non-competes, licenses) | Capital gain, except non-competes which are ordinary |
| Class VII | Goodwill and going-concern value | Long-term capital gain |
The allocation runs residually. Class I gets filled first at face value, then Class II at fair market value, and so on down. Whatever is left after Classes I through VI lands in Class VII as goodwill. Sellers want as much in Classes V (real estate portion), VI (customer relationships), and VII (goodwill) as possible. Buyers want as much in Classes III, IV, and the Class V equipment line as possible, because those generate immediate deductions or short-life depreciation for them. The collision is real money.
3. Section 1245 Depreciation Recapture Bites Hard
Equipment, vehicles, machinery, and furniture in Class V fall under IRC Section 1245. If a seller bought a $500,000 CNC machine in 2019, fully bonus-depreciated it to a zero basis by 2020, and sells it as part of a business sale in 2026 for $200,000, the entire $200,000 is ordinary income. Not capital gain. Section 1245(a)(1) says gain is recharacterized as ordinary up to the lesser of the total depreciation taken or the actual gain. Because the machine had $500,000 of depreciation taken and only $200,000 of gain, every dollar of that gain is recapture, taxed at the seller’s ordinary rate (up to 37 percent federal in 2026).
This is the line item that surprises sellers more than any other. They have been writing off equipment under bonus depreciation and Section 179 expensing for a decade, and they have forgotten that those deductions came with a tax liability tag attached to the future sale. The recapture is not avoidable through an installment sale. IRC Section 453(i) requires Section 1245 recapture to be recognized in full in the year of sale, even if cash payments are spread over several years.
4. Section 1250 Recapture on Real Estate Is Friendlier But Still Hurts
Real estate held by the business (a warehouse, a service shop, an office building included in the sale) is governed by IRC Section 1250. The rule is gentler than Section 1245. For real property placed in service after 1986, only the depreciation in excess of straight-line is recaptured as ordinary income, and since most commercial real estate is depreciated on a straight-line basis under MACRS (39-year for non-residential), there is typically no Section 1250 ordinary recapture at all.
The catch is “unrecaptured Section 1250 gain.” This is the portion of gain attributable to prior straight-line depreciation, and while it is technically long-term capital gain, it is taxed at a maximum 25 percent federal rate under IRC Section 1(h)(6), not the 20 percent rate that applies to other long-term capital gains. A seller with a $2 million gain on a building that had $800,000 of accumulated straight-line depreciation will see $800,000 taxed at 25 percent and $1.2 million taxed at 20 percent.
5. Goodwill and Customer Relationships Are the Seller’s Best Friend
Goodwill (Class VII) and most Section 197 intangibles (Class VI), including customer lists, customer relationships, supplier contracts, trade names, trademarks, and going-concern value, are capital assets in the hands of the seller. When held longer than one year, gain on these items is long-term capital gain at 20 percent federal (23.8 percent with NIIT).
For a typical service business or distribution company that has been operating for ten years and depreciated its equipment aggressively, goodwill and customer relationships often represent 70 to 90 percent of the purchase price. That means 70 to 90 percent of the gain is taxed at the favorable rate. This is why sellers fight so hard on the Form 8594 allocation. Every dollar moved from Class IV (inventory ordinary) or Class V (equipment recapture) into Class VII (goodwill LTCG) saves 17 cents of federal tax.
6. The Non-Compete Trap
A non-compete agreement signed by the seller and paid for separately by the buyer is taxable as ordinary income to the seller. The IRS treats the payment as compensation for the seller’s promise not to compete, not as part of the business sale. This is settled law going back to the Better Beverages and Schultz cases, and it is the position the IRS takes on audit. Buyers like non-competes because they amortize them over 15 years under Section 197. Sellers should resist large non-compete allocations because they convert what would have been 20 percent capital gain into 37 percent ordinary income (a 17-point hit), and they also trigger self-employment tax in some structures.
A common buyer tactic is to push $300,000 to $1 million of the purchase price into the non-compete line item. On a $10 million deal that move alone can cost the seller $50,000 to $170,000 in extra federal tax. The defense is to insist that the non-compete is built into the goodwill payment (since the goodwill itself includes the implicit promise that the seller is not going to set up a competing shop across the street).
7. The Net Investment Income Tax Stacks On Top
IRC Section 1411 imposes a 3.8 percent surtax on net investment income for taxpayers with modified AGI above $200,000 single or $250,000 joint. Gain from the sale of a business that the owner did not materially participate in is automatically subject to NIIT. Gain from the sale of a business the owner did materially participate in is generally not subject to NIIT under the active-trade-or-business exception, but the IRS scrutinizes this hard, and the exception has lost ground in recent Tax Court decisions, including the 2021 Aroeste case and subsequent guidance.
For a seller in the top federal bracket, NIIT can push the effective long-term capital gain rate from 20 percent to 23.8 percent, and the ordinary rate from 37 percent to 40.8 percent. On an $8 million capital-gain bucket, that is an extra $304,000 in federal tax.
Worked Example: $10 Million Asset Sale of an S-Corp HVAC Business
Consider a fictional but realistic deal. Mountain Air Mechanical is an S-corp HVAC contractor in Colorado, owned by a single shareholder who has run the business for 18 years and materially participates. A strategic buyer offers $10 million for the assets of the business in 2026. The seller’s adjusted basis in the underlying assets, after years of depreciation, is roughly $600,000. Here is how the Form 8594 allocation breaks down after negotiation, and what each line produces in tax:
| Class | Asset | Allocation | Basis | Gain | Character | Federal Tax |
|---|---|---|---|---|---|---|
| IV | Inventory (parts, refrigerant) | $500,000 | $400,000 | $100,000 | Ordinary (37%) | $37,000 |
| V | Trucks, tools, equipment | $1,000,000 | $200,000 | $800,000 | Sec 1245 ordinary (37%) | $296,000 |
| VI | Customer relationships | $4,000,000 | $0 | $4,000,000 | LTCG (20%) | $800,000 |
| VI | Non-compete agreement | $500,000 | $0 | $500,000 | Ordinary (37%) | $185,000 |
| VII | Goodwill | $4,000,000 | $0 | $4,000,000 | LTCG (20%) | $800,000 |
| Total | $10,000,000 | $600,000 | $9,400,000 | $2,118,000 |
The breakdown by character: $1.4 million of ordinary income ($100K inventory plus $800K Section 1245 recapture plus $500K non-compete) and $8 million of long-term capital gain ($4M customer relationships plus $4M goodwill). The federal tax math: $1.4 million times 37 percent equals $518,000 of ordinary tax, plus $8 million times 20 percent equals $1.6 million of capital gains tax, for a federal total of $2,118,000. NIIT on the capital gain portion is excluded here because the seller materially participated, but the IRS may still challenge that on audit. Colorado state tax at roughly 4.4 percent on the full $9.4 million gain adds another $414,000. Total tax: $2,532,000. Net to seller after tax: $7,468,000 on a $10 million sale.
Now run the counterfactual. Suppose the buyer had pushed (and the seller had accepted) an allocation of $2 million to equipment recapture, $2 million to non-compete, and only $3 million to goodwill plus $2.5 million to customer relationships. Ordinary income would jump from $1.4 million to $4.6 million. Capital gain would drop from $8 million to $5.5 million. Federal tax would rise to about $2.802 million, an extra $684,000 the seller would have paid for losing the allocation fight. The allocation negotiation is not a paperwork exercise. It is a six-figure outcome on a mid-seven-figure deal.
Common Mistakes That Cost Sellers Real Money
Mistake 1: Ignoring Depreciation Recapture Until Closing
Owners often run a “20 percent capital gains tax” assumption in their head for years before listing the business. Then they get to the tax planning meeting two weeks before closing and discover that their fully depreciated $1.5 million of equipment is going to throw off $1.2 million of ordinary income at 37 percent instead of capital gain at 20 percent. The $204,000 difference was avoidable with a structuring conversation 12 months earlier. Recapture math should be modeled at the first valuation conversation, not the closing dinner.
Mistake 2: Letting the Buyer’s CPA Draft the Form 8594
Buyers and their advisors often produce the first draft of the purchase price allocation, and it is almost always tilted toward the buyer’s tax interest, which means more value in short-life depreciable assets and less in goodwill. Sellers who do not push back, or who push back only on the price headline and ignore the allocation schedule, leave money on the table. The seller’s side should produce its own preferred allocation and bring it to the negotiation, with an independent appraisal supporting it.
Mistake 3: Filing Mismatched Form 8594s
Both the buyer and the seller are required to file Form 8594 with their respective federal tax returns, and the two forms must report identical allocations. When they do not match, the IRS gets two flagged returns and an automatic correspondence audit on both sides. The fix is simple: include the allocation as an exhibit to the asset purchase agreement, both parties initial it, and both file consistent 8594s. Tax counsel for each side should sign off before close.
Mistake 4: Assuming an Installment Sale Defers the Recapture
IRC Section 453 allows sellers to defer recognition of gain on installment sales (where the buyer pays over multiple tax years) to the years in which payments are actually received. The carve-out is that Section 1245 depreciation recapture must be recognized in full in the year of sale, regardless of when payments arrive. A seller who takes back a $3 million note and assumes the recapture will be deferred with the rest of the gain is going to owe ordinary tax on the equipment recapture in year one with no cash to pay it from. The seller’s CPA needs to model the year-one tax bill before agreeing to seller financing.
Mistake 5: Missing the QSBS Section 1202 Exclusion on C-Corp Stock
If the business is structured as a C-corp and the stock was acquired at original issuance and held for more than five years, IRC Section 1202 allows the seller to exclude up to the greater of $10 million or 10 times basis of gain from federal tax entirely. Many founder-owned C-corps qualify and the owner does not realize it. A $10 million stock sale of qualified small business stock can produce zero federal tax. The qualification rules (gross asset test, qualified trade or business test, original-issuance test, holding period) need to be checked years in advance, not at the LOI stage.
Mistake 6: Forgetting State Tax Domicile Planning
States tax the gain on the sale of a business based on the residency of the seller at the time of the sale, with some carve-outs for source-based taxation of in-state assets. A California seller selling a business for $10 million pays about $1.33 percent of the gain in state tax on top of federal. A Texas, Florida, or Tennessee seller pays zero state tax on the capital gain portion. Owners who plan a sale 24 months out can sometimes establish residency in a no-income-tax state before closing, but the planning is technical and the IRS and state tax authorities scrutinize residency claims hard. Done properly, it saves seven figures on a $10 million sale.
Timeline: How Gain Measurement Plays Out in a Sale Process
Phase 1, 12 to 24 months before sale. Run a basis study. Pull the depreciation schedule for every fixed asset. Identify equipment with significant Section 1245 recapture exposure. Model the gain calculation at a target sale price. Decide on entity structure changes (S-election timing, F-reorganization, QSBS qualification check). Consider state residency planning for owners in high-tax states.
Phase 2, 6 to 12 months before sale. Get an independent appraisal of major asset categories (real estate, equipment, intellectual property). This is the document that supports the Form 8594 allocation in the negotiation. Without it, the seller is arguing allocation in a vacuum.
Phase 3, LOI stage. The letter of intent should specify whether the deal is an asset sale or a stock sale, and it should reference the allocation framework. Many LOIs include a high-level allocation schedule. If the LOI says “the parties will negotiate the allocation in good faith” without ranges, the seller has already lost the negotiating position. Lock in target allocations at LOI.
Phase 4, definitive agreement and Form 8594. The asset purchase agreement should include a final allocation schedule as an exhibit. Both buyer’s counsel and seller’s counsel review and sign off. The allocation flows directly into both parties’ Form 8594 filings with their respective federal tax returns.
Phase 5, post-close tax filing. The seller’s CPA files the return reflecting the allocation. Section 1245 recapture flows to ordinary income. Goodwill and customer relationship gain flows to Schedule D. NIIT is calculated on net investment income. State return is filed in the state of residency. If installment sale treatment was elected for the capital gain portion, the seller’s tax bill is spread across multiple years per IRC Section 453.
Phase 6, deferral and reinvestment. Sellers who want to defer the capital gain portion further can use Qualified Opportunity Zone investments under IRC Section 1400Z-2 (defers gain through 2026 and excludes appreciation after 10 years), a Charitable Remainder Trust (defers gain and provides income stream), or an ESOP rollover under IRC Section 1042 for C-corp sellers selling to an employee stock ownership plan (full deferral if proceeds are reinvested in qualifying replacement securities). Each path has technical requirements and reduces flexibility, so the choice is deal-specific.
Deferral Strategies for the Capital Gain Portion
Once the gain has been measured and the character determined, sellers with significant long-term capital gain exposure (typically the goodwill and customer relationship buckets) have several legal vehicles to defer or reduce that portion of the federal tax bill. None of these touch the ordinary income or depreciation recapture portion, which is recognized in the year of sale regardless. The deferral conversation only applies to the LTCG slice.
Qualified Opportunity Zone investments under IRC Section 1400Z-2. A seller who reinvests capital gain into a Qualified Opportunity Fund within 180 days of the sale can defer federal tax on that gain until December 31, 2026, or the date of disposition of the QOF investment, whichever is earlier. If the QOF investment is held for at least 10 years, post-investment appreciation is excluded from federal tax entirely. The 2017 Tax Cuts and Jobs Act created this regime, and Treasury issued final regulations in 2019. The 2026 deferral deadline has been the operational constraint for sellers since the program launched.
Charitable Remainder Trust under IRC Section 664. A seller can contribute appreciated business interests to a Charitable Remainder Trust before the sale closes, the CRT sells the business with no immediate tax (because the CRT is tax-exempt), and the seller receives an income stream from the trust for life or a term of years, with the remainder passing to a designated charity at the end. The seller gets a partial charitable deduction up front and effectively defers the gain across the income-stream period. The CRUT and CRAT variants have different mechanics. CRTs require the contribution to be made before any binding sale agreement, which means planning has to happen pre-LOI.
Section 1042 ESOP rollover for C-corp sellers. A C-corp owner selling at least 30 percent of company stock to an Employee Stock Ownership Plan can defer recognition of the entire capital gain by reinvesting the proceeds in Qualified Replacement Property (typically domestic operating company securities) within 12 months. The deferral can become permanent if the QRP is held until death and steps up in basis. This is one of the most powerful deferral mechanisms in the code, and it is limited to C-corporations (S-corps must convert and wait the five-year built-in gains period to qualify).
Installment sale under IRC Section 453. A seller who takes back a note from the buyer can spread the capital gain portion across the years payments are received, deferring tax to those years. The interest portion of the note is taxed as ordinary interest income each year. As noted earlier, Section 1245 recapture must be reported in year one regardless. Installment treatment is the default for any sale with deferred payments; the seller has to affirmatively elect out if full recognition in year one is preferred.
Frequently Asked Questions
What is the difference between gain and amount realized?
Amount realized is the gross consideration the seller receives, including cash, the fair market value of any property or stock received, and any liabilities of the seller that the buyer assumes. Gain is amount realized minus adjusted basis. For example, if a seller sells a business for $5 million cash plus the buyer’s assumption of a $1 million note, the amount realized is $6 million. If the seller’s adjusted basis in the assets is $1.5 million, the gain is $4.5 million. The distinction matters because liabilities-assumed-by-the-buyer is a frequent IRS audit point. Sellers sometimes forget to include assumed debt in their amount realized calculation, which understates gain and triggers deficiency assessments later.
How is gain calculated when a seller has multiple owners?
Pass-through entity sales (S-corps and partnerships) measure gain at the entity level and then allocate it to the owners on Schedules K-1 according to their ownership percentages and the operating agreement’s allocation provisions. Each owner reports their share of the ordinary income, Section 1245 recapture, and capital gain on their personal returns. C-corporation asset sales create gain at the corporate level (taxed at 21 percent federal), and then a second layer of tax when the corporation distributes the after-tax proceeds to shareholders as a dividend or liquidating distribution. This double-tax exposure is the main reason C-corps usually sell stock rather than assets.
Does the seller’s holding period affect the gain calculation?
Yes, but only on the character of the gain, not the amount. Assets held longer than one year qualify for long-term capital gain treatment on the capital-asset portions of the sale (goodwill, customer relationships, real estate over basis). Assets held one year or less produce short-term capital gain, which is taxed at ordinary rates. For most going-concern business sales, the underlying assets have been held many years and the long-term treatment is automatic. The exception is recently acquired businesses where the seller bought and is flipping within 12 months. In that case, even the goodwill gain is short-term ordinary.
How is gain measured when the buyer issues stock as consideration?
When part of the consideration is the buyer’s stock (a stock-for-asset or stock-for-stock deal), the seller recognizes gain to the extent the fair market value of the stock plus any cash received exceeds adjusted basis. If the transaction qualifies as a tax-free reorganization under IRC Section 368 (Type A merger, Type B stock swap, Type C asset acquisition), the seller can defer recognition of the stock portion of the gain entirely and pay tax only on the cash boot received. The reorganization rules are technical and the buyer’s stock has to meet continuity of interest requirements, but in strategic acquisitions involving public-company buyers, the deferral is meaningful.
What happens to gain calculation if the deal includes an earnout?
Earnout payments (contingent consideration tied to future performance) are reported under the installment sale rules of IRC Section 453. The seller calculates basis recovery and gain recognition each year as payments are received, using the maximum-stated-selling-price method or the open-transaction doctrine if no cap exists. The recapture portion still has to be reported in year one even if the earnout is years out. Earnouts also create character complications: payments tied to the seller’s continued services can be reclassified as compensation rather than purchase price, which converts capital gain into ordinary income. Structuring earnouts to preserve capital gain character requires careful drafting.
Are legal and broker fees deductible against the gain?
Yes. Selling expenses (legal fees, broker or M&A advisor fees, accounting fees directly tied to the transaction, escrow fees, transfer taxes) reduce the amount realized, which reduces gain dollar for dollar. A $10 million sale with $500,000 of selling expenses produces a $9.5 million amount realized, and the gain is calculated against that lower figure. Sellers should track every transaction-related invoice and include them on the closing settlement statement so the CPA can pick them up. Missing $200,000 of selling expenses on a transaction at 20 percent federal plus 5 percent state costs $50,000 of avoidable tax.
What to Do Next
Gain measurement on the sale of a business is not a single number. It is a stack of asset-class allocations, recapture rules, and character determinations, and each one moves real money. The owners who walk away with the highest after-tax proceeds are the ones who started modeling the gain calculation a year or two before they listed, not the ones who first saw a Form 8594 at closing.
CT Acquisitions represents sellers in the lower middle market on a buyer-paid fee model. We model the after-tax outcome at the first conversation, not the last one. We negotiate the Form 8594 allocation alongside the headline price, because both lines determine your net. We coordinate with the seller’s CPA and tax counsel from LOI through closing.
Get the after-tax number before you sign anything.
The allocation fight is worth six figures or more on a mid-seven-figure deal. Buyers pay us, not you. We model the full tax stack, including depreciation recapture, NIIT, and state-residency planning, before you commit to a price or a structure.
Book a Free ConsultationRelated reading on CT Acquisitions: How to calculate the sale price of a business using NOI, Do you have to pay taxes if you sell a company, S-corp sale of business and 1031 exchange options, How to sell a business with intangible value and assets, and Can you defer tax on sale of a business over 20 years.