Homeowners who move out and lease their old house for a couple of years can still rely on the home-sale exclusion when they eventually sell. Those rental years do not wipe out the exclusion. What does get carved out is the depreciation from the rental period, which is taxed separately.
Renting After You Move Out Preserves the Exclusion
If owners used the house as their main residence for at least two of the five years before the sale, they may qualify for the exclusion: up to $250,000 of gain for single filers, or $500,000 for married couples filing jointly.
The rental period after moving out does not reduce that limit. The only amount that cannot be excluded is the gain tied to depreciation that was claimed, or could have been claimed, while the property was rented.
What the Tax Code Says
The exclusion is based on 26 U.S.C. § 121(a), which requires ownership and use as a principal residence for periods totaling two years or more during the five-year lookback window.
Section 121(b)(5)(C)(ii)(I) excludes the period after you last lived in the home from counting as “nonqualified use.” Section 121(d)(6) then removes gain attributable to depreciation taken for periods after May 6, 1997.
IRS Publication 523 explains that if you were allowed depreciation for rental use, you cannot exclude the portion of your gain equal to that depreciation. The publication’s example illustrates the rule.
For example, Taylor buys a home for $400,000, moves out, rents it beginning January 1, 2022, and later sells it for $600,000. Taylor can still use the exclusion, but the $27,000 of depreciation from the rental years remains taxable.
Who Qualifies for the Full Exclusion
The full benefit generally goes to owners who lived in the house first and rented it afterward. The rule is different when a person rents the property first and moves in later, because those earlier rental years are treated as nonqualified use.
In that situation, gain is allocated to the nonqualified-use years based on the portion of total ownership they represent, and that part cannot be excluded. Only time after January 1, 2009 counts for that allocation.
Married couples can use the $500,000 exclusion if either spouse meets the ownership test, both spouses meet the use test, and neither spouse claimed the exclusion on another home sale within the prior two years. A long enough rental period can push the two years of residence outside the five-year window, which can eliminate the exclusion entirely.
How the Tax Is Calculated at Closing
- Check ownership and use dates. The five years before the sale must include at least two years of living in the home.
- Total the rental depreciation. Schedule E records show this amount. Worksheet 2 in Publication 523 asks for any depreciation you took, or were allowed to take, for rental use, and that reduces your basis.
- Apply the exclusion to the remaining gain. Gain beyond the depreciation amount is sheltered up to $250,000 or $500,000.
- Tax the depreciation portion. This is unrecaptured section 1250 gain, taxed at a maximum federal rate of 25% under 26 U.S.C. § 1(h)(1)(E). Publication 523 says Form 4797 is used to report the recapture.
- Consider the net investment income tax. The 3.8% net investment income tax can apply once modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers.
Any gain above the exclusion limit is taxed at long-term capital gains rates. For 2026, the 20% rate begins above $545,500 of taxable income for single filers and above $613,700 for joint filers.
Unclaimed Depreciation Still Matters
Many landlords assume that if they never took depreciation, they have nothing to repay later. But the IRS uses the standard of “allowed or allowable,” meaning the amount that could have been taken. In Publication 523’s Cartier example, the seller cannot exclude the part of the gain equal to the depreciation Cartier claimed, or could have claimed.
Publication 551 says that if you did not take a depreciation deduction, you must still reduce your basis by the full amount you were eligible to claim. Skipping depreciation means losing the deduction each year without escaping tax at sale.
The exclusion protects the home-sale gain, while the rental-period depreciation is taxed separately at up to 25%. That amount can be determined from Schedule E records before the property is listed.
More from Digilifetrends
Reverse Mortgages Make Sense Only for Lifelong Homeowners — Start by Comparing Cheaper Alternatives
Once you turn 62, a reverse mortgage can convert home equity into cash without monthly payments, but the upfront charges can reach thousands of dollars and the loan balance keeps…
2 min read · Published 2026-11-29Buying a Home With a Friend? Put a Co-Ownership Deal in Place Before Closing
Buying a house with a friend can be a workable arrangement, but the lender still considers each borrower responsible for the full mortgage. That is why it is important to have a…
3 min read · Published 2026-11-29Buying a Condo: HOA Records Can Reveal an Upcoming Special Assessment
A condo’s purchase price covers your unit, but the association’s finances determine what you may owe after you move in. Before your deposit becomes nonrefundable, review the HOA…
2 min read · Published 2026-11-29