Know your numbers
Rented out your old home? You have 3 years to sell it tax-free
If you moved out and rented your old home, you keep the Section 121 exclusion until exactly 3 years after your move-out date. At that point the 5-year lookback no longer holds 2 years of living there, and the exclusion is gone (IRS Publication 523).
Nobody tells you there is a clock
You moved. Maybe the new job started before the old house sold. Maybe the offers that spring looked thin. Maybe a good tenant turned up before a good buyer did. Either way, you now own a rental you used to sleep in, and you are what the industry calls an accidental landlord.
Here is the part that catches people. The tax break you would have received by selling that house as your home did not vanish when the tenant moved in. It is still sitting there. It expires on a specific date, and you can work that date out today.
What the exclusion is worth
When you sell your main home, a large slice of the gain can stay off your tax return entirely. The maximum gain excluded on the sale of a main home is $250,000 for a single filer and $500,000 for a married couple filing jointly, according to IRS Publication 523, Selling Your Home.
That figure applies to gain, not to sale price. Gain is roughly what you sell for, minus what you paid, minus what you spent on improvements and selling costs. For a house held through a long stretch of rising prices, the gain can be a serious number, which is what makes the exclusion worth protecting.
The test behind the date
The rule is usually called the 2 of 5 test. To qualify, you must have owned and lived in the home as your main home for at least 2 of the 5 years before the sale, per IRS Publication 523, Selling Your Home.
The word that matters is before. The window is measured backwards from the day you sell, which means it travels with you. Every month you hold the property as a rental, the far edge of that lookback slides forward and swallows another month of the time you actually lived there. Nothing about your past changes. The frame around it does.
Why the answer is three years
Follow that arithmetic to its end and it produces one date. The window closes exactly 3 years after the day you moved out, because on that day the 5-year lookback no longer contains 2 years of living there (derived from the 2-of-5 use test in IRS Publication 523, Selling Your Home).
Sell on or before that date, and the ordinary rule is available to you. Sell after it, and the ordinary rule no longer applies. This is why the date deserves a place in your calendar rather than a vague spot in the back of your mind. Listing, showing, negotiating and closing all take time, and the closing is the part that has to land inside the window.
Renting it out does not shrink the break
A common worry is that every month of rent chips away at the exclusion. For this situation, it does not. Time as a rental after your last day living there is not nonqualified use, so the full exclusion holds until the deadline, per IRS Publication 523, Selling Your Home.
So the answer is not a sliding scale. It is a cliff. Collecting rent for the whole stretch leaves the exclusion exactly as large as it was the day you handed over the keys, right up to the moment it ends.
Depreciation is the part you still owe
One piece is carved out. Depreciation claimed after May 6, 1997 is taxed at up to 25% when you sell and is not covered by the exclusion, according to IRS Publication 523, Selling Your Home.
In practice that means two separate calculations at closing. The gain gets the exclusion. The depreciation you took while the house was a rental gets handled on its own terms. Pull your depreciation schedule now rather than at the closing table, because it changes what you actually walk away with and it is easier to read when you are not in a rush.
You are not the only one in this position
This path into landlording is more common than it looks from the inside. In early 2026, 2.3% of homes listed for rent on Zillow had recently been listed for sale, a three-year high, according to Zillow Research, March 2026, Number of Accidental Landlords Rises to Three-Year High.
Each one of those is a household that owns a rental it did not plan to own, and a clock that started running on move-out day.
Get your date
The two inputs are the date you bought the house and the date you stopped living in it. That is all the calculation needs.
Find your own date
Two dates in, your deadline out. The example is a couple who bought in 2018, moved out in January 2025 and rented the home. Change any field to make it yours.
Sale must close by
January 10, 2028
Window open: about 15 months left
Renting the home out in the meantime does not shrink the exclusion. What it adds is depreciation, which is taxed when you sell either way. The closing date is the one that counts.
What is at stake
- Estimated gain
- $460,000
- Exclusion limit (married)
- $500,000
- Gain that can be tax-free
- $460,000
- Federal tax you avoid by closing in time
- $69,000 to $109,480
15% for most sellers, up to 20% plus the 3.8% net investment income tax at the top bracket. State tax is extra and varies.
Planning math, not tax advice. Assumes you lived there from purchase to move-out; improvements and selling costs lower the real gain. Amber under 180 days.
Get a reminder before your dateThe Tax-Free Window calculator takes your purchase date and your move-out date and gives you the deadline. It needs no account, and it can email you a reminder before the window closes.
What to do once you know the date
Write the date somewhere you will see it again. A calculator tab you closed is not a plan.
Work backwards from it. The date applies to the sale, so the marketing, the offer and the closing all have to fit in front of it.
Then decide honestly. Some people run the numbers and keep the rental anyway, because the rent, the interest rate or the long hold makes sense to them. That is a legitimate answer. It is only a bad outcome when the window closes without anyone noticing it was open.
Finally, take the date and your depreciation records to a tax professional before you list. Your basis, your filing status and your particular history decide what the exclusion is worth to you, and that conversation is much shorter when you arrive with the dates already settled.
Frequently asked questions
Does the clock start when I bought the house or when I moved out?
Both dates matter, but the deadline is driven by your move-out day. Ownership establishes that you held the home, while the deadline itself falls exactly 3 years after the day you stopped living there (derived from the 2-of-5 use test in IRS Publication 523, Selling Your Home).
Does collecting rent reduce how much gain I can exclude?
No. Time as a rental after your last day living there is not nonqualified use, so the full exclusion holds until the deadline, per IRS Publication 523, Selling Your Home. It does not shrink month by month, it simply ends.
What happens to the depreciation I claimed while renting?
It is handled separately from the exclusion. Depreciation claimed after May 6, 1997 is taxed at up to 25% when you sell and is not covered by the exclusion, according to IRS Publication 523, Selling Your Home.
How much gain can I actually exclude?
The maximum gain excluded on the sale of a main home is $250,000 for a single filer and $500,000 for a married couple filing jointly, according to IRS Publication 523, Selling Your Home. That applies to gain, not to sale price.
Does the deadline apply to the offer date or the closing date?
The test looks at the sale, so plan around the closing rather than the listing. Build in enough time for marketing, negotiation and settlement so the sale lands inside the window rather than just after it.