Skip to content
Clear Money Guide Calculate fees
Menu

Rental Converted to Primary Residence: What the Exclusion Covers

GuidesHome Sale Taxes

Updated July 30, 2026. Quick answer (2026): Moving into a former rental does not make the whole gain excludable. Section 121(b)(5) allocates gain to post-2008 rental years and that portion stays taxable, on top of depreciation recapture at up to 25%.

The allocation above is where planning actually changes the number.

Nonqualified-use allocation and depreciation recapture both respond to timing and to how a property is held. The matching service below introduces you to advisers who pay to meet you.

Before you start, what actually happens. The form is run by Kapitalwise, our advisor-matching partner. It asks about nine questions — age, investable assets, location — then your name, email and phone number, and verifies the phone by text.

Kapitalwise sends your details to advisers who pay for the introduction, so expect calls and texts. Clear Money Guide is paid when you submit the form, whether or not you ever hire anyone. Nothing loads and nothing reaches Kapitalwise until you press the button.

Compare fees, scope, conflicts, credentials and fiduciary duty before you hire anyone.

The Kapitalwise form opens here — you stay on this page.

Moving in does not make the whole gain excludable

This is the case where the intuitive answer is wrong. A landlord who moves into a rental, lives there two years, and sells does not get to exclude the whole gain. Section 121(b)(5) allocates gain to “periods of nonqualified use” and that portion is not excludable at all.

The allocation, and the date that governs it

The statute allocates gain by the ratio of “the aggregate periods of nonqualified use during the period such property was owned by the taxpayer” to “the period such property was owned.” Critically, 121(b)(5)(C)(i) defines a period of nonqualified use as any period “other than the portion of any period preceding January 1, 2009” during which the property was not the principal residence. Rental years before 2009 are simply not counted.

The asymmetry nobody expects: rent-then-live is penalised, live-then-rent is not

Section 121(b)(5)(C)(ii) excludes from nonqualified use “any portion of the 5-year period … which is after the last date that such property is used as the principal residence.” So renting a home out after you move out is not nonqualified use, while renting it out before you move in is. Two sellers with identical years of rental and residence can owe very different amounts depending purely on which came first.

Worked example

Bought for $300,000 with $25,000 of improvements and $5,000 of buying costs; owned 120 months, of which 48 were post-2008 rental; sold for $800,000 with $48,000 of selling costs; $60,000 of depreciation taken. Realized gain $422,000. Depreciation of $60,000 comes out first at 25 percent. Of the remaining $362,000, forty percent — $144,800 — is allocated to nonqualified use and cannot be excluded. Total federal tax: $37,100, on a sale many owners would assume was fully covered.

Related

Methodology

  • Exclusion caps, the 2-of-5 test, the nonqualified-use allocation, the reduced-exclusion fraction and the depreciation carve-out are taken from the text of 26 U.S.C. 121. The 3.8 percent rate and its thresholds are from 26 U.S.C. 1411. Both were read on 2026-07-30.
  • Section 121 caps and Section 1411 thresholds are written in the statute as fixed dollar amounts with no indexing mechanism, so they are built in. Long-term capital gain brackets ARE indexed annually, so your rate is an input rather than a lookup.
  • Figures were computed by two independently written engines that agree to the cent, and the calculator on this page reproduces both exactly.
  • Federal only. State treatment varies and some states do not follow the federal exclusion.

Educational estimate, not tax advice, and not a filed return. Federal only. Confirm anything that changes a filing decision with a CPA or tax attorney.

Editorial standards: Editorial Policy | Corrections | Disclaimer

Leave a Comment

Your email address will not be published. Required fields are marked *