Tax Shop
Lone Tree, Colorado

Tax Aversion Therapies · for landlords

Converting a Rental to Your Residence

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.

← All therapies

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.

On this page

  1. 1. The Exclusion Applies to a Former Rental Two of five years, counted from the day you move in
  2. 2. The Nonqualified-Use Fraction Every post-2008 rental year shrinks the exclusion
  3. 3. Depreciation Comes Back First Unrecaptured §1250 gain, up to 25%, allowed or allowable
  4. 4. The Calculator Dates, basis, depreciation, price; it does the worksheet
  5. 5. Worked Examples A 2016 rental; a 2021 rental; a 1031 replacement
  6. 6. If the Rental Came From a 1031 Exchange The five-year rule and the Rev. Proc. 2008-16 safe harbor
  7. 7. Suspended Losses, the Basis, and the Paperwork What moving in does and doesn’t do
  8. 8. When Anyone Actually Does This Our view: the exchange, or just pay
  9. 9. Colorado
  10. Questions we get
  11. Side effects
  12. Contraindications

1. The Exclusion Applies to a Former Rental

The IRS calls it: §121(a), Reg. §1.121-1

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 top

2. The Nonqualified-Use Fraction

The IRS calls it: §121(b)(5), periods of nonqualified use

Dose: 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:

  • Any time in the five-year window after you last used the house as your residence. This is why the other direction (live first, rent later, sell within three years) is clean: rental use after residence use doesn’t count.
  • Up to ten years of qualified official extended duty (military, Foreign Service, intelligence).
  • Up to two years of temporary absence for a job change, health, or unforeseen circumstances.

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 top

3. Depreciation Comes Back First

The IRS calls it: §121(d)(6) and unrecaptured §1250 gain, §1(h)(6)

Dose: 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 top

4. The Calculator

The IRS calls it: Publication 523, Worksheet 2, with the nonqualified-use lines

Former rental sold as a residence

Enter 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.

Dates
Money

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.

↑ Back to top

5. Worked Examples

The IRS calls it: Worksheet 2, filled in

A rental since 2016, lived in from 2026, sold 2028

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.

A rental since 2023, lived in from 2026, sold 2029

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 1031 replacement, rented two years, then home

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.

↑ Back to top

6. If the Rental Came From a 1031 Exchange

The IRS calls it: §121(d)(10), Rev. Proc. 2008-16, Rev. Proc. 2005-14

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.

RuleWhat it requiresWhat happens if you miss it
Held for investment at the exchangeProperty 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 harborFor 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 ruleNo 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 top

7. Suspended Losses, the Basis, and the Paperwork

The IRS calls it: §469(g), Reg. §1.168(i)-4(c), Form 8582, Form 4797 and Schedule D

  • Suspended passive losses from the rental years are not released when you move in; conversion to personal use is not a disposition. They ride along on Form 8582 and are released when the house is sold to an unrelated party in a fully taxable sale — which the eventual sale is, even though it is now your home — and offset the gain that year. Keep the carryover on every return in between.
  • Depreciation stops on the conversion date (Reg. §1.168(i)-4(c)); the year of conversion gets a partial year. Nothing is recaptured until sale.
  • Basis is unchanged by the conversion: cost plus improvements minus depreciation. Improvements you make while living there add to it.
  • Mortgage interest becomes home mortgage interest (Schedule A, subject to the $750,000 limit) instead of a rental expense; property tax goes to Schedule A under the SALT cap; the rest of the carrying costs stop being deductible at all.
  • Reporting the sale: the whole transaction is reported on Form 8949 and Schedule D with the exclusion shown as an adjustment (code H), the unrecaptured §1250 gain carried to the Schedule D worksheet, and — since the house was business property within the ownership period — often Form 4797 Part III for the recapture computation. The 1099-S will be issued; the exclusion doesn’t stop it.
  • The home office and the other direction. If you ran a home office in the house before, during or after, the same rules apply to that portion. And if you later move out and rent it again, the post-residence rental period is not nonqualified use within the five-year window, so a second exclusion is possible two years after the last one.
↑ Back to top

8. When Anyone Actually Does This

The IRS calls it: nothing; this is our experience

Our 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.

↑ Back to top

9. Colorado

Colorado calls it: nothing; it starts from federal taxable income

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 top

Questions we get

If I move into my rental and live there two years, is the whole gain tax-free?

No, 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.

Does the rental time before 2009 count against me?

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.

What if I lived there first, then rented it, then sold?

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.

I did a 1031 exchange into this rental. Can I move in next year?

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.

Do my suspended passive losses disappear when I move in?

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.

Is this better than just doing a 1031 exchange?

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.

↑ Back to top

Side effects

  • Two years of living in the rental, provably: license, voter registration, mail, and no other house that looks more like home
  • Depreciation recapture at up to 25% on every year of rental, claimed or not; a Form 3115 if it wasn’t claimed
  • An exclusion shrunk by every post-2008 rental year, and dilutable only slowly by living there longer
  • Loss of the rental deductions (interest beyond the home limits, taxes beyond the SALT cap, insurance, repairs) during the residence years
  • For a 1031 replacement: two years of real tenants, a five-year wait before any exclusion, and an exchange that can unravel if the move-in was planned from the start
  • Suspended losses frozen until the sale; a disposition to a relative doesn’t release them
↑ Back to top

Contraindications

For the Tax Shop desk · the limits, elections and recapture rules behind this therapy

  • §121(b)(5): nonqualified use after 12/31/2008 (Housing Assistance Tax Act of 2008 §3092); fraction = nonqualified days / total ownership days; applied to gain after the §121(d)(6) depreciation; exceptions (b)(5)(C)(ii): post-residence period within the 5-year window, ≤10 years extended duty, ≤2 years temporary absence. Pub. 523 Worksheet 2 lines and the “business or rental use” section.
  • §121(d)(6): no exclusion for gain to the extent of depreciation adjustments after 5/6/1997, allowed or allowable (§1016(a)(2)); unrecaptured §1250 gain §1(h)(6), 25% ceiling; NIIT §1411 on both pieces for a sale of a residence? — the exclusion amount is excluded from NII, the taxable remainder is included.
  • §121(d)(10): property acquired in a §1031 exchange — no exclusion if sold within 5 years of acquisition (AJCA 2004). Rev. Proc. 2005-14: §121 applied before §1031 on the same property, depreciation gain not excluded, boot offset. Rev. Proc. 2008-16: dwelling-unit safe harbor — two 12-month periods, ≥14 days fair rental, personal use ≤ greater of 14 days / 10%; Moore v. Commissioner, T.C. Memo 2007-134 (vacation home not held for investment); Goolsby, T.C. Memo 2010-64 (moved into replacement two months after exchange, exchange failed); Reesink, T.C. Memo 2012-118 (eight months of genuine rental efforts, exchange upheld).
  • Residence test: Reg. §1.121-1(b)(2) facts and circumstances; Guinan, Gates, and the utility-bill cases. Two years need not be continuous; short absences (vacations) count as use.
  • Conversion: Reg. §1.168(i)-4(c) conversion to personal use — depreciation ceases, no recapture at conversion; §469(g)(1)(A) disposition releases suspended losses only on a fully taxable sale to an unrelated person; conversion is not a disposition (Reg. §1.469-2T(c)(2)(iii)? — see Pub. 925). Reconversion to rental later: Reg. §1.168(i)-4(b) lesser of basis or FMV at that date for depreciation.
  • Reporting: Form 8949 code H for the exclusion; Form 4797 Part III for §1250 property held in a trade or business within the period? — Pub. 523 directs the sale of a home with business use to Form 4797 only for the business portion at sale; a fully converted residence goes on 8949/Schedule D with the unrecaptured §1250 worksheet. Form 3115 DCN 7 for allowable-not-allowed depreciation (Rev. Proc. 2015-13), §481(a) in the year of sale.
  • Colorado: DR 1079 2% nonresident withholding (C.R.S. §39-22-604.5); senior homestead C.R.S. §39-3-203. No state capital gains preference.
  • Calculator: client-side; gain = price − costs − (basis − depreciation); recapture = min(depreciation, gain); NQ fraction = post-2008 rental days before move-in / total days (sell − buy); excluded = min(limit, (gain − recapture) × (1 − fraction)); checks 730 days of use in the 5-year window from the dates entered. Source article: Ashman, NATP TAXPRO Monthly, Feb. 2014 (facts updated).

What to do about it

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.

← All therapies

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.