Selling Your US Home Before or After Moving to Spain
Selling your US home around your move to Spain? The US exclusion does not apply in Spain. Why timing matters and how to plan the sale.

By Lorenzo, Spain Expat Consulting · Last checked: December 2026
Americans rely on the home sale exclusion: up to $250,000 of gain tax-free, $500,000 for couples. Spain has never heard of it. If you sell your US home after you become Spanish tax resident, Spain can tax the gain, unless you plan the timing or qualify for the Beckham Law.
Short answer: The US lets you exclude up to $250,000 of gain ($500,000 on a joint return) if you owned and lived in the home for two of the five years before the sale. Spain does not recognise that exclusion. If you sell while you are Spanish tax resident under the normal regime, Spain taxes the gain at 19% to 30%. Selling before you become Spanish resident, or while you are on the Beckham Law, generally keeps the gain outside Spanish tax.
What are the key facts?
Situation | Spanish tax on the US gain |
|---|---|
Sold before you become Spanish resident | None |
Sold as Spanish resident, normal regime | 19% to 30% on the gain |
Sold as Spanish resident, Beckham Law | Generally none (foreign-source gain) |
US side | Exclusion of up to $250,000 or $500,000 if you meet the 2-of-5-years test |
Sources: IRS Topic 701 and the 2026 Spanish savings scale.
How does the US exclusion work?
The IRS lets you exclude the gain if you owned the home and used it as your main home for at least two years during the five years before the sale. Those two years do not have to be the last two, so you can move to Spain, rent the house out for a while and still qualify, as long as you sell within about three years of moving out. Check the details in IRS Topic 701.
What would Spain take? A €200,000 gain
Step | Normal regime | Beckham Law |
|---|---|---|
First €6,000 | €6,000 × 19% = €1,140 | Not taxed in Spain |
€6,000 to €50,000 | €44,000 × 21% = €9,240 | Not taxed in Spain |
€50,000 to €200,000 | €150,000 × 23% = €34,500 | Not taxed in Spain |
Spanish tax | €44,880 | €0 |
Simplifications: the gain is calculated in euros, with no other savings income or losses. Spain measures the gain in euros using the exchange rates at purchase and sale, so a stronger or weaker dollar can change the gain. The US may also credit Spanish tax only partly if the gain is excluded in the US.
Selling soon? Check your Beckham Law eligibility or WhatsApp Lorenzo.
Which timing works best?
Selling before you move: simplest. Spain has no claim, and the US exclusion applies if you qualify.
Selling after you move, with the Beckham Law: usually no Spanish tax on the US gain during your six regime years.
Selling after you move, without the Beckham Law: Spanish tax applies, with a credit under the US–Spain treaty if the US also taxes the gain.
The general rules for foreign property are in selling a home abroad under the Beckham Law. Remember that Spain counts residence by calendar year; see moving to Spain from the USA.
Frequently asked questions
Does Spain have any exemption for main homes?
Spain has its own reliefs, for example for reinvesting in a new main home or for people over 65 selling their main home, but they have their own conditions. Check them before relying on them.
What if I rent out my US home after moving?
Rent becomes taxable in Spain once you are resident, and stays taxable in the US. See US taxes for citizens in Spain.
Can I use the Beckham Law if I’m retired?
No. The regime is for people moving to Spain to work, as directors, remote workers or certain entrepreneurs.
Do I report the sale in Spain if I sold before moving?
No, a sale completed before you became Spanish resident is outside Spanish tax.
Time the sale with us
We look at your move date, the Beckham Law and the sale together. Book a Beckham Law consultation or WhatsApp Lorenzo.
This article is general information, not legal or tax advice. Fees, thresholds and procedures change, so check the official sources linked above or speak to us before you act.
Need help applying this information to your circumstances? Speak with Spain Expat Consulting about the assistance available for your next steps.