Expat Tax & Finance

Section 121 Exclusion: Selling Your US Home as an Expat

Move abroad and you have roughly 3 years to sell your former US home tax-free. Miss the window and you lose up to $500K in Section 121 exclusion — permanently.

American suburban home with For Sale sign in front yard representing expat selling US property from abroad
Key Takeaways
  • Once you move abroad, you have approximately 3 years to sell your former US home before the Section 121 exclusion expires — the rule requires 24 months of primary residence use within the 5 years before the sale date.
  • The Section 121 exclusion shields up to $250,000 in capital gains for single filers and $500,000 for married couples filing jointly — permanently lost if the 5-year window runs out.
  • Rental periods that occur AFTER your last day of primary residence use do NOT create non-qualified use; the trap applies only to rental periods that occurred BEFORE you lived in the home as your primary residence.
  • Every dollar of depreciation you claimed (or could have claimed) on the home after May 6, 1997 must be recaptured at up to 25% even if the sale qualifies for the Section 121 exclusion.
  • Military members and Foreign Service officers can suspend the 5-year period for up to 10 years while on qualified extended duty, effectively creating a 15-year window instead of 5.
  • If you sell before meeting the 24-month use test but moved because of a job relocation at least 50 miles away, you may still claim a partial exclusion: (months of use ÷ 24) × $250,000.

Once you move abroad, you have roughly three years to sell your former US home and keep the Section 121 exclusion — the rule that lets you pocket up to $250,000 in capital gains tax-free ($500,000 if married filing jointly). Wait longer, and the clock runs out. Miss it by a single month and that $250,000 to $500,000 cushion disappears entirely, turning what looked like a straightforward sale into a taxable event. Thousands of American expats make this mistake every year, often because they assumed they could keep renting the house indefinitely and sell later without consequences. This guide explains exactly how the 5-year window works, what depreciation recapture adds on top, and how to decide whether to sell before you move or within the window.

How the Section 121 Exclusion Works

Under IRC Section 121 and IRS Publication 523, US taxpayers can exclude up to $250,000 in capital gain on the sale of a principal residence — $500,000 for married couples filing jointly. A surviving spouse can use the $500,000 exclusion if the sale occurs within two years of the spouse's death.

To qualify, you must pass two tests:

  • Ownership test: You owned the home for at least 24 months during the 5 years immediately before the sale date.
  • Use test: You used the home as your principal residence for at least 24 months during the same 5-year window.

The 24 months do not need to be consecutive, and they do not need to be the same 24 months. Short temporary absences (vacations, work trips, medical stays) count as use. The window is always measured backward from the actual sale closing date. You can use the exclusion only once every two years.

The 3-Year Deadline Most Expats Miss

Wall calendar with curling pages representing the five-year window for Section 121 home sale exclusion

Here is the trap. When you move abroad, you stop using the home as your principal residence. The 5-year lookback window doesn't freeze — it keeps advancing with each day that passes. To qualify for the exclusion, you need at least 24 months of primary residence use inside that window. After you leave, your use period begins counting backward out of the window.

The 3-Year Math Worked Out

Run the math: if you move abroad on July 1, 2021, your last day of use is June 30, 2021. If you sell on July 1, 2024 (exactly 3 years later), the 5-year lookback covers July 1, 2019 to July 1, 2024. Your primary residence use within that window runs from July 1, 2019 to June 30, 2021 — exactly 24 months. You qualify. Barely.

If you sell on July 2, 2024 — one day later — the lookback shifts to July 2, 2019 to July 2, 2024. Your use in that window is now 23 months and 29 days. You fail the 24-month use test.

The only way to reclaim the exclusion after the window closes is to physically move back into the home and re-establish it as your principal residence for another 24 months. That is usually impractical for committed expats. The math here is unforgiving and can't be negotiated with the IRS.

Non-Qualified Use: A Second Trap for Pre-Residency Rentals

A different and less-discussed rule hits expats who rented the home out before they moved in, or who owned multiple homes before designating one as their primary residence. Under legislation effective January 1, 2009, a portion of your gain may be ineligible for the exclusion due to "non-qualified use."

Non-qualified use is any period after January 1, 2009, when neither spouse used the property as a principal residence — with one important exception: rental periods that occur after your last day of primary residence use do NOT count as non-qualified use. So if you lived in the home and then rented it out before selling, the rental period at the end doesn't create a non-qualified use problem. That's good news for most expats who rent out their home after moving abroad.

The trap applies when you rented the home before you moved in. Example: you purchased a home in January 2016 and rented it for two years, then moved in as your primary residence in January 2018, lived there through June 2021, moved abroad, and sell in early 2024 (still within the 5-year window).

Non-qualified use calculation

Total holding period: January 2016 to January 2024 = 8 years
Non-qualified use: January 2016 to January 2018 = 2 years (pre-primary-residence rental)
Non-qualified use fraction: 2 ÷ 8 = 25%
Total gain: $400,000
Gain allocable to non-qualified use (not excludable): 25% × $400,000 = $100,000
Remaining gain eligible for exclusion: $300,000 → fully excluded under $500,000 MFJ limit
Taxable gain: $100,000 (at long-term capital gains rates)

If you bought a home purely as an investment before moving in, the pre-residency rental years reduce your effective exclusion. This often surprises people who converted an investment property to their primary residence before moving abroad.

Depreciation Recapture: The Hidden Extra Tax

Closing cost settlement worksheet beside calculator on wooden desk for home sale tax calculation

Many expats rent out their former US home while abroad and correctly claim depreciation deductions on Schedule E. Depreciation reduces your taxable rental income each year. But when you sell, every dollar of depreciation you ever claimed (or could have claimed) after May 6, 1997, must be recaptured — even if the sale qualifies for the Section 121 exclusion.

This is unrecaptured Section 1250 gain, taxed at a maximum rate of 25%, not the lower long-term capital gains rate. It is reported on Schedule D and Form 4797. The IRS details this in IRS FAQ: Sales, Trades, Exchanges.

Scenario Depreciation taken Sale gain Section 121 exclusion Taxable
Sold within 3 years, no rental $0 $300,000 $250,000 $50,000
Rented 2 years abroad, depreciation $18,000 $18,000 $300,000 $250,000 $18,000 ordinary + $32,000 capital gain
Window expired, no exclusion, rented 4 years $36,000 $300,000 $0 $36,000 at 25% + $264,000 at capital gains rate

How Depreciation Accumulates Over Time

Residential rental property is depreciated over 27.5 years on a straight-line basis. A $450,000 home (land excluded, say $350,000 building value) produces $12,727 per year in depreciation deductions. Rent it out for 3 years abroad and you've claimed $38,181 in depreciation — all of which is recaptured at 25% when you sell, adding approximately $9,545 to your tax bill on top of any capital gains owed.

Allowable vs. Allowed: A Trap for Non-Filers

If you did not claim depreciation when you should have, the IRS still recaptures the amount that was "allowable" — meaning the amount you legally could have deducted whether or not you actually did. Underreporting depreciation is not a strategy; it increases your cost basis on paper only and still triggers recapture at sale.

Partial Exclusion: Qualifying at Less Than 24 Months

If you sell before completing 24 months of use because of a job relocation, health reasons, or a qualifying unforeseen circumstance, you may still claim a partial exclusion. The IRS allows a reduced exclusion based on the fraction of the 24-month threshold you actually met.

The partial exclusion formula: (shortest of: months of use, months of ownership, or months since last exclusion) ÷ 24 × $250,000. For married couples, each spouse calculates separately and the results are combined up to the $500,000 cap.

Example: a remote worker who moved abroad after living in the home for 18 months due to a new job abroad (which qualifies as a "change in place of employment" — a defined qualifying reason under Publication 523) can exclude up to 18/24 × $250,000 = $187,500. Not the full $250,000, but meaningful.

Qualifying reasons are defined narrowly. A desire to live abroad, retirement, or the general attractiveness of a foreign country do not qualify. Job relocation requires that the new primary place of work is at least 50 miles farther from the home than the old workplace. Health and unforeseen circumstances have their own definitions in IRS guidance.

Military and Foreign Service: A 10-Year Suspension

Members of the uniformed services, Foreign Service officers, and intelligence community employees who are on "qualified extended duty" — deployment orders of at least 90 days or indefinite duration, at a station at least 50 miles from the home — may elect to suspend the 5-year period for up to 10 years. This extends the effective window to 15 years from the last date of primary residence use.

This suspension is electable, not automatic. The election is made on the tax return for the year of sale. If you're a military member or Foreign Service officer who has been abroad for 5–12 years and still owns your US home, the suspension may preserve the exclusion in a situation where a civilian expat would have lost it completely.

Sell Before Moving, or Sell Within Three Years?

The timing decision has three realistic paths for most expats:

Option Section 121 eligibility Depreciation recapture Best for
Sell before moving abroad Full exclusion (assuming 2+ years use) None (no rental period) Markets near peak; want clean exit; not expecting to return
Rent out, sell within 3 years Full exclusion if 2-of-5 met On depreciation taken during rental Transitional period; want rental income; plan to sell before window closes
Rent out, sell after 3 years Likely none (window closed) Full recapture on all depreciation taken Treat as long-term rental investment; run as a rental property indefinitely

Option three is only rational if you plan to keep the home as a genuine long-term rental investment and the rental income plus appreciation outweigh the tax cost of losing the exclusion. Once the Section 121 window closes, the home is purely a rental asset — your adjusted basis steps up by depreciation claimed, and a future sale is fully taxed as capital gain except for basis. For a detailed breakdown of the IRS rules around foreign rental property and US property held abroad, see our guide to buying and managing rental property abroad.

If You've Renounced: FIRPTA Withholding

US citizens living abroad are still US persons for tax purposes — FIRPTA (Foreign Investment in Real Property Tax Act) withholding does not apply to you as a US citizen selling your US home, regardless of where you currently live. Your sale is reported on a standard Form 1040.

If you have renounced US citizenship or formally abandoned a green card, you are now a nonresident alien (NRA) and FIRPTA applies. The buyer is required by law to withhold:

  • 15% of the gross sale price in most cases
  • 10% if the sale price is between $300,001 and $1,000,000 and the buyer will use the property as a personal residence
  • 0% if the sale price is $300,000 or less and the buyer will use it as a personal residence

FIRPTA withholding is not a final tax — it's the IRS's advance collection mechanism. A nonresident alien seller files Form 1040-NR to report the actual gain, claim any applicable exclusion, and recover overwithheld amounts as a refund. The 15% withholding on a $600,000 sale is $90,000 — that's a significant cash flow impact even if you ultimately owe less.

Pre-Sale Checklist

  1. Calculate your remaining window. Count backward 5 years from your expected closing date. Does that window include at least 24 months you lived in the home as your primary residence?
  2. Pull depreciation records. Gather all Schedule E filings from years the home was rented. Total the depreciation claimed or allowable. This is your minimum recapture obligation.
  3. Determine your adjusted basis. Original purchase price + improvements – accumulated depreciation = adjusted basis. You pay capital gains on sale price minus adjusted basis.
  4. Check for non-qualified use. Did you own the home for any period before it became your primary residence (post-2008)? If so, calculate the non-qualified use fraction.
  5. Review your tax bracket in the sale year. If you're using FEIE to exclude most earned income, the capital gains bracket calculation can shift meaningfully. Work this with a CPA.
  6. Assess the military or foreign service exception. If applicable, elect the suspension on your return.
  7. File Form 4797 if needed. Depreciation recapture is reported on Form 4797, not just on Schedule D.
  8. Check state tax obligations. If you maintained a tax domicile in a state that still claims you as a resident, the state may tax the capital gain as well. See our guide on expat state income tax traps for details on states that follow residents abroad.

Conclusion

The Section 121 exclusion is one of the most valuable tax breaks in the US tax code — up to $500,000 in tax-free gain for a married couple. But it has a mechanical time limit that resets from the date of sale, and most expats who rent out their former home unknowingly let it expire by staying abroad longer than three years without selling. When the exclusion disappears, a sale that looked like a $200,000 windfall can produce a $60,000 or larger tax bill. Add depreciation recapture on top, and the numbers get worse.

The solution is not complicated: know your deadline, and make the sell-or-hold decision deliberately before the clock runs out rather than discovering the problem when you finally list the property. If you've already passed the window, pivot your thinking to treating the home as a pure investment asset — maximize rental income, track all expenses, and plan the eventual sale with your full tax picture in mind.

Data notes: Rules based on IRS Publication 523 (2025 edition) and current Section 121 statutory guidance. Exclusion amounts and tax rates are for tax year 2025. FIRPTA rules per IRS FIRPTA guidance. Depreciation recapture rate (25%) is the maximum unrecaptured Section 1250 rate; your actual rate depends on your bracket.

Disclaimer: This article is for general informational purposes only and does not constitute tax or legal advice. Home sale tax outcomes are fact-specific. Consult a CPA or tax attorney familiar with expat taxation before making decisions about timing, depreciation, or exclusion eligibility.

Frequently asked questions

How many years do I have to sell my US home after moving abroad to keep the tax exclusion?

Roughly 3 years from your last day of primary residence use — but the exact deadline depends on your sale closing date. You need 24 months of primary residence use within the 5-year window measured backward from closing. If you moved abroad July 1, 2021 and close July 1, 2024, you have exactly 24 months in the window. Sell one day later and you fail the test.

Does renting out my US home after I move abroad hurt my Section 121 exclusion?

Renting out the home after you stop living there does NOT create a non-qualified use problem — that rule applies only to non-primary-residence periods that occurred before your last stretch of primary residence. However, each year you rent the home out, you accumulate depreciation that must be recaptured (taxed at up to 25%) when you sell, even if the gain qualifies for the exclusion.

What happens if I already missed the 3-year window — can I get the exclusion back?

The only way to re-qualify is to physically move back into the home and re-establish it as your principal residence for another 24 months, then sell within the new 5-year window. For most committed expats this is impractical. Once the window closes, the home is treated purely as a capital asset — the full gain is taxable, minus your adjusted basis.

Do I have to pay FIRPTA withholding when I sell my US home while living abroad?

No, if you are a US citizen. FIRPTA withholding applies only to nonresident aliens — foreign persons selling US real property. US citizens living abroad are still US persons for tax purposes and report the sale on a standard Form 1040. FIRPTA becomes relevant only if you have renounced citizenship or abandoned a green card and are now a nonresident alien.

Can I use the Section 121 exclusion on a foreign home I lived in while abroad?

Yes — the Section 121 exclusion follows the taxpayer, not the property. A US citizen or permanent resident can use the exclusion on a non-US home that was their principal residence for at least 24 of the 5 years before the sale, as long as the other requirements are met. The key limitation is that the foreign tax credit may also apply, so you need to analyze whether the US tax on the gain is already offset before using the exclusion.

This guide is general information, not personalized tax, legal, or investment advice. Rules change; verify current thresholds with official sources or a qualified professional before acting.

FIRPTAcapital gainsdepreciation recaptureexpat home saleexpat taxhome sale exclusionsection 121