Transitioning a rental property into your primary residence is a sophisticated move that can significantly impact your long-term wealth. For many property owners, the goal is to tap into the Section 121 exclusion—the tax rule allowing individuals to exclude up to $250,000 (or $500,000 for married couples) of capital gains from federal income tax. However, this is not a simple “move in and cash out” scenario.
While the strategy remains viable, the Internal Revenue Service (IRS) has tightened regulations to ensure taxpayers don't bypass their obligations on rental income. Understanding the nuances of depreciation recapture and “nonqualified use” is essential for any homeowner or real estate investor looking to optimize their tax position before putting a former rental on the market.
In this guide, we will break down the ownership and use tests, the math behind prorated exclusions, and the record-keeping requirements necessary to defend your position during an audit.
To qualify for the capital gains exclusion, you must generally satisfy two primary requirements: the ownership test and the use test. You must have owned the property for at least two years and lived in it as your main home for at least two years within the five-year period ending on the date of the sale.
The beauty of this rule is its flexibility; those 24 months of residence do not need to be consecutive. You can move in and out of the property, provided the cumulative total hits the two-year mark within the lookback window. However, the timeline is precise. Even being short by a few weeks can disqualify a significant portion of your exclusion, making a detailed calendar of your residency essential.
One of the most frequent surprises for homeowners is “depreciation recapture.” While you rented the property, you likely claimed a depreciation deduction to offset rental income. The IRS views this as a “down payment” on your eventual tax bill. When you sell the property, any gain attributable to depreciation taken after May 6, 1997, is taxed at a maximum rate of 25% and cannot be excluded under the home sale rules.

Consider a scenario where you purchased a property for $200,000 and claimed $30,000 in depreciation over several years. Your adjusted basis drops to $170,000. If you sell the home for $320,000, your total gain is $150,000. The first $30,000 of that gain—the amount representing the depreciation—is fully taxable. Only the remaining $120,000 is potentially eligible for the Section 121 exclusion. Crucially, the IRS applies this rule whether you actually claimed the deduction or not, as the law requires basis reduction for depreciation “allowed or allowable.”
Before 2009, taxpayers could move into a rental for two years and exclude the entire gain (minus depreciation). Congress changed this with the Housing Assistance Tax Act of 2008. Now, if you used the property for a purpose other than your main home (nonqualified use) after 2008, a portion of the gain is ineligible for the exclusion based on a time-weighted ratio.
This “nonqualified use” period generally includes any time after 2008 that the property was not used as a primary residence by the taxpayer or their spouse. However, there are exceptions, such as periods occurring after the last day you used the property as your primary home within the five-year window.
The math follows a simple fraction: the time the property was rented after 2008 divided by the total time you owned the property. For example, if you owned a home for 10 years (120 months), rented it for the first 6 years (72 months), and lived in it for the final 4 years (48 months), then 60% of your total gain (72/120) is considered non-excludable. Even if you meet the two-year residency test, that 60% remains taxable. This highlights why long-term planning is vital; the longer you live in the home as a primary residence after the rental period, the lower that taxable percentage becomes.
Complexity increases if your property served dual roles simultaneously. If you operated a home office or rented out a separate basement apartment while also living in the main house, the IRS may require you to bifurcate the sale. Gains must be allocated between the residential portion and the business portion. While the residential gain may be excluded, the portion tied to the business or separate rental unit typically remains taxable, alongside the depreciation associated with that specific space.

Successful tax planning requires more than just knowing the rules; it requires bulletproof documentation. To ensure your exclusion is maximized, you should maintain a “permanent file” for the property. This includes your original purchase HUD-1 or Closing Disclosure, receipts for capital improvements (which increase your basis and lower your taxable gain), and detailed depreciation schedules from previous tax returns.
Keep in mind that life doesn't always go according to plan. If you are forced to sell before hitting the two-year mark due to a change in employment, health issues, or unforeseen circumstances, you may qualify for a partial exclusion. This prorated relief can still save thousands of dollars, but it requires meeting specific IRS safe harbor definitions. Additionally, if the property was originally acquired through a 1031 exchange, separate five-year ownership rules apply before the exclusion can be claimed.
Converting a rental into a primary residence is a powerful lever for wealth preservation, but the interplay between depreciation recapture and nonqualified use rules makes it a minefield for the unprepared. By mapping out your residency timeline and calculating your potential basis early, you can make informed decisions about when to sell and how much to set aside for the tax collector.
If you are considering moving into your rental or are preparing to sell a recently converted home, our firm can help you run the projections and ensure your reporting is accurate. Schedule a consultation today to review your property history and develop a strategy that keeps more of your equity in your pocket.
Sign up for our newsletter.