Section 1231 Gain: How Business Property Gets Long-Term Rates
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:
- Section 1245. Equipment, vehicles, furniture and amortized purchased intangibles: gain up to prior depreciation or amortization is ordinary (IRC 1245). Form 4797 Part III.
- 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).
- Section 1231. What remains joins the netting.
- 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 run | Owner sells building, equipment and goodwill, North Carolina | Ground-leased parcel, Georgia, with lookback | Same parcel, no prior 1231 losses | Ranch dispersal: land plus raised breeding cattle, Kansas |
|---|---|---|---|---|
| Filing status | Married, joint | Married, joint | Married, joint | Married, joint |
| State | North Carolina | Georgia | Georgia | Kansas |
| 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 gain | 26.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
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.
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.
Frequently asked questions
Is Section 1231 gain a capital gain?
Is Section 1231 gain ordinary income?
What is the difference between Section 1231, 1245 and 1250?
Is Section 1231 gain included in QBI?
Is Section 1231 gain subject to self-employment tax?
Is Section 1231 gain passive income?
Sources
- IRC 1231 (Cornell LII)
- IRC 1245 (Cornell LII)
- IRC 1250 (Cornell LII)
- IRC 197 (Cornell LII)
- IRC 1402 (Cornell LII)
- IRC 1221 (Cornell LII)
- Instructions for Form 4797 (IRS)
- Instructions for Schedule D (Form 1040) (IRS)
- Treas. Reg. 1.199A-3 (Cornell LII)
- IRS Publication 544: Sales and Other Dispositions of Assets
- IRS Publication 225: Farmer's Tax Guide
Figures as of October 7, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
Capital gains tax calculator
The order of operations behind any capital gains calculator, with four worked sales: a rental, a business, a home over the exclusion and a common input mistake.
ReadAdjusted basis
How to build adjusted basis from your records, what goes in and what never does, inherited versus gifted basis, partnership and S corporation basis, and what a
ReadFarmland
A farm sale is five tax sales at once, and whether you cash rent or farm the ground decides the 3.8% layer.
ReadTimber sale
Standing timber held over a year is capital gain, but only the depletion basis you can prove comes off the top.
ReadSale of a business
Why one price becomes seven tax buckets, which pieces are ordinary income, and what an active owner can keep out of the 3.8% NIIT.
ReadDepreciation recapture
The part of your gain that came from depreciation is taxed differently; here is which rate applies, how much, and what defers it.
ReadKnow 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.