Articles 19 and 20 of the 1990 Spain-US Convention for the Avoidance of Double Taxation occupy a specialised corner of the treaty that receives far less commentary than the dividend, interest, and capital gains provisions — yet their practical significance for US diplomats, military personnel, federal employees, visiting academics, and students living in Spain is enormous. Done correctly, these provisions can mean the difference between a Spanish resident who owes nothing to the AEAT on their government salary and one facing a full IRPF assessment reaching 47% of the same income.
This article examines both articles in depth: the government service rule and its nationality exception, pension treatment for government employees, the educator and trainee exemptions, the interaction with the saving clause, Vienna Convention protections for diplomatic personnel, the NATO Status of Forces Agreement, and Spanish social security obligations for US government employees stationed in Spain.
Article 19(1): The Government Service Rule
The fundamental rule of Article 19(1) is expressed concisely in the treaty text: remuneration, other than a pension, paid by a Contracting State or a political subdivision or local authority thereof to an individual in respect of services rendered to that State or subdivision or authority shall be taxable only in that State.
What this means in practice is straightforward: when the United States federal government — the State Department, Department of Defense, USAID, the FBI, the CIA, the IRS itself, NASA, or any other federal agency — pays a salary to an employee who provides government services, that salary is taxable only in the United States. Spain gives up its right to tax that income. Even if the employee lives in Spain, spends 365 days per year in Spain, and is formally registered as a Spanish tax resident, the salary paid by the US government for US government service is beyond the reach of Spanish IRPF.
The same principle applies in reverse: salaries paid by the Spanish government, the Junta de Andalucía, or the Ajuntament de Barcelona to Spanish civil servants working in the United States are taxable only in Spain. The US does not tax that income under Article 19(1).
Why This Matters: The Spanish IRPF Exposure Without the Treaty
Without Article 19, a US federal employee who is a Spanish tax resident under Article 9 LIRPF would owe Spanish IRPF on their worldwide income — including their US government salary. Spain's progressive IRPF rates reach 47% for income above EUR 300,000 (and can reach 54% in high-tax autonomías such as Catalonia or Valencia). For a senior diplomat, a senior military officer, or a senior federal civilian employee earning USD 150,000 to USD 300,000, the Spanish IRPF exposure in the absence of treaty protection could run to tens of thousands of euros per year.
Article 19 provides complete relief. Spain cedes its taxing right entirely — not through a foreign tax credit mechanism, not through an exemption-with-progression calculation, but by simply removing the income from Spain's tax base altogether. The individual files their US Form 1040 reporting the government salary, pays US income tax on it, and Spain neither assesses nor credits the income.
The Nationality Exception: Article 19(1)(b)
The government service rule carries a crucial carve-out. Article 19(1)(b) provides that the exclusive US taxation right does not apply — and Spain may tax — if the individual is a national of Spain but is not a national of the United States and does not have immigrant status in the United States (i.e., is not a green card holder).
The logic is anti-avoidance: the government service rule is designed to protect the paying state's right to tax its own employees. If the employee is a Spanish national — with strong ties to Spain and none (or limited ones) to the US — it would be inappropriate to allow the US to monopolise taxation of income earned by someone who is, in every meaningful sense, Spanish. The nationality exception restores Spanish taxing rights in that scenario.
Consider a concrete example. Elena is a Spanish national who has never obtained US citizenship or a green card. She has been hired by the US Embassy in Madrid as a locally engaged staff member — a common practice at US diplomatic missions worldwide. Her salary is paid by the US State Department. Under Article 19(1)(b), because Elena is a Spanish national and is neither a US national nor a US permanent resident, Spain retains the right to tax her US government salary under the IRPF. The exclusive US tax rule does not protect her.
The nationality exception does not apply if the Spanish national is also a US national (dual citizen) or holds a US green card. In those cases, the US exclusive taxation right is preserved, and Spain cannot tax the government salary.
Government Pensions: Article 19(2)
Article 19(2) extends the government service rule to pensions. A pension paid by the United States, or by a political subdivision or local authority, to an individual in respect of services rendered to the US government is taxable only in the United States — subject to the same nationality exception as the salary rule.
This is critically important for retired US government employees who have moved to Spain. A retired US federal civil servant receiving a Civil Service Retirement System (CSRS) or Federal Employees Retirement System (FERS) pension, a retired US military officer receiving military retirement pay, or a retired State Department official receiving a foreign service pension — all of these government pensions are taxable only in the United States under Article 19(2). Spain does not tax them.
The distinction between a "government pension" under Article 19 and an "ordinary pension" under Article 18 is therefore significant and must be assessed carefully. Article 18 governs pensions paid in respect of past private-sector employment — these are generally taxable in the residence state (Spain, for a Spanish resident) with US withholding reduced or eliminated. Article 19 governs pensions paid in respect of government service — these are taxable only in the paying state (US) regardless of the recipient's residence.
US Military Pensions: Government Service or Private Pension?
US military retirement pay — the monthly pension received by a retired member of the US armed forces — is paid by the US Department of Defense in respect of military service rendered to the United States government. It falls squarely within Article 19(2) as a government pension. It is taxable only in the United States. A retired US colonel living in Marbella, receiving USD 4,500 per month in military retirement pay, owes no Spanish IRPF on those payments.
Disability pay and survivor benefit plan (SBP) payments connected to US military service are treated in the same way — they derive from government service and receive the exclusive US taxation treatment under Article 19. Veterans' disability compensation, which is also paid by the Department of Veterans Affairs (VA), falls within the same framework.
The contrast with Article 18 is important. If a former US military officer retires and takes a job with a private defence contractor, any pension from that private employer would be an Article 18 pension taxable in Spain (where the individual resides). The government pension from military service remains an Article 19 pension regardless of what the individual does after retiring from government.
US Social Security: The Saving Clause Interaction
US Social Security benefits paid to a Spanish resident do not fall within Article 19 in the same way as a government service salary or pension. Social Security is a statutory benefit programme, not a payment for specific services rendered to the government. The treatment of US Social Security for a Spanish resident depends on the interaction between Article 18 (pensions generally), the saving clause, and the US-Spain Social Security Totalization Agreement signed in 1990.
Under the US-Spain Social Security Totalization Agreement — a separate bilateral instrument from the tax treaty — the two countries coordinate which country's social security system covers a given worker, to avoid dual contribution requirements. An American working in Spain under secondment may be covered exclusively by either the US Social Security system or the Spanish Seguridad Social system, not both.
For a Spanish resident receiving US Social Security retirement benefits, Spanish law historically treated these as pensions taxable in Spain, while US domestic law imposes a 25.5% or 85% inclusion rate on Social Security benefits subject to US income tax, with treaty-based withholding reduced under Article 18. The saving clause means US citizens cannot escape US tax on their Social Security benefits through the treaty — the US retains its domestic right to tax them regardless of Spanish residency. For non-citizen Spanish residents receiving US Social Security (for instance, a Spanish national who worked in the US and is now retired in Spain), the treaty analysis is different, and Article 18(2) may provide the relevant framework.
Spanish Government Employees in the United States
The mirror image of the US government employee in Spain is the Spanish civil servant working in the United States — at the Spanish Embassy in Washington, a Spanish Consulate in New York, or in a bilateral government-to-government programme. Under Article 19(1), Spain retains the exclusive right to tax salaries paid by the Spanish government for services rendered to Spain. The United States does not tax those salaries.
The nationality exception applies symmetrically: if the Spanish civil servant is a US national (or a US permanent resident) who is not also a Spanish national, the US may tax their Spanish government salary. In practice, this is rare — Spanish government employees posted to the US are overwhelmingly Spanish nationals — but the exception must be checked.
Article 20: Students and Trainees
Article 20 of the Spain-US Convention addresses a distinct category: individuals who are present in one Contracting State solely for the purpose of their education or training. The provision states that payments received by a student or business apprentice from sources outside Spain — where Spain is the country of study — for the purposes of their maintenance, education, or training shall not be taxed in Spain.
The provision requires three conditions: the individual must be a resident of the United States (or have been a US resident immediately before coming to Spain); they must be present in Spain solely for education or training; and the payments must originate from outside Spain. If all three conditions are met, the stipend, scholarship, or financial support is entirely exempt from Spanish IRPF, regardless of its amount.
Practical Example: US Student on Exchange in Spain
Consider Michael, a 22-year-old US citizen enrolled at a California state university who participates in a semester-abroad programme in Seville. He receives a monthly stipend of USD 1,500 from his home university to cover living expenses, tuition support, and educational materials. The stipend is paid from the US university's endowment — a US source.
Under Article 20: Michael is a US resident (California) immediately before coming to Spain. He is present in Spain solely for education. The stipend originates from a US source (his California university). All three conditions are met. Spain does not tax Michael's stipend. He files no Spanish tax return in respect of these payments. In the US, the stipend may be includible in Michael's gross income under IRC § 117 rules (scholarship rules) depending on its characterisation, but that is a US domestic question independent of the treaty.
The Educator Exemption: Visiting Teachers and Researchers
The Spain-US treaty includes an educator provision that provides a time-limited exemption for visiting teachers, professors, and researchers. Under Article 20(2), an individual who is a resident of one Contracting State and who visits the other Contracting State for a period not exceeding two years for the purpose of teaching or conducting research at a recognised educational institution shall be exempt from tax in the visited state on the remuneration received for that teaching or research.
A US professor who accepts a two-year visiting appointment at the Universidad Complutense de Madrid therefore receives their Spanish university salary free of Spanish IRPF for the duration of that appointment, up to the two-year limit. The income remains taxable in the United States (subject to the saving clause for US citizens, and the general Article 4 residency rules for non-citizens). The exemption is automatic — no special application is required — but the individual must ensure they do not overstay the two-year window, after which Spanish IRPF applies to the entirety of the Spanish academic salary.
Similarly, a Spanish researcher who spends two years at MIT or Stanford would be exempt from US federal income tax on their US university remuneration for those two years — a benefit that is symmetrically available to Spanish academics visiting the United States.
The research institution must be a "recognised educational institution" — universities, colleges, and official research institutes clearly qualify; private think-tanks and commercial research laboratories may require closer examination depending on their accreditation status.
The Saving Clause: What It Means for US Government Employees in Spain
Article 1(4) of the Spain-US Convention contains the saving clause, which provides that the United States may tax its citizens and residents as if the treaty had not come into force. For US government employees in Spain who are US citizens — the vast majority — the saving clause means the US retains its full right to tax their worldwide income. Article 19 does not reduce their US tax burden; it protects them against Spanish taxation.
This asymmetry is fundamental and often misunderstood. The US diplomat based in Madrid, for example, pays full US income tax on their salary — as they always have — and Article 19 simply ensures that Spain does not also tax that same salary. The treaty provides relief from double taxation on the Spanish side; the US side is unaffected by the treaty due to the saving clause.
For non-citizen US government employees — for example, a lawful permanent resident (green card holder) serving as a federal civilian employee in Spain — the saving clause also applies, since the US taxes its green card holders on worldwide income just as it taxes citizens. Article 19 still protects them from Spanish taxation, but they remain fully subject to US tax.
US Diplomatic and Consular Staff: Vienna Convention vs Tax Treaty
US diplomatic and consular personnel in Spain benefit from protections under two separate legal frameworks: the Vienna Convention on Diplomatic Relations (1961) and the Vienna Convention on Consular Relations (1963) on one hand, and the Spain-US tax treaty on the other.
The Vienna Conventions provide blanket immunity from Spanish tax jurisdiction for diplomatic agents and, to a more limited extent, consular officers. Under Article 34 of the Vienna Convention on Diplomatic Relations, diplomatic agents are exempt from all dues and taxes, personal or real, national, regional, or municipal. This exemption is more comprehensive than the treaty provision and does not depend on the treaty's conditions being met.
In practice, the Vienna Convention provides the primary protection for accredited diplomatic agents. The treaty's Article 19 operates as a belt-and-suspenders protection — reinforcing the Vienna Convention immunity from a different legal basis. For non-accredited diplomatic-mission employees who may not enjoy full Vienna Convention immunity (locally engaged staff, administrative personnel), Article 19 of the treaty becomes the primary tool, subject to the nationality exception discussed above.
The interaction requires attention in edge cases: a US Embassy employee who is a Spanish national and does not hold diplomatic accreditation enjoys neither Vienna Convention immunity (because they are not an accredited diplomat) nor Article 19 protection (because of the nationality exception). Spain can and does tax their salary under IRPF.
NATO Forces and the Status of Forces Agreement (SOFA)
Spain hosts significant US military facilities: the Naval Station Rota (Cádiz) and Morón Air Base (Seville) are the two principal installations under the bilateral Defence Cooperation Agreement. US service members stationed at these bases are subject to the NATO Status of Forces Agreement (SOFA) — a multilateral treaty separate from the bilateral tax treaty.
The NATO SOFA, to which both Spain and the United States are parties, provides that US service members stationed in Spain remain subject to US personal income tax laws and are not subject to Spanish income tax on their military pay and allowances received from the US government. The SOFA effectively replicates, on a multilateral basis, the exclusive US taxation right that Article 19 of the bilateral treaty also provides.
In the event of apparent conflict between the SOFA and the bilateral treaty, both legal instruments point toward the same outcome — exclusive US taxation of US military pay — so conflicts in this specific area are unusual. The SOFA may, however, interact differently with other aspects of a service member's tax situation: income earned from private employment off-base, income of a military spouse employed by a Spanish employer, or capital gains on Spanish real estate acquired by a service member are not covered by either Article 19 or the SOFA and must be analysed under the general treaty provisions.
Spanish Seguridad Social: US Government Employees
A separate and practically important question concerns social security contributions. Is a US government employee stationed in Spain — a federal civilian, a diplomat, or a service member — required to contribute to Spain's Seguridad Social system?
The US-Spain Social Security Totalization Agreement governs this question. Under the Totalization Agreement, a worker is generally covered by the social security system of only one country at a time. US government employees sent to Spain on official assignment by the federal government are typically covered exclusively by US Social Security (FICA) under the "government employee" provisions of the Totalization Agreement. They are not required to contribute to the Spanish Seguridad Social, and their employers (US government agencies) are not required to make Spanish employer contributions.
This coverage certificate must be properly documented: the relevant US Social Security Administration office issues a certificate of coverage (Form USA/E-1) confirming that the employee continues to be covered under the US system. Without this certificate, a Spanish social security audit could assert dual obligation — a situation to be avoided given Spain's enforcement activity in this area.
Locally engaged Spanish staff employed by the US Embassy or US military installations in Spain — a different category from US government employees sent on assignment — are subject to ordinary Spanish Seguridad Social contributions in the same manner as any Spanish employer-employee relationship.
Summary: Which Article Applies to Common Scenarios
| Situation | Applicable Article | Tax Outcome |
|---|---|---|
| US diplomat in Madrid (US national) | Art. 19(1) + Vienna Convention | Only US taxes; Spain exempt |
| US diplomat in Madrid (Spanish national, not US citizen) | Art. 19(1)(b) nationality exception | Spain may tax under IRPF |
| Retired US federal employee in Marbella | Art. 19(2) — government pension | Only US taxes; Spain exempt |
| Retired US military officer in Seville | Art. 19(2) — government pension | Only US taxes; Spain exempt |
| US Social Security recipient in Barcelona | Art. 18 / Totalization Agreement | Complex — depends on nationality and residency |
| US visiting professor at UAM (2-year limit) | Art. 20(2) — educator exemption | Spanish salary exempt in Spain for up to 2 years |
| US exchange student with US university stipend | Art. 20(1) — student exemption | Stipend not taxable in Spain |
| US soldier at Rota Naval Station | Art. 19(1) + NATO SOFA | Military pay taxable only in US |
| Spanish civil servant at Spanish Embassy, Washington | Art. 19(1) (mirror rule) | Only Spain taxes; US exempt |
Filing Obligations: The Practical Compliance Picture
A US government employee living in Spain must navigate obligations on both sides of the Atlantic. On the US side: Form 1040 (annual return reporting worldwide income, including the government salary), FBAR (FinCEN Form 114) if Spanish bank accounts exceed USD 10,000, and potentially Form 8938 under FATCA for foreign financial assets above the applicable threshold. The saving clause means no treaty election is needed to trigger US taxation — it applies automatically.
On the Spanish side: a US government employee who is a Spanish tax resident must still file a Spanish Modelo 100 (IRPF declaration) if they have any Spanish-source income or if they are required to declare worldwide income by virtue of Spanish residency. The government salary from the US is excluded from the Spanish tax base by Article 19 and does not appear on the Spanish return as taxable income — but if the employee has Spanish bank interest, rental income from a Spanish property, or investment income from Spanish securities, those must be declared and taxed in Spain. The Article 19 exemption is income-specific, not a blanket exemption from all Spanish filing obligations.
US Government Employee in Spain? Get the Right Advice.
Whether you are a diplomat, a federal civilian, a retired military officer, a visiting professor, or a student in Spain, the interaction between the treaty, the saving clause, and Spanish IRPF requires precise, fact-specific analysis. Jacob Salama advises US clients on Spanish tax compliance, treaty claims, and AEAT interactions from his base in Málaga.
Book a Consultation