Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / Section 1231 gain
Section 1231 gain

Section 1231 Gain: How Business Property Gets Long-Term Rates

Short answerSection 1231 gain is gain on depreciable property and real estate used in a business and held more than one year. After 1245 and 1250 recapture come out, net 1231 gains are taxed as long-term capital gain, while net 1231 losses are fully ordinary. The catch: net losses from the prior five years turn current gain ordinary (IRC 1231(c)), costing $12,228 in our Georgia example.

What counts as Section 1231 property

Section 1231 is the reason a business owner can sell a building or a truck fleet and pay long-term capital gains rates even though those assets are not capital assets. IRC 1221(a)(2) carves depreciable business property and business real estate out of the capital asset definition, and IRC 1231(b) brings them back in through a side door. Property qualifies when it is:

  • Depreciable property or real property used in a trade or business and held more than one year (IRC 1231(b)(1)). This covers buildings, land under them, machinery, vehicles, and amortizable intangibles such as goodwill (IRC 197(f)(7) treats them as depreciable).
  • Timber, coal and domestic iron ore disposed of under the IRC 631 rules (IRC 1231(b)(2)). Our timber sale taxes page covers the 631(a) election and 631(b) cutting contracts.
  • Livestock held for draft, breeding, dairy or sporting purposes: cattle and horses after 24 months, other livestock after 12 months, and never poultry (IRC 1231(b)(3)).
  • An unharvested crop sold with the land, at the same time and to the same buyer (IRC 1231(b)(4)).

Excluded: inventory, property held mainly for sale to customers, and copyrights or creative works in the hands of their creator. Rental real estate generally counts as property used in a trade or business for this purpose, which is why rentals land on Form 4797 rather than Schedule D.

Netting: why the year's total decides the character

Section 1231 does not look at one asset at a time. You add up every 1231 gain and every 1231 loss for the year, including gains and losses passed through on K-1s. Then:

  • Net gain: every 1231 gain and loss is treated as long-term capital gain or loss (IRC 1231(a)(1)).
  • Net loss: every item is ordinary (IRC 1231(a)(2)), so the loss offsets wages and business income without the $3,000 capital loss limit of IRC 1211(b).

Casualty and theft results run through a preliminary step first (the so-called firepot rule): if casualty losses on business property exceed casualty gains for the year, those items stay out of the main netting and are ordinary (IRC 1231(a)(4)(C)). Timing matters here. A seller holding one building at a loss and another at a gain can sell them in different tax years so the loss is ordinary in one year and the gain is long-term in another, subject to the lookback below.

The five-year lookback under 1231(c)

Congress closed the obvious game of harvesting ordinary 1231 losses in one year and long-term 1231 gains the next. Under IRC 1231(c), a net 1231 gain is treated as ordinary income to the extent of non-recaptured net 1231 losses from the five most recent prior tax years. You track this on Form 4797 line 8.

Our Georgia example shows the cost. An investor sells a ground-leased parcel for a $400,000 gain. With a clean history the engine puts the sale-driven tax at $92,500. If the same investor deducted a $150,000 net 1231 loss in 2023, that amount comes back as ordinary income and the tax rises to $104,728, a difference of $12,228.

One detail most explanations skip: when the lookback recharacterizes gain, it comes first out of the unrecaptured 1250 layer taxed at up to 25%. The IRS Unrecaptured Section 1250 Gain Worksheet subtracts the Form 4797 line 8 amount before anything else (Schedule D instructions, 2025 tax year). That softens the hit for real estate sellers, because ordinary rates replace a 25% layer rather than a 15% or 20% layer.

Ordering: recapture first, then 1231

Section 1231 only gets the gain that is left after the recapture sections take their share. The order on a sale of business property is:

  1. Section 1245. Equipment, vehicles, furniture and amortized purchased intangibles: gain up to prior depreciation or amortization is ordinary (IRC 1245). Form 4797 Part III.
  2. Section 1250. For buildings placed in service after 1986 under straight-line depreciation, there is usually no ordinary 1250 recapture, but the straight-line depreciation becomes unrecaptured 1250 gain, a slice of the 1231 gain taxed at a 25% maximum (IRC 1(h)(1)(E), 2026).
  3. Section 1231. What remains joins the netting.
  4. Section 1231(c) lookback. Applied to the net gain.

Our depreciation recapture analysis goes deeper on the first two steps, and cost segregation before a sale explains why reclassifying building components into 1245 property raises the ordinary slice later.

Worked example: a North Carolina owner sells everything

An owner-operator sells the operating assets and the building. Equipment carries $300,000 of 1245 recapture; the building carries $250,000 of straight-line depreciation (unrecaptured 1250); the land, the building appreciation and self-created goodwill produce another $1,500,000 of 1231 gain. With $220,000 of other income, the engine totals $547,970 of tax caused by the sale, $81,795 of it to North Carolina at its flat 3.99% rate for 2026 (G.S. 105-153.7). There is no NIIT because the owner materially participated (IRC 1411(c)).

Self-created goodwill is the quiet winner. The owner never amortized it, so it has no 1245 recapture, and as an asset used in the business for more than a year it is 1231 property: the entire amount rides at long-term rates. Purchased goodwill is different, since its 15-year amortization under IRC 197 is recaptured as ordinary income. If the owner holds personal goodwill apart from the company, see the personal goodwill sale analysis. How the price is spread across these classes is set on Form 8594; see the purchase price allocation analysis.

Farm and ranch: livestock and crops

Agriculture is where 1231 has its own vocabulary. A Kansas rancher who sells land and a raised breeding herd held more than 24 months has 1231 gain on both. Raised animals have zero basis because the cost of raising them was deducted, and with no depreciation there is nothing to recapture: the IRS Form 4797 instructions route raised cattle and horses sold at a gain to Part I, while purchased breeding stock goes through Part III for 1245 recapture. In our example the engine puts tax on $1,100,000 of 1231 gain at $252,628, or 23.0%.

Animals held for sale rather than breeding, and cattle held less than 24 months, produce ordinary income. Grain and feeder cattle are inventory. A growing crop counts as 1231 property only if it is sold with the land to the same buyer at the same time (IRC 1231(b)(4)). More on the land side in capital gains tax on farmland.

Planning moves that work with 1231

  • Separate loss years from gain years. Sell loss property first, then wait for the lookback window before a big gain, if the business plan allows.
  • Spread the gain. A Section 453 installment sale recognizes 1231 gain as payments arrive, though recapture is due in year one (IRC 453(i)).
  • Exchange real property. A 1031 exchange defers 1231 gain on real estate; equipment no longer qualifies after 2017.
  • Watch state treatment. Most states follow federal 1231 netting, but rates and special deductions differ; see capital gains tax by state.

To see these moves modeled against your actual asset list, get the Big Sale Tax Analysis.

What to know

Section 1231 treatment depends on the whole year, not one sale, so a gain that looks long-term in a closing statement can turn ordinary because of a loss deducted years earlier or a K-1 you have not received yet. Classifying property (business use, held for sale, inventory) is a facts question that buyers and the IRS can challenge. The engine figures here use 2026 federal tables (Rev. Proc. 2025-32) and modeled state rules, and assume the stated facts about recapture and participation.

Worked example

Active owner, joint filers, $220,000 of other income. Equipment recapture (1245) $300,000; building straight-line depreciation (unrecaptured 1250) $250,000; remaining 1231 gain on land and building plus self-created goodwill $1,500,000. Investor sells land leased to a tenant for a $400,000 gain. A $150,000 net 1231 loss from 2023 has not been recaptured, so $150,000 of the gain is ordinary and $250,000 stays long-term. Joint filers, $180,000 of other income. Identical sale with a clean five-year history: the full $400,000 is long-term. Rancher sells farmland and a raised breeding herd held over 24 months. Raised animals have zero basis and no depreciation, so their gain is 1231 gain with no recapture; total 1231 gain $1,100,000. Joint filers, $90,000 of other income.

Engine runOwner sells building, equipment and goodwill, North CarolinaGround-leased parcel, Georgia, with lookbackSame parcel, no prior 1231 lossesRanch dispersal: land plus raised breeding cattle, Kansas
Filing statusMarried, jointMarried, jointMarried, jointMarried, joint
StateNorth CarolinaGeorgiaGeorgiaKansas
Other income (wages, pension, interest)$220,000$180,000$180,000$90,000
Long-term capital gain$1,500,000$250,000$400,000$1,100,000
Unrecaptured Section 1250 gain (25% max)$250,000$0$0$0
Section 1245 recapture (ordinary income)$300,000$0$0$0
Ordinary income from the sale (short-term gain, inventory, non-compete)$0$150,000$0$0
Federal income tax on the sale$466,175$72,228$60,000$191,248
Net investment income tax (3.8%)$0$12,540$12,540$0
State income tax on the sale$81,795$19,960$19,960$61,380
Total tax caused by the sale$547,970$104,728$92,500$252,628
Effective rate on the gain26.7%26.2%23.1%23.0%
Gain kept after these taxes$1,502,030$295,272$307,500$847,372

Computed October 7, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.

Run your own numbers

Federal on the sale$0
NIIT$0
State$0
Total tax, held over a year$0
Effective rate0%
If held one year or less$0

2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules. Tax shown is the tax caused by the sale. Excludes selling costs, local taxes and NIIT exceptions for active business owners. Education only.

Free PDF sheet

Long-Term vs Short-Term Capital Gains (2026)

The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

Frequently asked questions

Is Section 1231 gain a capital gain?
Not technically, but it is taxed like one. Section 1231 property is excluded from the capital asset definition by IRC 1221(a)(2). If your 1231 gains exceed your 1231 losses for the year, the net is treated as long-term capital gain under IRC 1231(a), so it gets the 0/15/20% rates for 2026 (Rev. Proc. 2025-32). Net losses are ordinary instead.
Is Section 1231 gain ordinary income?
Only in three cases: the part that is 1245 recapture (taxed before 1231 applies), the part recaptured by the five-year lookback because of net 1231 losses in the prior five years (IRC 1231(c)), or when the year's 1231 results net to a loss. Otherwise net 1231 gain is taxed at long-term capital gain rates.
What is the difference between Section 1231, 1245 and 1250?
They work in sequence. Section 1245 recaptures depreciation on equipment and other personal property as ordinary income. Section 1250 governs buildings; straight-line depreciation becomes unrecaptured 1250 gain taxed at up to 25% (IRC 1(h)(1)(E)). Section 1231 then takes the remaining gain and decides whether it is long-term capital gain or ordinary, based on the year's netting.
Is Section 1231 gain included in QBI?
Generally no when it nets to a gain. Treasury Reg. 1.199A-3 excludes items treated as capital gain or loss from qualified business income, and net 1231 gain is treated as long-term capital gain. If 1231 items net to a loss, or gain is recharacterized as ordinary, that ordinary amount can count in QBI.
Is Section 1231 gain subject to self-employment tax?
No. IRC 1402(a)(3) excludes gain or loss from the sale of property that is not inventory or held primarily for sale to customers from net earnings from self-employment. Depreciation recapture under 1245 is also outside self-employment tax, although it is ordinary income for income tax purposes.
Is Section 1231 gain passive income?
It depends on the activity. Gain on property used in a rental or a business where you do not materially participate is passive under IRC 469, which also means it can free suspended passive losses on a full disposition (IRC 469(g)). Gain on property from a business you actively run is nonpassive and generally outside the 3.8% NIIT (IRC 1411(c)).
How Hans helps: the $5,000 Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. Get the Big Sale Tax Analysis.
Next step

Know your number before you sign.

The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.

Prefer email? Request the analysis by email.

Book a callCall Hans