NIE Number in Spain: What It Is and How to Get It

The NIE is the number Spain gives every foreigner who buys, inherits, works or pays tax there. Here is when it is asked for, how to get it in Spain or from abroad, and how it differs from the TIE card.

The guide

7 min read

Sooner or later, nearly every foreigner who deals with Spain meets the letters NIE. Buying a flat, inheriting from a relative, taking a job or simply signing an electricity contract can all stop until this number exists. This guide is for people who live in Spain or abroad and want to understand what the NIE is, when it is asked for, how to obtain it in Spain or from another country, and how it differs from the TIE card and the EU registration certificate that people often confuse it with.

Getting an NIE at a glance
  1. Know when you need itBuying, inheriting, working, opening an account
  2. Pick the right documentNIE, TIE or EU certificate
  3. Apply in SpainAppointment, form EX-15, fee, documents
  4. Or apply from abroadThrough a consulate or a representative
  5. After the NIEWhere the number is used next

What the NIE is, and what it is not

NIE stands for Número de Identidad de Extranjero, the foreigner's identity number. It is a personal reference that the Spanish police assign once and for life; it starts with a letter (X, Y or Z), followed by digits and a control letter. For tax purposes it also works as the foreigner's NIF, the tax identification number that Spanish citizens have on their national identity card.

The NIE does not give anyone the right to live or work in Spain. It is only a number. A tourist who buys a holiday home, an heir who never sets foot in the country and a resident with a long-term permit all have one, but their rights to stay are decided by other documents. Mixing the two up causes real trouble, for example when someone assumes that the paper with their number lets them stay beyond the visa-free period.

When a foreigner is asked for an NIE

The number is linked to any act with economic, professional or social effects in Spain. Typical situations include:

  • buying, selling or inheriting a home, a plot or a parking space, see property purchase and inheritance;
  • filing any Spanish tax return, including the yearly return of a non-resident owner;
  • signing an employment contract or registering with Social Security;
  • starting work as autónomo (self-employed) or forming a company, see business set-up;
  • buying or registering a car, or taking out some insurance policies;
  • opening a bank account in many banks, and signing for utilities or a mortgage;
  • applying for any residence permit, where the number is given as part of the process.

NIE, TIE and the EU registration certificate

Three documents carry the same number, which explains most of the confusion:

The NIE certificate is a plain paper that shows the number for someone who does not live in Spain, or who has not yet received a residence document. It suits buyers, heirs and other non-residents.

The TIE, short for Tarjeta de Identidad de Extranjero, is a plastic card with a photo and fingerprint, issued to citizens of countries outside the EU who hold a Spanish residence permit or visa for a longer stay. It shows the NIE and proves the right to live in Spain. Lawyers who handle the TIE card application book the fingerprint appointment after arrival. British citizens who lived in Spain before Brexit and are covered by the Withdrawal Agreement receive their own version, explained under TIE card for UK citizens.

Citizens of the EU, the EEA and Switzerland who move to Spain do not get a TIE. They register as residents and are given the certificado de registro de ciudadano de la Unión, a certificate that also shows their NIE. The EU citizen registration certificate page covers that procedure. A person who already had an NIE as a non-resident keeps the same number when they register.

Getting an NIE in Spain

Inside the country, the request goes to the immigration office (Oficina de Extranjería) or to a national police station that deals with foreigners. The usual sequence is:

  1. Book an appointment (cita previa) online for the procedure for assigning an NIE; in busy coastal areas free slots appear irregularly.
  2. Fill in form EX-15, the official request for the number.
  3. Pay the government fee with form Modelo 790, código 012 at a bank or online, and keep the stamped receipt.
  4. Attend the appointment in person with the original documents and copies.
  5. Collect the certificate, which some offices hand over on the spot and others prepare for a later date.

Documents usually asked for at the appointment:

  • passport, or national identity card for EU citizens, with a copy;
  • the completed EX-15 form;
  • the paid fee receipt;
  • evidence of the reason for the number, such as a reservation or private purchase contract, a notary's appointment, a job offer or a letter from the tax office;
  • passport photos in some offices.

The reason matters. Non-residents are asked to show why they need the number, and an office may turn away an application that rests on a vague purpose. A lawyer who knows the local office usually frames the request so that it fits.

Getting an NIE from abroad

People who are not in Spain have two main options. The first is the Spanish consulate in the country where they live, which takes the same EX-15 request and sends it to Spain; consulates differ in how quickly they book and how long the number takes to arrive. The second is a representative in Spain. Holding a notarial power of attorney, apostilled and officially translated when it was granted outside Spain, a lawyer can attend the police appointment in place of the applicant.

When a sale or an inheritance deed is already booked, buyers and heirs often choose a lawyer offering an NIE express service, who looks for the earliest appointment anywhere in the province and collects the certificate on the applicant's behalf. Local knowledge helps here: lawyers in Valencia, Seville or Las Palmas de Gran Canaria know which nearby offices are easier to reach.

Common problems

Most delays come from a handful of situations. Appointments may simply not be available for a while, which is the main reason people use a representative. A name may be written differently on the passport, the contract and the bank papers, especially with double surnames or accents, and later documents may then fail to match. Someone who once had an NIE and forgot about it may apply again and receive a second number, which leads to tax records under two identities; the usual fix is to ask for a copy of the existing number. A lost certificate can be replaced by asking the police for a new one with the same number. Questions about official procedures of this kind belong to administrative law and processes.

After the NIE arrives

The number goes on every contract, tax return and official form from then on. Non-residents use it for their dealings with the tax agency, the Agencia Tributaria. People who move to Spain take the next steps with the same number: registering at the town hall (empadronamiento), obtaining a residence document and joining the health system. Lawyers offering relocation and settling-in support handle that chain together, and the visa options themselves are listed under immigration. People who work for themselves can then register as autónomo, see self-employed set-up.

Questions and answers

How long does it take to get an NIE number in Spain?

It depends almost entirely on the office. Where appointments are easy to find, the certificate can come quickly, sometimes at the appointment itself; where they are scarce, the wait for a slot is the longest part. Consulates abroad set their own pace.

Can I apply for an NIE online?

Not completely. The appointment is booked online and the fee can be paid online, but an individual still has to attend in person or be represented by someone holding a power of attorney.

Does the NIE number expire?

The number itself stays with the person for life. Some banks, notaries and offices ask for a recently issued certificate, so people who lose the paper or have an old copy sometimes request a fresh one with the same number.

NIE vs TIE: how do they differ?

One is a number, the other a card. The TIE is a residence card for non-EU citizens that shows the number and proves the right to live in Spain. A non-resident buyer has an NIE but no TIE.

Can I work in Spain with an NIE?

Not on its own. Working needs a right to work, which EU citizens have and others obtain through a work permit or a visa that allows work. The NIE is simply the number used once that right exists.

Can a lawyer get an NIE for me?

Yes. Acting under a power of attorney, a lawyer can book the appointment, pay the fee, present the request and collect the certificate, in Spain or by working with the applicant's consulate.

Prepared by Legal Help Tool. Last updated . General information, not legal advice.

29 lawyers in Spain who handle this

The best first — by clients' ratings and cases handled. Write to any of them — the reply comes from the lawyer, without obligation.

  • Angela, lawyer in Córdoba

    Angela

    Lawyer · Córdoba, Spain

    • 381 cases handled
    • 27+ years in practice
    • Speaks: English, Spanish
    • Law, Business and Company Administration, Universidad Pontificia de Comillas (ICADE)
    • 5.00(30 reviews)
    Contact Angela
  • José, lawyer in Alicante

    José

    Lawyer · Alicante, Spain

    • 786 cases handled
    • 22+ years in practice
    • Speaks: English, Spanish
    • Law, Alicante University
    • 4.99(97 reviews)
    Contact José
  • Inma, lawyer in Valencia

    Inma

    Lawyer · Valencia, Spain

    • 716 cases handled
    • 18+ years in practice
    • Speaks: English, Spanish
    • Law, University of Valencia
    • 4.99(56 reviews)
    Contact Inma
  • Rosa, lawyer in Mallorca

    Rosa

    Lawyer · Mallorca, Spain

    • 1,612 cases handled
    • 17+ years in practice
    • Speaks: English, Spanish
    • Law, University of the Balearic Islands
    • 4.98(162 reviews)
    Contact Rosa
  • Esther, lawyer in Maspalomas

    Esther

    Lawyer · Maspalomas, Spain

    • 229 cases handled
    • 23+ years in practice
    • Speaks: English, German
    • Law, University of Las Palmas de Gran Canaria
    • 4.99(17 reviews)
    Contact Esther
  • Miguel, lawyer in Oviedo

    Miguel

    Lawyer · Oviedo, Spain

    • 254 cases handled
    • 26+ years in practice
    • Speaks: English, Spanish
    • Law, University of Oviedo
    • 4.98(22 reviews)
    Contact Miguel
  • Oscar, lawyer in Barcelona

    Oscar

    Lawyer · Barcelona, Spain

    • 677 cases handled
    • 20+ years in practice
    • Speaks: English, Spanish
    • Law, University of Barcelona
    • 4.97(57 reviews)
    Contact Oscar
  • Daniel, lawyer in Mallorca

    Daniel

    Lawyer · Mallorca, Spain

    • 137 cases handled
    • 11+ years in practice
    • Speaks: Spanish, Italian, English, Portuguese, French
    • Law, UIB
    • 5.00(5 reviews)
    Contact Daniel
  • María Luz, lawyer in Marbella

    María Luz

    Lawyer · Marbella, Spain

    • 24 cases handled
    • 3+ years in practice
    • Speaks: English, Spanish
    • Law Degree, University of Granada
    • 5.00(2 reviews)
    Contact María Luz
  • Sabela, lawyer in Vigo

    Sabela

    Lawyer · Vigo, Spain

    • 250 cases handled
    • 17+ years in practice
    • Speaks: English, Spanish
    • Law, Santiago de Compostela
    • 4.96(29 reviews)
    Contact Sabela
  • Roberth, lawyer in Barcelona

    Roberth

    Lawyer · Barcelona, Spain

    • 64 cases handled
    • 13+ years in practice
    • Speaks: English, Spanish, French
    • Law, University of Barcelona
    • 5.00(1 review)
    Contact Roberth
  • Aleix, lawyer in Barcelona

    Aleix

    Lawyer · Barcelona, Spain

    • 30 cases handled
    • 4+ years in practice
    • Speaks: English, Spanish
    • Business-Management, Universitat de Barcelona
    Contact Aleix
  • Pablo, lawyer in Dúrcal

    Pablo

    Lawyer · Dúrcal, Spain

    • 11 cases handled
    • 21+ years in practice
    • Speaks: Spanish, English, French
    • Degree in Law, Universidad de Granada
    Contact Pablo
  • Juan Ignacio, lawyer in Vera

    Juan Ignacio

    Lawyer · Vera, Spain

    • 117 cases handled
    • 15+ years in practice
    • Speaks: English, Spanish
    • Law, University of Almeria
    • 4.93(21 reviews)
    Contact Juan Ignacio
  • Juan, lawyer in Madrid

    Juan

    Lawyer · Madrid, Spain

    • 164 cases handled
    • 10+ years in practice
    • Speaks: English, Spanish
    • Degree in Law, Deusto University (Bilbao, Basque Country)
    • 4.86(7 reviews)
    Contact Juan
  • Raffaele, lawyer in Barcelona

    Raffaele

    Lawyer · Barcelona, Spain

    • 1,553 cases handled
    • 15+ years in practice
    • Speaks: English, Portuguese, Italian, Spanish
    • Spanish Law; Italian Law, Universitat Pompeu Fabra - Università degli Studi di Milano
    • 4.90(38 reviews)
    Contact Raffaele
  • Federico, lawyer in Madrid

    Federico

    Lawyer · Madrid, Spain

    • 440 cases handled
    • 25+ years in practice
    • Speaks: English, German, French, Spanish
    • Law, Complutense University Madrid (San Pablo)
    • 4.82(14 reviews)
    Contact Federico
  • Rafael, lawyer in Seville

    Rafael

    Lawyer · Seville, Spain

    • 204 cases handled
    • 31+ years in practice
    • Speaks: English, Spanish
    • Law, University of Seville
    • 4.81(27 reviews)
    Contact Rafael
  • María, lawyer in Cazorla

    María

    Lawyer · Cazorla, Spain

    • 184 cases handled
    • 8+ years in practice
    • Speaks: Spanish, English
    • Law, University Granada
    • 4.60(5 reviews)
    Contact María
  • Maria, lawyer in Girona

    Maria

    Lawyer · Girona, Spain

    • 60 cases handled
    • 23+ years in practice
    • Speaks: English, Spanish
    • Law, Universidad Pompeu Fabra, Barcelona
    • 4.38(8 reviews)
    Contact Maria
Contact form · a chat with a lawyer

Talk to a lawyer in Spain

This guide is general information, not legal advice. Describe your own situation in the chat — what it is about, where in Spain, and how to reach you — and a lawyer who handles this kind of matter replies, with no obligation.

We are not just a place to list a profile: we work with every lawyer individually. Each one is registered with a bar association, and their experience, languages and client reviews are shown openly on their card.

Enquiries are answered by lawyers of AdvocateAbroad. This site provides legal information, not legal advice.