The US-Spain Tax Treaty: How Americans Avoid Being Taxed Twice
Your Spanish payslip shows IRPF withheld every month. Then a US filing deadline arrives and you realise Washington expects a return on the same income. Many Americans in Spain lose sleep over this. This guide explains how the US-Spain tax treaty, foreign tax credits and the Totalization Agreement work together, so you pay tax once rather than twice.
Disclosure: This post may contain affiliate links. We may earn a commission at no extra cost to you if you make a purchase through these links. Read full disclosure.
Why Americans in Spain Face Two Tax Systems at Once
When I moved to Valencia, I assumed I would file in Spain and that would be the end of it. Then a friend who had lived in Madrid for years asked me over a café con leche whether I had filed my US return. I had not even considered it. That conversation started a long education in cross-border tax. The most important thing I learned is that the overlap is built into the system. You are not misreading anything.
Citizenship-Based Taxation Meets Spanish Residency
The United States taxes its citizens on worldwide income wherever they live. Almost no other country does this. Moving to Seville, Bilbao or a village in the Alpujarras does not end your US filing obligation. Your American passport keeps you inside the IRS system for as long as you hold it. Green card holders are generally treated the same way until they formally give up that status.
Spain works on residency. Once you become a Spanish tax resident, Spain claims the right to tax your worldwide income too. That includes your salary from a Barcelona tech company, interest from an old US savings account, dividends from your Vanguard brokerage and rent from the condo you kept in Austin. The Agencia Tributaria does not care that you are American. It cares that you live here. For the tests that decide whether you count as resident, see Tie-Breaker Rules: US or Spanish Tax Resident? and the wider overview in Spanish Taxes for Foreign Residents: Practical Guide to Staying Compliant.
So two countries both believe they can tax the same euro of income. The good news is that both have agreed a framework for this. That framework is the US-Spain income tax treaty, together with the domestic relief rules each country applies alongside it.
What the Treaty Actually Is and What It Is Not
The US-Spain income tax treaty is a bilateral agreement. It sets out which country has the primary right to tax each type of income and which country must give relief when both have a claim. It covers employment income, business profits, dividends, interest, royalties, capital gains, pensions and government service pay. It also includes a mutual agreement procedure, which lets the two tax authorities negotiate when a taxpayer is caught in a genuine conflict.
The treaty is not a tax exemption. Many people hear “tax treaty” and picture a magic card that removes US tax entirely. It works differently. It mostly allocates taxing rights and guarantees credits. You still file in both countries, and you still report everything. The treaty simply makes sure the combined bill lands close to what the higher-taxing country would charge on its own, rather than the two bills stacked on top of each other.
The treaty also does not replace domestic law. The US relief tools you will use most, the Foreign Tax Credit and the Foreign Earned Income Exclusion, exist in the US Internal Revenue Code whether or not a treaty applies. Spain’s own credit for foreign tax exists in Spanish IRPF law. The treaty sits on top of these, sharpening the rules and settling disputes about who taxes first.
The Saving Clause and Why It Matters So Much to Americans
The saving clause is the single most important provision for US citizens, and it surprises nearly everyone. It says the United States may tax its own citizens and residents as if the treaty did not exist, apart from a short list of listed exceptions. Most treaty benefits that would reduce US tax for a Spanish person do not reduce it for you, because you are American.
Take an example. Laura is an American living in Málaga who works remotely for a Spanish company. A Spanish national in exactly her position, with no US ties, could use the treaty to avoid US tax on most income. Laura cannot rely on the treaty that way, because the saving clause lets the IRS treat her as a regular US taxpayer. What protects Laura is the relief-from-double-taxation article, which is one of the exceptions to the saving clause, plus the US domestic credit and exclusion rules.
That is why US expats rely on credits and exclusions much more than on treaty exemptions. Once you see the saving clause clearly, the rest of the system makes sense. Your goal is not to escape US tax through the treaty. Your goal is to make sure every euro of Spanish tax you pay is properly credited against your US liability.
How the Treaty Decides Who Gets the First Bite
Both countries want a share, so the treaty sets an order of priority. Learning that order removes much of the anxiety. When I first saw how it worked, filing stopped feeling like a guessing game and became a sequence I could follow.
Source Country Versus Residence Country
Every piece of income has a source, meaning the country where it is earned or arises. You also have a residence, meaning the country where you live for tax purposes. The treaty generally gives the source country the first right to tax certain income, and the residence country then gives a credit for that tax.
If you live in Spain and work in Spain, your salary is Spanish-source income earned by a Spanish resident. Spain taxes it fully. The US, as your citizenship country, also claims it, but must give you relief for the Spanish tax under its credit rules. If you live in Spain and own a rental apartment in Chicago, that rental income is US-source. The US has the first right to tax it as the place where the property sits. Spain, as your residence country, also taxes it and gives a credit for the US tax.
This is where many Americans in Spain get dizzy. The US can be both the source country and the citizenship country for the same income. That is exactly why the treaty includes special re-sourcing rules, covered below.
Tie-Breaker Rules for Dual Residents
Sometimes a person meets the residency tests of both countries at the same time. A green card holder who moves to Spain is a common example. Another is someone who still keeps a home in the US while spending a large part of the year here. For these cases the treaty has tie-breaker rules. They are applied in order until one test gives a clear answer.
- Permanent home: which country has a home permanently available to you.
- Centre of vital interests: where your personal and economic ties are closer, such as family, work, bank accounts, social life and property.
- Habitual abode: where you actually live in a regular, ongoing way.
- Nationality: which country you are a citizen of.
- Mutual agreement: if nothing else settles it, the two tax authorities decide between themselves.
For US citizens, the tie-breaker mostly matters on the Spanish side and for state questions, because the saving clause keeps the IRS taxing you either way. For green card holders it can matter a lot more on the US side. Claiming treaty residence in Spain can have immigration and expatriation consequences. A treaty-based position like that is normally disclosed on Form 8833. Do not take it lightly or without professional advice.
Re-Sourcing Rules for US-Source Income
Here is the clever part of the treaty that protects Americans with US investments. Say you live in Spain and hold shares in US companies. The US withholds tax on the dividends. Spain taxes you as a resident and credits the US tax, but only up to the amount the treaty allows the US to charge a Spanish resident. Because of the saving clause, the US then wants to tax you fully as a citizen. Without extra help, that last layer could leave you double taxed.
The treaty solves this with a re-sourcing rule in its relief article. For US citizens who are Spanish residents, part of the US-source income can be treated as foreign-source for US credit purposes. You can then claim a US Foreign Tax Credit for the Spanish tax you paid on it. Specialists sometimes call this the “three-bite” sequence. The US takes its limited treaty-rate share as source country. Spain taxes as residence country with a credit for that share. The US then taxes as citizenship country, with a credit for the Spanish tax.
Getting this right takes careful work on Form 1116, with income placed in the correct categories. It is one of the clearest places where a specialist cross-border preparer earns their keep. For the mechanics of the form, see Form 1116 for Spain: Turning Spanish Income Tax Into a US Credit.
The Tools Americans Actually Use to Avoid Double Tax
The treaty sets the rules of the game, but three practical tools do most of the work. Most Americans in Spain end up using the Foreign Tax Credit as their main shield. Some use the Foreign Earned Income Exclusion, and almost everyone with earned income needs to understand the Totalization Agreement.
The Foreign Tax Credit
The Foreign Tax Credit lets you subtract income tax paid to Spain from the US tax owed on the same income. Spanish income tax on salaries is generally higher than the US federal tax on similar income. Many Americans working here therefore find the credit wipes out their US federal income tax on Spanish wages, often with unused credits left over.
Those excess credits do not simply vanish. Under the US carryover rules they can be carried back or forward to other tax years. That becomes valuable if you later have a year with more US tax than Spanish tax, for example after a move or a big capital gain. Carryover and Carryback of Foreign Tax Credits From Spain walks through how to track them year to year.
The credit works by income category, called baskets. General income such as wages sits in one basket, passive income such as dividends and interest in another. Spanish tax on your salary cannot always shelter US tax on your passive income. That limit catches out people with mixed income, and it is another reason to have someone experienced reviewing the return.
The Foreign Earned Income Exclusion and Housing Exclusion
The Foreign Earned Income Exclusion, claimed on Form 2555, lets you exclude a capped amount of foreign earned income from US taxable income. You must meet either the bona fide residence test or the physical presence test. The foreign housing exclusion or deduction can add relief for qualifying housing costs above a base amount, and higher-cost locations such as Madrid and Barcelona can have adjusted limits.
The exclusion is attractive because it is simple. You can also use both tools at once, excluding some earned income and crediting tax on the rest. In Spain, though, the Foreign Tax Credit is often the stronger choice for salaried workers, because Spanish tax tends to be high enough to cover the US liability on its own. Choosing the exclusion can also carry long-term consequences. Revoking it can restrict you from claiming it again for a period, and income you exclude can affect other credits and contributions.
The decision depends on your income mix, your Spanish tax level, whether you have children and want refundable credits, and your plans to stay or return. FEIE vs Foreign Tax Credit in Spain: Which Saves Americans More goes through realistic scenarios.
The Totalization Agreement for Social Security
The income tax treaty does not cover Social Security contributions. A separate US-Spain Totalization Agreement handles them. Without it, an American working in Spain could owe both Spanish Seguridad Social contributions and US Social Security or self-employment tax on the same earnings. With it, you generally pay into only one system, depending on your situation.
Employees of Spanish companies typically contribute only to Spain. An American sent here temporarily by a US employer may stay in the US system if they obtain a certificate of coverage. Self-employed Americans, the autónomos among us, need to be particularly careful. US self-employment tax is not covered by the Foreign Tax Credit or the exclusion. The agreement is what stops you paying full social contributions to both countries. See The US-Spain Totalization Agreement: Social Security Contributions and, for freelancers, Autonomo Income on a US Return: Self-Employment Tax, Model 130, and Double Filing.
| Relief tool | What it covers | Main form or process | Best suited to | Key limitation |
|---|---|---|---|---|
| Foreign Tax Credit | Income tax paid to Spain on the same income | Form 1116 | Salaried workers and investors paying substantial Spanish IRPF | Works by income basket, so mismatches can leave US tax on some income |
| Foreign Earned Income Exclusion | A capped amount of foreign earned income | Form 2555 | Lower-tax situations or simple earned-income profiles | Does not cover passive income; revoking it can block reuse for a period |
| Foreign housing exclusion or deduction | Qualifying housing costs above a base amount | Form 2555 | Renters in higher-cost cities | Only applies to housing costs above the base amount |
| Treaty re-sourcing rule | Spanish tax on certain US-source income | Form 1116 with treaty positions | Americans with US dividends or interest | Requires careful category and sourcing work |
| Totalization Agreement | Social Security and Seguridad Social contributions | Certificate of coverage or Spanish registration | Employees and autónomos | Does not affect income tax at all |
How Double Taxation Is Avoided, Income Type by Income Type
Talking about the treaty in general only gets you so far. What helped me most was going through my own income line by line and asking which country taxes it first and where the relief comes from. Here is the same exercise for the most common income types I see among American friends in Spain.
| Income type | Who taxes first | How the US side is relieved | How the Spanish side is relieved |
|---|---|---|---|
| Spanish salary | Spain, as source and residence country | Foreign Tax Credit or Foreign Earned Income Exclusion | Not applicable, Spain taxes fully |
| Autónomo business income | Spain, as source and residence country | Foreign Tax Credit or exclusion for income tax; Totalization Agreement for self-employment tax | Not applicable, Spain taxes fully |
| US dividends and interest | US, limited to the treaty rate | Re-sourcing rule allows credit for Spanish tax | Spanish credit for US tax up to the treaty rate |
| US rental property | US, as the country where the property sits | US tax applies; Spanish tax does not reduce it | Spanish credit for US tax paid |
| Spanish rental property | Spain, as source country | Foreign Tax Credit for Spanish tax | Not applicable, Spain taxes fully |
| Capital gains on shares | Generally Spain, as residence country | Foreign Tax Credit for Spanish tax | Not applicable, Spain taxes as residence |
| Pensions and US Social Security | Set by the treaty’s dedicated pension and social security provisions | Depends on the payment type and the treaty article | Depends on the payment type and the treaty article |
Salaries and Autónomo Income
Salaried Americans in Spain usually have the cleanest situation. Your employer withholds IRPF through payroll. You file your Spanish Renta, typically Modelo 100. Then on the US side you claim a Foreign Tax Credit for the Spanish tax. In many cases the US federal income tax comes to nothing, though you still have to file. Think of the US return here as a reconciliation exercise more than a payment.
Autónomos have more moving parts. You pay quarterly advances through Model 130, may charge IVA, and contribute to Spanish social security through RETA. On the US side, the business income appears on Schedule C. Without the Totalization Agreement you would also face US self-employment tax. Forget to apply the agreement correctly and you could end up funding two pension systems on the same earnings. I have met a graphic designer in Granada who did exactly that for two years before anyone noticed.
Investments, Funds and Rental Property
Investments are where Americans in Spain get hurt most, and the treaty only solves part of the problem. US dividends and interest benefit from the re-sourcing rule discussed earlier. Spanish investment funds are another matter. Most Spanish and EU-domiciled funds count as Passive Foreign Investment Companies under US law. That brings harsh US tax treatment and heavy reporting that the treaty does nothing to soften. Before you let your Spanish bank sell you a fondo de inversión, read Spanish Investment Funds and PFIC Rules: The Trap Americans Fall Into.
Rental property follows the source principle. A flat in Valencia that you rent out is taxed first in Spain, and the US gives you a credit. A house in Ohio that you rent out is taxed first in the US. Spain taxes it too as your residence country and gives a credit for the US tax. The tricky part is that the two countries calculate rental profit differently. Depreciation, deductible expenses and even which costs are allowed can all differ. So the credit rarely lines up perfectly, and you need clean records on both sides.
Pensions, Social Security and Retirement Accounts
Retirement income has its own dedicated treaty provisions. Private pensions, government pensions and Social Security benefits are treated as distinct categories, each allocated under its own rule. Several of these provisions appear among the exceptions to the saving clause, which makes them unusual. Because the outcome depends on the exact type of payment, check the specific article that applies to each income stream rather than assuming one rule covers all of them. For Social Security specifically, see Claiming US Social Security While Living in Spain: Tax Treatment.
US retirement accounts such as 401(k)s, traditional IRAs and Roth IRAs raise extra questions. The US gives them special tax-deferred or tax-free status. Spain does not automatically mirror that treatment, and how Spanish law views growth and withdrawals from them deserves careful review before you take money out. A Roth distribution that is tax-free in the US is not guaranteed the same outcome on your Spanish return. Planning the timing and size of withdrawals with someone who understands both systems can make a big difference.
Where the Treaty Stops Protecting You
Even after all this, the treaty has limits. Knowing where they are is what separates a calm expat from one who gets an unpleasant letter from the IRS or the Agencia Tributaria. These are the gaps I warn every new American arrival about.
State Taxes Are Largely Outside the Treaty
The US-Spain treaty governs federal income tax. US states are generally not bound by it. Some states also do not give a credit for foreign tax. If you previously lived in a state that taxes residents on worldwide income and you never properly cut your ties, that state may still consider you a resident. It can then tax your Spanish income with no treaty relief at all.
The classic example is someone who keeps a driver’s licence, voter registration, a home and a bank address in a high-tax state while living in Madrid. Each state has its own residency rules, and some are much stickier than others. Before you move, plan how you will establish that you have left. See State Tax Residency When You Move to Spain: Which States Keep Taxing You.
Reporting Obligations Do Not Disappear
The treaty prevents double taxation. It does not prevent double reporting. The US requires FBAR filings for foreign financial accounts above its threshold, and Form 8938 under FATCA for specified foreign assets above higher thresholds. Spain has its own foreign asset return, Modelo 720, for residents holding assets abroad above its own threshold. It also has Modelo 721 for crypto held abroad.
As an American resident in Spain, you are likely to report your US accounts to Spain and your Spanish accounts to the US. The two sets of forms cover the mirror image of the same life. Penalties for missing these filings can hurt even when no tax is owed. For coordinating them, see Modelo 720 and FBAR Together: The Same Assets Reported to Two Countries.
The Beckham Law and Its Interaction With US Credits
Spain’s special expat regime, popularly called the Beckham Law, lets qualifying new residents pay Spanish tax under a flat-rate system on Spanish-source income for a limited period. Foreign income is largely left out of Spanish taxation during that time. For many nationalities this is a big saving. For Americans the picture is more complicated.
If your Spanish tax goes down, your US Foreign Tax Credit goes down with it. Income that Spain no longer taxes, such as US investment income, may be fully exposed to US tax with no Spanish credit to offset it. Sometimes the regime still wins overall, and sometimes the US bill swallows most of the benefit. Running the numbers on both returns before you opt in is essential. See Does the Beckham Law Actually Help an American? The US Side of the Math.
Why Specialist Help Pays Off: Working With Taxes for Expats
I tried to do my first cross-border returns myself, and I would not recommend it. I got the Spanish return mostly right with help from a gestor. My US return, though, missed the passive income basket split, ignored the re-sourcing rule on my US dividends and left credits uncarried. A gestor knows Spanish law. A hometown CPA knows US law. The treaty sits in the gap between them. That is why I now point American friends to Taxes for Expats, a firm that specialises in US returns for Americans living abroad.
What a Cross-Border Specialist Does Differently
Taxes for Expats focuses on US citizens and green card holders abroad. Their preparers work with Forms 1116, 2555, 8833, 8938 and FBAR as routine, not as an exotic once-a-year exception. For an American in Spain, that means someone who understands the saving clause and the re-sourcing rule. They know how Spanish IRPF on your Renta translates into US credits and how to track carryovers across years. They can also flag PFIC exposure before it becomes an expensive surprise.
They also help coordinate with your Spanish side. A good US expat preparer will ask for your Spanish return and payslips. They will check that the figures you report to the IRS match what you declared to the Agencia Tributaria, and they will spot where the two systems recognise income at different times. That matching is often where double taxation creeps back in, even under a treaty designed to prevent it.
If you have fallen behind on US filings, which is common among people who moved without realising they still had to file, Taxes for Expats can also guide you through the IRS Streamlined Filing Compliance Procedures. Pricing varies with the complexity of your return and the forms involved, so check the Taxes for Expats website for current figures before you commit.
How to Get Started Step by Step
Getting your treaty position right is much easier when you arrive at the first conversation prepared. Here is the sequence I follow each year, and the one I suggest to friends.
- Gather your Spanish documents: your filed Modelo 100, your certificado de retenciones from your employer, and Model 130 and 303 filings if you are autónomo.
- Collect your US documents: brokerage statements, 1099 forms, rental income records and any US pension or Social Security statements.
- List every foreign financial account you held during the year, with its highest balance, for FBAR and Form 8938 purposes.
- Note your days in Spain and in the US, and any changes to your residence, so residency and tie-breaker questions can be answered properly.
- Bring prior-year US returns so any foreign tax credit carryovers can be tracked forward.
- Book a consultation with Taxes for Expats and explain your full situation, including any Beckham Law election, state ties and Spanish investment funds.
- Review the draft return to confirm your Spanish tax figures match your Renta exactly before anything is filed.
- Keep a copy of everything in one folder, because next year’s credit calculations will depend on this year’s numbers.
Choosing the Right Support for Your Situation
Not everyone needs the same level of help. A single salaried American renting a flat in Madrid with no US investments has a fairly simple profile. A retired couple in Alicante drawing Social Security and IRA distributions while renting out a US home needs far more attention. The same is true of an autónomo with US clients and a PFIC-heavy portfolio. Be honest about your complexity when you choose your support.
What I value about working with Taxes for Expats is that they understand both halves of the problem, even though they file only the US half. Pair them with a reliable Spanish gestor or asesor fiscal for your Renta, and make sure the two sides share information. You then have a system where nothing falls through the gap the treaty was written to close. If you are tired of lying awake wondering whether you are paying twice, contact Taxes for Expats and get your US return reviewed by people who do this every day. Getting the treaty right once is far easier than unwinding years of mistakes.
Disclaimer
This article is for general informational purposes only and does not constitute professional advice. Laws, prices and regulations vary by location and change over time. Consult a qualified professional for guidance on your specific situation.