Many property owners in Gilbert consider moving into their rental units as a strategic lifestyle and financial move. While the prospect of potentially excluding a significant portion of your capital gains is attractive, the Internal Revenue Service (IRS) has established specific hurdles to prevent simple tax avoidance strategies. Understanding the mechanics of the Section 121 exclusion and the potential tax traps is essential for any real estate investor looking to protect their equity.
At Martinez & Shanken PLLC, we often consult with clients who assume that simply changing their mailing address solves the tax puzzle. However, the intersection of rental depreciation and nonqualified use rules can turn a tax-favored sale into a complex compliance challenge. By understanding the math and the timing requirements today, you can better position yourself for a successful sale in the future.
The primary residence exclusion is one of the most generous provisions in the tax code. Under Section 121, you can generally exclude up to $250,000 of gain from the sale of your home—or up to $500,000 for qualifying joint filers. This benefit allows you to walk away with a substantial profit without owing federal income tax on that gain. Consequently, landlords often look to convert investment properties into personal residences to capture this benefit.

However, the rules changed significantly in 2009. Previously, if you lived in a home long enough, you could exclude nearly all the gain regardless of its history as a rental. Today, Congress requires a more nuanced approach. Any appreciation in value tied to rental periods occurring after 2008 must be carefully accounted for, as these periods are considered nonqualified use.
To qualify for the exclusion, you must satisfy two primary requirements: the Ownership Test and the Use Test. Generally, you must have owned the property for at least two out of the five years preceding the sale. Additionally, you must have lived in the home as your primary residence for at least two years within that same five-year window.
The two years of residency do not need to be continuous, nor do they have to be the two years immediately preceding the sale. The IRS measures these periods in days or months, which makes precise record-keeping vital. For Gilbert property owners, maintaining utility bills, voter registration, and vehicle records can provide the necessary evidence to prove your residence during the lookback period if the IRS ever questions the timeline.
One of the most common surprises for former landlords is depreciation recapture. While you owned the property as a rental, you were allowed (or required) to take depreciation deductions to account for the property's wear and tear. This depreciation reduces your tax basis. When you sell the home, the portion of your gain that represents this accumulated depreciation is taxed at a flat rate of 25% and cannot be excluded under the Section 121 rules.
Consider an example: you purchased a Gilbert home for $200,000 and claimed $30,000 in depreciation while renting it out. If you later sell it for $320,000, your adjusted basis is $170,000, resulting in a $150,000 gain. The first $30,000 of that gain is taxable as recapture, while only the remaining $120,000 is potentially eligible for the exclusion. Crucially, even if you failed to claim depreciation on your past tax returns, the IRS calculates your gain as if you had, making it imperative to review your old tax returns with a CPA.
If you rented the property after 2008, the law requires you to pro-rate your exclusion based on qualified versus nonqualified use. Nonqualified use refers to any period during which the property was not used as your main residence. This calculation is typically based on the total number of months you owned the property compared to the months it was rented.
For instance, if you owned a property for 10 years (120 months) and rented it for the first 6 years (72 months) before moving in for the final 4 years, 60% of your total gain would be attributed to nonqualified use. This 60% of the gain would be taxable, regardless of the Section 121 exclusion. Only the remaining 40% of the gain would be eligible for the primary residence exclusion, subject to the standard limits and depreciation recapture rules.
Special considerations apply if your property served multiple purposes simultaneously. If you used a portion of the property as a home office or rented out a separate guest house (ADU) on your Gilbert lot, the IRS requires an allocation of the sales price and basis between the personal and business portions. Generally, gain and depreciation associated with a separate structure or distinct business unit cannot be excluded and must be reported as taxable income.
Small business owners in Arizona should also be aware that past 1031 tax-deferred exchanges can complicate your eligibility. If you acquired your home through an exchange, you must generally own the property for at least five years before you can claim any Section 121 exclusion. Furthermore, if unforeseen circumstances like a job relocation or health crisis force a premature sale, you may qualify for a partial exclusion, though the math becomes even more specialized.
Converting a rental into a primary home remains a viable strategy for reducing your tax burden, but it requires meticulous timing and documentation. By coordinating your move-in date and eventual sale date with a clear understanding of your depreciation history and nonqualified use periods, you can maximize your after-tax proceeds. The complexities of basis adjustments, improvement records, and allocation rules mean that professional guidance is often the difference between a smooth transaction and an unexpected tax bill.
If you are considering moving into your rental or planning a sale in the near future, our team can help you run the numbers and document your timeline. Contact Martinez & Shanken PLLC today to schedule a consultation and ensure your real estate strategy is optimized for your long-term financial goals.
Sign up for our newsletters and get our articles delivered right to your inbox.