They Moved Out and Rented the House for Two Years Before Selling. Everyone Says the Home-Sale Exclusion Still Covers the Whole Gain. It Does, Except for the Depreciation From the Rental Years
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
Homeowners who move out and rent the old house for a couple of years can still use the home sale exclusion to shelter the gain when they sell. The rental years leave the exclusion intact. The depreciation from those years comes back as its own tax bill.
Renting After You Move Out Keeps Your Full Exclusion
Owners who lived in the home as their main home for at least two of the five years before the sale qualify for the exclusion: up to $250,000 of gain tax-free for single filers, or $500,000 for married couples filing jointly in 2026.
The rental stretch after the move-out leaves that cap alone. The one piece that can’t be excluded is the gain equal to the depreciation claimed, or claimable, while tenants lived there.
Where the Tax Code Spells It Out
The exclusion comes from 26 U.S.C. § 121(a). It requires ownership and use as your principal residence “for periods aggregating 2 years or more”[1] during the 5-year window.
Section 121(b)(5)(C)(ii)(I) keeps any part of that window after your last day living there from being considered “nonqualified use” (26 U.S.C. § 121(b)(5)(C)(ii)(I))[1]. Section 121(d)(6) then pulls out gain tied to depreciation for periods after May 6, 1997[1].
IRS Publication 523 (2025) states: if you were entitled to depreciation for rental use, “you cannot exclude the part of your gain equal to any depreciation allowed or allowable.” The 2024 edition gives an example.
Taylor purchases a home for $400,000, moves out, starts renting it on January 1, 2022, and sells it for $600,000. Taylor still gets the exclusion, but can’t exclude the $27,000 of depreciation from the rental years.
Who Gets the Full Break, and Who Gets Less
The full break goes to people who lived in the house first and rented it afterward. When an owner rents first and moves in later, those earlier rental years are considered nonqualified use.
Gain gets allocated to those years in proportion to the share of your total ownership they cover, and that piece can’t be excluded (26 U.S.C. § 121(b)(5)(A)-(B))[1]. Only time after January 1, 2009[1] counts.
Married couples get the $500,000 cap if either spouse meets the ownership test, both meet the use test, and neither claimed the exclusion on another home sale within the previous two years. A long enough rental period drives the two years of living there out of the five-year window, taking the exclusion with them.
Figuring the Tax Owed at Closing
- Ownership and use dates. The five years before the sale must include at least two years of living in the home.
- Rental depreciation total. Schedule E returns hold this figure. Worksheet 2 in Publication 523 asks for “any depreciation you took or were allowed to take” for rental use, and that amount brings down your basis.
- Apply the exclusion to the rest. Gain beyond the depreciation is covered up to $250,000 or $500,000.
- Tax the depreciation piece. It’s unrecaptured section 1250 gain, assessed at a maximum federal rate of 25%[2] under 26 U.S.C. § 1(h)(1)(E). Publication 523 notes that Form 4797 is used to report recapture.
- Net investment income surtax. The 3.8% net investment income tax can apply to taxable gain once modified adjusted gross income passes $200,000 for single filers or $250,000 for joint filers.
Any gain above the cap is taxed at long-term capital gains rates. In 2026, the 20% rate starts above $545,500 of taxable income for single filers, while joint filers hit it above $613,700.
Depreciation You Never Claimed Still Gets Taxed
Plenty of landlords skip depreciation, figuring that if they never claim it, there’s nothing to pay back. The IRS uses “allowed or allowable,” which means the amount you could have taken. In Publication 523’s Cartier example, the seller “can’t exclude the part of the gain equal to the depreciation Cartier claimed, or could have claimed.”
Publication 551 says that if you didn’t take a depreciation deduction, you “reduce the basis by the full amount of the depreciation you could have taken.” Skipping it gives up the deduction every year and still leaves the tax due at sale.
The exclusion covers the gain, and the rental years get charged separately at up to 25%. That figure can be calculated from Schedule E records before the house is listed.
Contact [email protected] for any questions or corrections.








