Skip beyond the Rivewyn header
Rivewyn

3 IRS cutoffs on your home sale after you move out for good

Before you start

Keep your move date, the mover’s name and any written estimate within reach. The sources linked below hold the rules for your state and your kind of move.

Early takeaways

  • The first cutoff is a start line set by statute: periods before it never count as nonqualified use.
  • The second cutoff is the look-back window that ends on your sale date. Only time after you moved out that falls inside that window is protected.
  • The third cutoff is the length of the gap between your move-out and your sale, because the use test has to be met inside the window.
  • The dollar caps are fixed amounts, and a joint return gets the higher cap only when its conditions are met.
  • If you lived there too briefly to pass the use test, a job move that puts your workplace farther from the home can support a partial exclusion, but that partial amount is prorated by months.
  • Write down your move-out date and your closing date, because all three cutoffs run from those two dates.

The short answer

The home sale exclusion keeps part of the profit from a main home out of taxable income. Moving out for good does not end that protection by itself. What changes is how the months after you leave are counted, and the dates below decide that count.

The higher cap applies on a joint return only when its conditions are satisfied.

In short, you can wait to sell as long as your time living there, counted inside the look-back window that ends on the sale date, still meets the use test, and the months after you move out that fall inside that window are not nonqualified use.

This is who it is for

Readers who have moved out of a home they owned, do not plan to move back, and are now choosing a closing date fit this guide best. The rules here assume you used the home as a main residence before the move, so a property you never lived in as a main home sits outside them.

Red flags: a recent sale that already used the exclusion inside the 2-year period before your closing, which the statute treats as a bar; a plan to move back in before the sale; or a closing that runs past the gap limit in the third cutoff below.

Cutoff one: the statute's start date

The statute counts nonqualified use only from its start date forward, and a period counts when the property is not your principal residence, according to the statute text. The months before that start date drop out of the taxable count but stay in the total-ownership count, according to Center for Agricultural Law and Taxation.

In practice, a long ownership history splits in two: the early years are never nonqualified use, and the years after the start date are the ones that can be taxed.

Cutoff two: the look-back window

The use test runs inside a look-back window rather than across your whole ownership. The property must have been your principal residence for periods adding up to 2 years or more during the 5-year period ending on the sale date, according to the federal statute text. The nonqualified-use rule then carves out any part of that 5-year period that falls after the last date you used the home as your principal residence.

That carve-out makes the second cutoff a timing line.

Cutoff three: the move-out gap limit

The third cutoff is the point where your time living there, counted inside the window, no longer meets the use test.

As the sale date moves later, your residence years slide outside the look-back window. It is the cutoff most sellers miss. Past that point the full exclusion is likely gone, not just a slice of it, because the use test itself fails.

The cutoff table puts all three dates in one place.

Cutoff Anchor What the count does
First: statute start The start date set by statute Earlier periods never count as nonqualified use
Second: look-back window 5 years before the sale date Time after your move-out that falls inside this window is not nonqualified use.
Third: use-test gap When counted time living there no longer meets the use test Residence years can slide outside the window

How much gain the exclusion can shelter

The cap depends on whether you file as a single seller or on a joint return.

The cap table sets the single and joint cases beside the job-move proration, so you can see which rule fits your sale.

Filing situation Maximum excluded gain Test that must be met
Single seller The single-filer cap 2 years of use within the 5-year look-back window
Joint return The higher joint cap Either spouse meets ownership and both spouses meet use
Job move, prorated Share of the cap, by months Workplace at least 50 miles farther; share counted in months

The cap is a ceiling on excluded gain, not a discount on the price, so a gain above it leaves the extra part taxable.

When the move was for a job

If you lived there too briefly to pass the use test, the statute allows a reduced cap when the sale is caused by a change in place of employment, health, or, to the extent regulations provide, unforeseen circumstances. A job mover who passes the use test keeps the full cap.

For a seller who lived there too briefly to pass the use test, a work-related move generally qualifies for a partial exclusion when the new place of employment is at least 50 miles farther from the home sold than the former place of employment was, according to a work-move guide.

Full exclusion, partial exclusion, or taxable share

The option table compares the three outcomes side by side.

Outcome Gain it can shelter Who it fits Main limit
Full exclusion Up to the single or joint cap Sellers who pass the use test inside the window Nonqualified months stay taxable
Partial job-move exclusion A reduced cap, prorated by months Job movers who lived there too briefly to pass the use test and whose new workplace is at least 50 miles farther from the home than the old one The sale must be caused by the job change
Taxable gain after a long gap None under the full exclusion if the use test fails Sellers whose residence use inside the window falls short The gain is taxable unless another rule applies

One job-move case worked through

This case follows a seller who moved out for a new job after living in the home too briefly to pass the use test. The new workplace in this case is at least 50 miles farther from the home than the old one, which meets the distance generally required for a work-related move, according to a work-move guide. The full exclusion would need principal-residence use adding up to 2 years or more, according to the federal statute text. That use is counted during the 5-year period ending on the sale date, according to the statute text. This seller falls short of the use test, so a sale caused by the job change points to a reduced cap prorated by months, where gain up to that ceiling can be excluded and gain above it is taxable.

The situation table sorts readers by where they stand before they pick a timing.

Reader situation Timing that fits What to watch
Moved out recently and still inside the window Close inside the window Keep the closing date from slipping
Lived there too briefly to pass the use test, with a new workplace at least 50 miles farther from the home than the old one Partial job-move exclusion Proration by months
Moved out long ago and already past the third cutoff An earlier closing will not bring the full exclusion back The full exclusion is likely gone

Steps to count your own dates

  1. Find the last day you used the home as your main residence. That date is your move-out date, and it marks where the post-move-out count begins.
  2. Take your planned closing date and count back the full look-back period from it. The start of that window is the earliest date the use test and the carve-out look at.
  3. Compare your move-out date with the window start. If your move-out date falls inside the window, the months from move-out to closing are carved out of nonqualified use.
  4. Measure the gap from move-out to closing. Count how much of your time living there still falls inside the window; if it no longer meets the use test, you are past the third cutoff.
  5. Split your ownership period at the statute's start date. Months before that date stay out of the nonqualified count but remain in the total-ownership count.

Common mistakes that cost the exclusion

  • Counting the look-back window from your move-out date. The window runs back from the sale date, so the move-out date only marks where the post-move-out count begins.
  • Assuming a rental after you move out taxes the whole stay. Post-move-out time inside the window is not nonqualified use.
  • Moving back in and then selling. Rental time before you return cannot later count as qualified use.
  • Overlooking an earlier sale. A recent sale that already used the exclusion inside the 2-year period before your closing blocks a new one, as the red flags above note.

Before you list: the paperwork behind the dates

Federal law requires sellers of most pre-1978 housing to disclose any known information about the presence of lead-based paint and lead-based paint hazards in the home, according to EPA. That disclosure is separate from the tax rules, but it sits in the same closing folder, so keep the move-out date, the closing date and any forwarding records together.

Which sale timing should you pick?

  • If you moved out inside the look-back window, pick a closing date that still falls inside it, because the post-move-out time then stays out of nonqualified use.
  • If you moved out a long time ago, still own the home and are already past the third cutoff, the full exclusion is likely gone, and an earlier closing will not bring it back.
  • If you lived there too briefly to pass the use test and your move was for a job that put your workplace farther from the home, check the partial job-move exclusion, because the statute allows a reduced cap for a change in place of employment.
  • If you moved back in before selling, expect the rental stretch before your return to usually count as nonqualified use, so the gain allocated to it stays taxable, because earlier rental time cannot later count as qualified use.

FAQs

Does renting the home after I move out cancel the exclusion?

Renting after you move out does not cancel the exclusion by itself, because rental time inside the look-back window is not treated as nonqualified use.

Do the years before the statute's start date count against me?

No, years before the start date are not counted as nonqualified use, and they stay in the total-ownership count when the gain is split.

What happens if I sell after the gap passes the third cutoff?

Past that point the full exclusion is likely gone, because too little of your residence time falls inside the look-back window to pass the use test.

Does moving back in restart the clock?

Moving back in starts a new stretch of principal-residence time, but rental time before your return cannot later be converted into qualified use.

Are the dollar caps adjusted each year?

The caps are fixed dollar amounts in the statute rather than percentages of the sale price, so check the statute for the amount that fits your filing situation.

If the gain is under the cap, is all of it tax-free?

If the tests are met and the gain is under the cap, the excluded part is not taxed, but any share allocated to nonqualified use is still taxable. Gain from depreciation claimed during rental years is also not covered by the exclusion.

Does a recent sale of another home affect my exclusion?

Yes, a recent sale that already used the exclusion inside the 2-year period before your closing usually blocks a new exclusion, which is why it appears on the red flag list.

Sources for this guide

General information, not legal, tax or immigration advice. Rivewyn is not a mover, a broker or a government agency. Your own rule is on the agency’s page, so read that.