In the Montana real estate market, flexibility is often the key to financial growth. For many property owners in Billings and across the state, moving into a former rental property to establish it as a primary residence can be a strategic move to secure a significant tax break. However, the transition from landlord to resident isn't just about changing your mailing address; it involves navigating a complex web of IRS rules designed to ensure you pay your fair share on past rental profits.
At our firm, we view your real estate holdings through the lens of our “three-legged stool” philosophy: keeping your books accurate, your taxes optimized, and your financial planning on time. When you decide to convert a rental into your home, you are touching all three legs. This guide provides the clarity you need to understand how the Section 121 exclusion works, why depreciation matters, and how to avoid common pitfalls that could lead to an unexpected tax bill when you finally sell.
The primary incentive for moving into a rental is the Section 121 exclusion. This federal tax provision allows a single filer to exclude up to $250,000 of gain from the sale of their main home, while qualifying joint filers can exclude up to $500,000. For a service-based business owner or real estate professional who has seen property values appreciate in Montana, this can represent a massive tax saving. To qualify, you must pass two primary hurdles: the ownership test and the use test.
Generally, you must have owned the property for at least two of the five years preceding the sale date. Simultaneously, you must have lived in the home as your principal residence for a cumulative total of at least two years (730 days) within that same five-year window. These years do not need to be consecutive, which allows for some flexibility, but the clock is strict. Missing the window by even a few weeks can disqualify a significant portion of your tax-free gain.
While the exclusion sounds generous, the IRS requires you to “repay” the tax benefits you received while the property was a rental. This is known as depreciation recapture. During the years your property was on the rental market, you likely claimed a depreciation deduction to recover the cost of the building over 27.5 years. When you sell, any gain attributable to that depreciation is taxed as unrecaptured Section 1250 gain, which is generally capped at a 25% rate.
It is a common misconception that you can skip this if you simply didn't claim depreciation on your tax returns. The IRS uses the standard of “allowed or allowable,” meaning that even if you missed the deduction, you are still required to reduce your basis and pay the recapture tax upon sale. For a property where you took $40,000 in depreciation, that entire $40,000 will be taxable, even if the rest of your profit falls under the $250,000 or $500,000 exclusion limits.
Prior to 2009, homeowners could move into a rental for two years and potentially exclude the entire gain. However, Congress adjusted the rules to prevent people from “cleansing” years of rental profit through a short period of residency. For any property rented after December 31, 2008, the IRS requires a pro-rata allocation of the gain based on “qualified” versus “nonqualified” use. Periods where the property was used as a rental after 2008 are considered nonqualified use.
Consider a scenario where you owned a property for 10 years, renting it for the first six and living in it for the final four. If the rental period occurred after 2008, 60% of your total gain (6 out of 10 years) would be considered nonqualified and fully taxable. Only the remaining 40% would be eligible for the home sale exclusion. This ratio-based approach underscores why accurate bookkeeping and a clear timeline of your residency are essential for tax optimization.
Many of our clients are subcontractors or small business owners who use a portion of their property for work. If you have a dedicated home office or a separate structure on the lot used for business, the tax treatment diverges. You must allocate the sale price and the adjusted basis between the personal residence portion and the business portion. The gain allocated to the business part is generally taxable, and the specific depreciation taken on that area must be accounted for separately.
This is particularly relevant if you have utilized a 1031 exchange in the past to defer taxes on the property. Integrating a former 1031 property into your primary residence plan adds layers of complexity, including a mandatory five-year ownership requirement before any exclusion can be claimed. Keeping your records of purchase prices, capital improvements, and prior tax filings is the only way to ensure your adjusted basis is calculated correctly and your tax liability is minimized.

Converting a rental into a home is a powerful strategy, but it requires precise timing and honest accounting. By understanding the 5-year lookback window and the impact of nonqualified use, you can make an informed decision on whether to sell now or wait to meet the residency requirements. Our firm is dedicated to building lasting relationships with Montana business owners by providing practical, personal solutions to these high-stakes financial moves.
If you are considering moving into your rental or planning a sale in the near future, we can help you run the numbers and document your timeline to withstand IRS scrutiny. Contact our Billings office today to schedule a consultation and ensure your “three-legged stool” of financial stability remains solid during your next transition.
Sign up for our newsletter.