NIE and NIF are two of the most confused abbreviations in Spanish bureaucracy, and the confusion is understandable — for most foreigners, they end up being the exact same number used in two different contexts.
NIE: Your Identity Number as a Foreigner
The Número de Identificación de Extranjero is assigned to any non-Spanish national who has legal, financial, or professional dealings in Spain. It identifies you to the immigration authorities and police, independent of whether you pay taxes.
NIF: Your Tax Identification Number
The Número de Identificación Fiscal is the number the Spanish Tax Agency (Agencia Tributaria) uses to identify taxpayers — both individuals and companies. For Spanish citizens, the NIF is simply their national ID number (DNI) with a letter added. For foreigners, the NIF is their NIE number, used in a tax context.
So Are They the Same Number?
For an individual foreigner, yes. Your NIE and your NIF are the same string of characters (e.g., X1234567L) — the terms just describe the function the number is serving in a given context. You’ll see “NIE” on your residency paperwork and police certificate, and “NIF” on tax forms, invoices, and bank documents, but it’s one number doing two jobs.
The one case where they genuinely differ is for companies: a Spanish company has its own NIF (starting with a letter indicating its legal structure, like B for a limited company), which is distinct from the NIE of any foreign director or shareholder.
| NIE | NIF | |
|---|---|---|
| Full name | Número de Identificación de Extranjero | Número de Identificación Fiscal |
| Issued by | Ministry of the Interior / National Police | Agencia Tributaria (Tax Agency) |
| Used for | Identity, residency, legal transactions | Tax returns, invoices, banking |
| For individual foreigners | Same number | Same number |
| For companies | Not applicable | Separate company NIF |
When You’ll See Each Term
- Property notary deed: usually labeled NIE
- Modelo 210 (non-resident tax return): labeled NIF
- Bank account opening: may ask for either term, same document required
- Utility bills and contracts: often labeled NIF/CIF
Frequently Asked Questions
Do I need to apply for an NIF separately from my NIE?
No. Once you have an NIE, it automatically functions as your NIF for tax purposes — there’s no separate application.
What if I’m setting up a Spanish company?
The company itself will need its own NIF (obtained through the Tax Agency), separate from the personal NIE of any foreign director or shareholder, which is still required individually.
Will my bank ask for my NIE or my NIF?
Spanish banks commonly use the term NIF on their forms since it’s a tax-related account, but they mean the exact same number as your NIE.
