Guide
Spanish tax residence certificate: how to get it and when you need it
We recommend requesting the certificate as soon as another country, a bank or a pension fund asks you to prove where you live for tax purposes. Online it often takes minutes. Here is how to request it, and what to do if it is refused.
By Gonzalo Benavides López de Ayala, partner · Published:

Your tax residency status decides whether Spain taxes your worldwide income or only your Spanish-source income. Spain decides it for each calendar year. Other countries, banks and payers abroad will often ask you to prove it, and the document that does this is the tax residence certificate (certificado de residencia fiscal) issued by the Spanish Tax Agency (Agencia Tributaria, AEAT). Whether you are resident at all is a separate question, which we cover on our page on Spanish tax residency.
What “tax residency status” means, in one paragraph
The rule
Spanish law sets out when an individual is tax resident in Spain. Residents pay personal income tax (IRPF) on their worldwide income. Non-residents pay non-resident income tax only on income obtained in Spain.
The certificate does not make you resident. It records what the Tax Agency's data show. If you are not yet sure which country you are resident in, start with our guide to tax residency when you move, which explains the tests.
The certificate, point by point
Before you request it, it helps to know what the document actually states. Each point below is something the receiving country, bank or payer will look at.
Tax residence certificate · Agencia TributariaSchematic
Who it certifies
You, as identified in the Tax Agency's records
It is issued only if the Tax Agency's data show that you are tax resident in Spain.
What it states
Resident in Spain within the meaning of the treaty with the country you chose
For a country that has a tax treaty with Spain, it certifies residence within the meaning of that treaty. For a country without one, it certifies that you are resident in Spain.
Languages
Spanish and English
The certificate is issued in both languages.
Secure verification code (CSV)
A code printed on the certificate
The recipient can use it to check that the certificate is authentic.
Validity
12 months from the date of issue
As long as the circumstances it states do not change. The receiving country may apply its own rules, for example asking for a certificate issued for a particular year.
When you need a Spanish residence certificate
- The tax authority of another country, to apply its treaty with Spain, for example to reduce withholding on dividends, interest or royaltiesWhat to request: The certificate for treaty purposes, naming that country.
- A foreign bank or broker, to report you as resident in Spain and apply the right withholdingWhat to request: The certificate for treaty purposes, or the general one if they accept it.
- A foreign pension payer, to pay your pension with the treaty treatmentWhat to request: The certificate for treaty purposes, or the payer's own form.
- Your former country of residence, to show that you have moved your tax residence to SpainWhat to request: The certificate for treaty purposes, naming that country.
Our view
Before you request it, ask the recipient which year and which treaty the certificate should refer to. It saves a second request.
How to request it from the Agencia Tributaria
You request it on the Tax Agency's website, identifying yourself with Cl@ve, an electronic certificate or a Spanish electronic ID card (DNI electrónico). A representative (apoderado) or a social collaborator, such as an adviser, can request it for you. If you are not obliged to deal with the Tax Agency electronically, you can also request it in person at one of its offices; booking an appointment is recommended.
The form asks for two choices. The model: the general one is the one individuals need, while the other model, for article 2 of the EU Parent-Subsidiary Directive (2011/96/EU), is for companies. And the country: select the one that has asked for the certificate, so it is issued for that treaty, or “no treaty” if there is none.
When the data allow, the certificate is issued immediately and you download it. Otherwise you follow the request in “Mis expedientes”. The legal maximum for issuing a tax certificate is 20 days, and the Tax Agency's procedure sheet indicates 10 working days. If it is not issued within the period, that does not mean it is issued in your favour.
When the other country has its own form
The rule
Some countries ask for their own form, such as Portugal's 21-RFI or France's 5000-ES. The Tax Agency's guidance is to obtain the electronic certificate and state in the box reserved for the Spanish authority that the certificate is attached. It considers that a paper form signed and stamped by an official has no greater legal value than the electronic certificate, and says it has informed other countries of this system.
If the form asks for statements the standard certificate does not cover, the Tax Agency handles them as a generic certificate, or you can submit the form itself through its online register.

Why a request can be refused
The rule
The certificate is issued only if the Tax Agency's data show that you are tax resident in Spain. If you do not meet the requirements when you apply, the system issues a refusal document, and you can then submit documents and arguments (alegaciones).
- It is your first year and you have not yet filed a Spanish income tax returnWhat usually helps: Evidence of the residence tests: municipal registration (padrón), an employment contract or Social Security registration in Spain, and a record of your days in Spain.
- Your registered address or your returns still show you as non-residentWhat usually helps: Explain the dates of your move in your arguments and attach the same evidence of residence.
- The refusal relates to the year of your moveWhat usually helps: Check the dates against our residency guide before you reply.
Our view
In our reading, the most common cause is a gap in the Tax Agency's records rather than a doubt about the facts. Send the evidence with a short explanation of the dates.
Non-residents: the certificate from your own country
If you live abroad and own property in Spain, the certificate you need runs the other way: it is issued by the tax authority of your own country, and you attach it to your Spanish return.
The rule
A non-resident attaches a tax residence certificate issued by their country's tax authority to apply a treaty exemption or reduced rate, or to deduct expenses as a resident of another EU state. For a treaty, it must state that you are resident within the meaning of the treaty. It is valid for one year from its date of issue.
How that return is calculated and paid is covered in our guide on how to pay non-resident tax in Spain. How treaties share taxing rights between countries is the subject of our international tax service.
Questions
How long does it take to get a Spanish tax residence certificate?
Online, it is often issued immediately when the Tax Agency's data support it. If it needs to be processed, the legal maximum for a tax certificate is 20 days, and the Tax Agency's procedure sheet indicates 10 working days.
Can I get one in my first year?
It depends on what the Tax Agency's records show. The certificate is issued when its data indicate that you are resident in Spain. If the request is refused because there is no return or record yet, you can submit evidence of your residence with arguments.
Is it valid for every country?
Request it for the specific country that asks for it. For treaty countries it certifies residence within the meaning of that treaty. For other countries it certifies residence in Spain. Each receiving country may also have its own requirements.
What if the Tax Agency refuses it?
You receive a refusal document and can then submit documents and arguments through the Tax Agency's website. Explain the dates and attach evidence of your residence in Spain.
Can you request it for me?
Yes. A representative or a social collaborator can request it on your behalf. Talk to a partner and we will check first whether your records support the certificate.
About the author

Gonzalo Benavides López de Ayala
Partner · Economist and tax adviser
Registered economist no. 2081 · Illes Balears
Your next step
From reading to a plan for your case.

02 · Speak with a partner
Discuss your situation with a partner
A partner will review your case with you and recommend the next step.
Book a free call