In short
NIE, TIE, and NIF are three different but overlapping identifiers used by Spain's tax and immigration systems. The NIE is your foreign identification number — a permanent tax reference. The TIE is a physical residence card issued to non-EU residents. The NIF is the umbrella tax identification concept that, for foreigners, is typically the NIE number itself. Understanding which you have — and which you need — avoids a lot of confusion at notaries and banks.
The Quick Summary
Before diving into the detail, here's the clearest way to think about it:
NIE — Número de Identificación de Extranjero
The NIE is a unique alphanumeric identifier assigned to every foreign national who has dealings with Spanish authorities. It takes the format X-1234567-Z (a letter, seven digits, and a check letter).
What it is: Purely a number. The NIE is not a document — it is not proof of identity, and it is not proof of residency. It is simply a reference number that Spain's tax authority (Agencia Tributaria) and other bodies use to track your financial and administrative activity.
Who has one: Anyone who has applied for it — including non-residents. If you own property in Spain and file a non-resident income tax return (Modelo 210), you have a NIE. You do not need to live in Spain to have or use a NIE.
The certificate: When you first receive your NIE, you get a green paper certificate (Certificado de Asignación de NIE). This is not an ID document — it simply confirms that the number was issued. Carry your passport alongside it if you need to prove identity.
Permanence: Your NIE number never changes and never expires. Even if you leave Spain for twenty years, your NIE remains the same when you return.
The NIE is the number; the certificate is just the printout
People often say they need to "renew their NIE" — this is almost always a misunderstanding. The number doesn't expire. What they usually mean is they need to obtain a new residence document (TIE) or re-register on the padrón.
TIE — Tarjeta de Identidad de Extranjero
The TIE is a biometric plastic card — physically similar to a credit card — issued by the National Police (Policía Nacional) to non-EU nationals who are legally resident in Spain. It contains your photograph, fingerprints, NIE number, and the basis of your legal stay (for example, "Non-Lucrative Residence" or "Digital Nomad Visa").
What it is: A physical residence and identity document. Unlike the paper NIE certificate, the TIE functions as official ID within Spain.
Who needs one: Non-EU nationals (British, American, Canadian, Australian, Swiss post-2021, etc.) who are legally resident in Spain. If you hold a Non-Lucrative Visa, a Digital Nomad Visa, a work permit, or another residence authorisation, you must apply for a TIE within 30 days of arriving in Spain or within 30 days of your visa being granted (rules vary slightly by visa type).
Who does not need one: Non-resident property owners who simply visit Spain. If you are British and come to Mallorca for eight weeks a year as a visitor (within your 90-day Schengen allowance), you do not get or need a TIE.
Expiry and renewal: The TIE's validity mirrors your underlying visa or residence authorisation. A one-year Non-Lucrative Visa gives you a TIE valid for one year; a two-year renewal gives you a two-year TIE.
The old green certificate (old TUE/residencia card): Before the biometric TIE was introduced, EU nationals were issued a green A4 or card-sized certificate of EU residency (sometimes called the "green card" or TUE). Spain has largely phased these out in favour of TIE cards for non-EU nationals, and Brexit means British nationals who registered under the Withdrawal Agreement should have already converted to TIE cards.
British owners who registered before 2021
If you are a British national who was resident in Spain before 31 December 2020 and still hold the old green EU residency certificate, you should have exchanged it for a TIE card under the Brexit Withdrawal Agreement. Banks and notaries increasingly question the old green certificates. Check with your nearest Extranjería office.
NIF — Número de Identificación Fiscal
The NIF is Spain's umbrella term for the tax identification number used across its tax system. It is not a separate number — it is a concept that encompasses several document types:
- Spanish citizens — their NIF is their DNI number (Documento Nacional de Identidad), in the format 12345678-Z.
- Foreign nationals — their NIF is their NIE number (X-1234567-Z).
- Legal entities (companies) — their NIF is their CIF number (Código de Identificación Fiscal), in the format A-12345678.
In practice, when a Spanish notary, bank, or tax form asks for your NIF, they mean your NIE if you are a foreign individual. The terms NIF and NIE are used interchangeably in most everyday contexts, which causes unnecessary confusion.
EU vs Non-EU Residents: A Critical Difference
The distinction between EU and non-EU nationals matters a great deal here:
EU, EEA, and Swiss nationals (pre-2021 for Swiss) who become resident in Spain register with the Central Register of Foreigners (Registro Central de Extranjeros) and receive a certificate of registration rather than a TIE. Their NIE is assigned as part of this process. EU residents were historically not required to hold a TIE card, though many now choose to obtain one for convenience.
Non-EU nationals (including British nationals post-Brexit) who become resident in Spain must go through a visa process and obtain a TIE card. The NIE number is embedded in the TIE.
Non-resident property owners of any nationality hold a NIE (just the number and its certificate) and no residence card.
Common Sources of Confusion
"My NIE is expiring" — NIE numbers do not expire. If someone has told you this, they likely mean your TIE card, your visa, or your padrón registration needs attention.
"I need a NIE to open a bank account but I'm told I need a NIF" — These mean the same thing for individuals. Provide your NIE number.
"I have a TIE — do I still need to file non-resident tax?" — Holding a TIE means you are a resident, so you file as a resident (Modelo 100), not as a non-resident (Modelo 210). Your tax obligations change substantially.
"I got a NIE years ago — do I need to update it?" — No. But if your address or circumstances have changed, you may need to update your padrón registration or other documents.
Professional help
Need help with this?
Spanish tax filings and bureaucracy can be complex. A local gestoría can handle Modelo 210, NIE applications, and other filings on your behalf.
Find a gestoría →Reading tools
Simplify this article