Section 1231 is the provision that gives business property sales their character as long-term capital gain or ordinary loss - whichever is more favorable to the taxpayer in a given year. When business property is sold at a net gain for the year, that gain is long-term capital gain. When it is sold at a net loss, the loss is ordinary - fully deductible against ordinary income without the $3,000 annual cap that limits capital losses. But §1231 operates after the recapture rules under §§1245 and 1250 have already extracted the ordinary income portion. Understanding the hierarchy is essential to predicting the actual tax character of any business asset sale.
Layer 1 - §1245 recapture (ordinary income first): All depreciation taken on personal property (equipment, vehicles, §179 expensing, bonus depreciation) is recaptured as ordinary income in the year of sale, up to the total gain. This comes off the top before §1231 applies to the remainder.
Layer 2 - §1250 recapture (real property): For real property held after 1986 under MACRS, there is no §1250 recapture in the classic sense (MACRS uses straight-line for real property). However, unrecaptured §1250 gain (accumulated straight-line depreciation on real property) is taxed at a maximum 25% rate - it is capital gain but not at the preferential 0%/15%/20% qualified rates.
Layer 3 - §1231 gain: Whatever remains after §1245 and §1250 recapture is §1231 gain. Net §1231 gains for the year are long-term capital gain. Net §1231 losses are ordinary loss.
Section 1231 property is real or depreciable property used in a trade or business and held for more than one year. This includes: buildings and structures, land used in business, equipment, vehicles, furniture and fixtures, and certain timber, livestock, and unharvested crops. It does not include: inventory (always ordinary), property held primarily for sale to customers (dealer property), or copyrights and creative works held by the person who created them.
At year end, all §1231 gains and losses from all business property transactions are netted together. If the result is a net gain: treated as long-term capital gain - taxed at 0%, 15%, or 20% depending on income level. If the result is a net loss: treated as ordinary loss - deductible in full against ordinary income, not subject to the capital loss $3,000 annual cap. This asymmetry is the core planning advantage of §1231.
IRC §1231(c) contains a trap that catches many taxpayers who benefited from §1231 ordinary loss treatment in prior years. If you had net §1231 losses in any of the five preceding tax years that were treated as ordinary losses, current-year §1231 gains are recharacterized as ordinary income to the extent of those prior ordinary losses - the "look-back recapture." This prevents a taxpayer from taking an ordinary loss deduction in a high-income year and then getting long-term capital gain treatment in a low-income year on what is economically the same appreciation.
When depreciable personal property (equipment, vehicles, furniture, §179 property, bonus depreciation property) is sold at a gain, §1245 requires the seller to recognize ordinary income equal to the lesser of: (a) the total gain on the sale, or (b) the total depreciation and §179/bonus deductions previously taken. This is true regardless of the §1231 netting result. A piece of equipment bought for $100,000, fully depreciated under §179, and sold for $80,000 produces $80,000 of §1245 ordinary income - there is no §1231 treatment at all because the entire gain is within the depreciation taken.
For real property placed in service after 1986 under MACRS, §1250 recapture in the traditional sense (ordinary income on excess depreciation over straight-line) rarely applies because MACRS already uses straight-line for residential and commercial real estate. However, §1(h)(1)(D) creates the concept of "unrecaptured §1250 gain" - the accumulated straight-line depreciation on real property - which is taxed at a maximum rate of 25% rather than the 0%/15%/20% capital gain rates. This 25% rate applies to the extent of prior MACRS depreciation on real property, regardless of how long the property was held.