Selling a rental property? Learn how to defer or avoid the surprise tax bill of depreciation recapture with strategies like 1031 exchanges and stepped-up basis.

Selling a rental property often results in a significant tax bill, but many investors are surprised by one component in particular: depreciation recapture. It's the tax the IRS charges to "recapture" the tax benefits you received from depreciating the property over the years. This article explains what depreciation recapture is and details the strategic ways you can defer or even permanently avoid it when it's time to sell.
To understand depreciation recapture, we first need to touch on depreciation itself. When you own an investment property, the IRS allows you to take an annual tax deduction for depreciation. This is a non-cash expense that accounts for the perceived wear and tear on the building over time. For residential rental properties, this is typically done over 27.5 years.
Each depreciation deduction you claim reduces your property’s cost basis. This new, lower basis is called the adjusted basis. Here is the simple formula:
Original Cost + Capital Improvements – Accumulated Depreciation = Adjusted Basis
When you sell a property for more than its adjusted basis, you have a taxable gain. Depreciation recapture isolates the portion of your gain that is a result of the depreciation you claimed. The IRS taxes this slice of the gain at a maximum rate of 25%, which is often higher than the preferential long-term capital gains rates (0%, 15%, or 20%).
Let’s look at an example:
Your total gain is $250,000 ($550,000 sale price – $300,000 adjusted basis). The IRS now looks at this gain in two parts:
Failing to account for recapture can lead to an unexpectedly large tax liability. The good news is that with careful planning, you can manage this tax obligation effectively.
The most powerful and widely used strategy to defer both depreciation recapture and capital gains taxes is the 1031 exchange. Governed by Internal Revenue Code Section 1031, this provision allows you to "swap" one investment property for another of a "like-kind" value, rolling your gains from the old property into the new one.
Think of it not as a sale, but as a continuous investment. Instead of cashing out, you're transferring your equity into a new property. This defers the tax consequences indefinitely, or until you finally sell a property for cash years down the line. You can perform 1031 exchanges repeatedly, from one property to the next, potentially for your entire investing career.
The IRS requires strict adherence to its rules to qualify for tax deferral. Missing a deadline or mishandling funds can disqualify the entire exchange.
A 1031 exchange doesn't erase your recapture liability—it just kicks the can down the road. Your adjusted basis and the potential recapture from the old property roll over into the new one. However, it's an unparalleled tool for growing a real estate portfolio without tax erosion.
While a 1031 exchange only defers the tax, there is one strategy that eliminates depreciation recapture and capital gains entirely: inheriting the property. This is accomplished through what’s known as a "step-up in basis."
When you inherit property from someone who has passed away, the property's cost basis for you is "stepped up" (or down) to its fair market value on the date of the original owner's death. This tax rule, found in IRC Section 1014, effectively wipes the slate clean.
Consider this powerful scenario:
The heir who inherits this property receives it with a new basis of $1,000,000. All the previous appreciation ($800,000) and accumulated depreciation ($150,000) are completely forgiven from an income tax perspective. If the heir sells the property the next day for $1,000,000, there is zero capital gain and zero depreciation recapture to pay.
This makes holding onto highly appreciated, long-held rental properties until death a very effective, albeit morbid, estate planning and tax strategy for passing wealth to the next generation.
Start using Feather now and get audit-ready answers in seconds.
Another option is to convert your rental property into your primary residence. This strategy leverages the lucrative primary residence capital gains exclusion under IRC Section 121, which allows homeowners to exclude up to $250,000 (for single filers) or $500,000 (for married couples filing jointly) of their gain from taxes when they sell their main home.
To qualify, you must have owned and lived in the property as your primary residence for at least two of the five years leading up to the sale. These two years do not have to be consecutive.
There's a critical catch: The Section 121 exclusion does not apply to the portion of the gain related to depreciation recapture. You are still liable for the 25% tax on any depreciation claimed after May 6, 1997.
So how does this help? By taking the often much larger capital gains portion of your profit completely off the table, you make the remaining tax bill for recapture much more manageable. Instead of paying tax on the entire gain, you only pay tax on the recaptured amount.
For example, in our original scenario with a $250,000 total gain ($100,000 from recapture, $150,000 from appreciation), a married couple could convert the property into their primary residence, meet the two-year rule, and then sell. They would exclude the $150,000 capital gain but would still owe tax on the $100,000 of recapture. This is a significant tax savings compared to selling it as a pure rental property.
Along with knowing the viable strategies, it's just as important to understand what bad advice or common misconceptions to avoid.
Successfully managing depreciation recapture requires foresight and strategic planning. The primary strategies for addressing it are to continuously defer it via 1031 exchanges, eliminate it entirely for your heirs through a step-up in basis at death, or minimize your overall bill by combining a primary residence conversion with the Section 121 capital gains exclusion.
These strategies hinge on a clear understanding of IRC rules Section 1031 (exchanges), Section 1250 (recapture), and Section 121 (primary home exclusion). Instead of dedicating hours to piecing together compliance rules and authoritative guidance, our AI-powered tax research platform gives you immediate, citation-backed answers. With Feather AI, you can quickly verify rules for a 1031 exchange's 45-day identification period or confirm primary residence requirements, letting you focus on strategy instead of research.
Written by Feather Team
Published on November 12, 2025