Tax Residency Certificate in Spain: Who Needs It and How to Get It

Who needs a Spanish tax residency certificate, how to request it from the Agencia Tributaria and what to do if it's refused.

Updated on:
diciembre 4, 2026
TL;DR

A tax residency certificate in Spain (certificado de residencia fiscal) is the Agencia Tributaria's proof that you're tax resident in Spain, for foreign tax authorities and payers. It's issued only if the Tax Agency's data show you're resident. Request it online with Cl@ve, a digital certificate or an electronic DNI: the Tax Agency answers on the spot when possible or within ten working days.

Has a foreign tax office, bank or client asked you to prove you're tax resident in Spain? You need a tax residency certificate in Spain (certificado de residencia fiscal), which the Agencia Tributaria, Spain's Tax Agency, issues in its online office (sede electrónica) when its data show you're resident.

Table of contents:

What is a tax residency certificate in Spain?

It's a document in which the Spanish tax authorities certify that, to the best of their knowledge, you're resident in Spain, so you can prove your tax residency abroad. The AEAT issues it only if its data show it, and the official model mentions no tax year or period. It's informative and can't be appealed: residence depends on the legal tests (see who counts as a tax resident in Spain).

Treaty certificate or general certificate

  • Treaty certificate (Certificado de residencia en España. Convenio): resident within the meaning of the double tax treaty with a specific country. For treaty countries.
  • General certificate (Certificado de residencia fiscal en España): resident in Spain. For countries without a treaty.
💡 Under the Beckham Law (the special regime for workers, professionals, entrepreneurs and investors who move to Spain)? You can get the certificate, but the treaty version only in the cases the finance minister sets, on condition of reciprocity.

Tax residency certificate vs other Spanish residence certificates

Other documents mention “residence” but prove something else:

DocumentIssued byWhat it provesFee
Tax residency certificateAgencia TributariaTax residency in SpainNone listed by the AEAT
EU registration certificate (form EX-18)Immigration office or police stationAn EU or EEA citizen's registration as resident, with their NIEPolice fee
TIE (foreigner identity card)Policía NacionalA foreigner's identity and legal statusPolice fee
Padrón certificate (certificado de empadronamiento)Town hallYour address in the municipalityAsk your town hall
Police residence or non-residence certificatePolicía NacionalResidence status for immigration purposesPolice fee

Only the first is designed to prove tax residency abroad. For the police fee, see how to pay the fee 790 012.

Who needs a Spanish tax residency certificate?

Typical cases:

  • Income from another country (dividends, interest, pensions, rent, foreign clients), when the payer or that country's tax authority asks for it. What they then apply depends on the treaty and their own rules.
  • A move to Spain, when your former country asks you to show you're now resident here.
  • Selling a property in Spain: it proves you pay IRPF, so the buyer doesn't withhold the 3% of the price that applies to non-resident sellers (ask for the note “Está sujeto al Impuesto sobre la Renta de las Personas Físicas”).

IRPF taxpayers (people living habitually in Spain) and Spanish-resident companies can request it. Working abroad? See double taxation if you work abroad.

If you are not a tax resident in Spain

The AEAT won't issue it. To apply a treaty in Spain (in your modelo 210, for example), you need a certificate from your own country's tax authority saying you're resident within the meaning of the treaty, valid for one year from issue. Arriving or leaving mid-year? You're resident that calendar year if, in it, you spend more than 183 days in Spain or have your main economic interests here, and you're presumed resident, unless you prove otherwise, if your spouse and dependent minor children live here. Spanish nationals who move to a tax haven stay IRPF taxpayers that year and the next four.

What being a Spanish tax resident means for your tax return

  • Worldwide income: your IRPF covers all your income, wherever it's earned (the Beckham Law has its own rules). The certificate doesn't exempt you from declaring foreign income in Spain.
  • Tax paid abroad: you deduct the lower of the similar tax paid there or your average effective rate applied to the part of your taxable base taxed abroad. If there's a tax treaty, you can only deduct what the treaty lets that country charge: anything withheld above that isn't deductible in Spain, and you claim it back from that country.
  • Modelo 720: if any of three groups abroad (bank accounts, including ones you're only authorised on; securities, insurance and annuities; property) exceeds €50,000 (for accounts, the balance at 31 December or the average balance of the last quarter), you file it from 1 January to 31 March of the next year. Afterwards, you file it again when a group grows by over €20,000 since your last return and, in any case, when you stop holding something in it during the year. The Tax Agency says Beckham Law taxpayers don't have to file it, though family members who are tax resident may. In the Basque Country and Navarre, under foral rules, it goes to your hacienda foral, in the form and deadlines it sets.
  • Modelo 721: crypto held with a custodian abroad goes in its own return, with the same €50,000 threshold and the same 1 January to 31 March window.

How to get your tax residency certificate online, step by step

Prefer Spanish? Read our guide in Spanish.

What you need before you apply

  • Cl@ve (the government's online login system), a digital certificate or an electronic DNI.
  • A Spanish tax number: here's how your NIE works as your Spanish tax ID (NIF or NIE).
  • The country it's for.

Applying in the Tax Agency e-office

  1. Go to “Todas las gestiones”, “Certificados”, “Censales”.
  2. Fill in the form (for someone else, tick that box and add their details).
  3. Choose the model “General” and then the treaty country, which gives you the treaty version, or “Sin convenio” for the general one (the other model, “Específico para el artículo 2 de la Directiva 2011/96/UE”, is a different certificate).
  4. Click “Validar solicitud”, check the details and click “Firmar y Enviar”; tick “Conforme” and click “Firmar y Enviar” again.
  5. At “3. Obtener certificado”, click “Descargar documento”.

No tax year is asked for. To download it again, log in with the same digital certificate and open “Consulta de certificados expedidos”.

Applying in person or through a representative

If you're not obliged to deal with the authorities online, take modelo 01 and your ID to the Tax Agency office for your tax address, booking in “Asistencia y Cita” or on 91 333 5 333. The certificate reaches your DEHú (electronic notifications inbox), the e-office and your letterbox. A representative (apoderado) or colaborador social can apply for you, proving they represent you.

If you live in the Basque Country or Navarre

Their income tax is foral, run by their haciendas forales, not the AEAT.

  • Bizkaia: for treaty countries, a reasoned written request to the Hacienda Foral's Sección de Renta with a copy of your DNI; it certifies residence in a given tax year.
  • Navarre: online from its Hacienda Foral, as “Residencia fiscal” or “Residencia fiscal (sin convenio)”.
  • Gipuzkoa and Álava: ask your hacienda foral.

How long it takes and how long it is valid

TopicWhat to expect
TimeOn the spot when possible; if not, up to ten working days to issue it or say no (20 for bulk requests). Silence isn't a yes
LanguageSpanish and English
ValidityNo general period in its own rules. For tax certificates in general, it's 12 months from issue for periodic obligations (3 months for one-off ones) unless specific rules say otherwise. The recipient decides what it accepts
AuthenticityAnyone can check it, and its copies, with its CSV code

What to do if the Tax Agency refuses it or asks for proof

The AEAT refuses it when its data don't show you're resident. Online, you get a refusal document and can carry on without visiting an office:

  1. Send evidence of your residency in “Presentar documentos y/o alegaciones”, at any stage, quoting your reference number. It reopens the file; track it in “Mis expedientes”.
  2. Prove the legal tests: over 183 days in Spain in the calendar year or your main economic interests here.
  3. Update your tax address (domicilio fiscal, where you habitually live), which only counts once reported. If you have no business or professional activity and don't pay anyone income subject to withholding, use modelo 030 within three months.
  4. Disagree with an issued certificate? Within 10 days of receiving it, ask the issuing office in writing, with evidence, to correct it. If it agrees, it issues a new one within 10 days; if not, it explains why.

Common mistakes with the tax residency certificate

  1. Wrong version or country. Treaty certificate for a treaty country, general otherwise; if unsure, ask whoever requested it.
  2. An old certificate. Check how recent the recipient wants it.
  3. A police or town hall document instead. A TIE or a padrón certificate doesn't prove tax residency.
  4. Thinking it makes you resident. The legal tests do, and being resident means declaring your worldwide income here.
  5. Ignoring the other country's form, such as Portugal's 21RFI or France's 5000-ES. The AEAT can sign and stamp it on paper, in person, but that's worth no more than the online certificate: get that one and note in the form's AEAT box that it's attached. For extra statements, use “Resto de Certificados / Certificados genéricos”, naming the form and country.
📌 Laura lives in Madrid and receives dividends from a Portuguese company, which asks her for form 21RFI. She requests the certificate in the e-office choosing Portugal and notes in the form's AEAT box that it's attached separately.

Official sources

Frequently asked questions

How does Spain know if I'm a tax resident?
Spain treats you as tax resident for a calendar year if you spend more than 183 days in the country that year (sporadic absences count unless you prove tax residence in another country) or if your main economic interests are here. It also presumes you're resident, unless you prove otherwise, when your spouse (not legally separated) and your dependent minor children live habitually in Spain. The Tax Agency issues the certificate only if the data it holds show you're resident.
How long does it take to get a tax residency certificate in Spain?
If you apply online and the Tax Agency's data allow it, you get it on the spot. If not, the Tax Agency has up to ten working days from your application to issue it or tell you it can't (20 working days for bulk requests). If that time passes without an answer, it doesn't mean the certificate has been granted. Once issued, you can download it again in “Consulta de certificados expedidos”.
Is the Spanish tax residency certificate free?
The Tax Agency's page for this procedure doesn't list any fee or payment step: the only document it mentions is modelo 01, for applications on paper. Don't confuse it with the police fee 790 012, which is for immigration documents such as the TIE or the EU registration certificate, not for this tax certificate.
What are the requirements to get a tax residency certificate?
You must be resident in Spain for tax purposes, meaning an IRPF taxpayer with your habitual residence here (companies resident in Spain can also apply), and the Tax Agency's data must show it. You also need a Spanish tax number (NIF) and, online, Cl@ve, a digital certificate or an electronic DNI. If you're not obliged to deal with the authorities online, you can apply in person with modelo 01. Non-residents need a certificate from their own country's tax authority instead.

Your tax residency certificate, in short

It's the AEAT's proof of your Spanish tax residency, issued only if its data show it: pick the right version for the country asking and apply online. Being resident also means declaring your worldwide income in Spain.

Rather skip the e-office? In the TaxDown app we request it for you and, if the Tax Agency sends a notice before granting it, we reply on time. Get started with TaxDown.

Author
TaxDown Team
Your tax return, done right
Follow me here
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

TaxDown is the Spanish platform that helps you file your income tax return easily, quickly and with maximum savings. It's a social collaborator of the Agencia Tributaria (Spanish Tax Agency) and has more than 300 expert tax advisors who review every return.

Related articles

Download our app

File your tax return from wherever you are.

QR code to download the TaxDown app
Person using their mobile phone to file their tax return
Foreigners in Spain
Tax registration from 35€.
See my case