UN pensions are taxable in Spain: what the Supreme Court ruled and how to protect yourself
The taxation of UN pensions in Spain was fought over in the courts for more than a decade, but the Spanish Supreme Court judgment of 21 December 2022 (no. 1737/2022) put an end to the uncertainty: former United Nations officials who are tax resident in Spain cannot apply the personal income tax (IRPF) exemption to the pension they receive from the United Nations Joint Staff Pension Fund.
If you have worked as an official of the UN or one of its specialised agencies (WHO, UNESCO, FAO, ILO…) and now live in Spain, you have probably wondered whether your retirement pension has to be declared for Spanish income tax or whether it keeps the tax exemption you enjoyed while in service. Following the Supreme Court ruling, the answer is clear: it is taxable. That does not mean, however, that there is no room to optimise your tax position, or that you should accept any assessment without having it reviewed first.
Key points
- Taxed as employment income: since December 2022, UN pensions are subject to Spanish income tax as employment income under article 17 of the IRPF Act, following the Supreme Court judgment of 21 December 2022 (no. 1737/2022).
- Not an exempt “emolument”: the Court held that pensions do not fall within that concept in the 1946 Convention on the Privileges and Immunities of the United Nations.
- Settled case law: the same reasoning had been applied a few months earlier to NATO pensioners (Supreme Court judgment of 13 June 2022), so this is not an isolated decision.
- EU officials and military personnel are treated differently: pensions paid to EU officials benefit from an express exemption, and the salary (not the pension) of Spanish military personnel on active UN or NATO missions is exempt under article 7.p) of the IRPF Act.
- There is still room to act: reviewing withholdings, applying double taxation relief, correcting tax returns for years not yet time-barred and pursuing the ongoing challenge to the tax discrimination suffered by international civil servants in other taxes.
What the Spanish Supreme Court said about UN pensions
To understand how UN pensions are taxed in Spain, you need to start from a single judgment. The Supreme Court settled the issue in its ruling of 21 December 2022 (no. 1737/2022), handed down in the cassation appeal lodged by the State Attorney’s Office against an earlier judgment of the High Court of Justice of the Balearic Islands that had upheld the exemption.
The legal debate turned on a single provision: Section 18(b) of Spain’s instrument of accession to the 1946 Convention on the Privileges and Immunities of the United Nations (in Spanish), published in the Official State Gazette following Spain’s ratification in 1974. This provision exempts from taxation the “salaries and emoluments” paid by the UN to its officials.
The Court interprets the term “emoluments” as being tied to active service and the actual performance of duties. Once officials retire, they no longer serve the Organisation, so the pension they receive (even though it is paid by the Joint Staff Pension Fund, which is partly funded by their own contributions) is paid in the pensioner’s own interest rather than in the interest of the UN.
For that reason, the Supreme Court concluded that the IRPF exemption does not apply to UN pensions and that the pension must be taxed as employment income under article 17 of Act 35/2006 on Personal Income Tax. A detailed legal analysis of the judgment (in Spanish) also traces how the dispute developed from the first rulings through to the establishment of settled case law.
Why there was so much uncertainty before the judgment
Until 2022, the administrative and judicial positions were at odds. The Spanish Tax Agency and the Central Economic-Administrative Court (TEAC, decision of 5 April 2018) maintained that UN pensions were taxable in Spain, while several judgments of the High Court of Justice of Madrid handed down between 2003 and 2016, and that of the High Court of Justice of the Balearic Islands of 16 December 2020 (appeal 188/2020), had recognised the exemption. It was this last judgment that the State Attorney’s Office appealed and that led to the Supreme Court’s unifying ruling.
The Directorate-General for Taxation had itself defended taxability in several binding rulings, relying on the fact that the privileges in the Convention are granted in the interest of the Organisation and not of the individual official, in accordance with Section 20 of the Convention. This back-and-forth between courts created years of legal uncertainty for retired officials of international organisations living in Spain, many of whom had filed their returns applying the exemption while awaiting a definitive ruling.
UN vs NATO vs EU pensions: a comparison of their tax treatment
Not all international organisations receive the same tax treatment in Spain, and confusing them is one of the most common mistakes among pensioners. The following table summarises the position of each group:
| Organisation / group | Is the pension subject to Spanish income tax? | Legal basis | Reference judgment or position |
|---|---|---|---|
| UN and specialised agencies (WHO, FAO, UNESCO, ILO…) | Yes | 1946 UN Convention, Section 18(b) | Supreme Court 21-12-2022, no. 1737/2022 |
| NATO | Yes | 1951 Ottawa Agreement, art. XIX | Supreme Court 13-06-2022, cassation appeal 5579/2020 |
| European Union (EU officials) | No (express exemption) | EU Protocol on Privileges and Immunities, art. 13 | Exemption recognised in the Protocol itself |
| Spanish military personnel on active UN/NATO missions (salary, not pension) | The salary while in service is not | Art. 7.p) IRPF Act | Supreme Court 8-4-2024 and judgments from 2025-2026 (UNIFIL) |
The case of military personnel on active missions is not comparable to a retirement pension: it concerns the salary earned during active service abroad, not the benefit received after retirement, which is what the UN pension judgment deals with.
How to protect yourself: tax strategies now that UN pensions are taxable
The fact that UN pensions are now clearly subject to Spanish income tax does not mean there is nothing you can do. Specialist advice for UN pensioners can make a real difference to the final tax bill. These are the usual lines of work:
- Reviewing the withholding calculation and how the pension is included in the tax base, as part of the pension may correspond to contributions the official made in the past out of income that was already taxed. This may allow the tax base to be reduced and economic double taxation to be avoided.
- Applying international double taxation relief (art. 80 IRPF Act) if an equivalent tax has already been paid on the same income in the country where the official was posted.
- Correcting tax returns for years that are not time-barred (the last four tax years) if it turns out that income was declared incorrectly or that criteria already overturned by the courts were applied.
- Planning overall wealth taxation: inheritance, wealth tax and gains on the sale of a home, where international civil servants are still treated differently and each case should be reviewed individually.
- Exploring a tax discrimination complaint before the European institutions where the different treatment between residents affects other taxes beyond income tax on the pension.
To assess which of these options applies to you, the analysis must start from your specific file: the paying organisation, the tax years affected, your previous country of residence and the structure of your assets. Riera Consulting’s International Taxation service is designed precisely for situations like these, and our dedicated EU officials area also handles residence, nationality and inheritance matters that often go hand in hand with this type of client.
Riera Consulting’s track record in defending international civil servants
Riera Consulting did not come to this area by chance. As reported in a feature on the firm in Emprendedores magazine (in Spanish), Riera Consulting received the ProDespachos Award at the latest edition of the Emprendedores Awards for its work in defending a fairer tax system for international workers.
In 2020 the firm, led by Víctor Riera, filed a complaint with the European Commission about the tax discrimination suffered in Spain by officials and other servants of the European institutions, even though they live, work and pay tax in Spain. The complaint concerns benefits such as the wealth tax exemption, reductions in inheritance and gift tax, the exclusion from imputed income on real estate and the exemption for reinvestment in a main residence.
The same feature notes that Riera Consulting is currently studying the pensions of international civil servants (including those from the UN, NATO and the EU) and that it provides services to the Association of Spanish International Civil Servants (AFIE) in Madrid. This specialisation, uncommon among Spanish firms, has driven the firm’s expansion from its original base in Alicante to Madrid and Barcelona.
Common mistakes when declaring a UN pension in your Spanish tax return
- Applying the exemption out of habit, carrying over the approach of the 2020 judgment of the High Court of Justice of the Balearic Islands, which was overturned by the Supreme Court in 2022.
- Failing to distinguish between salary in active service and a retirement pension: the former may be exempt in certain cases of work performed abroad, but that does not automatically extend to the pension.
- Ignoring the part of the pension that corresponds to your own contributions already taxed, which can lead to paying tax twice on the same income.
- Letting the four-year deadline pass for correcting returns for years in which an incorrect tax approach was applied.
- Treating the UN case as if it were the EU case, when the two organisations have different regimes of privileges and immunities and therefore different tax consequences.
Frequently asked questions
Is a UN pension exempt from income tax in Spain?
A UN retirement pension is not exempt from Spanish income tax (IRPF). Since the Supreme Court judgment of 21 December 2022, it is taxed as employment income under article 17 of the IRPF Act.
What exactly did the 2022 Supreme Court judgment say?
The judgment (no. 1737/2022) establishes that the concept of exempt “emoluments” in the UN Convention does not include retirement pensions, which are paid in the interest of the official and not of the Organisation.
Does this case law also affect NATO pensioners?
Yes. The Supreme Court applied equivalent reasoning to NATO pensioners in its judgment of 13 June 2022, confirming that their retirement pension is also subject to Spanish income tax.
What about pensions paid to EU officials?
Pensions paid to EU officials follow a different regime: the Protocol on the Privileges and Immunities of the European Union expressly recognises their exemption, unlike the UN and NATO.
Can I recover income tax overpaid in previous years?
Only for tax years that are not time-barred, generally the last four years, and provided there is a calculation error or a point that can be corrected other than the criterion established by the Supreme Court in 2022.
Why is the salary of a soldier on a UN mission exempt but the pension is not?
Salary earned in active service may qualify for the exemption in article 7.p) of the IRPF Act, which is designed for income from work actually performed abroad. A retirement pension does not derive from active service, so it falls outside that provision.
What can I do if the Spanish Tax Agency has already issued an assessment on this?
It is advisable to review the full file before accepting it, as there may be scope to challenge the amount, apply reliefs that were not taken into account or arrange payment in instalments, with the support of a specialist.
Is specialist advice worthwhile if I have to pay tax anyway?
Yes. Although the taxation of UN pensions is now settled, the final amount depends on factors such as your own contributions, double taxation or your assets, where there is still legitimate room for optimisation.
Turn the Supreme Court ruling into a well-prepared tax return, not a problem
The taxation of UN pensions in Spain is no longer an open question, but it remains a technical area in which a small detail (a contribution counted incorrectly, a tax year left unreviewed, a forgotten relief) can make a significant difference to the tax payable. At Riera Consulting we have spent years working alongside international civil servants and organisations such as AFIE, and we know first-hand the details that make the difference in these cases.
If you receive, or are about to start receiving, a pension from the UN, NATO or another international organisation and want to make sure you declare it correctly (and do not pay more than you should), contact our International Taxation team and we will review your case.




