Rental Property Sale Depreciation Calculator
Use this professional calculator to estimate adjusted basis, depreciation recapture, remaining capital gain, and potential federal tax impact when you sell a rental property.
Enter your numbers and click calculate to see results.
How to Calculate Depreciation on Sale of Rental Property: Expert Step by Step Guide
When you sell a rental property, depreciation is one of the biggest tax factors. Many owners focus only on purchase price and sale price, but the IRS requires you to account for depreciation you claimed, or depreciation you were allowed to claim, during ownership. This affects your adjusted basis, your total gain, and a special gain category called unrecaptured Section 1250 gain, often known as depreciation recapture for rental real estate.
If you understand the math before listing your property, you can estimate your tax exposure more accurately and make better timing and pricing decisions. This guide explains the practical calculation framework used by investors, tax preparers, and CPAs, while keeping the language plain and usable.
Why depreciation matters at sale
Depreciation gives you annual deductions while your rental is in service. Those deductions reduce taxable rental income each year, which is a major benefit. However, when you sell, the prior deductions generally reduce your basis, increasing the taxable gain. The gain tied to depreciation is generally taxed at a maximum federal rate of 25 percent as unrecaptured Section 1250 gain. Any remaining long term gain is usually taxed at long term capital gains rates.
- Depreciation lowers your annual taxes while you own the asset.
- Depreciation also lowers adjusted basis.
- Lower adjusted basis usually means larger gain at sale.
- Part of that gain may be taxed at up to 25 percent before regular capital gains rates apply.
Core formula set you need
Use this sequence every time:
- Original basis = purchase price + capitalized acquisition costs + capital improvements.
- Depreciable basis = original basis minus land value portion.
- Accumulated depreciation = depreciation claimed or allowed (typically straight line over 27.5 years for residential rental property).
- Adjusted basis = original basis minus accumulated depreciation.
- Amount realized = gross sale price minus selling expenses.
- Total gain (or loss) = amount realized minus adjusted basis.
- Depreciation recapture portion = lesser of total gain or accumulated depreciation, not below zero.
- Remaining long term capital gain = total gain minus recapture portion, not below zero.
Important basis details investors miss
Basis mistakes create major tax errors. A few high impact rules:
- Land is never depreciated. You must allocate purchase cost between land and building.
- Capital improvements increase basis. A new roof, addition, major systems replacement, and similar upgrades usually increase basis.
- Repairs usually do not increase basis. Routine maintenance is generally expensed, not capitalized.
- Depreciation allowed or allowable matters. Even if you did not claim depreciation, IRS rules can still treat basis as reduced by depreciation you were entitled to take.
Example calculation with realistic numbers
Assume the following:
- Purchase price: $350,000
- Land allocation: $70,000
- Capitalized buying costs: $8,000
- Capital improvements: $25,000
- Residential rental held and depreciated: 9 years
- Sale price: $520,000
- Selling expenses: $32,000
Step 1: Original basis = 350,000 + 8,000 + 25,000 = 383,000.
Step 2: Depreciable basis = 383,000 – 70,000 = 313,000.
Step 3: Annual depreciation (residential) = 313,000 / 27.5 = 11,381.82.
Step 4: Accumulated depreciation over 9 years = 102,436.38.
Step 5: Adjusted basis = 383,000 – 102,436.38 = 280,563.62.
Step 6: Amount realized = 520,000 – 32,000 = 488,000.
Step 7: Total gain = 488,000 – 280,563.62 = 207,436.38.
Step 8: Recapture portion = lesser of 102,436.38 and 207,436.38 = 102,436.38.
Step 9: Remaining capital gain = 207,436.38 – 102,436.38 = 105,000.00.
If your recapture rate is 25 percent and long term capital gains rate is 15 percent, the rough federal tax estimate is:
- Recapture tax: 102,436.38 x 25 percent = 25,609.10
- Capital gains tax: 105,000.00 x 15 percent = 15,750.00
- Total estimated federal tax before other factors: 41,359.10
Federal reference data table: key tax numbers
| Item | Federal Rule or Number | Why It Matters |
|---|---|---|
| Residential rental recovery period | 27.5 years (MACRS) | Used to compute annual straight line depreciation |
| Nonresidential recovery period | 39 years (MACRS) | Lower annual depreciation than residential property |
| Unrecaptured Section 1250 gain rate | Maximum 25 percent federal rate | Applies to gain attributable to depreciation |
| Long term capital gains rates | 0 percent, 15 percent, 20 percent | Applies to gain above recapture portion |
Comparison table: residential vs commercial depreciation impact
| Scenario | Depreciable Basis | Recovery Period | Annual Depreciation | 10 Year Accumulated Depreciation |
|---|---|---|---|---|
| Residential rental | $300,000 | 27.5 years | $10,909.09 | $109,090.90 |
| Commercial rental | $300,000 | 39 years | $7,692.31 | $76,923.10 |
How to handle losses on sale
If amount realized is below adjusted basis, you may have a loss. In a straightforward taxable sale of rental property used for income production, losses can be deductible under applicable rules. In a loss scenario, depreciation recapture usually does not apply because there is no gain to recapture. Always confirm character and limitation rules with your tax advisor, especially when mixed personal and rental use is involved.
Common mistakes that create expensive surprises
- Ignoring depreciation allowed or allowable. Not claiming depreciation does not automatically protect you at sale.
- Using full purchase price as depreciable basis. You must remove land value.
- Forgetting improvements. Missing capital improvements overstates gain.
- Ignoring selling costs. Commissions and closing costs generally reduce amount realized.
- Mixing repair expense with capital basis. Misclassification creates incorrect historical records.
- Applying one blended tax rate. Recapture and remaining capital gain can be taxed at different rates.
Planning strategies before you sell
Tax planning should begin before you list, not after closing. Consider these practical actions:
- Rebuild basis records early, including settlement statements and improvement invoices.
- Project multiple sale price cases, such as conservative, expected, and optimistic outcomes.
- Model state tax separately because state treatment can materially change total tax.
- Coordinate timing with income year because capital gains brackets and NIIT exposure depend on total income.
- Evaluate whether a like kind exchange strategy is appropriate if your objective is deferral rather than disposition.
What this calculator does and does not do
This calculator estimates federal tax mechanics for education and planning. It is useful for understanding the depreciation component quickly. It does not replace a return level calculation that considers installment sale treatment, suspended passive losses, at risk limitations, prior year depreciation method corrections, depreciation recapture interactions with other code sections, state taxes, NIIT, and filing status specific threshold impacts.
Authoritative sources for deeper review
- IRS Publication 527: Residential Rental Property
- IRS Publication 544: Sales and Other Dispositions of Assets
- IRS Publication 946: How To Depreciate Property
Final checklist before filing year of sale
- Confirm total depreciation claimed by year from prior returns and depreciation schedules.
- Verify land allocation and depreciable building basis.
- Add all legitimate capital improvements to basis.
- Subtract selling expenses from gross contract sales price to compute amount realized.
- Compute adjusted basis, total gain, recapture portion, and remaining long term gain.
- Apply the appropriate federal rates and then evaluate state effects.
- Have a CPA or EA review before filing if transaction size is material.
When done correctly, depreciation on sale is not mysterious. It is a sequence of basis and gain calculations governed by well defined IRS rules. The key is record quality and disciplined math. If you keep complete purchase, improvement, and depreciation records, you can estimate outcomes with confidence and make better business decisions about timing, pricing, and after tax reinvestment.