NIE, DNI, NIF, TIE: The Spanish Numbers Explained
Sandor Farkas
Founder and editor of Mallorca Plus
Helps expats and residents navigate authorities, housing and everyday life on Mallorca.
When you arrive on Mallorca you quickly run into an alphabet soup: NIE, DNI, NIF, TIE. They all sound similar but mean different things, and it is not always obvious which number you need for which errand. This post explains the difference at a glance, so that on your next trip to a government office you know what people are talking about.
At a glance
The NIE is the foreigner identification number, and it doubles as your tax number (NIF). The DNI is the Spanish national ID card for citizens. The TIE is the physical residence card for non-EU nationals. As a foreign resident on Mallorca, the NIE is the one you really need.
What do NIE, DNI, NIF and TIE mean?
The NIE, Número de Identificación de Extranjero, is the personal identification number for every foreigner in Spain. It consists of a letter (X, Y or Z), seven digits and a check letter, and it serves as the central administrative and tax number for all official matters in the country.
The DNI, Documento Nacional de Identidad, is the national ID card of Spanish citizens. It also carries an identification number, but that one has eight digits and a letter. As a foreign national on Mallorca you will not get a DNI; it is reserved for citizens.
The NIF, Número de Identificación Fiscal, is the tax identification number issued by the Spanish tax authority, the Agencia Tributaria, to everyone with tax obligations. For foreigners the NIF is identical to the NIE, so there is no separate tax number. For Spaniards, the NIF is identical to the DNI.
The TIE, Tarjeta de Identidad de Extranjero, is a physical plastic card that confirms your residence status. EU citizens do not get a TIE; instead they are entered in the central register of foreigners and receive the Certificado de Registro de Ciudadano de la Unión. Non-EU nationals do get the TIE as visible proof of their residence permit.
Which number do you need on Mallorca?
If you are a foreign national living on Mallorca, the NIE is your most important number. You need it for:
- Buying property or signing a long term rental contract
- Opening an account at a Spanish bank
- Buying a car and registering it in your name
- Taking out insurance policies
- Registering with the health system (Seguridad Social)
- Filing a tax return in Spain
- Starting a business or registering as autónomo
- Any kind of appointment at a notary
According to the Agencia Tributaria, the NIE is the relevant identification number for everyone with tax obligations in Spain who does not hold Spanish citizenship. That applies even if you only have occasional economic activity in Spain, for example as a non-resident with a holiday apartment.
Your NIE is your NIF
You do not need to apply for a separate NIF. If you have a NIE, that number is also your tax number. On Spanish forms the two abbreviations are sometimes used interchangeably.
NIE or TIE: what non-EU nationals need to know
For US, Canadian, Australian, British (post-Brexit) and Swiss nationals the situation is a bit more involved. They also need a NIE for administrative matters, and in many cases additionally a TIE as physical proof of their residence permit.
The TIE contains the NIE number and shows the approved residence status (for example Residencia temporal, Reagrupación familiar or the visa category). It is issued by the Spanish immigration authority (Extranjería) and is usually valid for one to two years, after which it has to be renewed.
EU citizens do not receive a TIE but a Certificado de Registro, a paper printout confirming the entry in the central register of foreigners. That document also carries the NIE. The official portal of the Spanish government at sede.administracionespublicas.gob.es lists all the relevant forms.
How the numbers relate to each other
A quick overview:
| Number | Who it is for | What it is for |
|---|---|---|
| NIE | All foreign nationals | Administration, taxes, contracts |
| NIF | Everyone paying tax | Tax filing (for foreigners this = NIE) |
| DNI | Spanish citizens | National ID card |
| TIE | Non-EU nationals | Proof of residence (contains the NIE) |
Why do so many foreigners have a NIE starting with "X"? X was the standard prefix for all foreign NIE numbers for a long time. Once the X numbers ran out, Y was introduced, and by now there are Z numbers as well. The prefix says nothing about your residence status.
A NIE is not a residence permit
The NIE is an identification number, not a residence title. Non-residents also get a NIE if they carry out a transaction in Spain. The Residencia (Certificado de Registro) is the separate document that confirms your permanent residence in Spain.
Common questions at a glance
Do I need both a NIE and a NIF as a resident? No. For every foreigner living in Spain the NIE is also the NIF. On tax forms you simply enter your NIE number.
Can I sign contracts in Spain with my home country ID card? For many everyday things yes, but for dealings with authorities and contracts with Spanish institutions no. There the NIE is mandatory.
Does the NIE expire? No. The NIE number is valid for life and never changes. Only the TIE, as a physical card, has an expiry date and has to be renewed.
Conclusion
For foreigners, NIE and NIF mean the same thing. The DNI is only for Spanish citizens. The TIE is the physical residence card for non-EU nationals and contains the NIE number. If you live on Mallorca without Spanish citizenship, a valid NIE is what you really need, because it is the basis for every official step on the island.
We explain how to apply for the NIE step by step in the guide to the NIE number. If you also want to move your residence officially to Spain, the next step is to apply for the Residencia.
Rather not deal with the paperwork?
We connect you with a vetted gestoria that handles NIE, residencia and registrations for you.
Free and without obligation. We connect you with a vetted German-speaking partner.