Licensed Fiduciary AdvisorsServing property owners & investors nationwide
Tax Strategy · 6 min read

You moved out and rented your old house. What can you still exclude?

Renting your former home usually does not cost you the Section 121 exclusion. The nonqualified use rule bites in the other direction, and the clock you should be watching is three years.

Most people believe that renting out their old house poisons the tax break on it. They moved out, found a tenant, and quietly assumed the $500,000 exclusion was gone.

Usually it is not. And the reason it is not turns on a detail in the statute that even careful advisors sometimes get backwards.

But there is a clock running, and almost nobody knows when it started.

The test that actually applies

Section 121 lets a married couple filing jointly exclude up to $500,000 of gain on a principal residence, $250,000 for a single filer. To qualify you must have owned the home for at least two years and used it as your principal residence for at least two years, and the use has to fall within the five-year period ending on the date of sale.

Those two years do not need to be consecutive. They do not need to be recent. They only need to sit somewhere inside that trailing five-year window.

Which means the moment you move out, you have three years to sell before the window closes on you. Not five. Three. Because you need two qualifying years to still be inside a five-year lookback, and once you have been gone for three years, only two years of the window remain and none of them were residence years.

That three-year runway is the single most useful number in this article.

The part people get backwards

Here is where it gets interesting. There is a rule, added for periods after 2008, that strips the exclusion for "nonqualified use," meaning stretches when the property was not your principal residence. Gain gets allocated between qualified and nonqualified periods, and the nonqualified slice is not excludable.

Read that quickly and you conclude that renting your old home for two years costs you two years' worth of exclusion.

It does not. The statute contains a carve-out: periods after the last date the property was used as your principal residence do not count as nonqualified use.

So the order of events decides everything:

  • Lived in it, then rented it. The rental period comes after your last day of residence. Not nonqualified use. Your exclusion survives intact, so long as you sell inside the window.
  • Rented it, then moved in. The rental period comes before. That is nonqualified use, and it reduces your exclusion proportionally.

The haircut is real, but it bites people converting a rental into a home, not people converting a home into a rental. If someone tells you your post-move-out rental years dilute the exclusion, ask them to read the carve-out.

The one piece you do not get to exclude

Section 121 does not shelter depreciation. Any depreciation allowed or allowable while the property was a rental after May 6, 1997 comes back as unrecaptured section 1250 gain, taxed at a federal rate of up to 25%.

Note the phrase allowed or allowable. If you rented the property and never claimed depreciation, the recapture is generally computed as though you had. Skipping it does not avoid it.

A worked example

The Alvarezes bought in 2019 for $400,000. They lived there until spring 2024, moved for work, and rented it out. They are selling in late 2026 for $900,000. They file jointly.

  • Owned: about 7 years. Used as principal residence: about 5 years, the last of which ended in 2024.
  • Sale is roughly two and a half years after move-out, so residence use still sits inside the five-year lookback. They qualify.
  • Depreciation taken over the rental period: roughly $29,000.
Component Amount Treatment
Gain on sale $500,000
Unrecaptured section 1250 gain $29,000 Taxable at up to 25%, roughly $7,250
Remaining gain $471,000 Excluded under section 121
Federal tax on the sale Roughly $7,250

Now change one fact. Suppose they rent it through 2028 instead. By then they have been out for more than three years, the five-year window no longer contains two years of residence use, and the entire $500,000 is exposed. At that point Section 121 is gone and a 1031 exchange becomes the tool that matters, because the property is now unambiguously investment property.

Figures are illustrative and ignore state tax, selling costs, and your other income. Your CPA determines the actual numbers.

When both sections apply at once

If you sell inside the window and the property is a rental at the time, you may be able to use both: exclude gain under Section 121 and defer the rest under Section 1031. Revenue Procedure 2005-14 addresses how the two interact. Cash you take out up to the exclusion amount is not automatically taxable boot, which is a meaningfully better outcome than most people expect.

The sequencing and the paperwork matter here, and this is not a do-it-yourself moment. See our piece on combining sections 121 and 1031 on a mixed-use property for the adjacent case where you lived in part of the building while renting the rest.

Two further wrinkles worth knowing:

  • If the property came to you through a 1031 exchange, you must own it for at least five years before Section 121 is available at all, and the exclusion is further limited. See converting a 1031 property into your primary residence.
  • The exclusion is not once in a lifetime, but you generally cannot use it more than once in any two-year period.

If your real goal is to stop being a landlord without triggering the gain, a Delaware Statutory Trust is one replacement property option. DSTs are private placements available only to accredited investors, they are illiquid, you give up control, distributions are not guaranteed, and you can lose principal.

Questions we field about former residences

How long can I rent my old home and still exclude the gain?

Roughly three years after you move out. You need two years of residence use inside the five-year period ending at sale, so the practical deadline is three years from your last day living there.

Do my rental years reduce the exclusion?

Generally not, if the rental came after you stopped living there. Periods after the last date of principal residence use are carved out of the nonqualified use rule.

What if I never claimed depreciation on the rental?

Recapture is generally computed on depreciation allowed or allowable, so not claiming it usually does not help. Ask your CPA whether an accounting method change is worth pursuing.

Can I use the exclusion and a 1031 exchange on the same sale?

Potentially yes, where the property is investment property at sale and you still satisfy the Section 121 use test. Revenue Procedure 2005-14 governs the interaction.

Does moving back in later reset anything?

It can help you re-satisfy the use test, but time the property spent as a rental before that residence period is nonqualified use and will reduce the exclusion proportionally.

Talk Through Your Options