Selling a Primary Residence Before Moving Abroad: Taxes and Timing

by | 10 April, 2026 | Moving abroad guides

If you’re retiring abroad and you own a home in the United States, the question isn’t whether selling a primary residence affects taxes, it’s how much and when.

For retirees moving to Europe, the sale of a U.S. primary residence is often one of the largest financial events of the transition. And unlike portfolio adjustments or pension elections, the tax outcome on your home can change dramatically based on a single variable:

Whether you sell before or after becoming a tax resident in your new country.

Once the relocation timeline is set, the “should I sell” decision becomes critical to answer, but answers are rarely intuitive. In this article, we focus on the tax implications of selling a primary residence. 

The key issue is tax residency (not where the house is)

People assume this is about property location. “It’s a US house—why would Italy or Spain care?”

Because once you become a tax resident of another country, you’re usually taxed there on your worldwide income. At a baseline (before accounting for specific treaty provisions, where they exist) that includes capital gains even in cases where you’re selling a primary residence at gains beneath the individual and married thresholds.

So the planning question becomes:

When do you become a tax resident of the new country, and when will the sale close?

If the home sale closes before you become a tax resident abroad, you’re usually dealing with US rules only.

If the sale closes after you become a tax resident abroad, the sale often becomes a two-country event:

  • the US still has rules
  • your new country has rules
  • and the treaty might or might not soften the landing

That’s why timing matters so much.

What the US gives you on a primary residence sale

Under Internal Revenue Code §121, if you meet the ownership and use tests, the US gives you a capital gains exclusion of:

  • $250,000 of gain (single)
  • $500,000 of gain (married filing jointly)

This is not a “maybe.” If you qualify, you qualify.

It’s one of the most valuable tax benefits available to individuals in the US tax code, especially for people who bought before the recent appreciation waves.

Here’s the catch:

The US exclusion doesn’t automatically prevent a foreign country from taxing the gain once you’re resident there.

So you can have a sale that’s tax-free in the US and still taxable abroad.

That’s the moment people feel blindsided.

“But isn’t there a tax treaty?”

Yes, and this is where treaty expectations need a reset.

Treaties are a legal instrument between two governments to incentivize trade and minimize potential conflicts for taxpayers that may be subject to both countries’ rules. The treaty is designed to benefit the governments, not the individual taxpayers under their rules. Although they often do reduce double taxation, they do not guarantee zero taxation.

Here’s the cleanest way to think about it:

  • The house is located in the US, so the US often gets the first right to tax the gain.
  • But that right is not always exclusive.
  • If US law eliminates the tax (because §121 wipes it out), there may be no US tax paid.
  • And if there’s no US tax paid, there’s often no foreign tax credit to use abroad.

In other words, the mechanism that normally credits taxes paid to one country can’t help you much if the first country charged you nothing.

That’s why someone can say, truthfully: “My gain is exempt in the US.”…and still end up with a tax bill in Spain, Italy, or Portugal if the sale happens after they become resident there.

How this plays out by country: France vs Spain vs Italy vs Portugal

Map of France

France: typically only reported, not necessarily taxed (for a US primary residence)

France tends to be the outlier, in a good way.

If you sell your primary residence after becoming a French tax resident, you generally still report the sale on the French side. But France’s approach to a primary residence is broadly compatible with the US concept, and the treaty framework often supports exempt treatment for a US primary residence sold by a US person.

So in many cases, the “damage” is paperwork, not additional tax.

That doesn’t mean France is automatically the best choice for every person. France has other planning variables (wealth tax exposure, real estate considerations, etc.). But for primary residence sale timing, France is commonly less punitive than Spain, Italy, or Portugal.

Save for later: How U.S. Retirement Accounts Are Taxed Abroad: A Comparative Guide

Spain: taxable if you sell after becoming resident (with a potential relief lever)

Spain is far less forgiving if the sale happens after Spanish tax residency begins.

In that scenario, Spain may tax the gain even if it’s excluded in the US. There can be a relief path if proceeds are reinvested into a new primary residence in Spain within a specified time window (commonly discussed as two years), but it’s not a “free pass.” Additionally, you would still owe and pay capital gains tax on the initial sale of your US primary residence in the tax year for which the tax was applicable. So, it’s a bit of a gamble:

If you choose to sell your US property after moving to Spain and becoming tax resident there:

  • You pay the Spanish capital gains tax on the US primary residence sale
  • You prove reinvestment later, after you’ve purchased a Spanish primary residence
  • And you hope the market cooperates in the meantime

This is why we usually say: if Spain is the destination and selling is on the table, selling before residency is the cleanest outcome when it’s possible.

You may also like: The Spanish digital nomad visa

Italy and Portugal: same basic problem as Spain

Italy and Portugal generally follow the same structural logic: once you’re a tax resident there, the US sale becomes part of your worldwide income picture.

That means the sale can become taxable locally even if the US excludes it.

This is where planning stops being theoretical and becomes very practical.

A case study: the “bad market timing” problem

Here’s the most common real-life conflict: “I’m moving soon, but the US housing market isn’t giving me the number I want.”

Let’s put some hypothetical numbers to it. Say:

  • You bought a home five years ago for $400,000.
  • At the market peak, it looked like $800,000.
  • Today, you can probably sell for $700,000.
  • You’re married, file jointly, and you qualify for the full §121 exclusion.

If you sell now before becoming a tax resident in Italy:

  • gain is $300,000
  • US tax is $0 (excluded under §121)
  • Italy has no claim yet, because you’re not resident there

If you wait until you can sell for $800,000, but by then you are an Italian tax resident:

  • gain is $400,000
  • US tax is $0 (still excluded under §121)
  • Italy taxes the gain at 26% (your residency changed the outcome)

Now you’re staring at a $104,000 tax liability to a country you just moved to, on a gain the US didn’t tax.

This is the mental shift we try to get clients to make early:

If you’re going to “lose” money either way, it’s better to get the numbers down and compare the costs in black-and-white.

A $100,000 haircut on sale price can be less painful than a six-figure tax bill that didn’t need to exist.

And if neither option feels acceptable, sometimes the move timeline is the variable, not the sale. Or, perhaps, it’s time to become a landlord!

Related reading: How to Break State Residency: “Sticky” States for US Taxpayers

Does the gain increase your tax bracket?

If your gain is fully excluded under §121, it doesn’t increase your adjusted gross income.

If your gain exceeds the exclusion (say you sell a home with a $900,000 gain and you can only exclude $500,000) then the remaining $400,000 is typically long-term capital gain. That can increase your exposure to capital gains tax rates and may trigger the Net Investment Income Tax.

One nuance that trips people up

Capital gains tax rates and ordinary income tax rates are not the same system. A large capital gain can push you into higher capital gains thresholds (up to 23.9%) without “rebracketing” your wages the way people assume.

The Rook planning framework: what we want you to know before you decide

If you own a US primary residence and you’re planning to move abroad, here are a few important questions to think about (or perhaps discuss with an expat CPA):

  • When does tax residency begin in the destination country under local rules?
  • When will the sale close (not list, close)?
  • What is your estimated gain, and do you qualify for the full §121 exclusion?
  • If the destination country taxes the gain, is there a realistic relief mechanism (and are you willing to live under its timing pressure)?
  • If the housing market is working against you, are you willing to adjust the timeline, pricing expectations, or residency start?

This is why we push planning upstream. By the time you’re wiring deposits overseas and picking up keys, your flexibility is quite limited. 

Bottom line

If you sell before foreign tax residency begins, you can often take full advantage of the US primary residence exclusion and keep the transaction simple.

On the other hand, if you sell after foreign residency begins (especially in Spain, Italy, and Portugal) the same sale can become taxable in a way that feels completely illogical until you understand how residency and treaties actually work.

Rental income is also subject to income tax and reporting obligations in each of these countries. But it could be a valid option if selling the property is fiscally a no-go.

Book a joint consultation with Rook

If you’re moving abroad and you own a home in the US, we can help you map the timing and become more familiar with the foreign tax landscape you’ll be entering. 

To book a joint consultation, submit the contact form on our website. We’ll review your timeline, destination country, gain estimates, and planning options with the full cross-border context in mind.

References

Moving to Europe from the USA: What US Taxpayers Need to Know

A Guide to the Net Investment Income Tax (NIIT)

Latest Posts

How U.S. Retirement Accounts Are Taxed Abroad: A Comparative Guide

How U.S. Retirement Accounts Are Taxed Abroad: A Comparative Guide
Retirement accounts abroad are one of the first areas where Americans planning to retire overseas discover that ...

What Is Signature Authority on a Bank Account for FBAR?

What Is Signature Authority on a Bank Account for FBAR?
When people hear “FBAR,” they usually think about owning foreign bank accounts. But ownership (also referred to as having a “Financial Interest” in a foreign bank) of a foreign bank account is only part of the picture. The FBAR rules also apply to people who don’t own the money at all, but still have the power to control what happens to it. That’s where signature authority comes in.
No results found.
Check Also

Ready to learn more?

Rook CPAs offers dedicated one-on-one time to fully understand your current situation and propose the best tax strategies for your US business.