Text or WhatsApp (808) 600-9260

Section 1231 gains and losses

You report your net section 1231 loss as an ordinary loss in Part II of Form 4797. If you have a net section 1231 gain, it is ordinary income up to your nonrecaptured net section 1231 losses from the preceding 5 tax years, with any remainder treated as long term capital gain.

How your annual gains and losses determine treatment

Your section 1231 treatment depends on the relationship between your section 1231 gains and your section 1231 losses for the taxable year. When your gains exceed your losses, section 1231 generally treats those gains and losses as long term capital gains and long term capital losses, respectively. Your net gain is also subject to the rule for nonrecaptured net section 1231 losses from the 5 most recent preceding taxable years.

When your section 1231 gains do not exceed your section 1231 losses, those gains and losses are not treated as gains and losses from sales or exchanges of capital assets. When your annual calculation ends below zero, Form 4797 moves that deficit from its first part into its second part for ordinary loss treatment.

Your net section 1231 gain is the amount by which your section 1231 gains exceed your section 1231 losses. To calculate your loss balance under section 1231, subtract the year's total gains from its total losses when losses are larger. In determining either amount, the special rules in section 1231(a)(4) apply.

How your prior losses affect a current gain

Your net section 1231 gain is ordinary income to the extent it does not exceed your nonrecaptured net section 1231 losses. You carry any net gain remaining after that reduction to Schedule D as a long term capital gain. This means your current net gain can include both an ordinary income portion and a long term capital gain portion.

You look back five taxable years immediately before the current year to identify losses eligible for recapture. You total the net section 1231 losses for those years. You then subtract the portion of those losses already taken into account under this ordinary income rule in those preceding years.

You therefore use the remaining nonrecaptured amount when determining how much of your current net gain becomes ordinary income. The calculation accounts for both your net losses within the specified period and the portions already used against gains in preceding years.

When you apply prior losses against your current net section 1231 gain, you begin with the earliest loss in the 5 year period. Your current gain is ordinary gain to the extent of the applicable prior losses. After you account for those prior losses, Schedule D receives only the balance eligible for long term capital treatment.

How depreciation affects your section 1245 gain

If you dispose of section 1245 property, your gain generally is ordinary income to the extent of depreciation allowed or allowable, but if section 1031 or 1033 provides full or partial nonrecognition, your section 1245 ordinary income cannot exceed the gain recognized without applying section 1245 plus the fair market value of acquired property that is not section 1245 property and is not already counted in that recognized gain. Any recognized gain exceeding that ordinary income portion is a section 1231 gain.

For section 1245, you determine recomputed basis by adding to adjusted basis all reflected adjustments for depreciation or amortization allowed or allowable to you or any other person for that property or other property, except that you add only the amount allowed for a period if adequate records or other sufficient evidence establish it was less than the amount allowable, and you treat deductions allowable under sections 179, 179B, 179C, 179D, 179E, 181, 190, 193, or 194 as amortization deductions. Your section 1231 gain is the recognized gain remaining after the ordinary income portion attributable to that depreciation. The recognized gain and the section 1231 portion therefore can be different amounts.

Your remaining section 1231 gain then enters the annual section 1231 calculation. If that calculation produces a net gain, your nonrecaptured net section 1231 losses can cause some or all of that net gain to be ordinary income.

You can consequently have ordinary income attributable to depreciation on your section 1245 property and ordinary income attributable to prior section 1231 losses. The first rule determines the section 1231 portion of your recognized disposition gain. The second determines the treatment of your annual net section 1231 gain.

How unrecaptured section 1250 gain relates to your net gain

Your unrecaptured section 1250 gain generally is the part of your capital gain from selling section 1250 property, which is real property, that is due to depreciation. That amount cannot exceed your net section 1231 gain and is reduced by any net loss in the 28% group.

You must use the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions for Form 1040 to figure your unrecaptured section 1250 gain. The calculation includes the limit tied to your net section 1231 gain and the reduction for any net loss in the 28% group.

Under the statutory definition, the starting amount is your long term capital gain that is not otherwise treated as ordinary income but would be ordinary income if section 1250(b)(1) included all depreciation and the applicable percentage under section 1250(a) were 100 percent. From that amount, you subtract the excess, if any, of the amount in section 1(h)(4)(B) over the amount in section 1(h)(4)(A). Your unrecaptured section 1250 gain is the excess, if any, remaining after that subtraction.

For your sales, exchanges, and conversions described in section 1231(a)(3)(A), the starting amount in that statutory calculation cannot exceed your net section 1231 gain for the taxable year. You can find further information about section 1250 property and section 1231 gain in chapter 3 of the IRS publication identified in the sources.

When your standing timber disposal qualifies

You must treat the disposal of standing timber under a cutting contract as a section 1231 transaction if you meet all three conditions below. You must own the timber, have held it longer than 1 year before its disposal, and have kept an economic interest in it.

Where you report your gains and losses

You show your section 1231 gains and losses in Part I of Form 4797. Your annual net result determines the next reporting step. For a negative balance, you use the ordinary loss classification in the second part of that form.

If you have a net gain, you carry it to Schedule D as a long term capital gain, subject to the adjustment for nonrecaptured net section 1231 losses. If you have those losses from the preceding 5 tax years, you reduce your net gain by the applicable losses and report the reduction as ordinary gain in Part II.

Your reporting therefore follows the same division used to characterize your net gain. You report the portion attributable to nonrecaptured prior losses as ordinary gain in Part II. For your Schedule D entry, carry only the amount by which your net section 1231 gain exceeds your nonrecaptured net section 1231 losses from the preceding 5 tax years, carrying none of that gain if those losses equal or exceed it.

Worked example

Illustrative examples of your section 1231 treatment

Illustrative example 1: You have $100,000 of section 1231 gains and $40,000 of section 1231 losses for the year. Your net section 1231 gain is $60,000. You also have $20,000 of nonrecaptured net section 1231 losses from the preceding 5 tax years. You reduce your $60,000 net gain by the $20,000 of nonrecaptured losses, treating $20,000 as ordinary gain and $40,000 as long term capital gain. You report the $20,000 ordinary gain in Part II of Form 4797 and carry the $40,000 remainder to Schedule D. Illustrative example 2: You recognize $100,000 of gain on a disposition of section 1245 property. Your depreciation allowed or allowable is $40,000. You treat $40,000 of the recognized gain as ordinary income attributable to depreciation. You allocate the $60,000 balance of your recognized profit to section 1231. Absent other annual gains or losses under section 1231 and nonrecaptured losses within the preceding 5 tax years, your Schedule D entry is $60,000, all receiving long term capital treatment. Illustrative example 3: Your annual section 1231 totals consist of gains totaling $20,000 and losses totaling $50,000. Your losses exceed your gains by $30,000. For this illustration, you enter the $30,000 deficit in Form 4797's second part under ordinary losses. You transfer the example's $30,000 result between the two parts of Form 4797, starting in Part I and reporting the ordinary loss in Part II.

From Richard C. Wilson

We're about 50 interviews deep into our 100 tax expert interview series.

Questions

Is your section 1231 gain always a long term capital gain?
For you, ordinary income equals the smaller of this year's net gain under section 1231 or the unused loss balance from the five immediately preceding tax years. Only the excess above your unused prior loss balance qualifies for capital treatment over the long term, with Schedule D receiving that excess. On a section 1245 disposition, you first allocate recognized profit to ordinary income for depreciation allowed or allowable, leaving only the excess for section 1231, subject to the recomputed basis exception for documented lower allowed deductions and the recapture limit for dispositions with full or partial nonrecognition under section 1031 or 1033.
Do you count prior losses that have already been used?
You calculate nonrecaptured net section 1231 losses by totaling your net section 1231 losses for the 5 most recent preceding taxable years and subtracting the portion already taken into account under the ordinary income rule in those preceding years. You apply the remaining prior losses beginning with the earliest loss in that period.
What happens if your gains equal your losses?
If your section 1231 gains equal your section 1231 losses, your gains do not exceed your losses. You therefore receive no capital asset sale or exchange treatment for either side of that equal annual total. With equal totals, you have neither an excess of gains over losses nor an excess of losses over gains.
Research notice. As of October 20, 2026, based on Publication 544, Sales and Other Dispositions of Assets, 26 U.S. Code Section 1231, Property used in the trade or business and involuntary conversions, 26 U.S. Code Section 1245, Gain from dispositions of certain depreciable property, Publication 550 (2025), Investment Income and Expenses and 26 U.S. Code Section 1, Tax imposed, our research shows this may be the case. The law changes, so this could be outdated or wrong. Confirm with a licensed tax attorney or CPA before acting. This page is general education, not tax or legal advice for your situation.
Sources
  1. Publication 544, Sales and Other Dispositions of Assets
  2. 26 U.S. Code Section 1231, Property used in the trade or business and involuntary conversions
  3. 26 U.S. Code Section 1245, Gain from dispositions of certain depreciable property
  4. Publication 550 (2025), Investment Income and Expenses
  5. 26 U.S. Code Section 1, Tax imposed
Richard C. Wilson, founder of Family Office Club
Questions about a sale

Talk to Richard

Richard C. Wilson, founder of Family Office Club