Should I sell my foreign home before moving back to the US?
Short answer: Usually before, and usually while it still qualifies as your principal residence. The US exclusion of up to $250,000 of gain, or $500,000 for a married couple filing jointly, applies to a foreign home as well as a US one, provided the ownership and use tests are met. Waiting until after you have moved and rented it out can put that exclusion out of reach.
Written and reviewed by Anthony Walsh, Selanis. Last reviewed 2026-10-06.
Why it works this way
The exclusion requires having owned and lived in the property as your main home for at least two of the five years before the sale. That clock keeps running after you leave, so a sale within roughly three years of moving out will usually still qualify. Beyond that, the exclusion is lost and the entire gain becomes taxable.
Gain is calculated in dollars, not in local currency, which means the exchange rate at purchase and at sale is part of the computation. A house bought when the euro was weak and sold when it is strong can show a substantial dollar gain on a property that barely moved in local terms — and the reverse is equally possible.
The mortgage is the trap almost nobody sees coming. Under Section 988, repaying a foreign-currency mortgage can produce a separate taxable currency gain, taxed as ordinary income, if the dollar has strengthened since the loan was drawn. That gain is not covered by the principal residence exclusion, and it arises on the loan even when the house itself sells at a loss.
Local tax on the sale is the other half of the equation. Several countries exempt a principal residence entirely or on reinvestment conditions, and some of those reliefs are lost once you are no longer resident — Portugal and Spain both have rules that treat resident and non-resident sellers differently. Selling as a resident can therefore be cheaper on both sides at once.
The expensive mistake: Keeping the house 'in case we come back', then selling it four years later
By then the use test has failed, the exclusion is gone, the local principal-residence relief has usually gone too because you sold as a non-resident, and the rental years have introduced depreciation recapture. A decision taken for emotional comfort quietly converts a tax-free gain into a fully taxable one on both sides of the Atlantic.
What to do
- Check the two-of-five-year clock against a realistic sale date — If you might sell within three years of leaving, you may still qualify. Beyond that, decide now.
- Calculate the mortgage currency position separately from the house — The loan and the property are two different computations, and the loan one is the surprise.
- Ask whether local relief depends on being resident when you sell — Where it does, selling before departure can save tax in both countries in the same transaction.
Sources
- Publication 523 — Selling Your Home
- Publication 54 — Tax Guide for U.S. Citizens and Resident Aliens Abroad