An American couple move to Málaga on a non-lucrative visa, buy a Spanish home, live there for years, and later decide to sell after both have turned 65. Their Spanish adviser gives them excellent news: because the property is their vivienda habitual, article 33.4.b of the IRPF law can exempt the gain in Spain. No reinvestment. No annuity. No €240,000 ceiling. The Spanish answer is genuinely generous.
The American answer is different. The United States does have a home-sale exclusion, but it is Section 121: generally $250,000 of gain, or $500,000 on a qualifying joint return. If the Spanish home has appreciated beyond that, the excess can still be taxable on the US return. And because Spain has waived its tax, there may be no Spanish foreign tax credit left to absorb that excess. The exemption has not made the file worldwide tax-free. It has made Spain quiet.
On this page
The Spanish gift: article 33.4.b The US limit: Section 121 is capped The missing credit problem The dollar gain and the euro gain are not identical Why this is not the annuity exemption Timing, ownership and the family file Questions to ask before the notary Frequently asked questions
"The Spanish rule is not the trap. The trap is thinking a Spanish exemption is a worldwide exemption. For a US citizen, every large sale needs two returns on the table before the deed is signed."
— Lola Jurado · Immigration lawyer, Ilustre Colegio de Abogados de Málaga (nº 10907)
The Spanish gift: article 33.4.b
Article 33.4.b of Ley 35/2006 excludes from taxation the capital gains that arise when taxpayers over 65 transfer their habitual residence. The relief is simple by Spanish standards. It is tied to age and to the nature of the property sold. If the property is your habitual residence and you are over 65 at the time of transfer, the Spanish gain can be exempt.
That makes it very different from two other Spanish reliefs. The main-home reinvestment exemption requires a new habitual residence and timing discipline. The article 38.3 relief for over-65s applies to any asset but requires reinvestment into an insured life annuity within six months and is capped at €240,000 per taxpayer. Article 33.4.b is narrower in the asset — it must be the habitual residence — but stronger when it applies: the gain on that home can disappear in Spain without buying another product.
The US limit: Section 121 is capped
The United States taxes its citizens wherever they live, so the sale still belongs on the US side of the file. Section 121 can apply to a foreign home: the statute is about a principal residence, not about US soil. But the relief is capped. If you meet the ownership and use tests, the exclusion is generally $250,000 for a single filer and $500,000 for qualifying spouses filing jointly. Gain above the cap is still gain.
For a couple who bought in Spain years ago, improved the home, and sell after a strong market, the excess can be real. Spain may see zero taxable gain because article 33.4.b removes it. The IRS may see the same sale, allow the Section 121 exclusion, and then tax the rest.
| Question | Spain | United States |
|---|---|---|
| Relief name | Article 33.4.b LIRPF | Section 121 IRC |
| Asset | Habitual residence | Principal residence |
| Age condition | Seller over 65 | None |
| Cap | No Spanish cap in the rule | $250,000 / $500,000 exclusion |
| What happens above the cap | No Spanish excess if the relief applies | US taxable gain can remain |
The missing credit problem
Foreign tax credits work best when both countries tax the same income. A Spanish resident US citizen sells Spanish real estate, Spain taxes the gain, and the US return can usually look to credit mechanics to stop full double taxation. The credit is not magic, and it has limits, but the basic idea is familiar: tax paid to Spain can reduce tax due to the United States on the same foreign-source gain.
Article 33.4.b changes that arithmetic. Spain charges nothing on the exempt gain. There is therefore no Spanish tax paid on that gain to carry into the US credit calculation. The US tax on the amount above Section 121 can stand exposed. For a Spanish-only taxpayer, the exemption has removed the tax. For a US citizen, it may have removed the credit.
This is the same structural warning as our note on Spain's over-65 annuity exemption, but with a cleaner Spanish fact pattern. Here there is no insurer, no US excise tax and no Form 720 confusion. There is just a Spanish exemption on one side and a capped US exclusion on the other.
The dollar gain and the euro gain are not identical
The two countries do not necessarily measure the same gain. Spain computes in euros: acquisition value in euros at purchase, transfer value in euros at sale, plus documented costs and improvements under Spanish rules. The United States computes in dollars: basis and proceeds translated under US principles. A long holding period can make currency movement a material part of the difference.
The practical result is that "the gain" is not a single number passed from one return to the other. Your Spanish adviser and your US preparer may each be right and still produce different figures. This matters even more where Spain exempts its figure entirely, because the US return is then the only return collecting tax on the excess above Section 121.
Why this is not the annuity exemption
Do not confuse article 33.4.b with article 38.3. Article 38.3 is the reinvestment-in-life-annuity relief: it can apply to gains on any asset transferred by someone over 65, but only if the proceeds are placed into an insured life annuity within six months, and the exempt reinvestment is capped at €240,000 per taxpayer. It can create a separate US issue because a Spanish annuity is a foreign insurance contract.
Article 33.4.b is more direct. It asks whether the asset sold is the habitual residence of a taxpayer over 65. If yes, Spain can exempt the home-sale gain without asking where the proceeds go. That makes it more attractive commercially than the annuity route. It also means the US problem is narrower and easier to explain: Section 121 is capped, and the Spanish tax credit may be missing.
Timing, ownership and the family file
The relief turns on the seller, the residence and the date. If both spouses own the home, each spouse's age, ownership and residence facts matter. If one spouse is under 65, if title is uneven, if the home was rented out, if the sellers moved into assisted living before the sale, or if death and inheritance changed the ownership immediately before signing, the article 33.4.b analysis is no longer a slogan. It is a file.
This is also where the tax question intersects with immigration evidence. For a non-lucrative visa client, the Spanish home often supports the broader residency story: padrón, TIE renewals, bank records, utility bills and insurance all point to a settled life in Spain. Those same facts can help show habitual residence for the exemption, but they must be assembled before the return is filed, not reconstructed years later. See our practical note on the surviving spouse's administrative continuity for the related record-keeping problem after one spouse dies.
Questions to ask before the notary
Before treating the Spanish exemption as a final answer, put these questions in writing:
- Does the property clearly qualify as the Spanish habitual residence? Gather padrón, utility, insurance, bank and TIE evidence.
- Who owns what share, and who is over 65? A joint title does not always mean identical tax treatment.
- What is the US Section 121 position? Confirm ownership, use, prior exclusions, nonqualified use, depreciation and filing status.
- What is the gain in dollars and in euros? Run both computations before signing.
- What tax would Spain have charged without article 33.4.b? That is the rough size of the credit shield you are giving up.
- Does any US state still claim you? State tax can remain even when Spain and the federal return are coordinated.
The right conclusion may still be to sell and claim the Spanish exemption. Very often it will be. But for a US citizen, "Spain does not tax it" is the beginning of the analysis, not the end.
Frequently asked questions
Does Spain tax the sale of my Spanish main home after age 65?
Article 33.4.b of the Spanish IRPF law excludes gains made by taxpayers over 65 on the transfer of their habitual residence. If the property really is your vivienda habitual and the age and residence conditions are met, Spain can exempt the gain in full. The issue for a US citizen is that the Spanish exemption does not exempt the gain in the United States.
Does the US Section 121 exclusion apply to a Spanish home?
Yes, Section 121 is not limited to US real estate. If the Spanish home was your principal residence and you meet the ownership, use and timing tests, you may exclude up to 250,000 dollars of gain, or up to 500,000 dollars on a qualifying joint return. Gain above that limit can remain taxable in the United States.
Why can the Spanish over-65 exemption increase my US exposure?
Without the Spanish exemption, Spain would tax the Spanish property gain and a US citizen would usually look to foreign tax credit mechanics to prevent full double taxation. With the Spanish exemption, no Spanish tax is paid on the exempt gain. That can leave the US tax on the gain above Section 121 with no Spanish tax credit attached to that part.
Is this the same as the article 38.3 life-annuity exemption?
No. Article 33.4.b applies to the sale of a habitual residence by a taxpayer over 65 and has no annuity purchase requirement. Article 38.3 can apply to gains on any asset if the proceeds are reinvested into an insured life annuity within six months, capped at 240,000 euros per taxpayer. The US problems overlap, but the Spanish conditions and commercial risks are different.
Should an American over 65 avoid selling a Spanish home?
No. The conclusion is not to avoid the sale or ignore the Spanish exemption. The conclusion is to model the sale in both systems before signing: Spanish exemption, US Section 121, currency translation, foreign tax credit limits, state tax residue and any Spanish wealth-tax timing. The exemption is valuable, but it is not the same as worldwide tax-free treatment.
Sources reviewed July 2026: BOE consolidated Ley 35/2006 del IRPF, including article 33.4.b on transfers of habitual residence by taxpayers over 65 and article 80 on Spain's foreign-tax-credit mechanism; IRS Publication 523 and Topic 701 on the Section 121 principal-residence exclusion, ownership and use tests and the $250,000/$500,000 limits; IRS foreign tax credit guidance and Publication 514; and the IRS-published US-Spain income tax treaty materials, including capital-gains and double-tax-relief coordination. General information only, not legal, tax or immigration advice, and not a US tax opinion. Confirm current rules and your own figures with a Spanish asesor fiscal and a US tax adviser before signing any sale.