Section 1231 Five-Year Lookback Rule

If you claimed Section 1231 losses in the prior five years, part of this year's Section 1231 gain is automatically recharacterized as ordinary income — regardless of how long you held the property.

Illustration for Section 1231 Five-Year Lookback Rule

What is Section 1231 property?

IRC Section 1231 governs the tax treatment of gains and losses from the sale or exchange of real property and depreciable personal property used in a trade or business and held for more than one year. This category includes rental real estate, commercial buildings, farmland, equipment used in business, and most depreciable assets.

The appeal of Section 1231 is asymmetric: net Section 1231 gains are taxed as long-term capital gains (favorable rates), while net Section 1231 losses are treated as ordinary losses (which can offset ordinary income dollar-for-dollar). Without additional rules, taxpayers would always want their losses ordinary and their gains capital — and Congress recognized this.

The five-year lookback: converting gains to ordinary income

IRC Section 1231(c) creates the five-year lookback rule to prevent the asymmetric benefit from being exploited indefinitely. The rule works as follows:

At the end of each tax year, you net all Section 1231 gains and losses. If you have a net Section 1231 gain, you look back at the prior five years. If you claimed any net Section 1231 losses in that lookback window that have not already been recharacterized, those losses convert the current year's gain to ordinary income — dollar for dollar — up to the amount of prior losses.

In other words: the favorable capital gain treatment on current-year Section 1231 gain is deferred (not eliminated) while there are unrecaptured prior-year Section 1231 ordinary losses. Only after all prior losses are recaptured does the remaining current-year gain qualify for capital gain treatment.

Example: In Year 1 you sold equipment at a $40,000 Section 1231 loss (deducted as ordinary loss). In Year 4 you sell a rental property at a $100,000 Section 1231 gain. The five-year lookback applies. The first $40,000 of the gain is recharacterized as ordinary income (recapturing the prior ordinary deduction). The remaining $60,000 is a net Section 1231 gain and qualifies for long-term capital gain rates.

How the lookback interacts with depreciation recapture

The Section 1231 lookback operates after depreciation recapture has already been carved out. Depreciation recapture under Section 1245 (personal property) and unrecaptured Section 1250 (real property) is removed from the Section 1231 pool first and taxed at ordinary income rates (Section 1245) or up to 25% (Section 1250 unrecaptured).

Only the gain remaining after recapture enters the Section 1231 netting process. So on a rental property sale with $80,000 of unrecaptured Section 1250 depreciation and $150,000 total gain, the Section 1250 recapture is handled first ($80,000 at up to 25%), and only the remaining $70,000 enters the 1231 netting pool where the lookback applies.

This means the lookback potentially affects the most favorable portion of the gain — the pure economic appreciation above your adjusted basis, already stripped of recapture — which is where the capital gain rates are most valuable.

Tracking the five-year lookback: Form 4797 and recordkeeping

The IRS uses Form 4797 to compute and track Section 1231 transactions. Part I reports Section 1231 gains and losses and applies the five-year lookback. The instructions walk through the netting calculation.

The critical recordkeeping obligation: you must track your cumulative net Section 1231 losses from each of the prior five years and which portion of each year's losses has been recaptured in subsequent years. Tax software carries this forward automatically if you use the same software consistently, but gaps or changes in software can create errors.

If you have prior Section 1231 losses, request a copy of the Schedule D / Form 4797 from each of the prior five returns before you plan a property sale. Knowing your unrecaptured lookback amount lets you model whether the gain from a planned sale will be ordinary or capital — a difference that can be 15 to 20 percentage points in marginal tax rate.

Planning around the five-year lookback

Timing the sale: If you claimed a large Section 1231 loss in Year 1, gains in Years 2 through 5 are partially recharacterized as ordinary income. If you have flexibility, deferring a sale until Year 6 sidesteps the lookback entirely for that loss. This is not always practical, but it is a legitimate planning consideration.

1031 exchange deferral: A 1031 exchange defers the Section 1231 gain (and the lookback recharacterization) into the replacement property. The deferred gain carries the character it would have had in the exchange year, but it is not recognized until the replacement property is sold outside of a 1031.

Installment sales: Spreading recognition of Section 1231 gain over multiple years via an installment sale can allow each year's recognized gain to absorb only the lookback losses allocable to that year, potentially smoothing out recharacterization across years.

Recognizing the planning value: The lookback is often overlooked in transaction planning because advisors focus on the recapture and capital gain rates. But for investors with substantial prior Section 1231 losses — from equipment write-offs, loss years on rentals structured as active businesses, or sales of business assets at a loss — the lookback can convert a significant portion of anticipated capital gain to ordinary income and raise the effective tax rate substantially.

Worked example: a multi-year netting with recapture

Trace an investor across five years. Year 1: sold business equipment at a $30,000 Section 1231 loss, deducted as an ordinary loss. Year 2: no 1231 transactions. Year 3: sold a small rental at a $15,000 net 1231 gain. Year 5: sold a larger rental for a $120,000 total gain, of which $50,000 is unrecaptured Section 1250 depreciation.

In Year 3, the $15,000 net 1231 gain falls within the five-year lookback of the Year 1 $30,000 loss, so all $15,000 is recharacterized as ordinary income. That leaves $15,000 of the original loss still unrecaptured.

In Year 5, the $50,000 of Section 1250 depreciation is carved out first and taxed at up to 25%. The remaining $70,000 enters 1231 netting. The lookback still has $15,000 of unrecaptured Year 1 loss, so $15,000 of the $70,000 is recharacterized as ordinary income; the final $55,000 qualifies for long-term capital-gain rates. After Year 5, the original $30,000 loss is fully recaptured and no longer affects future gains.

Step-by-step: applying the lookback on Form 4797

Step 1: Complete Form 4797 Part III to compute depreciation recapture (Sections 1245 and 1250) on each disposed asset — this is removed before any 1231 netting. Step 2: Net all current-year Section 1231 gains and losses in Part I.

Step 3: If Part I shows a net gain, gather your net Section 1231 losses from the prior five years (Form 4797 Part I of each return) and subtract any amounts already recaptured in intervening years to find your non-recaptured net Section 1231 losses.

Step 4: Recharacterize current-year net 1231 gain as ordinary income up to that non-recaptured loss figure, reported on Form 4797 as ordinary gain. Step 5: Any remaining net 1231 gain flows to Schedule D as long-term capital gain. Follow the Form 4797 instructions' worksheet closely; the running five-year figure is easy to mis-track after a software or preparer change.

Common misconceptions about the lookback

"The lookback only affects equipment." False — rental real estate held over a year is Section 1231 property, so real-estate gains enter the same netting and are subject to the lookback.

"Depreciation recapture and the lookback are the same thing." They are separate. Recapture (1245/1250) is computed first and taxed at ordinary or 25% rates; the lookback then acts on the post-recapture 1231 gain. Both can apply to a single sale.

"The lookback lasts forever." No — it reaches back only five years. A 1231 loss more than five years old no longer recharacterizes current gains. "It creates new tax on money I never deducted." Also no — it recaptures the benefit of prior ordinary-loss deductions you already took; it is a repayment of a timing benefit, not a double tax.

Interaction with carryovers and planning value

The lookback recharacterizes the character of gain (capital versus ordinary) but does not change the amount of gain recognized. That matters for how the gain interacts with other tax attributes. Because recharacterized 1231 gain becomes ordinary income, it cannot be offset by capital-loss carryovers the way capital gain can — a subtle trap for investors holding large capital-loss carryforwards who expected to shelter a property sale.

Conversely, ordinary recharacterized gain may be absorbed by net operating loss carryforwards or current-year ordinary losses. When you have both prior 1231 losses and capital-loss carryovers, the sequencing genuinely changes your tax bill, so model it before you sell.

The practical planning takeaway: pull your last five Forms 4797 before any significant business-asset or rental sale. Knowing your non-recaptured 1231 loss balance tells you in advance how much of a coming gain will be taxed as ordinary income — often a 10-to-20-point rate difference — and lets you time the sale, structure an installment sale, or use a 1031 exchange accordingly.

Frequently asked questions

What is the Section 1231 five-year lookback rule?

If you have net Section 1231 losses in any of the prior five tax years that were deducted as ordinary losses, the current year's net Section 1231 gain is recharacterized as ordinary income — dollar for dollar — up to the amount of prior unrecaptured losses. This prevents taxpayers from enjoying ordinary loss treatment in bad years and capital gain treatment in good years without payback.

Does the five-year lookback apply to rental property sales?

Yes. Rental real estate held more than one year is Section 1231 property. Gains from its sale — after depreciation recapture is separated out — enter the Section 1231 netting process and are subject to the five-year lookback if you had prior Section 1231 losses.

How do I know if I have unrecaptured Section 1231 losses?

Check your Form 4797, Part I from each of the prior five returns. The instructions show a running calculation of prior net losses not yet recaptured. Tax software typically tracks this automatically if you have used the same software throughout those years. If you switched software or advisors, you may need to reconstruct the calculation manually.

Can a 1031 exchange avoid the Section 1231 lookback?

A 1031 exchange defers recognition of the gain — and therefore defers the lookback recharacterization — into the future. But it does not eliminate it. When the replacement property is eventually sold in a taxable transaction, the deferred gain retains its character (including whatever portion would have been ordinary under the lookback at the exchange date) and may face the lookback test again in that future year.

Can capital-loss carryovers offset gain recharacterized by the lookback?

No. Once the five-year lookback recharacterizes Section 1231 gain as ordinary income, it is ordinary income — capital-loss carryovers can only offset capital gains, not ordinary income. This surprises investors who planned to shelter a property sale with stock-market capital losses. Ordinary net operating losses, however, can absorb the recharacterized amount.

How far back does the Section 1231 lookback reach?

Exactly five tax years. The current year's net Section 1231 gain is tested against non-recaptured net Section 1231 losses from the prior five years only. A loss older than five years, or one already fully recaptured by intervening gains, no longer affects your current gain's character.

Does the lookback apply if my only 1231 activity is one rental sale?

If you have net Section 1231 losses in the prior five years — from any business asset, not just rentals — then yes, your rental-sale gain (after depreciation recapture is removed) is tested against them. If you had no net 1231 losses in the prior five years, the lookback does not apply and your net 1231 gain is simply long-term capital gain.

Sources

Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.

Related