NIE number in Spain: what it is and how to get it

NIE number in Spain: what it is and how to get it

Your NIE never expires — but the support number on your card does change. We obtain NIEs through a legal representative, so you skip the cita previa queue entirely.
Read more Get a free consultation
From 0 €
Tax burden per month
From 6 weeks
Term for obtaining a residence permit
5 years
Until permanent residence permit
#NIE #Spanish bureaucracy 06/05/2025 Reading time: 7 min

The NIE (Número de Identificación de Extranjero) is your foreigner's identification number in Spain. Without it you can't open a bank account, buy property, register as self-employed (autónomo), pay taxes or get a digital signature. It's the first document any administrative life in Spain starts with. The format is a letter X, Y or Z + 7 digits + a check letter, for example X1234567Y. If you don't have residence, the NIE is issued on an A4 paper certificate; if you do, the number is printed on your TIE residence card.

NIE at a glance
  • What it isa foreigner's numberFormat X/Y/Z + 7 digits + letter. Assigned once, for life.
  • Getting a residence permitNIE comes with itAssigned automatically — no separate police visit.
  • No residence (buying property, business)EX-15 + cita previaIn person at Policía Nacional or via a consulate.
  • Cost≈ €10Tax Modelo 790-012; the certificate itself is free.
  • NIE ≠ TIEnumber vs cardNIE is the digits, TIE is the plastic residence card bearing them.

NIE, TIE, NIF, DNI — the difference

Four different things people constantly confuse. Here's each:

DocumentFor whomWhat it isValidity
NIEForeignersA unique number (X/Y/Z + 7 digits + letter), e.g. X1234567Y. On an A4 paper certificateLifelong — the number never changes
TIEResidents with a permitA plastic card with the NIE, photo and biometrics. Proves resident statusFor the permit's term — renewed on renewal
DNISpanish citizensNational ID (8 digits + letter), e.g. 12345678Z5–10 years
NIFAll taxpayersTax number. For foreigners it equals the NIE, for citizens the DNIIndefinite
NIE vs TIE — the key pointThe NIE is just a number, assigned once and for life. The TIE is the physical card that proves your resident status and is renewed each time your permit is. When you get any residence permit, the NIE is assigned automatically — get a digital nomad permit and the NIE comes with it. Those without a permit receive the NIE on a white paper certificate.

Why you need a NIE

The NIE is required for any official action involving money, property or legal status:

  • opening a bank account;
  • buying or renting property;
  • buying and registering a car;
  • registering as autónomo and paying taxes;
  • registering with Social Security (Seguridad Social);
  • getting a digital certificate (Certificado Digital);
  • empadronamiento in some municipalities;
  • enrolling children in school.

Who can get a NIE

  • Foreigners planning a long stay — for work, study or family.
  • Tourists buying property or starting a business — even without residence.
  • Digital nomads, freelancers, startup founders.
  • Residents with a permit — the NIE is assigned automatically, with no separate police visit.

How to get a NIE: three routes

Route 1 — you're already in Spain, via Policía Nacional

You apply in person at a Policía Nacional station with immigration competence. A key point: the NIE isn't strictly tied to a province — you can book an appointment at any station across Spain, not just where you live.

Booking a cita previa:

  1. Go to the cita previa portal.
  2. Select the province → "Policía — Expedición de NIE y certificados".
  3. Enter your passport details and pick a time.

Documents for the appointment:

  • passport (original + copy of all pages);
  • form EX-15 — in Spanish;
  • proof of the tax payment Modelo 790-012 (≈ €10) — paid at a bank in advance;
  • a document justifying the need: a purchase contract, a rental pre-agreement, a residence-application booking, a work contract, etc.

Processing is 5 working days by regulation; in practice often same-day or within 1–3 weeks, up to 45 days at busy offices.

Insider tipCita previa slots vanish within minutes, especially in Madrid and Barcelona. If your city is empty, try neighbouring provinces (Guadalajara, Toledo, Segovia) — the NIE isn't tied to your address. Check the portal morning and evening; cancellations pop up during the day.
Route 2 — from outside Spain, via a consulate

You apply at a Spanish consulate in your country of nationality or residence. Same documents: passport, EX-15, the fee and a justification. Some consulates accept by appointment, some during opening hours — check the specific consulate's site. Timeline: from 2 weeks. If approved, the NIE certificate is emailed as a PDF with a QR code.

Route 3 — via a representative (remotely)

Possible if the applicant has already entered Spain (there's an entry stamp in the passport). Handled through a Spanish lawyer under a notarised power of attorney; timeline around 10 days. Handy if you can't book a cita previa yourself.

Digital signature and the NIE

Without a NIE you can't get a Certificado Digital — Spain's electronic signature. And you need it to file residence applications online, submit tax returns to Hacienda, register as autónomo and dozens of other procedures. Step by step: why you need a digital certificate in Spain.

Common problems and how to avoid them

ProblemSolution
No cita previa slotsTry neighbouring provinces — the NIE isn't tied to your address. Check morning and evening
Rejected over address transliterationWrite the address on EX-15 in Latin letters, as in your passport — no Cyrillic
Rejected — no justificationAttach a concrete document: a pre-agreement, a residence booking, a job offer. "I plan to live here" isn't enough
Fee paid incorrectlyModelo 790-012 is paid at a bank before the visit, not at the station's cashier. Print the receipt

The NIE is only the first step. Many people then apply for a residence permit — which one suits you is covered in the guide to residence permits in Spain.

Frequently asked questions

The NIE (Número de Identificación de Extranjero) is your personal foreigner's number, the equivalent of a taxpayer ID for all dealings with the state and money. Format: a letter X, Y or Z + 7 digits + a check letter (e.g. X1234567Y). Assigned once and never changes.
It's a number, not a card: X/Y/Z, seven digits and a letter. Without residence it's issued on a white A4 paper certificate; with residence the same number is printed on your plastic TIE card. Online "NIE generators" produce random numbers with no legal validity.
No. The NIE is a unique number assigned once for life. The TIE is the plastic residence card the number is printed on. The TIE is renewed each time your permit is; the NIE itself never changes.
No. With any residence permit — digital nomad, non-lucrative, student — the NIE is assigned automatically during processing. You don't visit the police separately: the number will already be on your TIE card.
Yes. The NIE isn't strictly tied to a province. If your city has no slots, look in neighbouring provinces. Before travelling, confirm on the specific station's site that it accepts non-local applicants.
The Modelo 790-012 tax is about €10, and the certificate itself is free. Through a representative you add the cost of their service.
In most Spanish banks — no, the NIE is required. Exception: some online banks (N26, Revolut) work with a foreign passport, but they often ask for a NIE at verification. Better to get the NIE before opening an account.

Official sources:
Policía Nacional — NIE assignment
Portal de Cita Previa Extranjería
Ley Orgánica 4/2000 — the foundational law on foreigners

Go back to the blog

Any questions left?

Get advice in a convenient way!