Spain's Tax Residence Certificate for Americans: When and How
Published Updated Last verified
In this article
- What happens if you cannot prove where you are tax resident?
- What is a tax residence certificate, and which one do you need?
- How does the 183-day rule make you a Spanish tax resident?
- How do you get a tax residence certificate from the Agencia Tributaria?
- Who issues the certificate in the Basque Country and Navarra?
- Does a Spanish tax residence certificate stop U.S. taxes for an American?
- How do you get Form 6166, the U.S. tax residence certificate?
- What if Spain and the United States both claim you as a tax resident?
- What changes for job transfers, the Beckham law and non-residents?
- Check your tax address, then request the certificate
- FAQ
Spain’s tax agency, the Agencia Tributaria, issues a tax residence certificate, in Spanish and English, stating that you are a Spanish tax resident. The status itself comes from Spanish law, which makes you resident for a calendar year after more than 183 days in Spain or when your main economic interests lie there; the certificate mainly proves it abroad, and the Agency has up to 10 business days to issue it or refuse the request. For an American, one limit is absolute: the United States taxes its citizens wherever they live. This article is for informational purposes only and is not tax or legal advice; verify current requirements with the relevant Spanish authority or a licensed professional.
What happens if you cannot prove where you are tax resident?
Without proof of tax residence, a payer abroad may ask for a certificate you cannot give, two countries may each tax you as a resident, and a U.S. state may keep taxing you, certificate or not.
- Payers abroad. Under the 2010 order, the certificate proves Spanish residence to foreign tax administrations and payers abroad. The mirror case runs the other way: a Spanish payer applies a treaty rate to a non-resident on the strength of a foreign residence certificate, valid one year (non-resident manual).
- Two tax claims. The Agencia Tributaria’s dual residence page accepts that each country’s own law can make you resident. On February 22, 2024, the TEAC, Spain’s central tax appeals board, held that a foreign certificate does not exclude Spanish residence, and that a refusal to certify is no proof of non-residence.
- U.S. states. New York’s audit guidelines say a U.S. citizen does not ordinarily change domicile by going abroad unless an intention to stay permanently is clearly shown. Filing resident returns abroad on worldwide income deserves some consideration there, but it is not conclusive. Neither those guidelines, New York’s residency FAQ nor California’s Publication 1031 says anything specific about a foreign residence certificate; the domicile tests are set out in how to break state residency after moving to Spain.
What is a tax residence certificate, and which one do you need?
A tax residence certificate is a tax authority’s proof that a person is tax resident in its country (Agencia Tributaria). Spain’s comes from the Agency within 10 business days, or the hacienda foral in the Basque Country and Navarra; the U.S. one is Form 6166.
| Proof | Issued by, and how you ask | Timing and fee | What it states |
|---|---|---|---|
| General residence certificate | Agencia Tributaria, office of your tax address: online (procedure G305), by phone after booking, or Modelo 01 at an office | 10 business days; no fee listed | That you are resident in Spain |
| Treaty residence certificate | Agencia Tributaria, same routes, naming the other country | 10 business days; no fee listed | Residence within the meaning of the treaty with that country |
| Foral certificate | Hacienda foral of Bizkaia, Gipuzkoa or Navarra, by each office’s online, phone or in-person route | 2 hours if positive in Gipuzkoa, not stated elsewhere; no fee stated | Treaty or general residence; a given tax year in Bizkaia |
| Form 6166 | Internal Revenue Service, on Form 8802 by mail, or by fax after paying online | Mail it 45 days ahead; $105 per individual application whatever the number of countries, if postmarked from October 1, 2026, $85 before | U.S. residence within the meaning of the U.S.-Spain convention |
| Certificate of non-residence | Policía Nacional, on form EX-15 with fee form 790 code 012, in person or through a consulate | 5 days; 7.31 euros | That you are a foreigner not resident in Spain; for tax, Spain wants a foreign tax certificate |
How does the 183-day rule make you a Spanish tax resident?
Spain treats you as a tax resident for a whole calendar year when you spend more than 183 days there, or when the main base of your activities or economic interests lies there, according to the Agencia Tributaria’s page on resident individuals.
Article 9 of the IRPF law, Spain’s personal income tax law, counts sporadic absences toward the 183 days unless you prove tax residence in another country, and the economic test covers interests held directly or indirectly. It adds a rebuttable presumption: under those criteria, you are resident when your spouse, not legally separated, and dependent minor children habitually live in Spain.
According to the Renta 2025 manual, a day of certified presence counts in full, whatever the number of hours. Spain has no split year, and holding a residence permit does not by itself make anyone a tax resident (page on resident individuals). Residents are taxed on worldwide income, subject to treaties. Since the year is assessed as a whole, the arrival date matters, both for the Beckham law tax regime in Spain and for filing income tax in Spain as a foreigner.
Article 72 of the same law places a Spanish resident in the region where he or she spends more days, presumed to be where the main home is, then where most of the taxable base arises, then the last declared residence. The certificate itself, according to the 2010 order, comes from the Agency office of your tax address.
How do you get a tax residence certificate from the Agencia Tributaria?
The Agencia Tributaria certificate is requested online through procedure G305, issued at once whenever possible, or in person with Modelo 01 by anyone not obliged to deal with it electronically; the Agency has 10 business days at most, and certifies only what its records show.
- Put your tax address on record. Issuance depends on the Agency’s own data showing your Spanish residence, and under article 48 of the General Tax Law a new tax address has no effect until it is reported. The report goes on Modelo 030 within three months, or earlier on the Renta return, the annual income tax return, if that deadline falls first. Self-employed people use Modelo 036, generally within one month.
- Pick the version. The treaty version is the one to request when a payer or administration in a treaty country asks for it; otherwise the general one serves. The online form, says the help page, asks for the model, “General” or the one specific to article 2 of Directive 2011/96/EU, then the treaty country or “Sin convenio” (no treaty).
- Apply online through procedure G305, with an electronic certificate, an electronic DNI (the ID card of Spanish citizens) or a Cl@ve option, on which the pages differ: Clave PIN on the procedure sheet of November 21, 2025 and in the certificate FAQ of December 2, 2025, Cl@ve Móvil on the how-to-request page of July 22, 2026, and plain Cl@ve on the help page of November 5, 2026. Both systems are explained in how to get Cl@ve PIN and a digital certificate. According to the same FAQ, a representative registered with the Agency (apoderado) or an authorized collaborator (colaborador social) can file on your behalf, with the proof of representation that Royal Decree 1065/2007 requires.
- Or ask in person or by phone. Anyone not obliged by a rule to deal with the administration electronically (Ley 39/2015, Spain’s administrative procedure law) can file Modelo 01 at the office of their tax address, booking online or on 91 333 5 333, or can book a phone request, in which case the Agency calls back (help page).
- Collect it. An online certificate stays available under “Consulta de certificados expedidos” (certificates issued) when you sign in with the electronic certificate used for the request, according to that page, and bears a secure verification code (CSV), which a foreign administration can check on the Agency’s site.
- If the answer is no. The system produces a refusal, and the help page explains that you can continue by filing proof of residence through “Presentar documentos y/o alegaciones” (submit documents or arguments). Which documents are accepted is not listed on any public page. The only time limit found, 20 business days, appears in a 2018 refusal letter quoted by the TEAC.
- If a detail is wrong. No appeal exists, but an objection to the content can be lodged within 10 days of receipt, and if the office agrees it issues a new certificate within 10 days (Royal Decree 1065/2007).
Time limits, validity and fee.
| Point | What the pages say | Page |
|---|---|---|
| Time limit for this certificate | 10 business days to issue the certificate or a refusal | 2010 order and procedure sheet, November 21, 2025 |
| Time limit for tax certificates in general | 20 days, unless a certificate’s own rules provide another limit | Article 73 of Royal Decree 1065/2007 |
| Validity of this certificate | None of its own; the FAQ restates the general rule of article 75 of the same decree, 12 months from issue for periodic obligations while the facts stay unchanged, 3 for others | Certificate FAQ, December 2, 2025 |
| Validity of residence certificates from a tax authority | One year, without saying whether Spain’s own are included | Page on resident individuals, July 21, 2026 |
| Fee | None listed, which does not mean free | The Agency’s certificate pages |
What the pages leave open.
- Newcomers and past years. Whether a newcomer can obtain one before a first Renta return, or one covering a past year, is not addressed on any page. The models in the 2010 order certify present residence with no year field, although today’s layout may differ, whereas Bizkaia certifies a given tax year.
- Apostille. Whether a foreign authority needs one is not stated; the Agency relies on the CSV and the bilingual text, and the documents that do need one are covered in apostille and sworn translation rules for U.S. documents.
Who issues the certificate in the Basque Country and Navarra?
In the Basque Country and Navarra, the provincial or regional treasury, the hacienda foral, issues the tax residence certificate instead of the Agencia Tributaria; Gipuzkoa states a preparation time for a treaty certificate of at most 2 hours if positive and 48 hours if negative.
The hacienda foral of your habitual residence administers your income tax under article 6 of the Basque Economic Agreement and article 9 of the Navarra Economic Agreement.
- Navarra offers online certificates in two versions, with a treaty and without, through a digital certificate or DNIe, a DNI plus the Hacienda PIN for individuals, or Cl@ve; its offices also take requests by appointment.
- Gipuzkoa issues a treaty certificate for whichever treaty you choose. Requests go online, by phone on 943 11 30 00 (individuals only, certificate posted) or in person.
- Bizkaia expects a reasoned written request to the Sección de Renta, its income tax section, with a copy of the DNI, the only ID its undated FAQ names. The online route is the procedure “Solicitud tributaria”, with a BAK access key for anyone without an electronic signature (help article).
- Álava’s certificates page lists no residence certificate, which leaves the route unconfirmed; the Hacienda Foral de Álava is the body to ask.
Does a Spanish tax residence certificate stop U.S. taxes for an American?
No. A Spanish tax residence certificate leaves a U.S. citizen taxable in the United States: under the saving clause, article 1(3) of the U.S.-Spain income tax convention, the United States may tax its citizens as if the treaty had not come into effect.
The 1990 Technical Explanation confirms that you remain subject to U.S. tax even when the tie-breakers make you a resident of Spain.
Relief runs through the foreign tax credit and article 24(3), under which, for a U.S. citizen who is also a resident of Spain within the meaning of the treaty, income the United States taxes only because of citizenship is deemed to arise in Spain to the extent needed to avoid double taxation. Even so, U.S. tax never falls below what a non-citizen would pay. Spain appears among the treaties with such rules in Publication 514, which adds that no Form 8833 is filed for the extra credit, a waiver set out in the regulation.
The certificate still has a role in three settings:
- Third countries. Publication 54 says citizens living abroad may also be entitled to their country of residence’s treaties with third countries; the treaty version naming that country states residence under that treaty.
- U.S. payers. A citizen, even one living abroad, never uses Form W-8BEN and provides Form W-9 instead (W-8BEN instructions).
- Spanish banks. Under Modelo 289, the banks’ international tax information report, a bank needs your self-certification of tax residence. If it is not provided within 90 days of the account request, the bank blocks debits, credits and other operations, and false or inaccurate data can be sanctioned (Modelo 289 FAQ). For a citizen, the FATCA side is answered in what Spanish banks ask Americans opening an account.
How do you get Form 6166, the U.S. tax residence certificate?
Form 6166, the IRS letter certifying U.S. residency, is obtained only by filing Form 8802, which costs an individual $105 if postmarked from October 1, 2026, $85 before, and should be mailed at least 45 days before you need Form 6166.
The instructions, revised October 2026, make it one fee per Form 8802 for an individual applicant, a U.S. citizen or resident, regardless of the number of countries or tax years covered. The Form 8802 page explains how to apply, and the IRS processing status page, reviewed November 6, 2026, showed it working on Forms 8802 received in October 2026.
A citizen living in Spain may not qualify. According to the instructions, under many treaties a citizen without a substantial presence, permanent home or habitual abode in the United States is not entitled to treaty benefits. The Internal Revenue Manual treats a filer of Form 2555, the foreign earned income exclusion form, as generally ineligible without more information, and makes no exception for Spain.
What if Spain and the United States both claim you as a tax resident?
When Spain and the United States both claim you, the tie-breakers in article 4(2) of their treaty apply in a fixed order: (a) permanent home, then center of vital interests; (b) habitual abode; (c) nationality; (d) mutual agreement.
Under paragraph 5(a) of the protocol, a citizen counts as a U.S. resident only with a substantial presence there, or when tests (a) and (b) point to the United States and not to another country. The Form 8833 route for a dual resident filing as a U.S. nonresident is written for alien individuals, not citizens, and a failure to disclose a treaty position can cost $1,000.
When both countries still claim you, the question leaves the Agencia Tributaria: Spain’s competent authority for residence conflicts is the Dirección General de Tributos, a Finance Ministry directorate (mutual agreement guide). Under Royal Decree 1794/2008, the request is made in writing at its registry. The consolidated treaty allows five years from the first notification of the measure, and arbitration can follow two years after the case start date, on written request and under article 26(5) and (6). The IRS advises asking for competent authority assistance as soon as treaty benefits are denied.
What changes for job transfers, the Beckham law and non-residents?
For Spanish tax residence, three groups follow their own rules: employees moving to work in Spain, who can file Modelo 147, Beckham law taxpayers, who are not treaty residents, and non-residents, who prove residence with the other country’s tax certificate.
Modelo 147. An employee who becomes a Spanish taxpayer by moving to work for an employer resident or established in Spain can notify the Agency on Modelo 147, together with a document from the employer. The Agency then issues, within 10 business days, a document fixing the date from which the employer withholds as for a resident. The window opens 30 days before the announced entry and closes 183 days after the move, or on June 30 of the next year when the required stay of more than 183 days falls in that year (non-resident manual). Should you not become resident that year, the withholding is deducted on your non-resident return, and filing Modelo 147 rules out the Beckham option (articles 89 and 116 of the IRPF regulation).
The Beckham regime. Taxpayers under this regime are not treaty residents, because only their Spanish-source income is taxed. Article 120 of the regulation allows them to request the general certificate, and a treaty certificate only in cases the Finance Minister sets on reciprocity. That article still cites Order HAC/3626/2003, whose certificate provision was replaced by Order EHA/3316/2010. What G305 returns for them is not stated on any Agency page.
Proving non-residence. To obtain a treaty rate on Modelo 210, the non-resident return, you need a certificate from the other country’s tax authority stating treaty residence; for an American, that means Form 6166, with the limits described above. The foreign earned income exclusion carries one trap: telling Spain you are not resident, when Spain holds that you are not taxable as a resident, makes you fail the IRS bona fide residence test.
Check your tax address, then request the certificate
Requesting the Spanish tax residence certificate starts with your tax address on record at the Agencia Tributaria: Modelo 030 reports it for people not in the business census, and Modelo 036 for the self-employed. Where the Agency’s records show Spanish residence and the applicant holds Cl@ve or a digital certificate, the online route is open. In the Basque Country or Navarra, the hacienda foral is the office that handles it.
A licensed tax professional on both sides of the Atlantic is worth bringing in when:
- two countries each claim you as resident;
- you intend to take a treaty position on a U.S. return;
- a state auditor questions your departure;
- a refusal calls for documents the Agency does not list.
The Spain Navigator puts every step of your move to Spain in order, from the visa to settling in.
FAQ
Can I get the certificate in my first year in Spain?
The online request is the way to find out. The Agencia Tributaria certifies only what its own records show about your Spanish residence, and no official page says whether a newcomer qualifies before filing a first Renta return, the annual income tax return. A refusal lets you continue by filing proof of residence, and it does not by itself make you a non-resident.
Is there a fee for the Spanish tax residence certificate?
No fee appears on the Agencia Tributaria's pages for procedure G305, although that is not the same as a statement that it is free. The foral treasuries of Navarra, Gipuzkoa and Bizkaia give no amount either, and Navarra's page cites its fees law without a figure. Form 6166, the U.S. counterpart, now costs $105 per individual application postmarked from October 1, 2026, against $85 before.
How long is the certificate valid?
No Agencia Tributaria page gives this certificate a validity of its own, so ask the payer or administration requesting it how recent it must be. The FAQ repeats the general rule for tax certificates, 12 months from issue for periodic obligations while the facts stay unchanged and 3 months for others, and the Agency calls tax authority residence certificates valid one year, without saying which applies.
Does the certificate stop the IRS from taxing me?
No. Under the treaty's saving clause, the United States may tax its citizens as if the treaty had not come into effect, and the Treasury's explanation confirms that a citizen remains subject to U.S. tax even when the tie-breakers make that person a resident of Spain. Relief comes instead from the foreign tax credit and from the treaty rule treating some income as arising in Spain.
I live in Bilbao. Does the Agencia Tributaria issue my certificate?
No. Where your habitual residence is in the Basque Country, your provincial hacienda foral receives your income tax and issues the certificate as well. Bizkaia takes a reasoned written request to the Sección de Renta, or the online procedure Solicitud tributaria. Gipuzkoa and Navarra run their own online routes, while the route in Álava remains unconfirmed.
Can a gestor, an administrative agent, request it for me?
Yes. Online, a representative registered with the Agencia Tributaria (apoderado) or an authorized collaborator (colaborador social) can file the request, and on any route a request made through a representative must prove the representation, as the regulation requires. People who are not obliged to deal with the administration electronically can also file Modelo 01 in person at the office of their tax address.
Sources
Official pages this article was checked against, with the date we last read them.
- Certificados tributarios. Expedición de certificados tributarios. Residencia fiscal
- Certificados tributarios. Expedición de certificados tributarios. Residencia fiscal (ficha del procedimiento)
- ¿Qué certifica?
- ¿Dónde se obtiene?
- Orden EHA/3316/2010, de 17 de diciembre (modelos 210, 211 y 213; disposición adicional segunda: certificado de residencia fiscal en España)
- Real Decreto 1065/2007, Reglamento General de las actuaciones y los procedimientos de gestión e inspección tributaria, texto consolidado
- Ley 35/2006, del Impuesto sobre la Renta de las Personas Físicas, texto consolidado
- Persona física residente en España
- Income Tax Convention with Spain, with Protocol
- Technical Explanation of the 1990 United States-Spain Income Tax Convention
- Form 6166. Certification of U.S. tax residency
- Form 8802 user fee fact sheet
- Instructions for Form 8802
- Manual de tributación de no residentes. Régimen especial de impatriados (artículo 93 de la Ley del IRPF)
- Manual de tributación de no residentes. Trabajadores que se desplazan a territorio español (Modelo 147)
- Tipos de certificados clasificados por finalidad
- Tax residence certificates (English version)
- Manual de tributación de no residentes. Capítulo 4. Documentación
- Residencia en dos Estados
- Tribunal Económico-Administrativo Central, resolución de 22 de febrero de 2024, R.G. 00-00146-2021 (IRNR, modelo 210)
- Nonresident Audit Guidelines (December 2021)
- Frequently Asked Questions about Filing Requirements, Residency, and Telecommuting for New York State Personal Income Tax
- FTB Publication 1031, 2025 Guidelines for Determining Resident Status
- Form 8802, Application for United States Residency Certification. Additional certification requests
- IRM 21.8.4 United States Certification for Reduced Tax Rates in Tax Treaty Countries
- Certificado de no residente
- Tasas de extranjería
- Acreditación de la no residencia
- Manual práctico de Renta 2025. Residencia habitual en territorio español
- Clases de contribuyentes en la imposición sobre la renta
- Ley 58/2003, General Tributaria, texto consolidado, arts. 48 y 109 a 112
- Cómo comunicar el cambio de mi domicilio fiscal
- Preguntas frecuentes Modelo 036. Modificaciones censales. Domicilio fiscal
- Preguntas frecuentes (certificados tributarios, residencia fiscal)
- Ley 39/2015, del Procedimiento Administrativo Común de las Administraciones Públicas, texto consolidado
- Descarga del modelo (Modelo 01)
- Solicitud de un certificado tributario de residencia fiscal (ayuda técnica)
- Tramitación de formularios de residencia fiscal
- Orden EHA/3316/2010, de 17 de diciembre (BOE núm. 311, 23 de diciembre de 2010), original diario PDF with Anexos IV and V
- Gure Gida. Preguntas frecuentes 900002325: certificado de residencia fiscal para evitar la doble imposición (persona física)
- Ley 12/2002, de 23 de mayo, por la que se aprueba el Concierto Económico con la Comunidad Autónoma del País Vasco (art. 6)
- Ley 28/1990, de 26 de diciembre, por la que se aprueba el Convenio Económico entre el Estado y la Comunidad Foral de Navarra (art. 9)
- Certificados telemáticos expedidos por la Hacienda Foral de Navarra
- Certificados. Hacienda. Diputación Foral de Gipuzkoa
- Solicitud de certificados de residencia fiscal (KA-01245)
- Solicitar certificados tributarios. Diputación Foral de Álava
- Publication 514 (2025), Foreign Tax Credit for Individuals
- 26 CFR 301.6114-1 Treaty-based return positions
- Publication 54 (12/2025), Tax Guide for U.S. Citizens and Resident Aliens Abroad
- Instructions for Form W-8BEN
- Preguntas frecuentes del modelo 289. Cuestiones relativas a titulares de cuentas financieras
- Processing status for tax forms
- Form 8833 (Rev. December 2022), Treaty-Based Return Position Disclosure Under Section 6114 or 7701(b), with instructions
- Guía de procedimientos amistosos. g. ¿Quién es la autoridad competente española en materia de procedimientos amistosos?
- Real Decreto 1794/2008, de 3 de noviembre, Reglamento de procedimientos amistosos en materia de imposición directa
- Dirección general de tributos: Registro electrónico
- Convenio entre el Reino de España y los Estados Unidos de América para evitar la doble imposición (Madrid, 22 de febrero de 1990), texto consolidado
- Competent authority assistance
- Modelo 147. IRPF. Comunicación del desplazamiento a territorio español efectuado por trabajadores por cuenta ajena (ficha)
- Real Decreto 439/2007. Reglamento del Impuesto sobre la Renta de las Personas Físicas, texto consolidado
- Orden HAC/3626/2003, de 23 de diciembre (modelos 210, 215, 212, 211 y 213)
- Declaración del IRNR sin establecimiento permanente. Documentación
- Foreign earned income exclusion: Bona fide residence test