Equipment sale gains aren’t treated as Section 1231 gains because a different rule, Section 1245 depreciation recapture, intercepts the gain first and reclassifies it as ordinary income up to the amount of depreciation you previously claimed. Since most equipment sells for less than its original purchase price, the entire gain falls inside that recapture window and nothing is left to flow through to Section 1231’s favorable capital gains treatment.
The Depreciation That Earned You a Deduction Comes Back as a Gain
Depreciation lets you deduct the cost of a business asset over its useful life. Each year’s deduction offsets your ordinary income at your full marginal rate, and each year’s deduction simultaneously reduces the asset’s adjusted basis, which the tax code treats as your remaining investment in the property.1Internal Revenue Service. Topic No. 703, Basis of Assets
That basis reduction is where the problem starts. Buy a $200,000 piece of equipment, claim $150,000 in depreciation over several years, and your adjusted basis drops to $50,000. Sell for $180,000, and your taxable gain is $130,000 even though you sold the asset for $20,000 less than you paid. The gain exists because depreciation already reduced your basis. The tax code sees an asymmetry here: you took those deductions against ordinary income, so the matching gain should be ordinary income too.
Section 1245 Takes Priority Over Section 1231
Section 1231 covers depreciable property and real property used in a trade or business, held for more than one year, and not held for sale to customers.2Office of the Law Revision Counsel. 26 USC 1231 – Property Used in the Trade or Business and Involuntary Conversions The appeal of Section 1231 is its hybrid treatment: a net gain is taxed at long-term capital gains rates, while a net loss is deductible as ordinary. In 2026, ordinary rates reach 37% while long-term capital gains top out at 20% for most taxpayers.3Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
Section 1245 is the rule that keeps equipment from reaching that favorable side. When you sell Section 1245 property at a gain, the portion of the gain attributable to prior depreciation is taxed as ordinary income.4Office of the Law Revision Counsel. 26 USC 1245 – Gain From Dispositions of Certain Depreciable Property The statute states that the recaptured gain “shall be recognized notwithstanding any other provision,” language that gives it absolute priority over Section 1231. Section 1245 covers most tangible personal property used in a business, including machinery, vehicles, computers, and office equipment.5eCFR. 26 CFR 1.1245-3 – Definition of Section 1245 Property
The recapture amount equals the lesser of two figures: the total gain realized, or the total depreciation claimed. For equipment sold below its original purchase price, the gain is always smaller than the depreciation, so every dollar of gain is recaptured and nothing remains for Section 1231 treatment.
The Math on a Typical Sale
Equipment almost always depreciates in market value. A used truck, a five-year-old CNC machine, a commercial printer: these rarely sell for more than they cost. Walk through a representative sale and the result is unavoidable.
Sale Below Original Cost
A business buys a commercial printer for $50,000, claims $40,000 in depreciation, and sells for $45,000.
- Total gain: $45,000 sale price minus $10,000 adjusted basis equals $35,000.
- Section 1245 recapture: the lesser of the $35,000 gain or the $40,000 in depreciation. The gain is smaller, so all $35,000 is ordinary income.
- Section 1231 gain: zero. The full gain was absorbed by recapture.
The printer sold for $5,000 less than the business paid for it, and the owner still owes ordinary income tax on $35,000.
Sale Above Original Cost
Now suppose the same printer sells for $55,000, which is $5,000 above the original price.
- Total gain: $55,000 minus $10,000 basis equals $45,000.
- Section 1245 recapture: the lesser of the $45,000 gain or the $40,000 of depreciation. The depreciation is smaller, so $40,000 is ordinary income.
- Section 1231 gain: the remaining $5,000 qualifies for long-term capital gains treatment.2Office of the Law Revision Counsel. 26 USC 1231 – Property Used in the Trade or Business and Involuntary Conversions
Only the portion of the sale price that exceeds the original cost escapes recapture. For trucks, computers, manufacturing tools, and office furniture, that scenario is rare. The only equipment that regularly produces it is specialized or scarce machinery where market demand has outstripped supply.
Section 179 and Bonus Depreciation Make This Near-Automatic
Accelerated write-offs make the recapture outcome even more certain. Section 179 lets you deduct the full purchase price of qualifying equipment in the year of purchase instead of spreading it across the useful life. The tax code explicitly treats Section 179 deductions as depreciation for recapture purposes, so the entire expensed amount is subject to Section 1245 recapture on sale.4Office of the Law Revision Counsel. 26 USC 1245 – Gain From Dispositions of Certain Depreciable Property
Bonus depreciation operates the same way. The One Big Beautiful Bill Act, signed in 2025, restored 100% first-year bonus depreciation for qualifying property acquired after January 19, 2025.6Internal Revenue Service. Treasury, IRS Issue Guidance on the Additional First Year Depreciation Deduction Amended as Part of the One Big Beautiful Bill If you expense a $300,000 machine entirely in Year 1, your basis drops to zero. A later sale at any price produces a gain equal to the full sale price, and every dollar is ordinary income under Section 1245.
The upfront deduction against 35% or 37% ordinary income feels valuable, but it guarantees that future sale proceeds come back at ordinary rates too. If your tax rate is the same in the year you sell as in the year you bought, you received a timing benefit and no rate benefit.
The Five-Year Look-Back Can Catch What’s Left
Even when a gain does survive Section 1245 recapture, Section 1231(c) adds a second filter. Any net Section 1231 gain is treated as ordinary income to the extent of your unrecaptured net Section 1231 losses from the five preceding tax years.2Office of the Law Revision Counsel. 26 USC 1231 – Property Used in the Trade or Business and Involuntary Conversions
The logic mirrors depreciation recapture. If you previously deducted a Section 1231 loss against ordinary income, a later Section 1231 gain should be taxed the same way up to that prior loss amount. A business that cycles through equipment, occasionally selling at a loss and occasionally at a gain, may find that even the rare above-cost gain gets reclassified as ordinary income through this provision. The window keeps a rolling tally and resets only as older loss years fall outside the five-year period.
Why Buildings Aren’t Treated the Same Way
Owners of commercial buildings face a gentler version of recapture under Section 1250, which helps explain why equipment is treated so harshly by contrast. For real property placed in service after 1986, Section 1250 only recaptures depreciation to the extent it exceeds straight-line. Since most commercial buildings already use straight-line depreciation, there is typically nothing to recapture as ordinary income.
Instead, the depreciation portion of the gain is taxed as “unrecaptured Section 1250 gain” at a maximum rate of 25%. Any gain above the original cost of the building qualifies for standard long-term capital gains treatment. Equipment gets no such intermediate rate. Under Section 1245, every dollar of depreciation-related gain comes back at your full ordinary income rate.
Real property owners also retain the option to defer gain through a like-kind exchange under Section 1031. The Tax Cuts and Jobs Act of 2017 eliminated like-kind exchanges for personal property, so equipment, vehicles, and machinery no longer qualify. There is no tax-deferred swap available for equipment. The gain hits in the year of sale and the recapture rules apply in full.
What You Can Do About It
You cannot avoid Section 1245 recapture, but you can manage its impact. The most practical lever is timing. Selling equipment in a year when your other income is lower pushes the recaptured gain into a lower ordinary bracket. A year of retirement, a sabbatical, or a year with large offsetting deductions can meaningfully reduce the rate applied to the recapture.
Charitable donation of appreciated equipment is a narrow option. A contribution of Section 1245 property generally requires reducing the deduction by the amount of gain that would have been ordinary income on a sale, which eliminates most of the benefit for fully depreciated assets. The math works only when the equipment has fair market value well above its basis and the donor itemizes.
Sometimes the better outcome is holding equipment until its adjusted basis matches or exceeds the expected sale price. A machine with a $5,000 basis that sells for $3,000 produces a $2,000 loss, deductible as ordinary under Section 1231 against other income. Selling equipment when it’s worth less, not more, can produce the better tax result.