Section 1231 Gain: Definition and How the Business Property Rules Work

Section 1231 gain is the net gain that results when a taxpayer sells or exchanges property used in a trade or business — or involuntarily converts such property — after holding it for more than one year. Under IRC §1231, these gains and losses are pooled together in a netting calculation called the "hotchpot." If the net result is positive, it receives preferential long-term capital gain treatment; if the net result is negative, the loss is treated as an ordinary loss — fully deductible against any income. This asymmetric treatment (capital gain rates on net gains, ordinary loss treatment on net losses) makes §1231 one of the most taxpayer-favorable provisions in the Internal Revenue Code for business owners.

What Qualifies as Section 1231 Property

Section 1231 applies to the following categories of property held for more than one year:

  • Real property used in a trade or business (commercial buildings, rental property, land)
  • Depreciable personal property used in a trade or business — but only the appreciation above original cost after §1245 and §1250 depreciation recapture is applied first
  • Livestock used for draft, breeding, dairy, or sporting purposes (cattle, horses, but not poultry)
  • Timber, coal, and domestic iron ore subject to applicable cutting and royalty provisions (IRC §631)
  • Unharvested crops sold with farm land
  • Involuntary conversions of business property (casualty losses, condemnations) — but only if the gain exceeds the losses in that subgroup

Personal-use property (a home, personal vehicle) is not §1231 property. Capital assets under IRC §1221 held for investment — stocks, bonds, collectibles — are also excluded. The category is specifically for productive business and income-producing property.

The Netting (Hotchpot) Rule

At the end of each tax year, a taxpayer aggregates all §1231 gains and §1231 losses (from all §1231 property transactions that year) into a single netting calculation:

  • Net §1231 gain (positive result): treated as long-term capital gain, taxed at 0%, 15%, or 20% depending on the taxpayer's ordinary income (plus 3.8% Net Investment Income Tax if applicable). Unrecaptured §1250 gain within the §1231 gain is capped at 25%.
  • Net §1231 loss (negative result): treated as an ordinary loss, fully deductible against wages, business income, interest, and dividends without any capital loss limitation.

This means a taxpayer who sells a machine at a $40,000 gain and a truck at a $15,000 loss nets to a $25,000 §1231 gain, taxed at capital gain rates. If the positions reversed and the net were -$25,000, the entire amount would be deductible as an ordinary loss — not subject to the $3,000 annual capital loss cap that applies to investment assets.

The Five-Year Lookback Rule

The lookback rule under IRC §1231(c) prevents taxpayers from converting ordinary income into capital gains through deliberate loss-harvesting followed by gain-taking. If a taxpayer has recognized net §1231 losses in any of the five preceding tax years, the current-year net §1231 gain is recharacterized as ordinary income to the extent of those prior net §1231 losses — even if the prior losses were claimed years ago.

Example: A taxpayer claimed a $30,000 net §1231 loss in 2022. In 2026, the same taxpayer realizes a $50,000 net §1231 gain. Under the lookback rule, $30,000 of that 2026 gain is ordinary income; only the remaining $20,000 qualifies for capital gain rates.

The five-year lookback is tracked on Form 4797, Part I.

Interaction with Depreciation Recapture

Section 1231 gain is computed after applying §1245 and §1250 recapture. Depreciation recapture is extracted from the asset's gain first and taxed as ordinary income (or at the 25% unrecaptured §1250 rate for real property). Only the excess gain above the recaptured amount enters the §1231 hotchpot. This layering is critical: the headline §1231 capital gain treatment does not shelter depreciation that was previously deducted.

Example: A commercial building bought for $500,000 is sold for $700,000. Accumulated MACRS depreciation is $80,000, reducing adjusted basis to $420,000. Total gain is $280,000. The first $80,000 is unrecaptured §1250 gain (taxed at up to 25%). The remaining $200,000 enters the §1231 hotchpot as a potential long-term capital gain.

Reporting on Form 4797

Section 1231 transactions are reported on IRS Form 4797 (Sales of Business Property):

  • Part I — Net §1231 gains and losses; shows the lookback recapture calculation
  • Part II — §1245/§1250 depreciation recapture (ordinary income portion)
  • Part III — Gain or loss from individual asset sales; amounts flow up to Part I or Part II based on recapture rules

The net §1231 gain from Part I flows to Schedule D and is ultimately taxed at the applicable long-term capital gain rate.

Related Terms

  • Depreciation Recapture — the ordinary income or 25%-rate portion extracted before §1231 treatment applies
  • Tax Basis — the adjusted basis subtracted from amount realized to compute the initial gain
  • Realized vs. Recognized Gain — the distinction between total economic gain and the taxable portion
  • MACRS — the depreciation system that reduces basis and generates recapture exposure
  • Passive Activity Loss — §469 limitations that can suspend §1231 gains and losses from passive activities

How CPAs Use Section 1231 in Practice

Asset sale structuring: When a business sells assets rather than equity, CPAs allocate the purchase price across asset classes (cash, receivables, inventory, §1231 property, goodwill) under IRC §1060. Maximizing the portion allocated to §1231 property — particularly real property — converts otherwise ordinary income into capital gains.

Loss harvesting before gain years: Because §1231 losses are deductible as ordinary losses, CPAs advise clients to recognize §1231 losses in high-income years and §1231 gains in low-income years — subject to the five-year lookback, which can reverse the strategy's benefit if losses and gains occur within the same five-year window.

1031 exchange eligibility: §1231 property held for use in a trade or business qualifies for like-kind exchange deferral under IRC §1031. See How to Execute a 1031 Like-Kind Exchange for Real Estate Clients for the mechanics. A successful 1031 exchange defers both the §1231 gain and the unrecaptured §1250 recapture into the replacement property.

Sale of a business: In a sole proprietorship or partnership asset sale, each asset class is analyzed separately. Goodwill and going-concern value are capital assets under §1221 (not §1231), but fixtures, equipment, and real property generate §1231 gains. CPAs typically prepare a detailed gain allocation schedule showing the tax character — ordinary, §1231, or capital — for each line item.

For a deeper look at how depreciation recapture interacts with sale proceeds on rental property, see Depreciation Recapture: How to Calculate and Explain It to Clients.

Arvori helps CPAs and insurance brokers grow their practice through smarter cross-referral partnerships. Learn how Arvori works.