Immigration & residency

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

By the AbogadoAI editorial team · Updated 18 July 2026 · 13 min read

🇪🇸 Read the original in Spanish

If you are planning to move to Spain, buy a property, work, or start a business on Spanish territory, the first legal term you will stumble upon is the NIE. This acronym often generates a great deal of confusion among foreign citizens, who frequently mistake it for a visa, a residence permit, or the physical identity card itself. Understanding exactly what this number is, what it is used for, and the precise procedure to obtain it without setbacks is the first essential step to ensuring a successful legal and administrative transition in Spain.

The NIE stands for Número de Identificación de Extranjero (Foreigner Identification Number). It is a personal, unique, and exclusive sequential number assigned to foreigners by the Dirección General de la Policía (General Directorate of the Police). Its alphanumeric structure never changes: it consists of an initial letter (X, Y, or Z), followed by 7 digits and an alphabetical verification code (another letter at the end).

It is fundamental to clarify that the NIE is not a residence permit or an identity document in itself. It is simply an administrative and tax registration number. A foreign citizen can have an assigned NIE without having authorization to reside or work in Spain.

The Regulatory Framework of Reference

The existence and regulation of the NIE is not arbitrary; it responds to a solid legal framework within Spanish Immigration Law (Derecho de Extranjería):

  1. Ley Orgánica 4/2000, de 11 de enero, on the rights and freedoms of foreigners in Spain and their social integration (commonly known as the Ley de Extranjería / Immigration Act).
  2. Real Decreto 557/2011, de 20 de abril, which approves the Regulation of Ley Orgánica 4/2000 (hereinafter, the Reglamento de Extranjería / Immigration Regulation). Specifically, Article 206 of this Regulation is what regulates the assignment of the Foreigner Identification Number in detail.
  3. Real Decreto 240/2007, de 16 de febrero, on entry, free movement, and residence in Spain of citizens of Member States of the European Union and of other States party to the Agreement on the European Economic Area. This text regulates the situation of EU citizens, who also receive an NIE when registering in the Registro Central de Extranjeros (Central Register of Foreigners) (the well-known "Certificado de Registro de Ciudadano de la Unión" or "green NIE").

According to the aforementioned Article 206 of the Reglamento de Extranjería, an NIE must be assigned to foreigners who have economic, professional, or social interests in Spain, either because a procedure is initiated to obtain a visa or authorization, or because they request it directly to carry out a specific transaction.

Types of NIE: Which One Do You Really Need?

Not all NIE applications serve the same purpose or carry the same rights. Primarily, we must distinguish between three concepts that are often confused:

1. Non-Resident NIE (or Temporary NIE)

This number is assigned to foreigners who are not going to reside in Spain (meaning they will spend less than 90 days per semester in the country) but need to identify themselves before the administration for economic, professional, or social reasons. The most common case is purchasing a property, accepting an inheritance, or opening a bank account. This procedure grants a white A4 paper sheet containing the assigned number. Historically, this paper had a validity of 3 months, but currently, the assigned number is for life, although the physical document may require updating for certain notary procedures.

2. Certificado de Registro de Ciudadano de la Unión (for EU citizens)

Citizens of the European Union, the European Economic Area (Iceland, Liechtenstein, and Norway), and Switzerland who plan to reside in Spain for a period exceeding 3 months are obliged to request their registration in the Registro Central de Extranjeros. Upon doing so, they are issued a green paper document (colloquially known as the "green NIE") containing their details, address, and assigned NIE. This document does not have a photo, so it must always be accompanied by a passport or national identity document from the country of origin.

3. TIE (Tarjeta de Identidad de Extranjero, for non-EU citizens)

This is where the greatest confusion lies. The NIE is the number (the abstract identification), while the TIE (Tarjeta de Identidad de Extranjero / Foreigner Identity Card) is the physical support (the plastic card with a photo and fingerprint) that proves a non-EU citizen has a residence permit or a long-term stay authorization in Spain. If you are a non-EU citizen (for example, from the United States, the United Kingdom, or Morocco) and you obtain a student visa or a work residence permit, the police will issue you a TIE, and your NIE number will be printed on that card.

For Which Procedures is it Mandatory to Have an NIE?

Daily and economic life in Spain is digitized and centralized around tax identification numbers (NIF/NIE). Without this number, a foreigner finds themselves in an "operational block." It is mandatory to:

Substantive Requirements to Apply for an NIE

For the Oficina de Extranjería (Immigration Office) or the Comisaría de Policía (Police Station) to accept an NIE application for processing, the applicant must meet three substantive requirements:

  1. Not be in Spain in an irregular situation. If the applicant is physically in Spain, they must be within their authorized stay period (as a tourist, usually 90 days, or with a valid visa).
  2. Communicate the reasons for the request. It is not enough to simply "want to have an NIE." The economic, professional, or social cause that legitimizes the request must be documented and justified.
  3. Pay the corresponding fees before the resolution of the procedure.

Step-by-Step Guide to Getting Your NIE (Practical Procedure)

The process varies depending on whether you apply from outside Spain (through the Spanish Consulate) or directly within Spanish territory (at the Oficina de Extranjería or Comisaría de Policía). Below, we detail the standard process for doing it within Spain.

Step 1: Gather the Necessary Documentation

You must prepare a folder with the following documents (original and copy of each):

Step 2: Request an Appointment (Cita Previa)

In Spain, in-person assistance for immigration procedures strictly requires a prior appointment (cita previa).

  1. Access the Sede Electrónica de las Administraciones Públicas (Government Public Administration portal).
  2. Select the province where you will carry out the procedure.
  3. In the drop-down menu for Police Station procedures, select "POLICIA-ASIGNACIÓN DE NIE" (if you are a non-EU citizen and only want the number) or "CERTIFICADO DE REGISTRO DE CIUDADANO DE LA UE" (if you are an EU citizen).
  4. Enter your personal details (passport) and select an available date and time.

Step 3: Pay the Administrative Fee

Before attending your appointment, you must download, fill out, and pay the corresponding fee.

  1. Access the Tasa 790 código 012 form on the National Police website.
  2. Select the corresponding option (for example, "Asignación de Número de Identificación de Extranjero (NIE) a instancia del interesado").
  3. The current amount for this fee is €9.84 for the basic assignment of a non-resident NIE (the exact amount may vary slightly with State Budget updates, so it is recommended to verify it when downloading the form). For the EU Registration Certificate, the fee is €12.00.
  4. Print the document and go to any collaborating bank to make the payment in cash or by account debit. Keep the copy stamped by the bank ("Ejemplar para la Administración").

Step 4: Attend the In-Person Appointment

Show up at the designated police station or office on the indicated day and time with all original documentation and copies. After verifying that everything is correct, the official will register your application.

Step 5: Document Collection

Depending on the office and the province, the non-resident NIE (white paper sheet) may be handed over at the time of the appointment, or you may be required to return to collect it after a few days (usually between 3 and 10 business days).

Practical Examples: How Much Does It Cost and How Is It Applied?

To realistically visualize the importance and costs associated with the NIE, we analyze two common scenarios:

Example 1: Property Purchase by a Non-Resident Foreigner

John, a British national, wants to purchase a holiday apartment in Alicante valued at €180,000.

Example 2: EU Citizen Coming to Work in Spain

Amélie, a French national, has been hired by a multinational in Barcelona with a gross annual salary of €32,000. Her rental contract in the city amounts to €1,100 per month.

Mistakes You Must Avoid

The process of obtaining an NIE can become frustrating if major mistakes are made that lead to the rejection of the application. Pay special attention to these points:

Frequently Asked Questions (FAQ)

Does the NIE expire?

No. The Foreigner Identification Number (the alphanumeric code) is unique, personal, and for life. Once a number is assigned to you, it will never change, even if you spend years outside of Spain or if you change your legal status (for example, if you go from a student to a resident). What can expire is the physical document on which it is printed (the white paper sheet or the TIE card), but the number itself remains the same.

Yes, this is perfectly possible. If you are not in Spain, you can grant a power of attorney (poder notarial) of representation in favor of a lawyer or a registered administrative agent (gestor) in Spain. This power of attorney must expressly authorize the representative to request the assignment of the NIE on your behalf. The representative will attend the appointment in Spain providing the duly apostilled power of attorney, their own identification, and the documentation justifying your request.

How long does it take to get the NIE?

The timeframe varies substantially depending on the province and the time of year. Getting a cita previa in provinces with high demand from foreigners (such as Madrid, Barcelona, Alicante, or Málaga) can take several weeks. Once the in-person appointment is completed, the delivery of the non-resident document usually takes between 24 hours and 10 business days. If requested from abroad through a Spanish Consulate, the process can take between 2 and 4 weeks.

If I obtain Spanish nationality, do I keep my NIE?

No. The moment a foreigner acquires Spanish nationality, their NIE is extinguished and replaced by the DNI (Documento Nacional de Identidad / National Identity Document). Administratively, a procedure of "concordance" (concordancia) must be carried out before the National Police and the Tax Agency to link the old NIE with the new DNI, thus ensuring that all assets, bank accounts, and work history accumulated under the NIE are correctly transferred to the new Spanish identity.

In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.