Gain or Loss, Section 1231 and Depreciation Recapture
Quick answer
Gain on business property held more than 1 year is Section 1231 gain (IRC Section 1231). A net Section 1231 gain is taxed as long-term capital gain, and a net loss is ordinary. Section 1245 recapture first turns gain up to prior depreciation into ordinary income, and unrecaptured Section 1250 gain is taxed at a maximum 25%.
Last updated
Cite or share this
Key figures for 2025
- Holding period for Section 1231
- More than 1 year
- IRC Section 1231(b)(1)
- Net Section 1231 gain
- Treated as long-term capital gain
- IRC Section 1231(a)(1)
- Net Section 1231 loss
- Ordinary loss
- IRC Section 1231(a)(2)
- Section 1231 lookback
- Net gain is ordinary to the extent of net Section 1231 losses in the prior 5 years
- IRC Section 1231(c)
- Section 1245 recapture
- Ordinary income equal to the lesser of gain or depreciation taken
- IRC Section 1245(a)
- Unrecaptured Section 1250 gain
- Taxed at a maximum rate of 25%
- IRC Section 1(h)(1)(E); Form 4797 instructions
- Section 291 on corporations
- 20% of the excess of Section 1245 recapture over Section 1250 recapture is ordinary
- IRC Section 291(a)(1)
- Long-term capital gain rates (2025)
- 0%, 15% or 20% by taxable income
- IRC Section 1(h); Rev. Proc. 2024-40
- Reporting forms
- Form 4797 for business property; Form 8949 and Schedule D for capital assets
- Instructions for Form 4797
How do you compute gain or loss on a sale?
Gain or loss equals the amount realized minus the adjusted basis (IRC Section 1001). The amount realized is cash, the fair market value of other property and liabilities the buyer assumes, less selling costs. Adjusted basis is cost plus improvements minus depreciation allowed or allowable.
Depreciation counts as allowed or allowable even if the taxpayer never claimed it. A taxpayer who skipped depreciation still reduces basis by the amount that could have been taken (IRC Section 1016(a)(2)).
The character of the gain, such as ordinary, capital or Section 1231, decides the tax rate and the form.
What is Section 1231 property?
Section 1231 property is depreciable property and real property used in a trade or business and held more than 1 year (IRC Section 1231(b)). Examples are equipment, vehicles, buildings and land used in the business. It also includes certain livestock, timber and unharvested crops sold with land.
It does not include inventory, property held for sale to customers, copyrights, creative works held by the creator, or most self-created intangibles. Those produce ordinary income.
Property held 1 year or less produces ordinary income or loss. A sale of a business asset at a loss that is held for more than a year produces an ordinary loss.
Cattle and horses held for draft, breeding, dairy or sporting purposes qualify after 24 months or more. Other livestock qualifies after 12 months or more. Poultry does not qualify (Instructions for Form 4797).
How are Section 1231 gains and losses netted?
The taxpayer nets all Section 1231 gains and losses for the year, including casualty gains and losses on business property. If the result is a net gain, it is treated as long-term capital gain. If it is a net loss, it is an ordinary loss (IRC Section 1231(a)).
A five-year lookback prevents the taxpayer from alternating gains and losses. A net Section 1231 gain is treated as ordinary income to the extent of nonrecaptured net Section 1231 losses in the 5 preceding years (IRC Section 1231(c)). The rest is long-term capital gain.
The result is taxed using the capital gain rates of 0%, 15% or 20%, depending on taxable income. For 2025, a single filer pays 0% up to $48,350 of taxable income and 15% up to $533,400 (Rev. Proc. 2024-40).
If recognized casualty and theft losses on business property exceed the recognized gains from those events, both are left out of the Section 1231 netting (Instructions for Form 4797).
What is Section 1245 recapture?
Section 1245 applies to depreciable personal property, such as machinery, equipment and vehicles, and to amortizable intangibles and property expensed under Section 179. On a sale at a gain, the lesser of the gain or the depreciation taken is ordinary income (IRC Section 1245(a)).
All depreciation counts, including Section 179 expensing and bonus depreciation. If the sale price exceeds original cost, the gain above cost is Section 1231 gain, and all prior depreciation is recaptured as ordinary income.
If the property sells at a loss, no recapture applies. The loss is a Section 1231 loss, which is ordinary when the year's net is a loss.
A taxpayer reports the sale on Form 4797, Part III computes the recapture, and Part II carries the ordinary income to Form 1040 or the entity return.
Recapture can also arise with no sale. If business use of Section 179 property or listed property falls to 50% or less, the taxpayer includes the excess deduction in income on Form 4797, Part IV. The basis rises by that amount (Instructions for Form 4797).
How does Section 1245 recapture change at different sale prices?
Section 1245 recapture is the smaller of the gain or the depreciation taken, so the sale price decides the split (IRC Section 1245(a)). A skid steer cost $64,000 and carries $41,000 of depreciation, so its adjusted basis is $23,000.
- Sale at $52,000: the gain is $29,000. It is less than the depreciation, so all $29,000 is ordinary income.
- Sale at $70,000: the gain is $47,000. Ordinary income is $41,000, the depreciation, and the other $6,000 is Section 1231 gain.
- Sale at $18,000: the loss is $5,000. There is nothing to recapture, and the loss is a Section 1231 loss.
How does Section 1250 work for buildings?
Section 1250 covers depreciable real property, such as buildings. Recapture applies only to additional depreciation, which is depreciation above straight-line. Buildings placed in service after 1986 use straight-line, so there is usually no Section 1250 ordinary income (IRC Section 1250(a)).
Gain on a building up to the straight-line depreciation taken is unrecaptured Section 1250 gain. An individual taxes it at a maximum 25% rate. The rest of the gain is Section 1231 gain at 0%, 15% or 20% (IRC Section 1(h)(1)(E)). The taxpayer computes it on the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions.
A C corporation treats 20% of the excess of what would be Section 1245 recapture over actual Section 1250 recapture as ordinary income (IRC Section 291(a)(1)).
Residential rental property uses a 27.5-year recovery period and nonresidential real property uses 39 years, both straight-line (IRC Section 168(b)(3) and (c)).
Take a building that cost $480,000 with $96,000 of straight-line depreciation, sold for $530,000. The gain is $146,000. An individual reports $96,000 of unrecaptured Section 1250 gain at up to 25% and $50,000 of Section 1231 gain. A C corporation reports 20% of $96,000, or $19,200, as ordinary income and $126,800 as Section 1231 gain (IRC Section 291; Instructions for Form 4797).
What does each part of Form 4797 report?
Form 4797 has four parts that follow the order of the work (Instructions for Form 4797).
- Part I: gains and losses on business property held more than 1 year, including the net Section 1231 result and the 5-year lookback for nonrecaptured losses.
- Part II: ordinary gains and losses, including property held 1 year or less and the recapture carried from Part III.
- Part III: the Section 1245 and Section 1250 recapture on depreciated property.
- Part IV: recapture of Section 179 and listed property deductions when business use falls to 50% or less.
How do installment sales, related parties and exchanges change recapture?
On an installment sale, recapture income is recognized in the year of sale, even if no payment is received that year. Only the gain above recapture is deferred (IRC Section 453(i)).
A gain on depreciable property sold to a related person, such as a controlled entity or spouse, is ordinary income regardless of Section 1231 (IRC Section 1239).
In a like-kind exchange of real property under IRC Section 1031, recapture carries over to the property received, so recapture appears only to the extent of boot or gain recognized. A gift of property does not trigger recapture. A transfer at death resets basis to fair market value, which eliminates it.
Worked example: sale of equipment and a building
A business buys a machine for $100,000 and takes $80,000 of depreciation, including bonus. Its adjusted basis is $20,000. It sells the machine for $130,000.
It also sells a building for $500,000. The building cost $400,000 and straight-line depreciation was $90,000. Adjusted basis is $310,000. The owner is an individual with no other Section 1231 items.
- Machine gain: $130,000 minus $20,000 equals $110,000.
- Machine Section 1245 recapture: the lesser of $110,000 gain or $80,000 depreciation is $80,000, ordinary. The remaining $30,000 is Section 1231 gain.
- Building gain: $500,000 minus $310,000 equals $190,000. Unrecaptured Section 1250 gain is $90,000, taxed at up to 25%. The remaining $100,000 is Section 1231 gain.
- Netting: Section 1231 gain is $30,000 plus $100,000, or $130,000, and no earlier losses apply, so it is long-term capital gain.
The owner reports $80,000 of ordinary income, $90,000 of unrecaptured Section 1250 gain at a maximum 25%, and $130,000 of Section 1231 gain at the capital gain rates.
Where do Section 1231 and recapture questions trip candidates?
- All gain on a business asset is capital gain.
- Section 1245 recapture is ordinary income up to depreciation taken. Only the rest is Section 1231 gain.
- Recapture is computed on gain above original cost.
- Gain above original cost is Section 1231 gain. Recapture covers the depreciation taken.
- A building sold at a gain produces Section 1250 ordinary income.
- For straight-line buildings, gain up to depreciation is unrecaptured Section 1250 gain taxed at a maximum 25%.
- A net Section 1231 gain is always capital gain.
- Check the 5 prior years for net Section 1231 losses, which recharacterize the gain as ordinary.
- Skipped depreciation is ignored in basis.
- Basis is reduced by depreciation allowed or allowable.
How does the EA exam ask about Section 1231 and recapture?
- A machine with cost, depreciation and sale price, and a question on the ordinary income and the Section 1231 gain.
- A building sold with straight-line depreciation, and a question on the 25% gain.
- A year with Section 1231 gains and losses, and a question on the character of the net.
- A sale to a related party or an installment sale, and a question on when recapture is reported.
Sample questions
Question 1
Aisha had the following §1231 results over the past six years: 2020: $10,000 loss; 2021: $5,000 gain; 2022: $15,000 loss; 2023: $8,000 gain; 2024: $3,000 loss; 2025: $25,000 gain. In 2025, she also has $12,000 of §1245 recapture from equipment sales that is already treated as ordinary income. How much of her 2025 §1231 gain will be treated as long-term capital gain?
- A. $25,000: the entire §1231 gain is treated as long-term capital gain
- B. $10,000: the 5-year lookback converts $15,000 to ordinary income
- C. $13,000: the 5-year lookback converts $12,000 to ordinary income
- D. $0: all §1231 gain is recharacterized as ordinary income due to prior losses
Show the answer and explanation
Answer: B. $10,000: the 5-year lookback converts $15,000 to ordinary income
Option B is correct. Under IRC §1231(c), the 5-year lookback rule requires net §1231 gains to be recharacterized as ordinary income to the extent of nonrecaptured net §1231 losses from the prior 5 taxable years. For the 2025 tax year, the lookback period covers 2020 through 2024. The nonrecaptured losses are calculated sequentially: In 2020, there was a $10,000 loss. In 2021, the $5,000 gain recaptured $5,000 of the 2020 loss, leaving $5,000 unrecaptured. In 2022, a $15,000 loss increased the unrecaptured total to $20,000. In 2023, the $8,000 gain recaptured $8,000 of those prior losses, leaving $12,000 unrecaptured. In 2024, a $3,000 loss increased the total nonrecaptured §1231 losses to $15,000. In 2025, Aisha has a $25,000 net §1231 gain. She must recharacterize $15,000 of this 2025 gain as ordinary income to recapture the unrecaptured losses from the 5-year lookback period. The remaining $10,000 ($25,000 - $15,000) is treated as a long-term capital gain. Note that the $12,000 of §1245 recapture is already treated as ordinary income and does not factor into the §1231 netting process.
Source: IRC §1231(c)
Question 2
Roberto sells two business assets in 2025. Asset 1: Office equipment (purchased for $50,000, accumulated depreciation $35,000, sold for $40,000). Asset 2: Warehouse building (purchased for $300,000 excluding land, MACRS straight-line depreciation $80,000, sold for $400,000). He has no other §1231 transactions and no prior §1231 losses. What is the total amount of ordinary income Roberto must report from these sales?
- A. $25,000 from Asset 1 only
- B. $105,000 from both assets combined
- C. $25,000 from Asset 1 and $80,000 from Asset 2
- D. $25,000 from Asset 1; Asset 2 generates only capital gain
Show the answer and explanation
Answer: D. $25,000 from Asset 1; Asset 2 generates only capital gain
Option D is correct. Asset 1 (equipment) is §1245 property. Roberto's gain is $40,000 (sale price) - $15,000 (adjusted basis) = $25,000. Under §1245, ALL depreciation ($35,000) is recaptured as ordinary income to the extent of gain, so the full $25,000 gain is ordinary income. Asset 2 (warehouse) is §1250 property. Roberto's gain is $400,000 - $220,000 (adjusted basis) = $180,000. Since he used MACRS straight-line depreciation, there is no excess depreciation over straight-line, so §1250 recapture is zero. The $80,000 of straight-line depreciation becomes unrecaptured §1250 gain (taxed at 25%, but still characterized as capital gain, not ordinary income). The remaining $100,000 is §1231 gain treated as long-term capital gain. Therefore, total ordinary income is $25,000 from Asset 1 only. Option A is correct in amount but doesn't address Asset 2. Option B incorrectly treats the $80,000 unrecaptured §1250 gain as ordinary income; it is capital gain taxed at a higher rate (25%), not ordinary income. Option C makes the same error as B. Option D correctly identifies that only Asset 1 generates ordinary income.
Source: IRC §1245, §1250
Question 3
Marcus owns a landscaping business. He is selling a commercial mower that he has owned for three years and used exclusively in his business. The mower was purchased for $8,000, and he has claimed $4,500 in depreciation. He sells it for $5,000. How should the gain on this sale be treated for tax purposes?
- A. The entire $1,500 gain is treated as long-term capital gain under §1231
- B. The entire $1,500 gain is recaptured as ordinary income under §1245
- C. The gain is split: $1,000 ordinary income and $500 long-term capital gain
- D. No gain is recognized because the selling price is below the original cost
Show the answer and explanation
Answer: B. The entire $1,500 gain is recaptured as ordinary income under §1245
Option B is correct. The mower is §1245 property (depreciable personal property used in business). Under §1245, ALL depreciation taken is recaptured as ordinary income to the extent of gain realized. Marcus has a gain of $1,500 ($5,000 sale price - $3,500 adjusted basis). Since his depreciation ($4,500) exceeds the gain ($1,500), the entire $1,500 gain is recaptured as ordinary income. Option A is incorrect because §1245 recapture takes precedence over §1231 treatment: the gain never reaches the §1231 calculation. Option C is incorrect because §1245 requires full recapture of all gain up to the amount of depreciation taken; there is no split. Option D is incorrect because gain is measured against adjusted basis ($3,500), not original cost ($8,000).
Source: IRC §1231, §1245
Question 4
Vanessa sold business equipment in 2025 for a total gain of $60,000, of which $40,000 is §1245 recapture (ordinary income) and $20,000 is §1231 gain. She also sold a business building for a $10,000 §1231 gain (after accounting for unrecaptured §1250 gain). In the prior five years, she had net §1231 losses of $18,000 that have not been recaptured. How much of her 2025 gains will be treated as long-term capital gain?
- A. $30,000: the sum of the two §1231 gains
- B. $12,000: after the 5-year lookback recharacterizes $18,000 of §1231 gain as ordinary income
- C. $50,000: the total gain after §1245 recapture
- D. $70,000: all gains are treated as capital gains
Show the answer and explanation
Answer: B. $12,000: after the 5-year lookback recharacterizes $18,000 of §1231 gain as ordinary income
Option B is correct. First, the §1245 recapture of $40,000 is ordinary income and does not enter the §1231 netting. The remaining $20,000 from the equipment and $10,000 from the building are both §1231 gains, for a total of $30,000 net §1231 gain. However, under the 5-year lookback rule (IRC §1231(c)), net §1231 gains are recharacterized as ordinary income to the extent of unrecaptured net §1231 losses from the prior 5 years. Vanessa has $18,000 of unrecaptured losses, so $18,000 of her $30,000 §1231 gain is recharacterized as ordinary income, leaving $30,000 - $18,000 = $12,000 to be treated as long-term capital gain. Option A is incorrect because it ignores the 5-year lookback rule. Option C is incorrect because it includes the §1245 recapture, which is ordinary income, not capital gain. Option D is incorrect because it ignores both the §1245 recapture and the 5-year lookback rule.
Source: IRC §1231(c), §1245
Question 5
Chen purchased a commercial office building in 2018 for $600,000 (excluding land) and used MACRS straight-line depreciation. In 2025, she sells the building for $750,000. Her accumulated depreciation is $120,000, making her adjusted basis $480,000. She has no other §1231 transactions this year and no prior §1231 losses in the last five years. How should Chen's $270,000 gain be characterized for tax purposes?
- A. All $270,000 is long-term capital gain taxed at a maximum 20% rate
- B. $120,000 is ordinary income under §1250 recapture, and $150,000 is long-term capital gain
- C. $120,000 is unrecaptured §1250 gain taxed at 25%, and $150,000 is long-term capital gain taxed at maximum 20%
- D. All $270,000 is ordinary income because depreciation was claimed on the building
Show the answer and explanation
Answer: C. $120,000 is unrecaptured §1250 gain taxed at 25%, and $150,000 is long-term capital gain taxed at maximum 20%
Option C is correct. Since Chen used MACRS straight-line depreciation on real property, there is no excess depreciation over straight-line, so §1250 recapture is zero. However, the $120,000 of straight-line depreciation creates unrecaptured §1250 gain, which is taxed at a maximum 25% rate. The remaining $150,000 ($270,000 total gain - $120,000 unrecaptured §1250 gain) is §1231 gain, treated as long-term capital gain and taxed at the preferential capital gains rate (maximum 20%). Option A is incorrect because it ignores the special 25% rate on unrecaptured §1250 gain. Option B is incorrect because §1250 recapture only applies to excess depreciation over straight-line; MACRS for real property uses straight-line, so there is no §1250 recapture here, only unrecaptured §1250 gain. Option D is incorrect because real property gains receive preferential treatment after accounting for unrecaptured §1250 gain.
Source: IRC §1231, §1250
Frequently asked questions
Which form reports business property sales?
Form 4797. Gains that are capital gain flow to Schedule D, and ordinary amounts flow to the main return.
Which EA exam part tests Section 1231 and recapture?
Part 2 (Businesses). Part 1 tests sales of personal assets and capital gains.
Does Section 179 expensing count as depreciation for recapture?
Yes. Section 179 deductions and bonus depreciation are treated as depreciation for Section 1245 recapture.
Sources
- IRC Section 1231, Property used in the trade or business
- IRC Section 1245, Gain from dispositions of certain depreciable property
- IRC Section 1250, Gain from dispositions of certain depreciable realty
- IRS Publication 544, Sales and Other Dispositions of Assets
- Instructions for Form 4797
- Rev. Proc. 2024-40, 2025 inflation adjustments
- IRS Publication 946, How to Depreciate Property
- IRC Section 168, Accelerated cost recovery system
Continue studying
More Property Transactions topics from Part 2
Practice this topic.
Start free.
Try the EA exam free: practice questions, no login
PSI-style questions with instant scoring and IRS-referenced explanations. Free to use, with no credit card or account.