Home › Guides › Questions › Selling your US home after becoming a Spanish resident
American couple reviewing the sale of their US home before retiring to Spain
Questions · Non-Lucrative Visa

Selling your US home after becoming a Spanish resident

Most Americans assume the sale of the family home is tax-free — the famous $250,000 or $500,000 exclusion takes care of it. That is true under US rules. But that exclusion does not follow you across the Atlantic. Once you are a Spanish tax resident, Spain can tax the whole gain, and the reliefs you would expect often do not apply. Here is how the timing, the treaty and a hidden currency trap really work.

For a retiring American couple, selling the house is usually the moment that funds the whole move to Spain — the proceeds become the nest egg, the proof of means for the non-lucrative visa, the deposit on a place near the coast. How those proceeds are documented for the visa itself — the source-of-funds trail behind a fresh lump sum — is a separate exercise we cover in using home sale proceeds as proof of means; here we deal only with the tax. And because the US home-sale exclusion is so generous, most people file that sale mentally under "already handled, tax-free." The problem is that whether it is tax-free depends almost entirely on when you sell relative to the day you become a Spanish tax resident — and the answer can differ by tens of thousands of euros.

This page looks at one specific, high-stakes decision: the tax treatment of selling your US principal residence around the time you move to Spain. It sits alongside our companion notes rather than repeating them — how US retirement income is taxed in Spain covers pensions, 401(k), IRA and Social Security, and US tax filing obligations for American retirees covers the return you still owe the IRS. Here we deal with the house. One case sits outside this page entirely: if you have already given up US status — abandoned a green card or renounced — you are a foreign person, and the US side of the sale is governed by FIRPTA withholding on a US property sale rather than the ordinary US-person rules described here. None of this is tax advice; it is general orientation, and your own figures belong with a Spanish asesor fiscal and a US tax adviser working together before you list the property.

Lola Jurado, immigration lawyer

"The house is where I see the biggest avoidable tax bills. People arrive certain the sale is tax-free — and it would have been, if they had sold a few months earlier. Once you are resident, Spain taxes the gain, the euro conversion can make it bigger than you think, and the exemptions you would expect do not apply to a home you have already left. If you take one thing from this page: decide when to sell before you decide when to move."

— Lola Jurado · Immigration lawyer, Ilustre Colegio de Abogados de Málaga (nº 10907)

The US side: Section 121 and why it feels tax-free

Under US law, Section 121 of the Internal Revenue Code lets you exclude up to $250,000 of gain on the sale of your principal residence if you file single, or up to $500,000 if you are married filing jointly. To qualify you must have owned and used the home as your main residence for at least two of the five years ending on the sale date. These figures have been fixed since 1997 and remain unchanged for 2026; any gain above the exclusion is taxed at the long-term capital-gains rates of 0%, 15% or 20%.

For a couple who has lived in the same house for decades, this is why the sale feels painless: a huge slice of gain simply drops out of the US calculation. It is a genuine, valuable relief — as long as US law is the only law that applies to the sale. The trouble begins when a second country acquires the right to tax the same transaction.

The catch: the exclusion does not cross the border

Here is the point that catches even careful, well-prepared retirees. The Section 121 exclusion is a creature of US tax law. Spain is under no obligation to recognise it. So the moment you are a Spanish tax resident, Spain looks at the sale of your former US home and sees a capital gain on your worldwide income — and it measures that gain by its own rules, without the $250,000 or $500,000 haircut. A sale that is fully excluded on your US return can be substantially taxable on your Spanish one.

This is the exact mirror of the Roth IRA problem we describe in how US retirement income is taxed in Spain: an account or a relief that is tax-free under US rules can lose that advantage once Spain, as your country of residence, applies its own system to the same money. With a house, the numbers are simply larger, which is what makes the timing of the sale one of the most consequential moves in the whole relocation.

Key point: the US home-sale exclusion protects you on your US return only. Spain does not mirror Section 121, so once you are a Spanish resident the same gain can be taxed in Spain without that exclusion.

How Spain taxes the gain once you are resident

Once you are a Spanish tax resident — broadly, spending more than 183 days in Spain in the calendar year, or having your main centre of economic interests there, as covered in our note on the 183-day tax residency rule — Spain taxes your worldwide income and gains. A gain on the sale of real estate is a capital gain, and in Spanish IRPF capital gains fall in the savings base (base del ahorro), not the general base that holds pensions and salary.

The savings base is taxed on its own progressive scale. For 2026 it runs in bands, beginning at 19% on the first slice of gain and rising through the low twenties into the high twenties, reaching around 28% on very large gains. A decades-long gain on a family home can easily reach the upper bands, so the effective Spanish rate on a big home-sale gain is often in the mid-twenties. The gain itself is the difference between the Spanish acquisition value and the Spanish transfer value of the property, adjusted for the buying and selling costs and any capitalised improvements you can document — which is where the next trap lives.

FeatureUnited States (Section 121)Spain (resident, IRPF)
Principal-residence exclusion$250k single / $500k jointNo equivalent for a former US home
Where the gain is taxedFederal (and possibly state) capital gainSavings base of IRPF
Rate character (2026)0% / 15% / 20% on gain above exclusionSavings bands ~19% up toward 28%
Currency the gain is measured inUS dollarsEuros (acquisition and sale converted)
Municipal land-value tax (plusvalía)Not applicableNot applicable to a US property

One point of relief worth noting: the Spanish municipal plusvalía (the tax on the increase in value of urban land) applies to Spanish urban land only, so it does not reach into a property in the United States. The Spanish exposure on a US home is the IRPF capital gain, not plusvalía.

The euro-gain trap: currency is part of the gain

Spain computes the gain in euros. That means the acquisition value is your purchase price converted to euros at the time you bought, and the transfer value is your sale price converted to euros at the time you sell. If the dollar has strengthened against the euro over the years you owned the home, the euro-measured gain can be materially larger than the dollar gain you see on your US return — even if the home's dollar value barely moved, a currency swing alone can manufacture a taxable gain in Spanish eyes.

This currency effect is invisible from the US side, where everything is measured in dollars, and it routinely surprises sellers. It works in both directions, but the version that hurts is the one where a modest dollar gain becomes a large euro gain that Spain then taxes in the savings base. Because the exchange rates on the two specific dates matter, this is not something to estimate loosely — it belongs in a proper calculation with your adviser before you commit to a completion date.

Watch this: Spain measures the gain in euros, using exchange rates at purchase and at sale. A move in the dollar–euro rate can inflate the taxable gain in Spain even when the dollar gain looks small. Model this before you sell.

Why the Spanish main-home exemptions rarely help

Spain does have generous reliefs for selling a main home — but they are built around a Spanish habitual residence, and that is exactly what a US home you have just left is not. Two reliefs come up most often. The first is the over-65 exemption: a Spanish tax resident over 65 who sells their vivienda habitual (habitual residence) can be fully exempt from the gain. The second is the reinvestment exemption: a resident under 65 who sells their habitual residence and reinvests the proceeds in a new habitual residence within two years can shelter the reinvested part.

Both hinge on the property sold being your habitual residence. Once you have moved to Spain, your former US house is generally no longer your habitual residence at the time of sale — you are living in Spain — so neither the over-65 exemption nor the reinvestment relief typically rescues the gain on it. This is the quiet reason the numbers can look so different from what a retiree expects: the US exclusion is gone because Spain does not honour it, and the Spanish exemptions are unavailable because the house is not a Spanish home you are living in. The precise position can turn on the timeline of when you left the property and when residency switched, which is why it should be checked on your own facts rather than assumed either way.

There is a third Spanish relief that is not confined to a habitual residence at all — the article 38.3 exemption for over-65s who reinvest the proceeds of any asset into a life annuity within six months. It genuinely reaches a US property. Before reaching for it, read what the over-65 annuity exemption does to an American: removing the Spanish tax also removes the foreign tax credit that was shielding you from the US charge, so the relief can change which treasury collects rather than reduce what you pay.

The decision that changes everything: sell before or after

Put the pieces together and the single most powerful lever is timing. If you sell your US home before you become a Spanish tax resident, the sale falls outside Spanish IRPF altogether — Spain has no worldwide taxing right over you yet — so only the United States taxes it, and the Section 121 exclusion applies cleanly. If you sell after residency has switched on, Spain taxes the gain as part of your worldwide income, without the US exclusion, in the savings base.

Spanish residency is not something you can split within a year: as our 183-day rule note explains, Spain does not split the tax year — you are either resident for the whole calendar year or not at all. That makes a sale in the first Spanish calendar year particularly exposed. For many retirees the cleanest outcome is to complete the sale of the home before the move, take the US exclusion, and arrive in Spain with the proceeds already realised. But it is not automatic — a large capital account, a slow market, or a plan to keep the US home as a rental all change the picture, and the interaction with your other income and your US filing matters too. If a buyer asks you to carry the paper, note that an installment sale or seller financing pushes recognition into later years — the opposite of the clean pre-move timing above.

Planning point: for many American retirees, closing the sale before becoming a Spanish tax resident keeps it US-only and preserves the Section 121 exclusion. Because Spain does not split the tax year, a sale in your first Spanish year is generally caught in full. Decide this before you move, not after.
If there is a reverse mortgage on the house: read reverse mortgage on your US home before you plan the timing above. A HECM becomes due and payable once the property stops being your principal residence, so the move can decide when the sale happens instead of you.

The treaty and how double taxation is relieved

If you do sell while resident, the sale can be taxable in both countries at once — but the double-tax machinery exists precisely to stop you paying full tax twice. Under the US-Spain treaty, gains on real property situated in the United States may be taxed by the United States, and Spain, as your country of residence, also brings the gain into your worldwide income and gives relief for the US tax paid. For US citizens, the treaty's saving clause keeps the US taxing right alive, and the US foreign tax credit then lets Spanish tax on the same gain offset the US liability. The practical effect is that you tend to bear the higher of the two effective rates on the gain, not the sum of both.

The mechanics of the US side — the foreign tax credit on Form 1116, the saving clause, the filing deadlines — are set out in our companion guide to US tax filing obligations for American retirees. The point for this page is that the relief only works if both returns are filed correctly and the two tax years are lined up, which is why a cross-border sale is best handled by a Spanish adviser and a US preparer who coordinate. And separately from the tax, remember that a US account and the home itself can feed into your Spanish Modelo 720 reporting obligations once you are resident — reporting is a different question from taxation, but it lands on the same people. And note the home sale can also carry a US state tax charge if your former state still counts you as a resident — a separate layer the treaty does not relieve, covered in our note on cutting US state tax residency before moving to Spain.

Frequently asked questions

Does the US $250,000 / $500,000 home-sale exclusion apply in Spain?

No. Section 121 is a US-law relief that Spain need not mirror. Once you are a Spanish tax resident, Spain can tax the full gain on the sale of your former US home as part of your worldwide income, even if the same gain is excluded on your US return. It is the most expensive surprise for retirees who sell after moving.

How is the gain on my US home taxed in Spain?

For a Spanish resident it is a capital gain in the savings base of IRPF, taxed on the savings scale that runs from 19% up toward 28% for 2026 depending on the size of the gain. The gain is measured in euros, so exchange-rate movements between purchase and sale form part of it.

Can I use the Spanish over-65 or reinvestment exemption on my US home?

Usually not. Both reliefs require the property sold to have been your vivienda habitual — your habitual residence in Spain. A US home you left when you moved is generally no longer your habitual residence at the time of sale, so these Spanish exemptions typically do not help. Check the exact timeline on your facts.

Should I sell my US home before or after moving to Spain?

For many retirees, selling before you become a Spanish tax resident keeps the sale US-only, so only the United States taxes it and Section 121 applies cleanly. Once resident, Spain taxes worldwide income and does not split the tax year, so a first-year sale is generally caught in full. Plan the timing with advisers on both sides.

Will I be taxed twice on the sale?

Not in full. The gain can be taxable in both countries, but the treaty and the US foreign tax credit are designed to remove the overlap: the US may tax the US-property gain, Spain taxes it as residence country and relieves the US tax, and US citizens credit the Spanish tax against their US bill. You tend to bear the higher effective rate, not both — if both returns are filed and coordinated.

Sources reviewed July 2026: IRC Section 121 and IRS guidance on the exclusion of gain from the sale of a principal residence (ownership and use tests, $250,000/$500,000 limits, 2026 long-term capital-gains rates); Spanish AEAT guidance on the taxation of capital gains from the transfer of real estate and on the IRPF savings base; Spanish guidance on the over-65 and reinvestment main-residence exemptions and their habitual-residence condition; and the United States–Spain income tax treaty and published summaries of its capital-gains, saving-clause and double-tax-relief provisions. General information only, not legal, tax or immigration advice, and not US tax advice; rates, exemptions, treaty treatment and regional variations change and should be confirmed with a qualified Spanish asesor fiscal and a US tax adviser before you rely on them.

Cross-border planning

Plan your US home sale around the move — before you become a Spanish resident

Tell us roughly when you plan to sell, when you plan to move, your purchase and expected sale prices, and whether you are single or married. We can line up the non-lucrative visa timeline with the sale so the Section 121 exclusion is not lost, and connect the dots with your US adviser.

✓ Thank you. We'll review your situation and reply within 24 hours.

Confidential · No obligation · Reply within 24 hours

Sell at the right moment, not the wrong tax year

We help US retirees line up the non-lucrative visa with the reality of how Spain taxes a home sale — so the timing of your move protects the US exclusion instead of triggering a Spanish gain.

iMessage WhatsApp