Section 1231 Gain Explained

The rule that makes real estate losses fully deductible while treating gains like capital gains.

Illustration for Section 1231 Gain Explained

What Section 1231 is

IRC Section 1231 governs the tax treatment of gains and losses from the sale or exchange of property used in a trade or business and held for more than one year. The key properties covered are depreciable business property and real estate — which includes virtually every rental property you own. Section 1231 provides the most favorable combination possible: net gains are treated as long-term capital gains, while net losses are treated as ordinary losses.

This is deliberately favorable to business property owners. An ordinary loss is fully deductible against any type of income, unlike a capital loss (which can only offset capital gains and up to $3,000 of ordinary income per year). A long-term capital gain is taxed at 0%, 15%, or 20% — lower than ordinary income rates. Getting the best of both worlds for property held in a business context is the explicit purpose of Section 1231.

What qualifies as Section 1231 property

Section 1231 property is depreciable property and real property used in a trade or business and held for more than one year. The most common examples for real estate investors are: rental buildings and their structural components; land held as business property; and permanent structures on the land.

Personal-use property does not qualify — your primary residence is not Section 1231 property. Property held primarily for sale to customers (dealer inventory, including fix-and-flip properties if you are in the business of flipping) does not qualify — it is ordinary income property regardless of the holding period. The line between a Section 1231 investor and a dealer is facts-and-circumstances, and the IRS scrutinizes high-volume flippers who try to claim 1231 treatment.

The netting process on Form 4797

Form 4797, Sales of Business Property, is where Section 1231 gains and losses are netted. Part I accumulates all Section 1231 gains (and any Section 1245 ordinary recapture, which is extracted first) and losses from the year. If the net result for the year is a gain, it flows to Schedule D as a long-term capital gain. If the net result is a loss, it flows to Form 1040 as an ordinary loss, fully deductible against all income.

The netting is annual — all Section 1231 transactions during the tax year are pooled. If you sell two rental properties in the same year, one at a gain and one at a loss, the results are netted before determining character. A $50,000 gain and a $30,000 loss produce a net $20,000 Section 1231 gain treated as long-term capital gain.

The five-year lookback rule

Section 1231 has an anti-abuse provision called the five-year lookback rule (Section 1231(c)). If you recognized net Section 1231 losses in any of the five preceding tax years that you deducted as ordinary losses, a current-year Section 1231 gain must first be recharacterized as ordinary income, up to the amount of those prior unrecaptured losses.

This closes the obvious loophole: without the lookback, a taxpayer could time losses to be ordinary (deducting them at full marginal rates) while allowing gains to enjoy capital treatment. The lookback ensures that prior ordinary-loss treatment is 'recaptured' as ordinary income on subsequent gains, restoring tax symmetry. If you have taken Section 1231 losses in the past five years — for example, from selling a property at a loss — be aware that your current-year gains may be partly reclassified as ordinary income on Form 4797, line 8.

Depreciation recapture comes out first

Section 1231 treatment applies only after depreciation recapture is extracted. When you sell depreciable real property at a gain, the IRS first pulls out the recapture: Section 1245 recapture (ordinary income for personal property components like appliances and equipment) and Section 1250 recapture (generally, unrecaptured Section 1250 gain at up to 25% for real property). Only the remaining gain after recapture is Section 1231 gain that benefits from long-term capital treatment.

In practice, for a modern residential rental (straight-line MACRS, no Section 1245 from cost segregation), most of the gain is either unrecaptured Section 1250 gain (25% maximum) or pure capital gain (0/15/20%). Very little is true ordinary-income Section 1245 or 1250 recapture unless there was a cost segregation study. But the sequencing matters for understanding your return: Form 4797 Part III first computes recapture, and only the remainder flows through the Section 1231 capital-gain analysis.

Section 1231 and rental real estate: the practical impact

For a landlord who sells a rental property at an overall gain, Section 1231 ensures the gain is taxed at favorable long-term capital-gains rates (after recapture). For a landlord who sells at an overall loss — perhaps due to market decline — Section 1231 means the loss is an ordinary loss, which can be deducted against wages and other ordinary income with no $3,000 per-year limit. This asymmetry can be enormously valuable: a $200,000 loss on a rental sold in a distressed market could offset $200,000 of ordinary income in the year of sale, saving up to $74,000 in federal taxes for a top-bracket investor.

This is also why real estate held in business or investment produces better tax outcomes than stock sold at a loss. Stock losses are capital and limited to $3,000/year against ordinary income. Real property losses are ordinary under Section 1231 and fully deductible.

Interaction with passive activity rules

Section 1231 governs the character of gain or loss (capital vs. ordinary). The passive-activity rules (Section 469) govern whether the gain or loss is currently deductible. A Section 1231 ordinary loss from a passive activity — like selling a rental at a loss — may still be limited by the passive-loss rules unless the disposition is fully taxable (i.e., you sell the entire interest to an unrelated third party).

When you sell a passive rental property in a fully taxable sale, all suspended passive losses are released and can offset the Section 1231 gain or other income. This makes a complete sale of a passive rental a tax-planning event: the Section 1231 gain is capital (favorable rate) while the released passive losses are ordinary offsets (full value). The combination often results in a lower effective tax rate on the sale than investors expect.

Holding period requirements

Section 1231 requires the property to be held for more than one year. Property held exactly one year or less is not Section 1231 property; a gain or loss from selling it is short-term capital (ordinary rates for short-term gains, with a $3,000 cap on losses). The holding period begins the day after you acquire the property and ends on the date of sale.

For acquired replacement property in a 1031 exchange, the holding period of the relinquished property is tacked on to the replacement property's holding period, so you immediately satisfy the one-year requirement if the old property was held long enough. For inherited property, inherited assets are automatically treated as long-term regardless of the heir's actual holding period, so Section 1231 treatment is available immediately.

A worked example: netting a gain and a loss in one year

Suppose in the same tax year you sell Rental A for a $90,000 gain (after recapture is extracted) and Rental B for a $35,000 loss. On Form 4797, these Section 1231 items are netted: $90,000 − $35,000 = a net $55,000 Section 1231 gain. Because the year nets to a gain, the entire $55,000 is treated as long-term capital gain and flows to Schedule D, taxed at 0/15/20% (with any 25% unrecaptured 1250 portion pulled out first).

Now reverse the amounts: Rental A produces a $35,000 gain and Rental B a $90,000 loss. The year nets to a $55,000 Section 1231 loss, which is an ordinary loss deductible against wages and all other income with no $3,000 cap. The same two properties produce dramatically different tax characters depending on which way the annual netting falls — which is why timing sales into the same or different years is a genuine planning lever.

Section 1231 property vs. capital assets vs. inventory

It helps to see where Section 1231 sits among the three categories. A pure capital asset (like stock) produces capital gain on sale and capital loss limited to $3,000 per year against ordinary income. Ordinary income property — dealer inventory, including flips held for sale to customers — produces ordinary income on gain and ordinary loss on loss. Section 1231 property — depreciable business property and business real estate held over a year — gives the taxpayer-favorable combination: capital-gain rates on gains, ordinary treatment on losses.

This is why the dealer-versus-investor distinction is so consequential. A property flipper's gains are ordinary income (and possibly self-employment income), while a buy-and-hold investor's gains on the same property, held over a year as business or investment property, get Section 1231 capital treatment. The IRS weighs frequency of sales, intent, holding period, and the extent of improvement activity to draw the line.

Reporting mechanics on Form 4797

Section 1231 transactions are reported on Form 4797. Part III first computes depreciation recapture (Sections 1245 and 1250) on each property, moving the ordinary-recapture piece to Part II. The remaining Section 1231 gain moves to Part I, where it is netted with other Section 1231 gains and losses for the year. A net gain in Part I carries to Schedule D as long-term capital gain; a net loss carries to Form 1040 (via Form 4797 Part II) as an ordinary loss.

The five-year lookback recapture appears on Form 4797, line 8: if you had non-recaptured net Section 1231 losses in the prior five years, the current-year net 1231 gain is reported as ordinary income up to that amount, with only the excess treated as capital gain. Keeping a running record of prior-year Section 1231 losses is essential to complete this line correctly.

Common mistakes with Section 1231

A frequent error is forgetting the five-year lookback, which causes taxpayers to report a current gain as fully capital when part of it should be ordinary income because of prior-year ordinary losses. Another is misclassifying a flip as Section 1231 property — property held primarily for sale to customers is ordinary-income inventory, not Section 1231 property, no matter how long it is held. Claiming 1231 treatment on genuine dealer property invites reclassification and penalties.

Taxpayers also sometimes overlook that recapture comes out first: not all of a rental's gain is favorable 1231 capital gain; the depreciation slice is unrecaptured Section 1250 gain (up to 25%) or Section 1245 ordinary recapture before the 1231 analysis applies. Finally, remember that a Section 1231 loss from a passive rental may still be limited by the passive-activity rules unless the disposition is a fully taxable sale to an unrelated party.

Frequently asked questions

What is Section 1231 property?

Depreciable property and real estate used in a trade or business and held for more than one year, including rental buildings, land held as investment, and permanent improvements.

What is the tax rate on Section 1231 gain?

Net Section 1231 gains are treated as long-term capital gains, taxed at 0%, 15%, or 20% depending on your income. Depreciation recapture comes out first and may be taxed at higher rates.

Can Section 1231 losses offset ordinary income?

Yes — net Section 1231 losses are ordinary losses, fully deductible against any type of income with no annual cap. This is one of the key advantages of holding real estate as business property versus as a capital asset.

What is the five-year lookback rule?

If you took net Section 1231 ordinary losses in any of the five preceding years, current-year Section 1231 gains must first be recharacterized as ordinary income up to the amount of those prior losses.

Does Section 1231 apply to my rental property?

Yes, if the property is held for investment or business use and you have owned it for more than one year. Personal-use property and dealer inventory do not qualify.

How are Section 1231 gains and losses reported?

On Form 4797. Depreciation recapture is computed first in Part III, then the remaining Section 1231 items are netted in Part I. A net gain flows to Schedule D as long-term capital gain; a net loss flows to Form 1040 as an ordinary loss.

What happens if I have both 1231 gains and losses in the same year?

They are netted on Form 4797. If the year nets to a gain, the whole net gain is long-term capital gain; if it nets to a loss, the whole net loss is an ordinary loss deductible against any income.

Does Section 1231 apply to a house I flip?

No. Property held primarily for sale to customers — fix-and-flip inventory if you are in the flipping business — is ordinary-income property, not Section 1231 property, regardless of how long you hold it.

Sources

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

Related