Spain's Tax Residence Certificate for Americans: When and How
Published Last verified
In this article
- What happens if you cannot prove where you are tax resident?
- Five residence certificates, side by side
- The tests that make you a Spanish tax resident
- Getting the Agencia Tributaria certificate, step by step
- Basque Country and Navarra: a different tax office
- What the certificate does not change for a U.S. citizen
- Resident in both countries: Form 6166 and the tie-breakers
- Special cases: job transfers, the Beckham regime and non-residents
- Check your tax address, then request the certificate
- FAQ
A Spanish tax residence certificate is a statement from the Agencia Tributaria, Spain’s tax agency, in Spanish and English, that you are a Spanish tax resident. Spanish law makes you one for a calendar year after more than 183 days in Spain or when your main economic interests are there, and the Agency answers an online request within 10 business days. It proves that status abroad but does not create it. For an American it has one hard limit: 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?
Three things can go wrong.
- A payer abroad may ask for proof you cannot give. The 2010 order says the certificate proves Spanish residence to foreign tax administrations and payers abroad. Conversely, a Spanish payer applies a treaty rate to a non-resident against a foreign residence certificate, valid one year (non-resident manual).
- Both countries may tax you as a resident. The Agencia Tributaria’s dual residence page acknowledges that each country’s own law can make you resident. The TEAC, Spain’s central tax appeals board, held on February 22, 2024 that a foreign certificate does not rule out Spanish residence, and that a refusal to certify does not prove non-residence.
- A U.S. state may keep taxing you, certificate or not. New York’s audit guidelines say a U.S. citizen does not ordinarily change domicile by going abroad unless it is clearly shown the citizen intends to stay permanently. Filing resident returns abroad on worldwide income deserves some consideration but 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 state tax guide sets out the domicile tests.
Five residence certificates, side by side
| 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; $85, then $105 if postmarked from October 1, 2026 | 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 |
The tests that make you a Spanish tax resident
Article 9 of the IRPF law, Spain’s personal income tax law, makes you resident in a calendar year when one of these holds:
- you stay in Spain more than 183 days, counting sporadic absences unless you prove tax residence in another country;
- the main center or base of your activities or economic interests is in Spain, directly or indirectly;
- your spouse, not legally separated, and your dependent minor children habitually live in Spain, a presumption you can rebut.
A day of certified presence counts in full, with no minimum hours, says the Renta 2025 manual. There is no split year: you are resident or non-resident for the whole calendar year, and a residence permit does not by itself make you a tax resident. A resident is taxed on worldwide income, subject to treaties. Because the whole year counts, the date you land matters, as the Beckham law guide and the 401(k) and IRA guide show.
Article 72 of the same law places you in the region where you spend more days. The certificate itself comes from the Agency office of your tax address, says the 2010 order, except in the Basque Country and Navarra.
Getting the Agencia Tributaria certificate, step by step
- Put your tax address on record. The certificate is issued only if the Agency’s own data show your Spanish residence. A new tax address has no effect until you report it (article 48 of the General Tax Law). Report it on Modelo 030 within three months, or earlier on the Renta return, the annual income tax return, if its deadline comes first. If you are self-employed, use Modelo 036, generally within one month.
- Pick the version. Ask for the treaty version when a payer or administration in a treaty country wants it, and the general one otherwise.
- Apply online through procedure G305. The Agency’s how-to-request page, updated July 22, 2026, accepts an electronic certificate, an electronic DNI (the ID card of Spanish citizens) or Cl@ve Móvil, while the procedure sheet of November 2025 still names Clave PIN; the Cl@ve guide explains both. A representative registered with the Agency (apoderado) or an authorized collaborator (colaborador social) can file for you, says the Agency’s certificate FAQ, with the proof of representation that Royal Decree 1065/2007 requires.
- Or ask in person or by phone. Unless a rule obliges you to deal with the administration electronically (Ley 39/2015, Spain’s administrative procedure law), file Modelo 01 at the office of your tax address, booking online or on 91 333 5 333, or book a phone request and the Agency calls you (help page).
- Collect it. Online, the certificate comes at once whenever possible, stays under “Consulta de certificados expedidos” (certificates issued), per that page, and carries a secure verification code (CSV) that a foreign administration can check on the Agency’s site.
- If the answer is no. The system issues a refusal and, says the help page, lets you continue by filing proof of residence through “Presentar documentos y/o alegaciones” (submit documents or arguments). No public page lists the documents it accepts. The only time limit found, 20 business days, comes from a 2018 refusal letter quoted by the TEAC.
- If a detail is wrong. There is no appeal, but you can object to the content within 10 days of receipt, and the office issues a new certificate within 10 days if it agrees (Royal Decree 1065/2007).
Two time limits. The 2010 order and the procedure sheet of November 21, 2025 give the Agency 10 business days to issue the certificate or a refusal, while article 73 of Royal Decree 1065/2007 sets 20 days for tax certificates in general, unless the certificate’s own rules set another limit.
What the pages leave open.
- Fee and validity. No fee is listed, and no validity specific to this certificate is given: its FAQ repeats the general rule of article 75 of the same decree, 12 months for periodic obligations and 3 months for others, while the Agency’s page on resident individuals says residence certificates are valid one year, without saying whether that covers Spain’s own.
- Newcomers and past years. No page says whether a newcomer can get one before a first Renta return, or one covering a past year. The 2010 order’s models certify present residence with no year field, though today’s layout may differ, while Bizkaia certifies a given tax year.
- Apostille. No page says whether a foreign authority needs one; the Agency relies on the CSV and the bilingual text, and the apostille guide covers the documents that do.
Basque Country and Navarra: a different tax office
When your habitual residence is in the Basque Country or Navarra, your income tax goes to the provincial or regional treasury, the hacienda foral. The rules are article 6 of the Basque Economic Agreement and article 9 of the Navarra Economic Agreement. The certificate comes from the same office.
- Navarra issues online certificates in two versions, with a treaty and without, using a digital certificate or DNIe, a DNI plus the Hacienda PIN for individuals, or Cl@ve; its offices take requests by appointment.
- Gipuzkoa issues a treaty certificate for the treaty you choose, within 2 hours if positive and 48 hours if negative. Ask online, by phone on 943 11 30 00 or in person.
- Bizkaia takes a reasoned written request to the Sección de Renta, its income tax section, with a copy of the DNI, the only ID named in its undated FAQ. Online, use the procedure “Solicitud tributaria”, with a BAK access key if you have no electronic signature (help article).
- Álava’s certificates page lists no residence certificate, so the route is unconfirmed: ask the Hacienda Foral de Álava.
What the certificate does not change for a U.S. citizen
Article 1(3) of the U.S.-Spain income tax convention is the saving clause: each country may tax its residents and, by reason of citizenship, its citizens as if the treaty had not come into effect. The 1990 Technical Explanation draws the consequence: even when the tie-breakers make you a resident of Spain, you stay subject to U.S. tax.
Relief comes through the foreign tax credit and article 24(3): income the United States taxes only because of citizenship is deemed to arise in Spain as far as needed to avoid double taxation. U.S. tax still never falls below what a non-citizen would pay. Publication 514 names Spain among the treaties with such rules and says you file no Form 8833 for the extra credit, a waiver the regulation sets out.
Where the certificate still matters:
- Third countries. Publication 54 says citizens abroad may use their country of residence’s treaties with third countries; the treaty version naming that country is the proof.
- U.S. payers. A citizen, even abroad, never uses Form W-8BEN and gives Form W-9 (W-8BEN instructions).
- Spanish banks. Under Modelo 289, the banks’ international tax information report, a bank needs your self-certification of tax residence. Without it within 90 days of the account request, the bank blocks debits, credits and other operations; false or inaccurate data can be sanctioned (Modelo 289 FAQ). The FATCA answer for a citizen is in the bank account guide.
Resident in both countries: Form 6166 and the tie-breakers
Form 6166 is the IRS letter certifying U.S. residency, obtained only through Form 8802. The instructions of October 2024 set the individual fee at $85; the IRS charges $105 for applications postmarked on or after October 1, 2026, one fee whatever the countries or years (Internal Revenue Manual). On September 25, 2026, the IRS processing status page showed it working on Forms 8802 received in July 2026.
A citizen living in Spain may not qualify. The instructions say that 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 manual makes a filer of Form 2555, the foreign earned income exclusion form, generally ineligible without more information, with no exception for Spain.
The treaty’s tie-breakers, in article 4(2), run in order: (a) permanent home, then center of vital interests; (b) habitual abode; (c) nationality; (d) mutual agreement. Paragraph 5(a) of the protocol counts a citizen 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; failing to disclose a treaty position can cost $1,000.
When both countries still claim you, Spain’s competent authority for residence conflicts is the Dirección General de Tributos, a Finance Ministry directorate, not the Agencia Tributaria (mutual agreement guide). Under Royal Decree 1794/2008, you file a written request at its registry. The consolidated treaty allows five years from the first notification of the measure, and a case unresolved after two years goes to arbitration under conditions. The IRS says to ask for competent authority assistance as soon as treaty benefits are denied.
Special cases: job transfers, the Beckham regime and non-residents
Modelo 147. An employee who becomes a Spanish taxpayer by moving to work for an employer resident or established in Spain can tell the Agency on Modelo 147, with a document from the employer. Within 10 business days, the Agency issues a document fixing the date from which the employer withholds as for a resident. The window runs from 30 days before the announced entry to 183 days after the move, or to June 30 of the next year when the required stay of more than 183 days falls in that year (non-resident manual). If you do not become resident that year, you deduct the withholding on your non-resident return, and filing Modelo 147 bars the Beckham option (articles 89 and 116 of the IRPF regulation).
The Beckham regime. Its taxpayers are not treaty residents, since they are taxed only on Spanish-source income. Article 120 of the regulation lets them request the general certificate, and a treaty certificate only in cases the Finance Minister sets on reciprocity. It still cites Order HAC/3626/2003, whose certificate provision Order EHA/3316/2010 replaced. No Agency page says what G305 returns for them.
Proving non-residence. A treaty rate on Modelo 210, the non-resident return, needs a certificate from the other country’s tax authority that states treaty residence; for an American, that is Form 6166, with the limits above. One trap for the foreign earned income exclusion: if you tell Spain you are not resident and Spain holds you are not taxable as a resident, you fail the IRS bona fide residence test.
Check your tax address, then request the certificate
Check that the Agencia Tributaria holds your Spanish tax address, file Modelo 030 if it does not, and request the version the payer or foreign administration names. A resident whose Spanish residence already shows in the Agency’s records and who holds Cl@ve or a digital certificate can request it alone online. In the Basque Country or Navarra, the hacienda foral handles it.
Get a licensed tax professional on both sides of the Atlantic when:
- two countries claim you as resident;
- you plan a treaty position on a U.S. return;
- a state auditor questions your departure;
- a refusal needs 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?
Try the online request. The Agencia Tributaria issues the certificate only when its own records show your Spanish residence, and no official page says whether a newcomer qualifies before filing a first Renta return, the annual income tax return. If the request is refused, you can continue by filing proof of residence, and a refusal does not by itself mean you are a non-resident.
Is there a fee for the Spanish tax residence certificate?
The Agencia Tributaria's pages for procedure G305 list no fee, which is not the same as saying it is free. The foral treasuries of Navarra, Gipuzkoa and Bizkaia state no amount either; Navarra's page cites its fees law without a figure. The U.S. counterpart, Form 6166, costs $85 per application until September 30, 2026 and $105 when postmarked from October 1.
How long is the certificate valid?
For as long as the payer or administration asking for it accepts it, so ask how recent a certificate it wants. No official page gives a validity specific to this certificate. Its FAQ repeats the general rule for Spanish tax certificates, 12 months for periodic obligations and 3 months for others, and the Agency says residence certificates from a tax authority are valid one year, without saying which applies here.
Does the certificate stop the IRS from taxing me?
No. The treaty's saving clause lets the United States tax its citizens as if the treaty had not come into effect, and the Treasury's explanation confirms that a citizen stays subject to U.S. tax even when the tie-breakers make that person a resident of Spain. Relief comes through the foreign tax credit and the treaty rule that treats some income as arising in Spain.
I live in Bilbao. Does the Agencia Tributaria issue my certificate?
No. When your habitual residence is in the Basque Country, your income tax goes to your provincial hacienda foral, and so does the certificate. In Bizkaia you send a reasoned written request to the Sección de Renta or use the online procedure Solicitud tributaria. Gipuzkoa and Navarra have their own online routes, and the route in Álava is unconfirmed.
Can a gestor, an administrative agent, request it for me?
Yes, online. The Agencia Tributaria accepts a request through a representative registered with it (apoderado) or through an authorized collaborator (colaborador social), and the regulation requires proof of the representation. In person, the form is Modelo 01 at the office of your tax address, a route open to people not obliged to deal with the administration electronically.
Sources
Official pages this guide 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
- Instructions for Form 8802 (Rev. October 2024)
- 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