Gains on the sale of business equipment aren’t treated as Section 1231 gains because Section 1245 depreciation recapture applies first, and for equipment it almost always applies to the entire gain. Every dollar of depreciation you claimed comes back as ordinary income when you sell, and since equipment usually sells for less than you paid, there is no gain left over to reach Section 1231’s favorable capital gains treatment.
The Capital Gains Treatment You Might Be Expecting
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.1Office of the Law Revision Counsel. 26 USC 1231 – Property Used in the Trade or Business and Involuntary Conversions Machinery, vehicles, office furniture, and buildings all fit the definition. The appeal is a hybrid treatment: if your net Section 1231 result for the year is a gain, it’s taxed at long-term capital gains rates; if it’s a loss, you deduct it against ordinary income.
Long-term capital gains rates top out well below ordinary income rates, so a business owner selling used equipment at a gain might reasonably expect the lower rate to apply. For equipment, that expectation is almost always wrong.
How Depreciation Sets Up the Gain
Depreciation lets you deduct the cost of a business asset over its useful life.2Internal Revenue Service. Instructions for Form 4562 – Depreciation and Amortization Each year’s deduction offsets ordinary income at your full marginal rate. It also lowers the asset’s adjusted basis, which is the tax code’s measure of your remaining investment in the property.3Internal Revenue Service. Topic No. 703, Basis of Assets
That basis reduction is what creates the taxable gain later. Buy a $200,000 machine, claim $150,000 in depreciation over several years, and your adjusted basis is $50,000. Sell for $180,000, which is $20,000 less than you paid, and you still have a $130,000 taxable gain. The gain exists because you already benefited from $150,000 in deductions that reduced your basis. The tax code sees an asymmetry there: deductions taken at ordinary rates should not turn around and produce capital gains.
Section 1245 Runs Before Section 1231
Section 1245 is the provision that enforces that symmetry for equipment. 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 says this recaptured gain “shall be recognized notwithstanding any other provision,” which puts it ahead of Section 1231 in the sequence.
The recaptured amount is the lesser of two figures: the total gain, or the total depreciation claimed. 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
Now the reason equipment rarely reaches Section 1231 comes into focus. Equipment usually sells below its original cost. When it does, the total gain is smaller than the depreciation claimed, so the “lesser of” test grabs the entire gain. Nothing spills over into Section 1231 territory. The favorable rate simply never gets a chance to apply.
The Math on a Typical Sale
The calculation follows a set order: figure the total gain, apply Section 1245 recapture, and then see whether anything remains for Section 1231.
Selling Below Original Cost
A business buys a commercial printer for $50,000, claims $40,000 in depreciation, and sells the printer for $45,000. Adjusted basis is $10,000, so the total gain is $35,000. Section 1245 recapture is the lesser of the $35,000 gain or the $40,000 in depreciation, which is $35,000. All of it is ordinary income. Section 1231 gain: zero.
The printer sold for $5,000 less than the business paid for it, and the owner still owes ordinary income tax on the entire $35,000 gain. That gain traces directly to the deductions that pushed the basis below the sale price.
Selling Above Original Cost
Same printer, but this time it sells for $55,000, or $5,000 above the original purchase price. Total gain is $45,000. Section 1245 recapture is the lesser of the $45,000 gain or the $40,000 in depreciation, so $40,000 is ordinary income. The remaining $5,000, the portion of the gain that exceeds the original cost, is Section 1231 gain eligible for long-term capital gains rates.
Only the amount above the original purchase price escapes recapture. Trucks, computers, manufacturing tools, and office furniture rarely appreciate, so this scenario is uncommon. The equipment that occasionally sells above cost tends to be specialized machinery in short supply.
Section 179 and Bonus Depreciation Make It Worse
Accelerated write-offs intensify the recapture problem. Section 179 lets you deduct the full price of qualifying equipment in the year you buy it. The tax code explicitly treats those Section 179 deductions as depreciation for recapture purposes, so the full 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 works 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 Expense a $300,000 machine entirely in Year 1 and the basis drops to zero. Sell it later for any price, and the whole sale price is a gain, and every dollar is ordinary income under Section 1245.
The immediate deduction feels like a large tax benefit because it hits ordinary income at your top marginal rate. That’s exactly why the eventual sale hurts: the same amount comes back as ordinary income. If your rate is the same in both years, you have a timing benefit and no rate benefit at all.
The Five-Year Look-Back Can Catch What’s Left
Even in the rare case where a gain survives Section 1245 recapture, Section 1231 has one more filter. Section 1231(c) requires that any net Section 1231 gain be treated as ordinary income to the extent of your unrecaptured net Section 1231 losses from the five preceding tax years.1Office of the Law Revision Counsel. 26 USC 1231 – Property Used in the Trade or Business and Involuntary Conversions
If you deducted a net Section 1231 loss against ordinary income within the last five years, a current Section 1231 gain is recharacterized as ordinary income up to that prior loss amount. The rolling window only clears as older loss years drop off. A business that cycles through equipment, taking losses in some years and gains in others, may find that even the exceptional above-cost gain gets pulled back into ordinary income.
Real Property Is Treated More Leniently
Commercial buildings sit under a different recapture rule, Section 1250, which is why building owners sometimes describe a very different tax experience. For real property placed in service after 1986, Section 1250 only recaptures depreciation to the extent it exceeds straight-line depreciation. Most commercial buildings already use straight-line, so there’s typically nothing for Section 1250 to recapture as ordinary income.
Instead, the depreciation on real property is taxed as “unrecaptured Section 1250 gain” at a maximum rate of 25%, and any gain above the building’s original cost gets standard long-term capital gains treatment. Equipment has no such middle tier. Under Section 1245, every dollar of depreciation-related gain comes back at your full ordinary rate.
Real property also still qualifies for like-kind exchanges under Section 1031. The Tax Cuts and Jobs Act of 2017 removed personal property from Section 1031, so equipment, vehicles, and machinery no longer qualify for a tax-deferred swap. When you sell equipment, the recapture hits in that year.
What You Can Do About It
You can’t avoid Section 1245 recapture, but you can manage the rate at which it lands. Timing helps most. Selling equipment in a year when your other income is lower pushes the recaptured gain into a lower ordinary bracket. A retirement year, a sabbatical year, or a year with large offsetting deductions can meaningfully reduce the effective rate on the recapture.
Donating appreciated equipment to charity is a workaround only in narrow circumstances. A charitable contribution of Section 1245 property generally requires reducing the deduction by the amount that would have been ordinary income on sale, which wipes out most of the benefit for equipment that has been fully depreciated. The math works only when the equipment has genuine fair market value well above its basis and the donor itemizes.
Sometimes the best outcome is holding equipment until its adjusted basis catches up to what you can realistically sell it for, or selling at a loss. A machine with a $5,000 basis that sells for $3,000 produces a $2,000 loss, which gets ordinary loss treatment under Section 1231 and offsets other income at your top rate. For equipment, the tax code rewards losses more cleanly than gains.