Capital Gains Tax on Rental Property: What You Owe When You Sell
Learn how capital gains tax on a rental sale is calculated, how depreciation recapture fits in, and the main ways investors defer or reduce the bill.
By Laura Bennett, Real Estate Tax Writer · Last reviewed: August 18, 2026 · 8 min read
Run the numbers while you read
Open the matching calculator and test each assumption against your own deal.
How the Gain Is Calculated
Capital gains tax applies to the profit when you sell a rental for more than your adjusted basis. Your adjusted basis is what you paid plus capital improvements, minus the depreciation you have claimed over the years.
Because depreciation lowers your basis, it raises your taxable gain at sale. Many first-time sellers are surprised that the gain is larger than the simple difference between purchase and sale price, precisely because depreciation reduced the basis along the way.
Two Layers: Gains and Recapture
Total Gain = Sale Price - Selling Costs - Adjusted Basis (Purchase + Improvements - Depreciation)
The gain on a rental is generally taxed in two parts. The portion attributable to depreciation you claimed is taxed as depreciation recapture, which carries its own rate. The remaining appreciation is taxed at long-term capital gains rates if you held the property more than a year.
Short-term gains, on property held a year or less, are taxed as ordinary income, which is usually worse. Holding period matters, and so does the fact that higher earners may also owe an additional net investment income tax on top of the base capital gains rate.
Ways Investors Defer or Reduce the Bill
- A 1031 exchange lets you defer the entire tax by rolling proceeds into a like-kind replacement property.
- Holding longer than a year keeps the appreciation in the lower long-term bracket rather than ordinary income.
- Tracking and adding capital improvements to basis reduces the taxable gain.
- Offsetting the gain with capital losses from other investments in the same year.
- Installment sales, which spread the gain and the tax over multiple years.
The Primary Residence Wrinkle
If you convert a rental into your primary residence and meet the ownership and use tests, you may exclude a portion of the gain, though depreciation claimed while it was a rental is still recaptured and special rules limit the exclusion on prior rental use.
This area is full of qualifying conditions, and the interaction between recapture, the exclusion, and holding periods is easy to get wrong. It is one of the clearest cases for planning the sale with a tax professional before you list.
Plan the Exit Before You Buy
The tax at sale is a function of decisions you make years earlier: how you finance, how much you improve, how long you hold, and whether you plan to exchange. Modeling the after-tax proceeds early keeps the exit from becoming an expensive surprise.
Use an appreciation projection to estimate the future value and equity, then remember that the headline gain is not the cash you keep. Selling costs, recapture, and capital gains all come out first. Treat these figures as educational estimates and confirm the specifics with a qualified advisor.
Frequently Asked Questions
How is capital gains tax on a rental calculated?
It is based on the gain, which is the sale price minus selling costs and your adjusted basis. Adjusted basis is the purchase price plus capital improvements minus depreciation claimed, so depreciation increases the taxable gain.
What is depreciation recapture at sale?
The portion of your gain attributable to depreciation you deducted over the years is taxed as depreciation recapture, at its own rate, separately from the long-term capital gains rate that applies to the remaining appreciation.
How can I avoid or defer capital gains on a rental?
Common approaches include a 1031 exchange to defer the tax into a replacement property, holding longer than a year for lower long-term rates, adding improvements to basis, and offsetting the gain with capital losses. Consult a tax professional.
Laura Bennett · Real Estate Tax Writer, Phoenix, AZ
Laura writes about the tax side of rental property investing, including depreciation, cost basis, and how deductions shape after-tax returns. She focuses on making IRS rules understandable without replacing a qualified tax advisor.
Educational Disclaimer
All calculations are estimates for educational and planning purposes only. PropertyFlowTools.com does not provide financial, tax, legal, lending, or investment advice. Verify calculations and consult qualified professionals before making property or financing decisions.