The NIE (Número de Identificación de Extranjero) is Spain’s tax identification number for foreigners. You need it for nearly everything: opening a bank account, signing a rental lease, paying taxes, buying property, setting up utilities, and registering for health insurance. Getting your NIE should be one of the first things you do after arriving in Spain — or even before you arrive. This guide covers the exact steps, documents, fees, and how to navigate Spain’s notoriously frustrating appointment system.
What Is the NIE and Who Needs One?
The NIE is an eight-digit identification number assigned by Spain’s National Police. It starts with X, Y, or Z followed by seven digits and a letter (example: X1234567A). Once assigned, your NIE is permanent — it stays with you for life.
Anyone who conducts legal, financial, or professional activity in Spain needs a NIE. This includes:
- Expats on any visa type (NLV, DNV, work visa, student visa)
- Non-residents buying property
- Non-residents opening a bank account
- Anyone receiving income from Spanish sources
- Anyone paying taxes in Spain
If you’re applying for a Non-Lucrative Visa or Digital Nomad Visa, your NIE is assigned automatically as part of the residency process. If you need a NIE before or outside of a visa application — for example, to buy property as a non-resident — you apply for it separately.
NIE vs. TIE: What’s the Difference?
These two get confused constantly:
| NIE | TIE | |
|---|---|---|
| What it is | A number (tax ID) | A physical card (ID card) |
| Full name | Número de Identificación de Extranjero | Tarjeta de Identidad de Extranjero |
| Purpose | Tax and identification number | Proves residency status in Spain |
| Who gets it | All foreigners with legal/financial activity | Only those with residency visas |
| Duration | Permanent | Matches visa duration, must be renewed |
| When assigned | At application or with visa | After arriving in Spain with a visa |
Think of the NIE as your Spanish Social Security number — it’s just a number that identifies you. The TIE is the physical card that proves you have the right to live in Spain, like a green card in the US.
How to Apply for a NIE
Option 1: From Inside Spain (Cita Previa at Police Station)
This is the most common method for people already in Spain.
Step 1: Book an appointment (cita previa)
Go to the Sede Electrónica (online appointment system) of Spain’s National Police. Select your province, then choose “POLICIA-ASIGNACIÓN DE N.I.E.” as the appointment type (for non-EU citizens).
The appointment system is the hardest part of this entire process. In major cities (Madrid, Barcelona, Valencia), appointments can be booked out weeks in advance or show no availability at all. Tips:
- Check the system early in the morning (8-9 AM Spanish time) when new slots are released
- Check multiple provinces — a police station in a smaller nearby town may have earlier availability
- Refresh persistently — cancellations create openings throughout the day
- Some expats use appointment notification services that alert them when slots open
Step 2: Fill out Form EX-15
Download and complete the EX-15 form (Solicitud de Número de Identidad de Extranjero — used by non-EU citizens). EU citizens use Form EX-18 instead. Print two copies. Fill it out in Spanish. Key fields:
- Personal information (name, nationality, passport number, date of birth)
- Spanish address (can be your hotel or temporary accommodation)
- Reason for requesting NIE — typically “económicos” (economic reasons) for property purchases, banking, employment, etc.
Step 3: Gather documents
| Document | Details |
|---|---|
| Form EX-15 | Two completed copies |
| Valid passport | Original + photocopy of biographical page |
| Justification letter | Explains why you need a NIE (bank account, property, employment, etc.) |
| Proof of address in Spain | Hotel booking, rental contract, or empadronamiento |
| Passport-size photo | Some offices require one; bring it just in case |
| Tax fee payment (Tasa 790-012) | €12, paid before your appointment at a bank |
The justification letter doesn’t need to be elaborate. A brief statement explaining you need the NIE to open a bank account, rent an apartment, or conduct business in Spain is sufficient. Write it in Spanish if possible.
Step 4: Pay the fee
The NIE application fee is €12 (Tasa 790, código 012). You must pay this before your appointment. Download the Modelo 790 form from the police website, fill it out, and take it to any Spanish bank to pay. The bank stamps it as proof of payment. Bring the stamped form to your appointment.
Step 5: Attend your appointment
Arrive on time (Spain’s bureaucratic offices don’t wait). Bring originals and copies of everything. The officer reviews your documents, processes the application, and in many cases, issues your NIE number on the spot — you’ll receive a paper certificate with your number.
Some offices issue the NIE immediately; others mail or email it within a few days to a few weeks. Ask at your appointment when to expect the result.
Option 2: From Outside Spain (Spanish Consulate)
If you need a NIE before moving to Spain — typically for property purchases or setting up pre-move financial arrangements — you can apply at the Spanish consulate in your country.
The process is similar: Form EX-15, passport, justification letter, and the fee. Processing typically takes 1-2 weeks at most consulates. Call your nearest Spanish consulate to confirm their specific requirements and appointment availability.
Note: If you’re applying for a residence visa (NLV, DNV), you don’t need to apply for a NIE separately — it’s assigned as part of the visa process.
Option 3: Use a Legal Representative (Gestor)
If the appointment system defeats you (it defeats many people), a gestor or immigration lawyer can apply on your behalf with a poder notarial (notarized power of attorney). This costs €100-300 for the service, but saves the frustration of fighting the appointment system. Gestores in tourist-heavy areas handle this daily and can often get appointments faster.
What to Do With Your NIE
Once you have your NIE, keep it safe and carry a copy everywhere. You’ll need it for:
- Opening a bank account — required by most banks for resident accounts. Some banks accept just a passport for non-resident accounts initially, but you’ll need the NIE to upgrade. See our banking guide for the full process.
- Signing a rental contract — landlords and agencies almost always require it. Our renting in Spain guide covers the full process.
- Registering on the Padrón — your municipal census registration
- Setting up utilities — electric, gas, water, internet contracts
- Paying taxes — any Spanish tax obligation references your NIE
- Buying property — required for property deeds and transactions
- Healthcare registration — needed for both public system enrollment and private insurance
- Employment — employers need your NIE for payroll and social security
Common Mistakes
Waiting too long after arrival. Get the NIE appointment booked before you arrive or within the first few days. The appointment system backlog means waiting can cost you weeks.
Not bringing the fee payment proof. The €12 fee must be paid at a bank before your appointment. Showing up without the stamped Modelo 790 means starting over.
Confusing the NIE with the TIE. The NIE is just a number — it doesn’t prove residency. If someone asks for your “residency card,” they want the TIE, not the NIE certificate.
Not making copies. The NIE certificate is a single piece of paper. Lose it and you need to request a replacement. Make multiple copies and take photos immediately.
Trying to do everything before getting the NIE. Sequence your arrival tasks: (1) temporary accommodation, (2) NIE appointment, (3) bank account, (4) permanent apartment, (5) Padrón registration. Everything flows from the NIE.
Bottom Line
The NIE is a simple document — it’s just a number — but getting it can test your patience. Book the appointment as early as possible, arrive with all your documents ready (Form EX-15, passport copies, Modelo 790 payment proof, justification letter), and expect the process to take 30-60 minutes at the appointment itself. Once you have it, everything else — banking, renting, healthcare — becomes dramatically easier.