Contains AI-generated informationMore information

Pensions and retirement accountsArticle 4 of 10 · 3 min read

Foreign government service pensions and why treaty treatment differs

Pensions earned in a foreign government's service are usually taxed under different treaty wording than private pensions, often favouring the country that pays. This page helps anyone living in Spain with a public-service pension work out which country may tax it.

Key rules

  • Default rule: Government service pensions are usually taxable only in the country that pays them, not where you live.
  • Private pensions: Pensions built from your own contributions are private, so the government clause does not apply to them.
  • Nationality exception: Spain can tax if you live in Spain and are a Spanish national, and under many treaties if you were not a national of the paying state.
  • Treaty text: The wording differs between treaties, so check the government service article of your own treaty.

Do not treat a government pension like a private one

A pension paid for work in a foreign government's service usually follows its own treaty clause. Most Spanish treaties say the paying state is the only one that taxes it. So the rule you may have read for private pensions, where the country you live in taxes you, usually does not apply here.

What counts as a government pension

A pension is a government pension when the state, a regional or local authority, or a fund they created, pays it for services you gave to that state in a governmental role. Think of civil servants, soldiers and public-sector employees.

A pension is private when your own contributions build it, as in a contributory private scheme or a social security scheme. Those fall under the general pensions clause, which usually lets the country where you live tax them.

Some cases sit in between: state-owned companies, universities and mixed funded schemes. Spain's tax authority (the DGT) looks at who pays, how the pension is funded and what kind of service you gave. If your case is borderline, ask it for a ruling on your facts.

The exception that can bring the tax back to Spain

Most treaties follow a standard pattern. The paying state taxes, unless you are both resident in the other state and a national of it. In that case, the state where you live taxes.

For you, this means Spain gains the right to tax if you live in Spain and are a Spanish national. Many treaties also give Spain the right if you live in Spain and were not a national of the paying state. Some treaties ask only for Spanish residence plus Spanish nationality. Some older ones apply the exception where the services were not tied to a business.

Treaties are not all worded the same

Some treaties cover pensions paid from funds the state created. Some leave out the nationality condition. Read the government service article of the specific treaty before you decide where the pension is taxed. The FAQ below answers common edge cases.

Frequently asked questions

Can a Spanish national living in Spain be taxed by Spain on a foreign government pension?

Yes, Spain can tax a foreign government pension if you live in Spain and are also a Spanish national. In that case the usual rule that favours the paying state is switched off and the residence state taxes.

Is a pension from a state-owned company or a university a government pension?

It depends on the payer, the funding and the type of service, so these cases are not automatic. A pension counts as government service when the state or a local authority pays it, or pays it from funds they created, for work done in a governmental role. Borderline cases are decided by the Spanish tax authority on the facts.

Does a pension built from my own contributions count as a government pension?

No, a pension based on your own contributions is treated as private, even if a public body runs the scheme. It then falls under the general pensions article of the treaty, which usually gives taxing rights to the country where you live.

Do all treaties word the government pension clause the same way?

No, most follow the standard model but some treaties differ. Some add pensions paid from state-created funds, and some leave out the nationality exception.

Need certainty before you act?

For important relocation decisions, speak with a qualified human specialist.

Consult with a human specialist

For decisions that depend on your own circumstances, a qualified human professional should look at your case. Tell us what you need help with and we will reply by email.

Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.

What matters to me

Tell us who you are and what you care about. Fit scores and rankings across the site follow your answers.