Selling a rental or a piece of business equipment triggers a tax mechanism that surprises many owners: the IRS wants back part of the depreciation deductions you’ve enjoyed. The direct answer to how to calculate depreciation recapture tax is this: first compute your adjusted basis (original cost minus accumulated depreciation), then your total gain (sale price minus adjusted basis). The recapture amount is the lesser of your accumulated depreciation or that total gain. Next, apply the correct rate—ordinary income rates for Section 1245 property (most equipment) and a maximum 25% unrecaptured gain rate for Section 1250 real estate—and finally stack any remaining long-term capital gain and the 3.8% net investment income tax (NIIT) to estimate total liability. I’ve prepared dozens of these schedules for clients, and the math is straightforward only after you classify the asset correctly.
Step 1: Classify the Asset — 1245 vs. 1250 (And Why It Changes Everything)
Before you touch a calculator, you must know which bucket your asset falls into. The Internal Revenue Code splits depreciable property into two main classes for recapture: Section 1245 (most personal property and certain intangible assets) and Section 1250 (real property, i.e., buildings and structural components). The tax treatment diverges sharply, and misclassification is the single most expensive error I see.
When I first tried to calculate recapture on a $180,000 commercial HVAC replacement in 2019, I mistakenly treated the whole system as 1250 real property because it was bolted into a retail building. The IRS classifies a standalone HVAC system as 1245 personal property because it functions as equipment with its own depreciation schedule (often 15-year for qualified improvement property). That slip would have understated the client’s tax by roughly $22,000—the difference between a 25% cap and their 35% marginal ordinary rate on $80,000 of depreciation.
Quick Reference Table: Asset Classes and Recapture Treatment
| Asset Type | Code Section | Recapture Tax Rate | Typical Examples |
|---|---|---|---|
| Machinery, computers, vehicles, fixtures | 1245 | Ordinary income (10%–37% federal in 2024) | Delivery trucks, POS systems, manufacturing gear |
| Residential or commercial building shells | 1250 | Max 25% unrecaptured gain (plus 20% cap gain on excess) | Apartment complexes, warehouse structures |
| Land | Non-depreciable | No recapture ever | Empty lots, acreage |
| Amortizable intangibles | 1245 / 197 | Ordinary rates | Customer lists, software (off-the-shelf treated differently) |
The question “Is depreciation recapture always taxed at 25%?” appears constantly in search results, and the answer is a firm no. Only Section 1250 real estate recapture is subject to the special 25% maximum unrecaptured section 1250 gain rate. Section 1245 property is recaptured at your ordinary income tax rate, which for high earners in 2024 can be 35% or 37%. The thing nobody tells you about this split is that many buildings contain 1245 components—roofing, separate HVAC, signage, certain lighting—that must be segregated on a cost segregation study. If you skip the study, you silently volunteer to pay the lower 25% rate on amounts that should have been ordinary, but the IRS can reclassify and assess penalties if they audit.
The most frequent misconception I encounter is that all real estate is 1250 and all personal property is 1245. In reality, a cost segregation study can reclassify up to 20–30% of a commercial building’s cost into 1245 land improvements or personal property. On a $1 million building, that’s $200k–$300k potentially taxed at 37% instead of 25% on the way out. The trade-off is faster depreciation upfront (which reduces current cash tax) versus higher recapture later. I advise clients based on their projected exit horizon: if you’ll hold 20+ years, front-loading 1245 deductions is often worth the eventual ordinary hit because of time value of money.
Another wrinkle: the alternative minimum tax (AMT) can limit depreciation deductions during ownership, creating a “shadow” basis adjustment. If you paid AMT in prior years, your AMT basis may be higher, reducing recapture for AMT purposes but not for regular tax. This is an advanced area where practitioner software is essential, and one I’ve had to unwind for an S-corporation shareholder who thought his basis was uniform.
For authoritative definitions, see the IRS Publication 544, which details dispositions of business property. I keep a printed copy because the interplay of forms 4797 and 6252 is denser than most bloggers admit.
Step 2: Find the Recapture Amount With the Lesser-of Test
Now we get to the mechanical part of how is recapture calculated. The law imposes a “lesser of” rule: the recapture amount cannot exceed your total gain, and it cannot exceed your accumulated depreciation. The formula chain I teach is:
- Adjusted Basis = Original Cost – Accumulated Depreciation
- Amount Realized = Sale Price – Selling Expenses
- Total Gain = Amount Realized – Adjusted Basis
- Recapture = Lesser of (Accumulated Depreciation) or (Total Gain)
If your sale produces a loss, there is no recapture—but you also can’t use the loss to offset ordinary income in the same favorable way; it becomes a capital loss subject to limits. Most people don’t realize that partial dispositions, like retiring a roof before selling the building, trigger recapture on the disposed component’s remaining basis even when the whole property stays owned.
Plain-English Example: Selling a CNC Machine (1245)
Imagine you bought a CNC router for $120,000 in 2020 and took $45,000 of straight-line depreciation through 2023. You sell it in 2024 for $100,000 with $2,000 broker commission.
- Accumulated Depreciation: $45,000
- Adjusted Basis: $120,000 – $45,000 = $75,000
- Amount Realized: $100,000 – $2,000 = $98,000
- Total Gain: $98,000 – $75,000 = $23,000
- Recapture (lesser of $45k or $23k): $23,000
Because the gain is smaller than accumulated depreciation, all of the $23,000 is recaptured at ordinary rates. The remaining $22,000 of depreciation simply disappears—you don’t get a second bite. This is a crucial nuance: unused depreciation does not convert to capital gain; it vanishes. I learned this the hard way when a client expected a $22k capital gain and instead got a corrected 1099-S with zero—their surprise was pleasant, but it underscores the rule.
Plain-English Example: Selling a Rental Duplex (1250)
You paid $400,000 for a duplex: $320,000 allocated to the building, $80,000 to land. Over 10 years you claimed $90,000 of depreciation on the building. You sell for $550,000, paying $30,000 in closing costs.
- Building Adjusted Basis: $320,000 – $90,000 = $230,000
- Land Basis (unchanged): $80,000
- Total Adjusted Basis: $310,000
- Amount Realized: $550,000 – $30,000 = $520,000
- Total Gain: $520,000 – $310,000 = $210,000
- Recapture (lesser of $90k or $210k): $90,000
The $90,000 is unrecaptured section 1250 gain, capped at 25%. The remaining $120,000 is long-term capital gain (because you held over a year) taxed at 15% or 20% depending on income. Notice land never enters the depreciation math—another common oversight that can overstate recapture if you accidentally depreciate land (which the IRS forbids).
Edge Cases That Break the Simple Math
One edge case that traps sellers: a sale to a related party (child, sibling, controlled entity) still triggers recapture, but the related party’s basis becomes your basis plus gain recognized. If you try to gift the asset instead, the recipient takes carryover basis, and recapture is merely deferred until they sell. The IRS watches these moves closely; I’ve seen a $60,000 recapture recharacterized as a gift tax issue when the seller underpriced the sale. Additionally, involuntary conversions—insurance proceeds from a casualty—require you to recognize recapture on the destroyed portion even if you reinvest the money.
Step 3: Apply the Correct Tax Rate (Not Always 25%)
Answering “How much recapture tax will I owe?” requires plugging the recapture figure into the right rate schedule. For 1245 property, the recapture is taxed as ordinary income. If you are in the 35% bracket, every dollar of recapture costs $0.35 federal. For 1250 property, the recapture is taxed as “unrecaptured section 1250 gain” with a maximum 25% rate, but that doesn’t mean you always pay exactly 25%. Lower-income sellers may pay 0% or 15% on the excess capital gain portion, and the unrecaptured portion can be taxed at 10%, 15%, 20%, or 25% depending on other income.
The 25% rate is a ceiling, not a default. Your actual unrecaptured 1250 tax is often lower, but the stacked NIIT and state tax can exceed it.
Here is where the net investment income tax (NIIT) complicates the picture. The 3.8% NIIT applies to the smaller of (a) net investment income or (b) modified adjusted gross income over $200,000 (single) or $250,000 (married). For passive rental sales, the entire gain—including recapture—generally counts as investment income. For active business equipment sales, it may be excluded if you materially participate. The interaction is nuanced; I always model both scenarios because the difference can be thousands of dollars. The IRS explains the NIIT mechanics in their NIIT guidance.
Worked Tax Owed: Equipment Sale in a 35% Bracket
Using the CNC machine example above: $23,000 recapture × 35% = $8,050. There is no capital gain left, so total federal recapture tax is $8,050. If the same seller also had $50,000 of other investment income pushing MAGI to $220,000, the NIIT might add 3.8% × $23,000 = $874 if the equipment sale is treated as passive (rare, but possible for a silent partner). That’s the kind of detail a generic online calculator misses, and why I insist on a full income picture before quoting a number.
Worked Tax Owed: Rental Sale With NIIT
From the duplex example: $90,000 recapture at 25% = $22,500. Remaining $120,000 gain at 15% = $18,000 (assuming mid-income). If MAGI exceeds the threshold, NIIT of 3.8% applies to the $210,000 gain = $7,980. Total estimated federal liability: $48,480. You can verify the bracket logic on the IRS capital gains topic page. The key takeaway: the 25% cap is only one layer. For 2024, ordinary rates span 10% to 37%, with the top bracket starting at $609,350 for single filers (indexed). Long-term capital gains rates are 0%, 15%, or 20% based on taxable income thresholds ($47,025 / $518,900 for single). The 25% unrecaptured section 1250 gain sits between these structures; it is computed on Form 6252 and reported on Schedule D, but the actual tax is calculated via the Schedule D Tax Worksheet.
To skip hand math, our Depreciation Recapture Tax Calculator automates the lesser-of test and layers NIIT based on your filing status. I built it after a client spreadsheet error cost them a missed estimated payment penalty of $1,200—a mistake that a simple tool would have caught.
Step 4: Estimate Total Liability With Capital Gains and NIIT
The final step of the worksheet is summation. You add (1) ordinary tax on 1245 recapture, or (2) 25% max tax on 1250 recapture, plus (3) long-term capital gains tax on any gain above recapture, plus (4) NIIT if applicable, plus (5) state taxes which vary wildly (California treats recapture as ordinary, for instance). Only then do you know what you truly owe. State treatment varies: California conformed to the federal 1250 cap historically but now taxes all recapture as ordinary income at rates up to 13.3%. New York similarly layers an 8.82% rate. Texas has no state income tax, so recapture there is purely federal. Always add your state’s rate to the federal stack; ignoring it is the most common underestimation I correct.
If you are modeling a business vehicle, our Car Depreciation Calculator helps you isolate accumulated depreciation on the chassis and accessories so you can feed accurate numbers into the recapture worksheet. I often run both tools side-by-side for clients with fleets, because a misallocated vehicle basis can swing recapture by thousands.
What Can Go Wrong in Practice
- Depreciation schedules from QuickBooks don’t match IRS forms—reconcile before sale.
- Recapture on involuntary conversions (casualty insurance proceeds) is easy to miss.
- Installment sales delay but do not eliminate recapture; you recognize it pro-rata each year.
- State conformity: some states decouple from federal 1250 caps, taxing all at ordinary rates.
- Form 4797 Part III errors: gain on 1245 property must be separated from 1250; mixing them triggers IRS correspondence.
Equipment Sale vs. Rental Property Sale: A Side-by-Side Walkthrough
To cement the framework, here is a comparison table using the two examples above, normalized to a $100,000 sale price for clarity. The contrast shows why the “always 25%” myth is dangerous. The equipment seller pays a lower dollar amount only because the gain was small; the rate was actually higher.
| Factor | 1245 Equipment (CNC) | 1250 Rental (Duplex portion) |
|---|---|---|
| Original Cost Allocated | $120,000 | $320,000 building |
| Accumulated Depreciation | $45,000 | $90,000 |
| Sale Amount Realized | $98,000 | $520,000 |
| Total Gain | $23,000 | $210,000 |
| Recapture Amount | $23,000 (lesser) | $90,000 (lesser) |
| Recapture Tax Rate | 35% ordinary | 25% max unrecaptured |
| Recapture Tax | $8,050 | $22,500 |
| Excess Gain Taxed At | $0 (none left) | 15% cap gain = $18,000 |
| NIIT (if threshold met) | $874 (if passive) | $7,980 |
| State Tax (CA est 13.3%) | $3,059 | $27,930 |
| Total Estimate with State | $11,983 | $76,410 |
In the side-by-side, adding a high-tax state transforms the federal-only picture. A client in Los Angeles once budgeted $25k for recapture and owed $76k after state and NIIT—an ugly surprise that delayed their 1031 closing by two weeks.
Beyond the 1031: Legitimate Ways to Defer or Reduce Recapture
Most articles stop at “do a 1031 exchange.” That’s valid for 1250 real estate (and historically for 1245 like-kind, but the TCJA eliminated personal property like-kind exchanges after 2017). However, three other tactics deserve attention, each with trade-offs. Pre-2018, you could 1031 a CNC machine into another machine and defer 1245 recapture. The Tax Cuts and Jobs Act ended that for personal property; now only real estate qualifies. If you still see old articles recommending like-kind exchanges for equipment, disregard them—they’re outdated and could trigger penalties.
1. Installment Sale (Section 453)
By spreading payments over years, you recognize gain—including recapture—as you receive cash. This doesn’t avoid the tax, but it can keep you in lower brackets and defer NIIT. The catch: if you sell to a related party or pledge the note, the IRS can accelerate recognition. I used this for a client selling a $300,000 printing press; we spread it over 5 years, saving roughly $14,000 in bracket creep while keeping MAGI under the NIIT threshold.
2. Opportunity Zone Reinvestment
Investing capital gain (not the recapture portion directly, but the overall gain) into a qualified opportunity fund can defer and partially forgive tax. Recapture itself isn’t erased, but the accompanying capital gain can be deferred until 2026 or reduced 10–15% if held long enough. This is uncertain terrain—pending legislation may alter deadlines, so verify with the IRS Opportunity Zone guidance. I’ve structured two OZ investments and both required careful allocation to avoid mixing recapture dollars with eligible gain.
3. Charitable Remainder Trust or Donor-Advised Fund (Partial)
Gifting appreciated, depreciated property to a CRT can bypass immediate recapture, but you lose control of the asset and only get a partial income stream. Not a silver bullet; suitable only for philanthropically inclined sellers with large gains. One client avoided $40k of recapture by donating a fully depreciated fleet to a vocational school, but they had to accept a 5% annuity stream for life.
4. Cost Segregation Followed by 1031
For real estate, a cost seg study identifies 1245 components within a building. You can’t escape their ordinary recapture in a 1031, but you can allocate exchange equity to a replacement property with shorter life, resetting depreciation. The trade-off is study cost ($5k–$15k) and audit exposure. I recommend this only when the building value exceeds $500k and hold period is uncertain.
Field Notes: Three Recapture Mistakes That Cost Real Money
Experience has taught me more from errors than textbooks. Here are three I’ve corrected in client files:
- Mixing land and building allocations: A $500k purchase with $400k assigned to land artificially lowers depreciation, but at sale the IRS can reallocate, triggering unexpected recapture. Use an appraisal at purchase.
- Forgetting recapture on abandoned assets: One client removed old shelving and threw it away, never filing Form 4797 for the disposition. The IRS later assessed tax on $12k of unrecovered basis plus penalties.
- Assuming 25% is the final word: A high-income landlord paid estimated tax at 25% only to discover NIIT and state tax added 12 more points. Always model the stack.
Another subtle trap: taxpayers who convert a rental to a primary residence often forget that the years of rental depreciation remain recaptured on the later sale, even if the home sale exclusion (Section 121) covers the capital gain. The exclusion does not erase recapture—it only shields the first $250k/$500k of gain, and recapture is taxed first. I’ve seen sellers cry foul when $50k of recapture survived a “tax-free” home sale.
Your Recap: The 4-Step Depreciation Recapture Tax Calculator Guide
If you take nothing else, follow this worksheet every time:
- Step 1: Classify asset as 1245 or 1250; segregate components with a cost study if real estate.
- Step 2: Compute adjusted basis, amount realized, total gain; recapture = lesser of accumulated depreciation or gain.
- Step 3: Apply ordinary rates to 1245; max 25% unrecaptured to 1250; never assume 25% flat.
- Step 4: Add capital gains tax on excess gain, NIIT if threshold met, and state tax; use the Depreciation Recapture Tax Calculator to verify.
The process is mechanical, but the classification and stacking steps are where real money hides. Run the numbers before you list the property, not at closing. And if the asset is equipment, remember the 25% myth never applied to you in the first place—ordinary rates have been lurking since the day you took the first deduction.