The Section 1231(c) Lookback: When a Prior Loss Turns This Year's Gain Into Ordinary Income

Published: September 17, 2026 · Reading time: 13 min

TL;DR: Sell business equipment, a vehicle, or business-connected land at a gain, and the default rule under IRC §1231(a) is long-term capital gain treatment. But if you had a net Section 1231 loss in any of your 5 preceding tax years that hasn't already been used up, §1231(c) recharacterizes this year's gain as ordinary income, dollar for dollar, up to that unused ("nonrecaptured") balance — only the excess gets capital-gain treatment. Nothing on your return tracks this for you; you have to keep your own running 5-year ledger. Losses are applied earliest first, and a loss more than 5 years old simply expires unused. The recharacterized amount is reported on Form 4797, Part I, lines 7-9, flows to line 12 as ordinary income — and, unlike your Schedule C profit, it is not subject to self-employment tax, because §1402(a)(3)(C) excludes gain on business property from net earnings from self-employment regardless of whether §1231(c) makes it ordinary.

Every freelancer who's sold a piece of depreciated equipment has run into ordinary-income recapture — §1245 taking back the depreciation you already deducted. That story is well covered. This one is different, less intuitive, and almost never discussed: you can owe ordinary rates on gain from an asset that was never depreciated at all, simply because you had a business-property loss in an earlier year that you already deducted in full.

That's what IRC §1231(c) does. It doesn't create new tax — it changes the character of a gain you were going to pay tax on regardless. But getting the character wrong means the wrong rate, the wrong form, and, if an examiner catches it before you do, a correction with interest attached.


The baseline rule, and the trap sitting inside it

Section 1231 property is depreciable property or real property used in your trade or business, held more than one year — plus certain business-connected capital assets, like land held for the business rather than as inventory. (See depreciation recapture for freelancers for the mechanics of §1245/§1250 recapture on the depreciated portion of equipment and vehicles; this post is about the rule that applies on top of that, or instead of it when the property was never depreciated.)

Under §1231(a), all your Section 1231 transactions for the year are netted together, and the result gets favorable treatment either way:

  • Net gain → treated as long-term capital gain
  • Net loss → treated as ordinary loss (fully deductible against other income, and not subject to the capital-loss limitation of §1211)

That's the pitch that makes §1231 property attractive: gains get capital-gain rates, losses get ordinary deductibility. Heads you win, tails you also kind of win.

The trap is that this "best of both worlds" framing invites people to take the ordinary loss deduction in a bad year and then forget it exists once things turn around. §1231(c) is the provision that remembers for you.


What §1231(c) actually says

The statute, verified directly from the U.S. Code:

"The net section 1231 gain for any taxable year shall be treated as ordinary income to the extent such gain does not exceed the non-recaptured net section 1231 losses."

— IRC §1231(c)(1)

And it defines the lookback window:

"the term 'non-recaptured net section 1231 losses' means the excess of— (A) the aggregate amount of the net section 1231 losses for the 5 most recent preceding taxable years, over (B) the portion of such losses taken into account under paragraph (1) for such preceding taxable years."

— IRC §1231(c)(2)

In plain terms: if you deducted a net §1231 loss in any of the last 5 years and haven't already "paid it back" against a later gain, this year's gain gets soaked up by that balance first — dollar for dollar, as ordinary income — before any of it becomes capital gain.

This is a mechanical, formulaic offset. It doesn't ask why you're selling, doesn't care whether the current asset has anything to do with the prior loss, and doesn't require the IRS to prove anything — it's arithmetic you're expected to do on your own return.


Why this is a different mechanism than §1245/§1250 recapture

It's easy to lump every "recapture" rule together. They're not the same test, and mixing them up is the single most common mistake with this provision.

§1245 / §1250 recapture§1231(c) lookback
What triggers itDepreciation claimed on the asset being soldNet Section 1231 losses from other years, possibly other assets entirely
ScopePer-asset — looks only at that item's own depreciation historyAggregate — looks at your whole Section 1231 net result across 5 years
Applies even with no depreciation?No — requires depreciation to recaptureYes — raw land, never depreciated, can still be swept into ordinary income
Where computedForm 4797, Part IIIForm 4797, Part I, lines 7-9
Can it apply to the same sale?Yes, at the same time — §1245/§1250 recapture happens first, and any §1231 gain left over is then tested against the lookback

A freelancer who sells a fully depreciated camera already knows to expect §1245 recapture. Almost nobody expects the lookback to reach out and grab gain on an asset that was never depreciated — appreciated business-use land is the cleanest example, and it's the one in the first worked example below.


Worked example 1: land that was never depreciated

Jordan runs a print shop as a sole proprietor (Schedule C). In 2019, Jordan bought a small vacant lot next to the shop, planning to expand — held more than a year, used in connection with the business, never inventory. In 2026, Jordan drops the expansion plan and sells the lot for a gain.

The prior loss. In 2022, Jordan sold an old printing press at a loss — a net Section 1231 loss of $5,000, deducted in full as an ordinary loss on that year's return. No other Section 1231 transactions happened in 2023, 2024, or 2025.

The 2026 sale. The lot sells for a $8,000 net Section 1231 gain.

Is 2022 inside the lookback window for a 2026 sale? The preceding 5 years are 2021-2025, and 2022 is squarely inside it — nothing has expired yet, and no part of the $5,000 was ever recaptured against an intervening gain, since there wasn't one.

node -e "
const taxableIncomeBeforeLand = 60000; // Jordan's 2026 taxable income before this sale
const landGain = 8000;
const nonrecapturedLoss = 5000; // 2022 loss, still inside the 2021-2025 window

const ordinaryRecapture = Math.min(landGain, nonrecapturedLoss);
const remainingLTCG = landGain - ordinaryRecapture;
console.log('Ordinary recapture (Form 4797 line 8 -> line 12):', ordinaryRecapture);
console.log('Remaining Section 1231 gain as LTCG (line 9 -> Sch D):', remainingLTCG);

// 2026 single-filer figures, Rev. Proc. 2025-32: 22% bracket is \$50,400-\$105,700;
// 0%/15% LTCG breakpoint (all other individuals) is \$49,450
const stackTop = taxableIncomeBeforeLand + ordinaryRecapture;
console.log('Ordinary income stack:', taxableIncomeBeforeLand, '->', stackTop, '(22% bracket: 50,400-105,700)');
const taxOnOrdinary = ordinaryRecapture * 0.22;
console.log('Tax on the \$5,000 ordinary slice @ 22%:', taxOnOrdinary);

const taxOnLTCG = remainingLTCG * 0.15; // stacks above 49,450, so 15%
console.log('Tax on the \$3,000 LTCG slice @ 15%:', taxOnLTCG);

const totalWithLookback = taxOnOrdinary + taxOnLTCG;
console.log('TOTAL tax on the \$8,000 gain, WITH the lookback:', totalWithLookback);

const counterfactual = landGain * 0.15; // if the whole gain had been LTCG
console.log('Counterfactual tax if the entire \$8,000 were LTCG:', counterfactual);
console.log('Extra tax cost caused by the 1231(c) lookback:', totalWithLookback - counterfactual);
"
Ordinary recapture (Form 4797 line 8 -> line 12): 5000
Remaining Section 1231 gain as LTCG (line 9 -> Sch D): 3000
Ordinary income stack: 60000 -> 65000 (22% bracket: 50,400-105,700)
Tax on the $5,000 ordinary slice @ 22%: 1100
Tax on the $3,000 LTCG slice @ 15%: 450
TOTAL tax on the $8,000 gain, WITH the lookback: 1550
Counterfactual tax if the entire $8,000 were LTCG: 1200
Extra tax cost caused by the 1231(c) lookback: 350

Jordan's $5,000 2022 press-sale loss already saved tax once, in 2022, at ordinary rates. Now it costs an extra $350 in 2026 — the 7-point spread between the 22% ordinary rate and the 15% long-term capital gains rate, applied to the $5,000 the lookback recharacterizes. Jordan's total Form 4797 reporting: $5,000 ordinary income on line 12, $3,000 long-term capital gain on Schedule D via line 9 — not $8,000 of capital gain, even though the land itself was never depreciated and was held for seven years.


Worked example 2: the 5-year cliff

Priya is a wedding videographer (Schedule C). In 2020, she sold an old edit-bay setup at a $6,000 net Section 1231 loss — deducted in full that year. She has no other Section 1231 activity until 2025 and 2026.

node -e "
const y2020Loss = 6000;

// 2025 sale: lookback window = 2020-2024. 2020 IS included (exactly 5 years back).
const window2025 = [2020, 2021, 2022, 2023, 2024];
const nonrecaptured2025 = window2025.includes(2020) ? y2020Loss : 0;
const gain2025 = 1500;
const ordinary2025 = Math.min(gain2025, nonrecaptured2025);
const remainingBalance = nonrecaptured2025 - ordinary2025;
console.log('2025 window:', window2025.join(', '));
console.log('2025 nonrecaptured available:', nonrecaptured2025, '| gain:', gain2025, '-> ordinary:', ordinary2025);
console.log('Remaining 2020-loss balance carried forward:', remainingBalance);

// 2026 sale: lookback window = 2021-2025. 2020 is now OUTSIDE it.
const window2026 = [2021, 2022, 2023, 2024, 2025];
const nonrecaptured2026 = window2026.includes(2020) ? remainingBalance : 0;
const gain2026 = 2000;
const ordinary2026 = Math.min(gain2026, nonrecaptured2026);
console.log('2026 window:', window2026.join(', '), '(2020 excluded)');
console.log('2026 nonrecaptured available:', nonrecaptured2026, '| gain:', gain2026, '-> ordinary:', ordinary2026, ' LTCG:', gain2026 - ordinary2026);
console.log('2020 balance that expires unused:', remainingBalance - nonrecaptured2026);
"
2025 window: 2020, 2021, 2022, 2023, 2024
2025 nonrecaptured available: 6000 | gain: 1500 -> ordinary: 1500
Remaining 2020-loss balance carried forward: 4500
2026 window: 2021, 2022, 2023, 2024, 2025 (2020 excluded)
2026 nonrecaptured available: 0 | gain: 2000 -> ordinary: 0  LTCG: 2000
2020 balance that expires unused: 4500

In 2025, Priya's $1,500 gain is entirely ordinary income — the 2020 loss is still inside that year's 5-year window (2020-2024), so it fully absorbs the gain, leaving $4,500 of the original $6,000 loss still unrecaptured. One year later, that same $4,500 is worth nothing: 2020 has aged out of the 2026 window (2021-2025), so her 2026 gain is entirely long-term capital gain, and the leftover balance simply evaporates. There's no election to preserve it, no carryforward past year 5 — it's gone the moment the sixth year starts.


Where it lands on Form 4797

Form 4797 lineWhat goes there
Line 2The individual sale: description, dates, sale price, depreciation, basis, gain/loss (Part I)
Line 6Gain flowing up from Part III (§1245/§1250 recapture computations)
Line 7Combine lines 2-6 — this is your net Section 1231 gain or loss for the year
Line 8Your nonrecaptured net Section 1231 losses from the preceding 5 years
Line 9Line 7 minus line 8 — the portion, if any, that gets capital-gain treatment
Line 12 (Part II)The line 8 amount — ordinary income, no self-employment tax
Schedule DThe line 9 amount, if positive — long-term capital gain

If line 7 is a loss, or a gain with no nonrecaptured losses available, you skip lines 8 and 9 entirely — see the form's own instructions for the exact skip logic. None of this passes through Schedule C; the asset was used in your Schedule C business, but its sale is reported on Form 4797, separate from your operating income and expenses. For more on how sales, abandonments, and conversions of business assets generally get reported, see retiring, abandoning, and converting business assets and, for a business sold as a whole rather than asset by asset, asset allocation under Form 8594.


Why it doesn't touch self-employment tax

This is the one genuinely good piece of news buried in the rule. Even though §1231(c) forces ordinary-income treatment, IRC §1402(a)(3) separately excludes any gain or loss "from the sale, exchange, involuntary conversion, or other disposition of property" from net earnings from self-employment, as long as the property is "neither" inventory-type stock in trade "nor" "property held primarily for sale to customers in the ordinary course of the trade or business" (§1402(a)(3)(C)(i)-(ii)). That exclusion turns on the character of the property, not on whether §1231(c) later recharacterizes the gain as ordinary for income-tax purposes. So Jordan's recaptured $5,000 is taxed at a 22% ordinary rate but owes zero self-employment tax on it — a meaningfully different result than $5,000 of extra Schedule C profit, which would also carry the 15.3% SE tax hit. See self-employment tax explained for how SE tax is computed on the income that does count.

One more line worth drawing: this article doesn't reach the Qualified Business Income deduction. Gain from disposing of business property is generally treated differently than ordinary trade-or-business income for §199A purposes, and that's a fact-specific question best confirmed with a preparer rather than assumed either way here.

Net Investment Income Tax: gain from disposing of property used in an active trade or business you materially participate in is generally excluded from the 3.8% NIIT under §1411(c)(4) — see does NIIT apply to your freelance income for the fuller test, including the cases where it doesn't hold.


Common Mistakes

Treating every equipment-sale gain as automatically long-term capital gain. The most common version of the error. If you've ever deducted a net Section 1231 loss in the last 5 years, check the lookback before assuming capital-gain treatment on the next Section 1231 gain — even on an unrelated asset.

Confusing this with §1245/§1250 recapture. They can both apply to the same sale, in sequence — §1245/§1250 recapture is computed first, in Part III, based on that asset's own depreciation; whatever gain is left over is then tested against the §1231(c) lookback in Part I, based on your 5-year loss history across all your Section 1231 property, not just this asset.

Not tracking your own 5-year Section 1231 history. There is no IRS schedule that carries this forward for you year to year the way a capital-loss carryover shows up on Schedule D. If you don't keep a running note of each year's net Section 1231 result, you won't know your nonrecaptured balance when it's time to sell — and you'll either misreport the character of the gain or have to reconstruct five years of records under time pressure.

Missing the de minimis safe harbor exclusion. If you expensed an item under the de minimis safe harbor (generally items $2,500 or less), it is not Section 1231 property at all when you sell it later — Publication 544 is explicit that the entire gain is ordinary income reported directly in Part II, with no lookback computation and no capital-gain possibility, regardless of your loss history.

Assuming a loss "banked" forever. The nonrecaptured balance is a 5-year clock, not a permanent carryforward. If you deduct a Section 1231 loss and then have no Section 1231 gains for the next five years, that loss's tax benefit is exactly what you already took in the loss year — nothing more, nothing less. There's no penalty for letting it expire; there's also no bonus.


What to keep

  • A year-by-year net Section 1231 gain/loss ledger, going back at least 5 years, updated every year you have any Section 1231 sale — this is the record nothing else on your return replicates
  • For each prior loss year: the amount, the year, and how much (if any) has already been recaptured against a later gain
  • The depreciation schedule for any depreciable asset sold, to separate the §1245/§1250 computation from the §1231(c) lookback computation
  • Basis records for non-depreciable Section 1231 property (land, certain capital assets) — see Schedule C recordkeeping by line for what supports Form 4797 generally
  • The Form 4797 from each year you had a Section 1231 transaction, since it's the only document that shows what was already applied

Frequently Asked Questions

What is the Section 1231(c) lookback rule?

IRC §1231(c) says your net Section 1231 gain for the year is treated as ordinary income — not long-term capital gain — to the extent of your "nonrecaptured net section 1231 losses," which are the net Section 1231 losses from your 5 most recent preceding tax years that haven't already been used up against an earlier gain. It only comes into play when two things are both true: this year you have a net Section 1231 gain (gains exceed losses across all your Section 1231 property sales for the year), and at least one of your preceding 5 tax years had a net Section 1231 loss that hasn't already been fully recaptured. If either condition is missing — no net gain this year, or no unused prior loss in the window — the rule does nothing and the normal result applies: net gain is long-term capital gain, net loss is ordinary loss. It doesn't create any additional tax; it only changes the character (ordinary vs. capital) of a gain you'd owe tax on either way.

How many years back does the Section 1231 lookback go?

Exactly the 5 most recent preceding tax years — not including the current year. For a sale in 2026, the window is 2021 through 2025. A net Section 1231 loss from 2020 or earlier has aged out and no longer counts, even if you never used a dollar of it. IRS Publication 544 (2025) confirms losses are applied against gains "beginning with the earliest loss in the 5-year period," so an old loss gets consumed first — which also means it's the one most likely to expire unused if you go several years without a Section 1231 gain to absorb it. There is no extension, election, or carryforward past the 5th year: the balance simply disappears, which is the trap in the second worked example above.

Does Section 1231(c) recapture count toward self-employment tax?

No. Gain recharacterized as ordinary income under §1231(c) is reported on Form 4797, Part II — never directly on Schedule C — and IRC §1402(a)(3)(C) excludes gain or loss from the sale of property that is neither inventory nor property held primarily for sale to customers from net earnings from self-employment, regardless of whether that gain ends up taxed at capital-gains or ordinary rates. So the recaptured amount is taxed at your marginal ordinary-income rate but does not get hit with the 15.3% self-employment tax the way your Schedule C net profit does. This FAQ doesn't address the Qualified Business Income (§199A) deduction — gain from disposing of business property is generally outside its scope, and that question is worth confirming with your preparer rather than assuming either way.

Which Section 1231 gains does the lookback not apply to?

Two common cases skip the lookback entirely. First, property you expensed under the de minimis safe harbor for tangible property (items you wrote off under $2,500, or $5,000 with an applicable financial statement) is not treated as Section 1231 property when you later sell it — Publication 544 (2025) is explicit that gain on its disposition is ordinary income reported directly in Part II of Form 4797, regardless of your nonrecaptured-loss history or how long you held it. Second, if this year's Section 1231 transactions net to a loss rather than a gain, §1231(c) has nothing to recharacterize — the whole loss is already ordinary under §1231(a)(2), and it becomes next year's potential "nonrecaptured" balance instead.

Where do I report Section 1231 recapture on my tax return?

On Form 4797. Individual sales and their gain or loss go on Part I, line 2; gains flowing up from Part III (depreciation recapture) land on line 6; you combine lines 2 through 6 on line 7. If line 7 is a gain and you have nonrecaptured Section 1231 losses from the preceding 5 years, enter that lookback amount on line 8 and subtract it from line 7 on line 9. The line 8 amount is entered on line 12 in Part II, which flows through as ordinary income; whatever remains on line 9 is reported as long-term capital gain on Schedule D. None of this touches Schedule C directly — Schedule C reports your operating income and expenses, while the sale of a Section 1231 asset and its recapture are reported on Form 4797 even though the asset was used in your Schedule C business.


Authoritative References

Related reading: Depreciation recapture for freelancers · Retiring, abandoning & converting business assets · Self-employment tax explained · Does NIIT apply to your freelance income · De minimis safe harbor election


Keep the 5-Year Ledger Somewhere You'll Actually Find It

The Section 1231(c) lookback is only hard because nothing on your tax return tracks it for you — it's a 5-year memory you have to keep yourself. CentSense logs every asset's cost, sale, and disposal date as you record it, so when a gain year finally arrives after a loss year, the history is already there instead of reconstructed from five years of old returns. Free tier includes 10 AI scans per month; Solo is $5/month for unlimited scanning and mileage logging.

Start free →


This guide is general education for U.S. freelancers and Schedule C filers in 2026. It is not personalized tax advice — the Section 1231(c) computation depends on your full transaction history, so bring it to a CPA or EA before you file.

Related reads

Continue learning with more tax and expense guides for freelancers.

Compare alternatives

See how CentSense stacks up to other expense and receipt tools for freelancers.