Understanding identification numbers in Spain can be confusing for expats. You will encounter terms like NIE, NIF, and CIF when dealing with Spanish administration.
The basic definitions
Spain uses different acronyms for identification depending on your nationality and legal status. These numbers are used for administrative and tax purposes.
A documento nacional de identidad (national identity card) is the standard identity document for Spanish citizens. Expats use a different system.
The main identification numbers for foreigners and businesses are the NIE, NIF, and CIF. Each number has a specific function.
Who needs a NIE number?
Any foreigner with administrative or financial activities in Spain needs a NIE. The number is required for both residents and non-residents.
You need a NIE if you buy a house or a car in Spain. You also need it if you open a bank account or sign a utilities contract.
Students moving to Madrid for university must also get this identifier. It is the core number for your expat journey.
If you register as a freelance worker, you must obtain a NIE first. You cannot register with the tax office without it.
NIE: The foreigner identification number
A número de identidad de extranjero (foreigner identity number) is the identification number assigned to foreigners in Spain.
This number identifies you in all administrative procedures. It is required to rent a flat, get a phone contract, or start a job.
The number is permanent and stays with you for life. It consists of a letter, seven numbers, and a check letter.
An example of a NIE format is Y1234567A. Having this number does not mean you have a legal residency permit.
NIF: The universal tax number
A número de identificación fiscal (tax identification number) is the tax number used for transactions in Spain.
If you are a Spanish citizen, your NIF matches your identity card number. It consists of eight digits and a letter.
If you are a foreigner, your NIF is exactly the same as your NIE. You do not need a separate tax document.
You simply enter your NIE whenever a form asks for your tax number. Both terms refer to the same identifier for expats.
CIF: The legacy company tax number
A código de identificación fiscal (tax identification code) was the historical tax number for companies in Spain.
The Spanish government officially replaced the CIF with the NIF for legal entities in 2008. Companies now hold a NIF.
However, many businesses and banks still use the term CIF in conversation. It is a common legacy habit.
The company NIF consists of a letter followed by eight digits. The letters represent the type of legal entity in Spain.
For example, the letter A is used for a sociedad anónima (public limited company). The letter B is for a sociedad limitada (limited liability company).
Other letters like G are used for associations, and W is for foreign entities. These codes help the tax office identify business types.
How they compare side by side
You can study this table to compare the key differences between the identification formats.
| Term | Full Name | Target Audience | Format Example |
|---|---|---|---|
| NIE | Foreigner Identity Number | Foreign nationals | Y1234567A |
| NIF | Tax Identification Number | All taxpayers and entities | X1234567L or B12345678 |
| CIF | Tax Identification Code | Corporate entities (obsolete) | B12345678 |
How to apply for a NIE in Spain
You can apply for your identification number in Spain by following these steps.
-
Book an appointment online on the official government portal.
-
Select the option for assigning a foreigner number on the application form.
-
Fill out the application form EX-15 and print two copies.
-
Pay the administrative fee using the tax form Modelo 790 code 012.
-
Bring your receipt of the paid fee to a local bank.
-
Present your documents at the designated police station at your scheduled time.
-
Collect your NIE certificate from the office once it is processed.
Checklist: What you need for your NIE application
Ensure you prepare all the required paperwork before your appointment to avoid delays:
- Form EX-15 : You must submit two completed and signed copies of the standard application form.
- Form Modelo 790 code 012 : The payment receipt from the bank showing you paid the tax.
- Passport : Your original valid passport and a photocopy of all the pages.
- Justification document : A letter explaining why you need the number, like a job offer or property contract.
- NIE booking receipt : A printed copy of your appointment confirmation showing the date and time.
Costs and timelines
The cost of the NIE application is a small administrative fee. You must pay this fee before your appointment.
The current fee for a standard certificate is around 10 euros. You can pay this fee at most local banks.
You can pay the administrative fee at a bank cash machine. Most machines allow you to scan the barcode on the tax form.
Make sure to keep the receipt printed by the cash machine. You must bring it to your appointment as proof of payment.
If you apply within Spain, you usually receive your certificate on the same day as your appointment.
Some police stations might take up to five working days to issue the document. Plan ahead to avoid issues.
Questions and answers
Is my NIE number the same as my NIF number?
Yes. If you are a foreigner, your NIE serves as your tax number. You use Y1234567A for both identification and taxes. Spanish citizens use their national identity card number instead.
Can I work in Spain with just a NIE certificate?
No. The white NIE certificate only assigns you an identification number. It does not grant you the right to work. You must apply for a residency permit that includes a work authorization.
Does a NIE number expire?
No. Your assigned identification number is permanent and stays with you for life. However, the physical paper certificate is only valid for three months from the date of issue.
What is the difference between a NIE and a TIE?
The NIE is a number, while the TIE is a physical card. Non-EU residents receive a plastic TIE card that contains their photo, residency details, and their NIE number.
Can a company have a NIE number?
No. Companies only receive a company tax number, which is legally called a NIF. The NIE is strictly for individual human beings who are foreign nationals.
How do I use my NIE for international VAT?
You add the prefix ES to your number. For European transactions, you convert your number into a VAT number by adding the country code. Your international number will look like ESY1234567A.
