Tax Aversion Therapies · for landlords
Diagnosis: a rental house with $300,000 of gain, a tenant giving notice, and a tax bill at sale that the owner would rather not pay.
Prognosis: the home sale exclusion is available for a former rental. It is smaller than it looks, the depreciation comes back no matter what, and there is a reason most landlords exchange instead.
This is the therapy, with the dosage and the warnings.
Welcome. We’re glad to serve you.
The idea is older than the 1031 exchange industry: move into the rental, live there two years, and sell it as your home under the $250,000 / $500,000 exclusion. It is legal, it is in the Code, and Congress has trimmed it twice — in 1997, when depreciation was carved out of the exclusion, and in 2008, when the “nonqualified use” rule began counting the rental years against you. What is left still works, for the right house and the right owner, and this page walks through exactly how much of the gain escapes and what has to be true for it to work at all. The companion therapies, converting a home to a rental (the easy direction) and the 1031 exchange, are the alternatives.
Dose: own the house and use it as your principal residence for periods totaling two years out of the five ending on the sale date; once every two years; $250,000 single, $500,000 joint.
Nothing in the two-of-five test asks what the house was before you moved in. A rental you convert to your home on January 1, 2026 and sell on January 2, 2028 meets the use test. Converting is not a taxable event: no gain is recognized when the tenant leaves and you move in, your basis carries over, and depreciation simply stops. The exclusion then applies to the gain on the eventual sale — but to a reduced share of it, for two reasons that follow.
The test is use as a principal residence, meaning the place you actually live most of the time: driver’s license, voter registration, mail, the kids’ school, where you sleep. A rental you “move into” on paper while living in the nicer house across town is a rental with a different address on the return, and the IRS has won those cases on utility bills.
↑ Back to topDose: gain × (days of nonqualified use ÷ days owned) is not excludable; the rest is, up to the limit.
Since 2009 the exclusion is prorated. A period of nonqualified use is any time after December 31, 2008 when the house was not your (or your spouse’s) principal residence — rental use and vacation use being the usual kinds. The gain, after the depreciation in the next section is taken out, is multiplied by the fraction nonqualified days over total days owned, and that share is taxable no matter how long you lived there afterward. Three periods are not nonqualified use:
The fraction uses the whole ownership period in the denominator, including years before 2009, but only post-2008 rental years in the numerator. So a house bought and rented in 2000 and lived in since 2009 has no nonqualified use; a house bought and rented in 2016 and lived in from 2026 has ten years of it out of however many you own it. The longer the rental history after 2008, the smaller the exclusion, and living there longer only dilutes the fraction slowly.
↑ Back to topDose: gain up to the depreciation allowed or allowable after May 6, 1997 is never excluded; taxed as unrecaptured §1250 gain at your ordinary rate up to a 25% ceiling, plus the 3.8% net investment income tax if your income is high enough.
Every dollar of depreciation you deducted while the house was a rental — and every dollar you were entitled to deduct and didn’t (“allowable”) — comes off the top of the gain and is taxed before the exclusion is even considered. On a $400,000 house rented for ten years that is roughly $110,000 at 27.5-year straight-line, and about $27,500 of tax at the 25% ceiling. Nothing about moving in changes this; the only way to avoid depreciation recapture on a rental is to die owning it, when the basis steps up, or to exchange it forever.
If depreciation was never claimed, the gain is still reduced as if it had been. The fix is Form 3115 with the return for the year of sale, which claims the missed depreciation as a deduction that year; see the Form 3115 notes. Do not sell without it.
↑ Back to topEnter the dates and the numbers; the calculator applies the recapture and the nonqualified-use fraction and shows the taxable gain. It assumes the two-of-five test is met and no earlier exclusion in the last two years.
Unrecaptured §1250 gain is taxed at your ordinary rate up to 25%; the taxable remainder is long-term capital gain at 0%, 15% or 20%; both may draw the 3.8% net investment income tax. The two-of-five test is checked on the dates; the once-every-two-years rule and the partial-exclusion exceptions are not.
Bought January 1, 2016 for $320,000 ($270,000 building), rented ten years, moved in January 1, 2026, sold January 1, 2028 for $640,000 with $38,000 of selling costs. Depreciation allowable: $98,200. Gain: $640,000 − $38,000 − ($320,000 − $98,200) = $380,200. First, $98,200 is unrecaptured §1250 gain, taxed up to 25%. The remaining $282,000 is prorated: 3,653 nonqualified days out of 4,383 owned, 83.3%, so $235,032 is taxable capital gain and only $46,968 is excluded. Total taxable: $333,232 of $380,200. Two years of living in the rental saved the tax on about $47,000 — perhaps $7,000 — against a 1031 exchange that would have deferred all of it.
Same house bought January 1, 2023 for $500,000, rented three years, lived in three, sold for $700,000 net of costs; depreciation $46,400; joint return. Gain $246,400; recapture $46,400; remaining $200,000 prorated at 1,096 of 2,192 days, 50%: $100,000 taxable, $100,000 excluded. Short rental history, long residence, and a house the owners wanted to live in anyway — this is the case where the therapy works.
A couple exchanges a $300,000-gain rental into a $900,000 house in 2026, rents it to real tenants for two years, moves in January 2028, and sells in February 2031 (five years and a month after the exchange, as §121(d)(10) requires). Their basis in the new house is low — the old basis plus cash added — so the gain is large: the deferred $300,000 plus the new appreciation plus two years’ depreciation on both. Recapture comes first; then 2 of 5 years is nonqualified use, 40%; the 60% remainder is excluded up to $500,000. The exchange gain is not erased by the conversion; it is just run through the same fraction.
Dose: no §121 exclusion on property acquired in a like-kind exchange until five years after the exchange; hold the replacement as a rental for two years under the safe harbor before moving in; the deferred gain is taxed, through recapture and the fraction, when the residence is finally sold.
This is the version of the strategy that gets written about: exchange the tired rental for a house you would actually like to retire in, rent it for a while, move in, and sell it later as your home. Three rules govern it, and the first two are safe harbors in the strict sense — stay inside them and the IRS will not challenge the exchange; step outside and you are arguing intent with an auditor.
| Rule | What it requires | What happens if you miss it |
|---|---|---|
| Held for investment at the exchange | Property in a 1031 exchange must be held for investment or business use. A replacement house you plan to move into is personal use, and an exchange into personal-use property fails entirely. | The whole deferred gain is recognized in the exchange year, with penalties if the intent was documented (the email to the realtor about retiring there). |
| Rev. Proc. 2008-16 safe harbor | For each of the two 12-month periods after the exchange, the replacement dwelling is rented at fair rent to someone for at least 14 days, and your personal use does not exceed the greater of 14 days or 10% of the rental days. (The same test applies to the relinquished property for the two years before.) | Outside the safe harbor the exchange can still be valid on the facts, but the burden is yours. Two years of real tenants is the clean answer; a few months and a family member at half rent is not. |
| §121(d)(10) five-year rule | No home sale exclusion on a residence acquired in a like-kind exchange within the five years before the sale. | Sell in year four and the exclusion is zero; the recapture and the fraction still apply. Count from the exchange closing date. |
And the arithmetic from sections 2 and 3 still runs: the two safe-harbor rental years are nonqualified use, the deferred gain is in the low basis, and depreciation on both properties is recaptured. For a replacement property worth more than the exclusion can cover, the exchange defers more tax than the conversion ever excludes, which brings us to section 8.
↑ Back to topOur view. This option has been in the Code for decades, and when push comes to shove almost nobody takes it. Most landlords live in a nicer house than the rental, and moving into the rental for two years is not an attractive way to save a fraction of the tax on a fraction of the gain. When the gain is large, they do a 1031 exchange, which defers all of it and buys a better property. When the gain is modest, they sell, pay the tax, and get on with their lives, which is a perfectly good tax strategy too. The conversion makes sense in a narrow band: a rental the owner would be happy to live in anyway (the condo near the grandchildren, the mountain house), a short post-2008 rental history, gain that is mostly appreciation rather than depreciation, and no exchange in its past. If the plan is “exchange into the retirement house,” the two safe-harbor rental years and the five-year rule have to be built into the calendar before the first exchange closes, not discovered afterward.
The alternative nobody likes to hear is also the most effective: a rental held until death gets a full step-up in basis, and the depreciation, the deferred exchange gain and the appreciation all disappear. For an owner in their seventies with a paid-off rental and heirs, that beats every therapy on this page.
What is excluded federally is excluded on the DR 0104; what is taxed is taxed at 4.40%, including the recapture. Colorado has no separate capital gains rate. Two local points: the senior homestead property-tax exemption requires ten consecutive years of owner-occupancy, so the clock for it starts at the conversion, not the purchase; and the Colorado real estate withholding of 2% on sales by nonresidents applies to the whole price, not the taxable gain, so a Colorado rental converted by an owner who later moves away is withheld on at sale.
↑ Back to topNo, twice over. The depreciation you took (or should have taken) since 1997 is taxed first, at up to 25%, and cannot be excluded. Then the rest of the gain is split: the share of your ownership period that was rental use after 2008 is taxable, and only the remainder is eligible for the $250,000/$500,000 exclusion.
No. Nonqualified use only counts periods after December 31, 2008. A house rented from 2000 to 2008 and lived in since has no nonqualified use at all, though the depreciation from those years is still recaptured.
Then there is no nonqualified use, as long as you never moved back in and sell within the five-year window (so that the rental years still leave two years of residence in the last five). That is the easy direction. The hard direction, rental first and residence second, is this page.
You can, but the house has to be held as a rental long enough to protect the exchange — the IRS safe harbor is two years with real tenants — and the exclusion is not available until you have owned the property five years from the exchange date. The exchanged-away gain comes along in your basis and is taxed, through the nonqualified-use fraction and the recapture, when you finally sell.
They are frozen, not lost. Moving in is not a disposition. When you eventually sell the house to an unrelated buyer, that sale releases them, and they offset the gain. Keep the Form 8582 carryover alive on every return in between.
Usually not, which is why almost nobody does it. The exchange defers all the tax and lets you buy a better rental; moving into a rental defers nothing, excludes a shrinking fraction, and requires you to live there. It makes sense in a narrow case: a rental you would be glad to live in, owned a short time or long before 2009, with gain that is mostly appreciation rather than depreciation.
For the Tax Shop desk · the limits, elections and recapture rules behind this therapy
Before a tenant’s last month, run the numbers on this page for the three roads — move in, exchange, or sell and pay — and the calendar for each. The answer is usually one of the last two, and the time to know that is before the lease ends, not after you have moved the furniture.
Call 303-734-1040 or stop by the office in Lone Tree. We’ve been reading the footnotes for Douglas County and the Denver area since 1969.
Figures reflect the 2026 tax year as currently published and are rounded for readability. Items marked (verify) are to be confirmed against IRS or Colorado DOR sources before the figures freeze in December. Written October 26, 2026.