Selling a rental property can trigger two types of taxes that catch many investors off guard: capital gains tax and depreciation recapture. And if you’re not prepared, your tax bill can be steep. For example, on a $200,000 gain, you could owe $50,000 to $70,000 in federal taxes, and that’s before state taxes.
The good news is that you can defer, reduce, or in some cases eliminate these taxes entirely with the right strategy. However, most strategies defer taxes rather than erase them permanently. That’s why you should plan before you list the property, not after you’re already under contract.
This guide covers the two taxes you'll face and how they're calculated, five strategies to minimize or defer them, and exact timelines and requirements for each. We’ll also share real dollar comparisons showing tax liability under each approach and when you simply can't avoid taxes and shouldn't try.
Understanding the two taxes on rental property sales
Before settling on a specific strategy, it’s crucial to understand the two common taxes on rental property sales.
Capital gains tax
If you sell a rental property for more than what you purchased it for plus capital improvements, you owe capital gains tax. How much you owe depends on how long you held the property and your total income.
If you held the property for more than one year, here are the long-term capital gains tax rates for 2026:[1]
- 0% rate:
- Single: Up to $49,450
- Married filing jointly: Up to $98,900
- Married filing separately: Up to 49,450
- Head of household: Up to $66,200
- 15% rate
- Single: $49,451 to $545,500
- Married filing jointly: $98,901 to $613,700
- Married filing separately: $49,451 through $306,850
- Head of household: $66,201 through $579,600
- 20% rate
- Single: Over $545,500
- Married filing jointly: Over $613,700
- Married filing separately: Over $306,850
- Head of household: Over $579,600
Additionally, those capital gains may be subject to 3.8% net investment income (NIIT) for high-income earners above certain limits.
If you owned the property for less than one year, gains are taxed as ordinary income, up to 37% based on tax bracket. That’s why holding rental properties for at least 12 months before selling is important, especially if you want to save money on taxes.
Depreciation recapture
"Depreciation recapture is easily the biggest surprise a seller faces when selling a rental property," says Gene Bott, CPA and tax advisor at Tax Hive. "I've even seen clients get angry when it happens.”
Every year you own a residential rental property, the IRS allows you to deduct the cost of buying or improving the property across the property’s “useful life”: 27.5 years.[2] This is depreciation. When you sell, the IRS taxes any depreciation claimed at 25%.
For example, on a $200,000 rental property owned for 10 years with no major improvements made:
- Annual depreciation: ($200,000 ÷ 27.5) = $7,273
- Total depreciation taken: ($7,273 × 10): $72,730
- Depreciation recapture tax: $72,730 × 25% = $18,183
Combined tax example
Let’s combine all the taxes on a $200,000 property so you get a better idea of what to expect:
Property details:
- Original purchase price: $200,000
- Owned: 10 years
- Sales price: $400,000
- Capital improvements during ownership: $20,000
Tax calculation:
- Capital gains taxable amount: $400,000 sale - ($200,000 purchase + $20,000 improvements) = $180,000
- Tax on capital gain (at 15%): $180,000 × 15% = $27,000
- Depreciation recapture: $72,730 × 25% = $18,183
Total taxes owed: $27,000 + $18,183 = $45,183
That's why tax planning matters. Now let's look at strategies to reduce or defer this bill.
Strategy 1: Do a 1031 exchange to defer all taxes
A 1031 exchange lets you sell an investment property and buy another “like-kind” property and defer 100% of both capital gains and depreciation recapture taxes.[3]
Like-kind is broader than most investors realize. It means any investment real estate for any other investment real estate, which can be a single-family rental for a commercial building, a duplex for a vacant lot, or a rental condo for an apartment complex.
You have flexibility on the type of property. You just can't swap an investment property for a residential one.
To qualify for a 100% tax deferral, you must meet the following requirements:
- Both properties must be investment properties, not your primary residence.
- The replacement property must be of equal or greater value.
- You must reinvest all proceeds (pocketing any cash triggers taxes on that amount).
- A Qualified Intermediary (QI) must hold the sales proceeds, meaning you can never touch the money.
- You must follow a strict timeline (more details below).
The 1031 exchange timeline
- Day 0: Close on the sale of your relinquished property.
- Days 1-45: Identify up to three potential replacement properties in writing.
- Days 46-180: Close on the replacement property purchase.
Miss either deadline and the full tax bill comes due immediately. Marisa Simonetti, CEO at Sell House Fast MN, says, "The largest potential pitfall is primarily logistical. Timelines need to be adhered to, or the loss of tax deferment is at stake.”
1031 exchange full deferral example
Using our $400,000 sale scenario above, the total taxes owed (depreciation recapture + capital gains) without 1031 was $45,183.
With 1031, let’s say you buy a replacement property for $450,000 (equal or greater value) and reinvest all $400,000 of your proceeds. In this case, the total taxes deferred will be $45,183. Your $400,000 of equity has essentially been transferred to a $450,000 property instead of paying $45,000 to the IRS.
(Note: This is a simplified example; in a real sale, you’d be paying closing costs and real estate agent commissions, so you’d have less than $400,000 to reinvest in a new property.)
What happens to deferred taxes
Deferred taxes carry forward indefinitely. If you eventually sell without doing another 1031, the taxes on your sales proceeds will come due at that point. But if you die and your property passes to heirs, they’ll receive a step up in basis, adjusting the value (or cost basis) of the property and potentially eliminating the deferred tax liability entirely.[4] This is why experienced investors sometimes chain 1031 exchanges forever.
Common mistakes that trigger taxes
If your goal is to defer 100% of the taxes, you want to avoid these common mistakes:
- Receiving any cash at closing
- Buying a cheaper replacement property (dollar difference is taxable)
- Missing the 45-day identification deadline
- Buying a property for personal use instead of investment
Costs and considerations
A 1031 exchange isn’t free. You need a qualified intermediary who will hold the sale proceeds until you find a replacement property. These middlemen charge a fee, which can range from $800 to $2,500.[5]
Here are other considerations to keep in mind:
- You must commit to buying another investment property (you can't just cash out).
- Complex rules require professional guidance.
- Not all lenders and title companies are 1031 experienced.
When 1031 makes sense
A 1031 exchange isn’t the best strategy for everyone. Here are situations when it makes sense:
- There is a large tax bill (over $20,000)
- You want to stay in real estate investing
- You can find a suitable replacement property in 45 days
- You have financial flexibility for the 180-day timeline
Strategy 2: Convert your rental to a primary residence
This is another option to sell your rental property without paying taxes. You can exclude up to $250,000 (single filers) or $500,000 (married filing jointly) in capital gains if you convert the rental property into your primary residence.[6]
However, you must meet the following rules to avoid capital gains taxes when you do end up selling:
- You must own the property for at least 5 years total.
- You must live in it as your primary residence for at least 2 of the last 5 years.
- The 2 years don't have to be consecutive.
But most investors don't know about the nonqualified use rule. Any period of time after January 1, 2008, when you didn't live in the property as your primary residence counts as "nonqualified use." That period proportionally reduces your exclusion.
Example
Let’s say you bought a rental property in 2015, owned it for 8 years, and lived there for 2 years before selling it in 2023 for a $300,000 profit.
- 2015-2023: Rented (8 years of nonqualified use)
- 2023-2025: Lived as primary residence (2 years of qualified use)
- Total ownership: 10 years
- Nonqualified use percentage: 8/10 = 80%
Your $500,000 exclusion is reduced to 20% of $500,000 ($100,000).
On a $300,000 profit, you'd exclude $100,000 and owe capital gains on the remaining $200,000: $200,000 × 15% = $30,000
Even if you exclude all capital gains, you still owe depreciation recapture for every year the property was rented:
- 8 years × $7,273/year = $58,184 in depreciation
- $58,184 × 25% = $14,546 in depreciation recapture owed
- Total tax: $30,000 capital gains + $14,546 depreciation recapture = $44,546
As Bott warns, "These rules can surprise someone who has converted a rental property into a primary residence. Depreciation recapture doesn't apply at the time of conversion. It applies when the house is later sold. That's often well after the fact."
When this strategy works best
- You're ready to move anyway, and the rental is in your target location.
- Your profit falls under the exclusion limits.
- You want to exit real estate investing entirely rather than reinvest.
Strategy 3: Use tax-loss harvesting to offset gains
If you own multiple rental properties and one is underperforming, selling both in the same tax year can reduce your overall tax bill. Capital loss can reduce or eliminate taxes.[1]
For example:
Property A (profitable):
- Profit: $150,000
- Tax owed without offset (15% + 25% depreciation): $40,000
Property B (loss):
- Purchase price: $180,000
- Sales price: $130,000
- Loss: $50,000
Total net gain will be $150,000 - $50,000 = $100,000
Taxes will be levied on $100,000 instead of $150,000. This translates to $13,000 in tax savings.
If your losses exceed your gains, you can deduct up to $3,000 of the remaining loss against ordinary income and carry forward the rest to future tax years.
Important rules: Short-term losses offset short-term gains first. Long-term losses offset long-term gains first.
When this strategy makes sense:
- You own multiple properties.
- One is underperforming, and you were considering selling it anyway.
- The loss is permanent (not just a temporary market dip you expect to recover).
When to avoid
- Never sell a good property just for the tax benefit.
- The strategy only works if you were already planning to sell the losing property.
Strategy 4: Time your sale strategically
Sometimes the biggest tax savings come from holding your sale until a specific period.
Holding for more than a year means you could qualify for long-term capital gains rates of 0%, 15%, or 20%. Otherwise, short-term capital gains are subject to up to a 37% tax rate because they’re taxed as ordinary income.[7]
For example, on a $100,000 profit:
- Short-term capital gains taxed at 37% = $37,000
- Long-term capital gains taxed at 15% = $15,000
- Tax savings: $22,000
If you know your income will drop significantly next year because you’re retiring or on a career break, waiting to sell could move you into a lower capital gains bracket.
For instance, you could drop from the 20% rate to the 15% rate on a $100,000 gain, and you save $5,000 in taxes by doing nothing more than closing in a different calendar year.
When timing matters
- Just shy of 1-year holding period? Wait a few more months makes more sense.
- Planning to retire next year? Hold the sale until then.
- Major income reduction expected? Time your sale strategically.
Strategy 5: Opportunity Zone funds
Another option is leveraging opportunity zone funds, which lets you invest your capital gains into a Qualified Opportunity Fund within the first 180 days of selling your rental property.[8] This defers the capital gains tax until when you sell the fund investment. Hold the fund investment for more than 10 years, and any new gains generated within the fund become entirely tax-free.
The catch: This strategy only defers capital gains. Depreciation recapture still comes due in the year of sale. You also need to find a qualifying fund, commit to a 10-year hold, and accept less direct control than owning property outright.
This strategy is worth considering if you want to diversify out of direct real estate ownership, can't find a suitable replacement property for a 1031 exchange within 45 days, and can hold for at least 10 years.
Strategy comparison: Which one is right for you?
Using the same property scenario: $400,000 sale, $200,000 original purchase, $180,000 capital gain, and $72,730 in depreciation taken, let’s compare the five strategies:
| Strategy | Capital gains tax | Depreciation recapture | Total tax | Net proceeds |
|---|---|---|---|---|
| No strategy | $27,000 | $18183 | $45,183 | $354,817 |
| 1031 exchange | $0 (deferred | $0 (deferred | $0 | $400,000 |
| Convert to primary | $13,500 | $18,183 | $31,683 | $368,317 |
| Tax loss harvest | $13,50 | $18,183 | $31,683 | $368,317 |
| Opportunity zone | $0 (deferred) | $18,183 | $18,183 | $381,817 |
Winner for most investors: 1031 exchange. It's the only strategy that lets you avoid capital gains tax when selling a house, leaving the maximum capital available for reinvestment.
When you can’t avoid taxes (and shouldn't try)
Not all strategies allow tax deferral. Here are situations when you can’t avoid taxes when selling a rental property:
- You’re cashing out completely: If you want to exit real estate investing entirely, need the cash for other purposes, or have no interest in finding replacement property, you can’t avoid Uncle Sam.
- You can't find replacement property within 45 days and can’t close in 180 days: As Brett Johnson puts it, "I have not used a 1031 exchange when the timing and pressure of needing a replacement property were such that I would have had to settle for a mediocre deal.
- The numbers don't justify the effort: On a small profit under $50,000, Qualified Intermediary fees eat meaningfully into your savings, and the complexity of the process may simply not be worth it.
Sometimes paying all taxes instead of seeking loopholes is the best move you can make.
State taxes on rental property sales
Federal taxes aren't the only tax bill. Most states also tax capital gains, and the rates vary significantly from one state to another.
States with no capital gains tax:
- Alaska
- Florida
- Nevada
- New Hampshire
- South Dakota
- Tennessee
- Texas
- Wyoming
States with capital gains tax:[9]
- All others tax capital gains as income or apply flat rate
- Highest: California (up to 13.3%), New York (up to 10.9%)
- Lowest: Arizona (2.5%), North Dakota (2.9%)
💡Pro tip: A 1031 exchange defers state capital gains taxes in most states. Make sure you verify your state's specific rules with a local CPA.
Bottom line: Plan before you list
Selling a rental property triggers capital gains tax and depreciation recapture. A 1031 exchange defers both indefinitely and is the most powerful strategy for investors staying in real estate. Converting a rental to your primary residence can exclude meaningful gains but is limited by the nonqualified use rule. Tax-loss harvesting works if you own underperforming properties you were planning to exit anyway. Timing your sale also matters, as it can drop your rate significantly.
Action steps before you list:
- Calculate your potential tax liability using a rental property calculator.
- Decide your goal: is it reinvesting (1031), cashing out (pay taxes), or converting to primary?
- If doing a 1031 exchange, find a qualified intermediary before you list.
- Consult a CPA familiar with rental property sales.
- Start planning 6–12 months ahead.
Selling your rental property? Connect with a Clever Partner Agent who understands investment property sales and can help coordinate with your tax advisor to maximize your after-tax proceeds.
FAQs
Do I owe capital gains tax if I sell my rental property?
Yes, you'll owe capital gains tax on your profit (sale price minus original purchase price and improvements). The rate is 0%, 15%, or 20% if you held over 1 year, or up to 37% if under 1 year. You'll also owe 25% depreciation recapture tax on all depreciation you claimed. A 1031 exchange can defer both taxes.
What is depreciation recapture and how much will I owe?
Depreciation recapture is a tax on the depreciation deductions you took while owning the rental. Residential rentals depreciate over 27.5 years, so annual depreciation is about 3.6% of property value. When you sell, all accumulated depreciation is taxed at 25%. Example: 10 years of depreciation on a $200K property = ~$72,730 × 25% = ~$18,183 owed.
Can I do a 1031 exchange after I've already listed my rental property?
Yes, but you must establish the 1031 exchange before closing. Contact a Qualified Intermediary immediately and include 1031 language in your purchase contract. The 45-day identification period starts the day you close on the sale, so have the QI ready. Don't wait until after you've accepted an offer - set it up as soon as you list.
How long do I have to find a replacement property in a 1031 exchange?
You have exactly 45 days from closing on your sale to identify up to 3 replacement properties in writing to your Qualified Intermediary. Then you have 180 days total from closing to complete the purchase of the replacement property. These deadlines are strict: Miss either one and you owe all taxes immediately. Plan ahead and start property shopping before you list.
Can I convert my rental property to my primary residence to avoid capital gains tax?
Partially. If you move into the rental and live there as your primary residence for 2 of the last 5 years before selling, you can exclude up to $250K (single) or $500K (married) in capital gains. However, the nonqualified use rule reduces this exclusion proportionally for time it was a rental after 2008. You'll still owe depreciation recapture tax.
What happens to the taxes I defer with a 1031 exchange?
Deferred taxes carry forward until you either sell the property without doing another 1031 exchange (all deferred taxes from all previous exchanges come due), or you pass away and the property transfers to heirs with a stepped-up basis, eliminating the tax liability entirely. You can chain 1031 exchanges indefinitely to keep deferring.

