What is a NIE number in Spain and who needs one?


If you are dealing with Spain in any official capacity, you will run into it sooner or later: the NIE number. Buying a home, opening a bank account, working, paying tax or even registering a car, none of it works without one. Yet for many people it is not entirely clear what a NIE number actually is or how to get one. This article walks you through it calmly: what it is, what you need it for, who has to apply and how the process works.
What is a NIE number?
NIE stands for Número de Identidad de Extranjero, the identity number for foreigners in Spain. It is a personal, unique number that the Spanish authorities assign to any foreigner who, for economic, professional or social reasons, has dealings with Spain.
The number is made up of a letter (X, Y or Z), followed by seven digits and a check letter. A NIE therefore looks something like Y1234567X. Your NIE number does not expire: you are given it once and it stays valid for life.
One important point: the NIE is an identification and tax number, not a residence permit. On its own it does not give you the right to live or work in Spain. It is simply the number under which the Spanish administration knows you.
What do you need a NIE number for?
In Spain the NIE number is required for almost every official or financial step. The most common situations:
- Buying or selling a property or other real estate
- Opening a Spanish bank account
- Working as an employee or as a self-employed professional
- Paying tax or filing a tax return
- Buying a car and registering it in your name
- Setting up utilities such as water, electricity and internet
- Handling an inheritance
- Starting a business or registering as self-employed
In short: as soon as money, property or an official registration is involved, you will be asked for your NIE.
NIE, TIE, empadronamiento and residency: what is the difference?
These terms are often mixed up, even though they mean different things:
- NIE: your personal identification and tax number as a foreigner.
- TIE (Tarjeta de Identidad de Extranjero): the physical residence card for non-EU nationals living in Spain. The card shows the NIE number.
- Empadronamiento (padrón): your registration with the town hall where you live. This is separate from the NIE.
- Residency: your legal residence status. For EU citizens this is the green registration certificate (Certificado de Registro).
So an EU citizen does not receive a TIE card, but a green registration certificate showing the NIE number once they register as a resident. Non-EU nationals receive a TIE card that shows their NIE.
Who needs to apply for a NIE number?
Anyone without Spanish nationality who wants to arrange something official in Spain needs a NIE. How you apply depends on whether you are an EU citizen:
- EU citizens who are moving to Spain register as residents within three months of arrival. They then receive the green registration certificate, which shows the NIE number (form EX-18).
- If you only need the number itself, for example to buy a property without living in Spain, you apply for a standalone NIE using form EX-15.
- Non-EU nationals are usually assigned their NIE automatically as part of their residence card (TIE).
How do you apply for a NIE number?
You can apply for a NIE in two ways: in Spain itself, or from your home country through a Spanish consulate.
In Spain:
- Book an appointment (cita previa) online at the national police station (Policía Nacional) or the immigration office (Oficina de Extranjería) in the province where you are.
- Complete the correct form: EX-15 if you only need the number, EX-18 if you are an EU citizen registering as a resident.
- Pay the fee using modelo 790, código 012. It currently costs around €12 and is paid at a bank.
- Attend your appointment with your passport and a copy, the completed form, proof of payment and a document showing why you need the NIE (such as a purchase agreement or employment contract). You will often receive the certificate on the spot or within a few working days.
From abroad:
You can also apply for the NIE at the Spanish consulate that covers your area of residence. This uses a similar form (EX-15) and a consular fee. Expect a longer turnaround; the number is usually sent to you by email.
How long does it take and what does it cost?
The fee itself is modest: around €12 via modelo 790 (consular fees vary slightly by country). The biggest variable is the waiting time for an appointment. In large cities such as Madrid and Barcelona it can take several weeks to get a slot, and through a consulate the process can easily run to six to ten weeks. So start early, especially if you need the number for a purchase with a deadline.
What to watch out for
A few things that regularly go wrong:
- Incomplete documents. Without proof of why you need the NIE, the application is often not processed.
- The wrong form. EX-15 and EX-18 are not interchangeable.
- A passport with too little validity left. Make sure your passport is valid well into the future.
- Starting too late. The appointment is usually the bottleneck, not the application itself.
Why Buenaley?
Applying for a NIE number sounds simpler than it often is in practice. The wrong form, a missing document or a missed appointment can easily cost you weeks of delay, right when you need the number most.
Buenaley is a Spanish law firm that guides internationals through exactly this kind of matter: the NIE number, buying a property, tax and residency in Spain. We know the procedures, the forms and the pitfalls, and take as much of the work off your hands as possible.
- Personal guidance throughout the process, in your own language.
- Experience with NIE applications, property and tax matters for foreigners.
- Clear explanations upfront, with no surprises later.
Want to know how we can help you apply for your NIE number, or with your wider plans in Spain? Get in touch and we will be glad to think it through with you.
No obligation to start.