Section 1231 Five Year Lookback Rule: When Property Gain Becomes Ordinary Income

Section 1231 can provide favorable federal income tax treatment when rental property, business real estate, or other qualifying business property is sold. A net Section 1231 loss is generally ordinary, while a net Section 1231 gain can generally receive long term capital gain treatment.

There is an important limitation to that favorable gain treatment. Internal Revenue Code Section 1231(c) requires taxpayers with certain net Section 1231 losses from the preceding five taxable years to treat some or all of a current net Section 1231 gain as ordinary income.

This is commonly called the Section 1231 five year lookback rule.

The rule is not limited to the property currently being sold. It looks at the taxpayer's Section 1231 history across the five preceding taxable years. Prior losses from other business assets, rental properties, partnerships, or S corporations can therefore change the tax character of a current property sale.

For broader guidance on rental property dispositions, depreciation, passive losses, and other investor issues, see my Real Estate Tax Planning resource page.

Key Tax Takeaways

  • Section 1231(c) looks back to the five most recent preceding taxable years.
  • The relevant balance is called nonrecaptured net Section 1231 losses.
  • A current net Section 1231 gain is ordinary income to the extent of the remaining nonrecaptured loss balance.
  • Any current net Section 1231 gain exceeding that balance can generally retain long term capital gain character, subject to other applicable rules.
  • Prior Section 1231 gains reduce the amount of earlier losses available to recharacterize future gains.
  • The IRS applies prior losses beginning with the earliest remaining loss in the five year period.
  • The prior loss does not have to arise from the same property, activity, or entity as the current gain.
  • Section 1231 gain reported on a partnership or S corporation Schedule K1 can be affected by the owner's own prior Section 1231 loss history.
  • A passive Section 1231 loss that remains disallowed under Section 469 is not treated the same as a Section 1231 loss that was actually allowed and deducted.
  • Depreciation recapture under Sections 1245 and 1250 is determined before the remaining gain enters the Section 1231 lookback calculation.
  • The five year window is rolling, so the timing of a property sale can change whether an older loss remains within the lookback period.

What Is the Section 1231 Five Year Lookback Rule?

Section 1231(c)(1) provides that a taxpayer's net Section 1231 gain for the current year is treated as ordinary income to the extent that the gain does not exceed the taxpayer's nonrecaptured net Section 1231 losses.

Section 1231(c)(2) defines nonrecaptured net Section 1231 losses by looking at net Section 1231 losses from the five most recent preceding taxable years and reducing those losses by amounts that have already been taken into account under the lookback rule.

The rule prevents a taxpayer from receiving an ordinary deduction for a Section 1231 loss and then receiving preferential long term capital gain treatment on an offsetting Section 1231 gain shortly afterward.

Basic Example

Assume a taxpayer deducted a $50,000 net Section 1231 loss in 2023 and has no other relevant Section 1231 gains or losses before 2026.

In 2026, the taxpayer has a $120,000 net Section 1231 gain.

The first $50,000 of the 2026 net Section 1231 gain is generally treated as ordinary income under Section 1231(c). The remaining $70,000 can retain long term capital gain character, subject to depreciation related gain and the other applicable capital gain rules.

This Is Not the Same as Depreciation Recapture

Section 1231(c) is sometimes described as a recapture rule, but it should not be confused with depreciation recapture under Sections 1245 and 1250.

Depreciation recapture generally examines depreciation associated with particular assets. The Section 1231 lookback examines the taxpayer's remaining net Section 1231 losses from the preceding five taxable years.

What Is a Nonrecaptured Net Section 1231 Loss?

A nonrecaptured net Section 1231 loss is not simply every Section 1231 loss shown on a prior tax return.

Section 1231(c)(2) effectively requires a running balance. Start with the taxpayer's net Section 1231 losses from the five most recent preceding taxable years. Then reduce those losses by amounts already used to convert intervening net Section 1231 gains into ordinary income.

Once a prior loss has been fully used under the lookback rule, that same loss cannot convert another later gain into ordinary income.

Example: An Intervening Gain Reduces the Prior Loss Balance

Assume the taxpayer has the following Section 1231 results:

Year Net Section 1231 Result
2022 $100,000 loss
2023 $0
2024 $40,000 gain
2025 $0
2026 $90,000 gain

The $40,000 gain in 2024 uses $40,000 of the earlier $100,000 loss. After that recharacterization, $60,000 of the 2022 loss remains nonrecaptured.

When the taxpayer has a $90,000 net Section 1231 gain in 2026, the first $60,000 is generally ordinary income under Section 1231(c). The remaining $30,000 can retain long term capital gain character, subject to the other applicable rules.

Which Five Years Count for the Section 1231 Lookback?

Section 1231(c)(2) refers to the five most recent preceding taxable years.

For a calendar year taxpayer with a net Section 1231 gain in 2026, the lookback period is:

  • 2021
  • 2022
  • 2023
  • 2024
  • 2025

A net Section 1231 loss from 2020 is outside the five preceding taxable year window for a 2026 gain.

The calculation is based on taxable years rather than simply counting 60 months from the date of the current disposition.

The Five Year Window Is Rolling

Each new taxable year changes the lookback period. An older nonrecaptured loss can eventually fall outside the five year window if it has not already been absorbed by an intervening net Section 1231 gain.

This does not mean the original loss deduction is reversed or expires. The loss was already taken into account in an earlier year. It simply ceases to be part of the Section 1231(c) lookback calculation once it falls outside the applicable five preceding taxable years.

Which Prior Section 1231 Loss Is Used First?

IRS guidance applies prior Section 1231 losses beginning with the earliest remaining loss within the applicable five year period.

This matters when a taxpayer has losses from more than one year because an intervening gain can partially absorb an older loss while leaving later losses available for future years.

Example: Multiple Prior Loss Years

Year Net Section 1231 Result
2022 $30,000 loss
2023 $50,000 loss
2024 $20,000 gain
2025 $0
2026 $70,000 gain

The 2024 gain first absorbs $20,000 of the 2022 loss. After 2024, the remaining nonrecaptured losses are:

  • $10,000 from 2022
  • $50,000 from 2023

The total remaining nonrecaptured loss balance is $60,000.

The first $60,000 of the taxpayer's $70,000 net Section 1231 gain in 2026 is therefore generally ordinary income. The remaining $10,000 can retain long term capital gain character, subject to the other applicable rules.

Does the Prior Loss Have to Come From the Same Property?

No.

Section 1231 is an annual taxpayer level netting regime. The statute does not limit the five year lookback to losses from the same asset that produces the later gain.

A prior net Section 1231 loss from one business asset can therefore affect a later Section 1231 gain from a completely different qualifying asset.

Example: Different Assets

Assume a taxpayer had a $75,000 net Section 1231 loss from the disposition of business equipment in 2023.

In 2026, the same taxpayer sells qualifying rental real estate and, after applying the applicable recapture and annual netting rules, has a $200,000 net Section 1231 gain.

Assuming the $75,000 loss remains nonrecaptured, the first $75,000 of the current net Section 1231 gain can be treated as ordinary income even though the prior loss came from different property.

The Prior Loss Does Not Have to Come From the Same Activity

The lookback can also cross activities. A prior Section 1231 loss from one business or rental activity can affect current Section 1231 gain arising from another activity.

This is why reviewing only the property being sold is not sufficient when projecting the tax on a major disposition.

Can Section 1231 Gain From a Schedule K1 Trigger the Lookback Rule?

Yes.

Partnerships report each partner's distributive share of net Section 1231 gain or loss in Box 10 of Schedule K1, Form 1065.

S corporations report each shareholder's share of net Section 1231 gain or loss in Box 9 of Schedule K1, Form 1120S.

The current Form 4797 instructions direct partners and S corporation shareholders to include these Schedule K1 amounts in Part I of their own Form 4797.

The individual owner then applies the Section 1231 netting and lookback rules using the owner's complete Section 1231 history.

Example: Real Estate Partnership K1 Gain

Assume a taxpayer owns an interest in a real estate partnership. The partnership sells business real estate and reports $125,000 of net Section 1231 gain to the taxpayer in Box 10 of Schedule K1.

The taxpayer also has $45,000 of nonrecaptured net Section 1231 losses from prior years that arose outside the partnership.

The taxpayer cannot determine the final character of the $125,000 K1 gain by looking only at the partnership. The owner's Form 4797 lookback calculation can cause $45,000 of the current net Section 1231 gain to be treated as ordinary income.

The K1 Does Not Tell the Entire Tax Story

A Schedule K1 can correctly report net Section 1231 gain while the owner's federal return ultimately treats some of that gain as ordinary income because of the owner's prior Section 1231 loss history.

Does a Suspended Passive Section 1231 Loss Count for the Five Year Lookback?

A Section 1231 loss shown by an entity or generated by an activity is not necessarily the same as a net Section 1231 loss that was actually deductible by the taxpayer.

The Form 4797 instructions describe nonrecaptured Section 1231 losses as net Section 1231 losses deducted during the five preceding taxable years that have not already been applied against later net Section 1231 gains.

This distinction matters when Section 469 limits a passive activity loss.

The partnership and S corporation Schedule K1 instructions direct taxpayers with a passive Section 1231 loss to apply the passive activity rules and determine how much of the loss is actually allowed on Form 4797.

Accordingly, a Section 1231 loss that remains suspended under Section 469 should not simply be entered into the five year lookback balance merely because the amount appeared on a prior Schedule K1.

If a previously suspended Section 1231 loss later becomes allowable and enters the taxpayer's Section 1231 computation, it can affect the net Section 1231 result for the year in which it is allowed and can therefore affect the lookback analysis for later years.

Reconcile Form 4797 and Form 8582 Together

A taxpayer with pass through real estate investments can have Section 1231 amounts and passive activity loss limitations operating at the same time. Before reconstructing a five year lookback balance, determine which prior Section 1231 losses actually became deductible and which remained suspended.

For more information about the passive activity rules, see Suspended Passive Rental Losses: Four Ways Real Estate Investors Can Use Them .

How Does Depreciation Recapture Interact With the Section 1231 Lookback?

Depreciation recapture is applied before the remaining qualifying gain enters the Section 1231 netting process.

Section 1245 can characterize gain as ordinary income based on prior depreciation. Section 1250 can also create ordinary income recapture in applicable circumstances.

Those ordinary recapture amounts do not first receive Section 1231 gain treatment.

Only the remaining qualifying gain enters the annual Section 1231 calculation. If that annual calculation produces a net Section 1231 gain, Section 1231(c) is then applied.

Example: Depreciation Recapture and the Lookback in the Same Sale

Assume a rental property disposition ultimately produces $300,000 of recognized gain.

After allocating the sales price among the assets, $40,000 is ordinary income under Section 1245 because of depreciation on cost segregation components.

The remaining qualifying property gain enters the taxpayer's Section 1231 calculation. After considering all other Section 1231 gains and losses for the year, assume the taxpayer has a $220,000 net Section 1231 gain.

The taxpayer also has $75,000 of nonrecaptured net Section 1231 losses from the preceding five taxable years.

The tax character can therefore include:

  • $40,000 of ordinary income from Section 1245 recapture
  • $75,000 of additional ordinary income under the Section 1231(c) lookback rule
  • $145,000 of remaining net Section 1231 gain with long term capital gain character, subject to the applicable unrecaptured Section 1250 gain and other capital gain rules

The same real estate sale can therefore generate ordinary income for more than one completely different tax reason.

For a detailed discussion of Sections 1245 and 1250, see Depreciation Recapture on Rental Property .

What Is the Correct Order for Calculating the Section 1231 Lookback?

The order of the calculation matters. A practical sequence is:

  1. Calculate the gain or loss on each property disposition.
  2. Apply the applicable depreciation recapture provisions, including Sections 1245 and 1250.
  3. Determine the remaining Section 1231 gain or loss from each qualifying transaction.
  4. Combine all qualifying Section 1231 gains and losses for the taxable year.
  5. Determine whether the current year produces a net Section 1231 gain or net Section 1231 loss.
  6. If there is a net gain, determine the taxpayer's remaining nonrecaptured net Section 1231 losses from the five preceding taxable years.
  7. Treat the current net Section 1231 gain as ordinary income to the extent of the nonrecaptured loss balance.
  8. Treat any remaining net Section 1231 gain as long term capital gain, subject to the other applicable capital gain rules.

For the broader property disposition framework, see Section 1231 Tax Rules for Rental Property and Business Real Estate .

How Is the Lookback Reported on Form 4797?

Form 4797, Part I, provides the federal reporting mechanism for the Section 1231 lookback.

Under the current form and instructions:

  • Line 7 determines the current net Section 1231 gain or loss after the applicable Part I calculation.
  • Line 8 reports nonrecaptured net Section 1231 losses from prior years.
  • Line 9 subtracts the prior loss amount from the current net Section 1231 gain.
  • The portion recharacterized under the lookback rule is transferred to Part II as ordinary gain.
  • Any remaining net Section 1231 gain is generally carried to the applicable Schedule D as long term capital gain.

Form 4797 Requires Historical Information That May Not Appear on the Current Return

A current year depreciation schedule cannot establish the taxpayer's complete Section 1231 lookback balance. Prior Forms 4797 and Schedule K1 information may be necessary to identify losses that arose from completely different assets or activities.

What Happens When the Current Year Has a Net Section 1231 Loss?

The lookback rule in Section 1231(c) applies when the current year produces a net Section 1231 gain.

If Section 1231 losses equal or exceed Section 1231 gains for the current year, Section 1231(a)(2) generally provides ordinary rather than capital treatment for the resulting net Section 1231 loss.

To the extent the net Section 1231 loss is actually deductible, that loss can then become part of the nonrecaptured Section 1231 loss history considered during the next five taxable years.

Example: A Current Loss Creates Future Lookback Exposure

Assume a taxpayer has a deductible $80,000 net Section 1231 loss in 2026.

The loss is generally ordinary under Section 1231.

If the taxpayer subsequently has a net Section 1231 gain during one of the next five taxable years, the remaining nonrecaptured portion of the 2026 loss can cause some or all of that later gain to be treated as ordinary income.

Can Selling Property One Year Later Change the Lookback Result?

Yes. Because Section 1231(c) uses a rolling five preceding taxable year period, the year in which a gain is recognized can determine whether an older net Section 1231 loss remains within the lookback window.

Example: A Prior Loss Ages Out of the Lookback Period

Assume a calendar year taxpayer deducted a $100,000 net Section 1231 loss in 2020 and has no later Section 1231 gain that uses the loss.

If the taxpayer has a net Section 1231 gain in 2025, the five preceding taxable years are 2020 through 2024. The 2020 loss is therefore still within the lookback period.

If the gain instead occurs in 2026, the five preceding taxable years are 2021 through 2025. The 2020 loss is outside the statutory lookback period.

Transaction Timing Can Affect Character, Not Just the Year Tax Is Paid

The timing of a property sale can affect whether gain is ordinary income under the Section 1231 lookback rule. A preclosing projection should therefore review the taxpayer's prior five years before assuming that current Section 1231 gain will receive long term capital gain treatment.

Transaction timing should be evaluated together with the economic terms of the sale, depreciation recapture, passive loss consequences, installment sale considerations, and applicable federal and state tax rules.

What Records Should Be Reviewed Before a Major Section 1231 Gain?

Before estimating the tax on a significant rental property or business property disposition, the taxpayer should generally review:

  • Forms 4797 for each of the five preceding taxable years
  • Schedule K1 amounts from partnerships and S corporations
  • Prior net Section 1231 gains and losses
  • Amounts previously recharacterized as ordinary income under Section 1231(c)
  • The remaining nonrecaptured loss balance by year
  • Passive activity limitations affecting prior Section 1231 losses
  • Forms 8582 and suspended passive loss schedules when applicable
  • Current year property dispositions
  • Current year partnership and S corporation Section 1231 amounts
  • Fixed asset and depreciation schedules
  • Potential Section 1245 and Section 1250 depreciation recapture
  • Potential unrecaptured Section 1250 gain
  • Expected federal and state estimated tax consequences

This historical review is particularly important when tax returns were prepared by different firms over the five year period or when the taxpayer owns multiple real estate partnerships, S corporations, rental properties, or operating businesses.

Frequently Asked Questions About the Section 1231 Five Year Lookback Rule

What is the Section 1231 five year lookback rule?

Section 1231(c) generally treats current net Section 1231 gain as ordinary income to the extent of the taxpayer's remaining nonrecaptured net Section 1231 losses from the five most recent preceding taxable years. Any excess current net gain can generally retain long term capital gain character, subject to other applicable rules.

How do I calculate nonrecaptured Section 1231 losses?

Begin with net Section 1231 losses from the five preceding taxable years and reduce those losses by amounts already applied against later net Section 1231 gains under the lookback rule. The remaining balance is the nonrecaptured net Section 1231 loss amount used in the current year calculation.

Which five years count for the Section 1231 lookback?

The statute uses the five most recent preceding taxable years. For a calendar year taxpayer with a net Section 1231 gain in 2026, the relevant preceding years are 2021 through 2025.

Do old Section 1231 losses eventually fall outside the lookback period?

Yes. Because the lookback period includes only the five most recent preceding taxable years, a loss eventually falls outside the Section 1231(c) calculation. This does not undo or expire the original loss deduction. It simply means the loss is no longer within the statutory lookback period for recharacterizing a later gain.

Do prior Section 1231 gains reduce the loss balance?

Yes. A prior net Section 1231 gain that was treated as ordinary income because of the lookback rule reduces the nonrecaptured loss balance available to recharacterize future gains. The same prior loss cannot be used repeatedly against multiple later gains.

Which prior Section 1231 loss is used first?

IRS guidance applies losses beginning with the earliest remaining loss within the applicable five year period. This matters when a taxpayer has net Section 1231 losses from more than one year.

Does the prior Section 1231 loss have to come from the same property?

No. The lookback is based on the taxpayer's aggregate Section 1231 history rather than the history of one property. A prior loss from one qualifying business asset can affect a later gain from different Section 1231 property.

Can Section 1231 gain from a Schedule K1 be recharacterized as ordinary income?

Yes. Partners generally report net Section 1231 gain or loss from Box 10 of Schedule K1, Form 1065, and S corporation shareholders generally report the amount from Box 9 of Schedule K1, Form 1120S, through their own Form 4797. The owner's prior nonrecaptured Section 1231 losses can therefore affect the character of current K1 gain.

Does a suspended passive Section 1231 loss count for the lookback?

A loss that remains disallowed under the passive activity rules should not simply be treated as a prior deducted Section 1231 loss for the lookback calculation. Form 4797 describes the relevant prior losses as net Section 1231 losses deducted during the five preceding taxable years. If a suspended loss later becomes allowable and enters the Section 1231 calculation, it can affect the lookback analysis for subsequent years.

How does depreciation recapture interact with the Section 1231 lookback?

Ordinary depreciation recapture under Sections 1245 and 1250 is determined before the remaining qualifying gain enters the Section 1231 netting calculation. If the annual calculation then produces a net Section 1231 gain, the five year lookback rule is applied to that gain. A single disposition can therefore produce ordinary income from both depreciation recapture and Section 1231(c).

Where is the Section 1231 lookback reported on Form 4797?

Under the current Form 4797, Part I calculates the net Section 1231 result. Line 8 reports nonrecaptured net Section 1231 losses from prior years. The form then separates the portion treated as ordinary income under the lookback rule from any remaining net gain that generally receives long term capital gain treatment.

Can selling property one year later change the Section 1231 lookback result?

Yes. Because Section 1231(c) uses the five preceding taxable years, moving a disposition into a later taxable year can cause the oldest prior loss to fall outside the lookback period. The complete transaction should still be evaluated based on its economic terms and all other applicable tax consequences.

Final Takeaway

A current Section 1231 gain should not be assumed to receive long term capital gain treatment merely because the property qualifies as Section 1231 property and has been held for more than one year.

The taxpayer's prior five taxable years must also be reviewed.

Prior net Section 1231 losses can convert current gain into ordinary income. Intervening gains can reduce that prior loss balance, and older losses eventually fall outside the rolling five year period.

The analysis also extends beyond property owned directly by the taxpayer. Section 1231 amounts from partnerships and S corporations enter the owner's Form 4797 calculation, while passive activity limitations can determine whether a prior Section 1231 loss was actually deductible.

For a significant rental property or business property sale, the prior five years of Forms 4797, Schedule K1 information, passive loss schedules, and depreciation records should be reviewed before estimating the tax from the transaction.

Review the Five Year Section 1231 History Before the Property Is Sold

I assist real estate investors and business owners with Section 1231 lookback reviews before significant property dispositions. The analysis can include the prior five years of Forms 4797, partnership and S corporation Schedule K1 amounts, prior Section 1231 gains and losses, amounts already absorbed by intervening gains, passive activity limitations, depreciation recapture, and current year expected property sales.

The objective is to determine how much of the anticipated gain is expected to be ordinary income versus long term capital gain before the transaction closes and to incorporate that result into the federal and state tax projection.

Schedule a Consultation

Federal Tax Authorities and IRS Guidance

This article provides general federal income tax information. Section 1231 treatment depends on the taxpayer's complete disposition history, depreciation recapture, passive activity limitations, ownership structure, Schedule K1 items, transaction timing, and other facts. State income tax treatment can differ from federal treatment.

Previous
Previous

Short Term Rental Tax Rules: Passive Losses, Material Participation, and Self Employment Tax

Next
Next

1031 Exchange Rules for Real Estate Investors: 45 Day, 180 Day, Boot, and Basis Rules