---
title: "NIE number in Spain: what it is and how to get one | Landed in Spain"
url: "https://landedinspain.com/nie/"
markdown_url: "https://landedinspain.com/nie/index.md"
type: "guide"
updated: "2026-11-26"
description: "What the NIE is, how it differs from the TIE, and how to apply at a Spanish consulate or in Spain with form EX-15 and tasa 790-012."
---

# NIE number in Spain

What the NIE is, how it differs from the TIE, and how to apply at a Spanish consulate or in Spain with form EX-15 and tasa 790-012.

Last checked: 26 November 2026

This page is general information, not legal advice.

## What the NIE is

The NIE (Número de Identidad de Extranjero) is a personal, unique and exclusive number given to foreign nationals for identification. This is set out in [article 205 of Royal Decree 1155/2024](https://www.boe.es/buscar/act.php?id=BOE-A-2024-24099), the current Reglamento de Extranjería.

The number stays with you. The same article says it must appear on every document Spain issues to you or processes for you.

The NIE is assigned by the Dirección General de la Policía, part of the Policía Nacional, according to the [police page on NIE assignment](https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tramite_asignacion_nie.php).

An NIE does not give you the right to live in Spain. The [Spanish Consulate in London](https://www.exteriores.gob.es/Consulados/londres/en/ServiciosConsulares/Paginas/Consular/NIE.aspx) states that it "does not entitle the holder to reside in Spain or prove residence there."

## What an NIE number looks like

An NIE has nine characters. The [Agencia Tributaria](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/guia-practica-cumplimentacion-modelo-censal-036/anexos/anexo-01-solicitud-nif-documentacion-aportar/informacion-sobre-numero-identificacion-fiscal/composicion-nif/personas-fisicas.html) describes them as one starting letter, seven digits and one check letter.

The starting letter was X. Once that series ran out, Spain moved on to Y, and then Z.

An illustrative format is X1234567L. This is not a real number.

## NIE vs NIF vs TIE vs DNI

The NIE is a number. It is not a card.

The TIE (Tarjeta de Identidad de Extranjero) is a physical card for foreign residents. Under [article 209 of RD 1155/2024](https://www.boe.es/buscar/act.php?id=BOE-A-2024-24099), it identifies you and proves your legal status in Spain. Your NIE is printed on it. See our [TIE guide](/tie/).

The NIF is your Spanish tax number. For foreign individuals, the [Agencia Tributaria](https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/guia-practica-cumplimentacion-modelo-censal-036/anexos/anexo-01-solicitud-nif-documentacion-aportar/informacion-sobre-numero-identificacion-fiscal/composicion-nif/personas-fisicas.html) says the NIF is, as a general rule, the NIE.

Foreigners who are not required to hold an NIE but need a tax number can get an NIF starting with M from the Agencia Tributaria. That is a separate process.

The DNI is the national identity card for Spanish citizens. Foreign nationals do not get a DNI.

## Who needs to apply for an NIE

Many people never apply for an NIE on its own. Under [article 205.3 of RD 1155/2024](https://www.boe.es/buscar/act.php?id=BOE-A-2024-24099), the police assign it automatically (de oficio) when you start a procedure to stay in Spain, such as a residence authorisation.

The same rule covers visas that let you stay more than 90 days in any 180-day period without a separate long-stay or residence authorisation. If you are moving on a visa, check your visa paperwork and our [visa guides](/visas/) before applying for an NIE separately.

You do need to apply yourself if you deal with Spain for economic, professional or social reasons without living there. This is the "a instancia del interesado" route on the [police NIE page](https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tramite_asignacion_nie.php).

For that route the police list two conditions. You must not be in Spain irregularly. You must state the reasons why you need the number.

EU, EEA and Swiss citizens who will live in Spain for more than three months register in the Registro Central de Extranjeros instead. The [registration certificate](https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tramite_certificadoregistro_ciudadanoue.php) they receive shows their NIE. They must apply in person within three months of arrival, using form EX-18.

## Form EX-15

The application form is the [EX-15, Solicitud de Número de Identidad de Extranjero (NIE) y Certificados](https://www.inclusion.gob.es/documents/d/migraciones/ex15-formulario-nie-y-certificados). The police link to it from their [NIE page](https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tramite_asignacion_nie.php).

The form asks you to choose a reason: economic, professional or social interests. There is a space to specify the reason in your own words.

The form instructions say to fill it in capital letters, in black ink or typed. They also say to present the original and a copy.

The same EX-15 is used for resident and non-resident certificates. Those certificates are separate procedures with their own fee.

## The fee: tasa 790 código 012

You pay the police fee with form [modelo 790 código 012](https://sede.policia.gob.es/Tasa790_012/). You fill it in online and print it.

The fee for "Asignación de Número de Identidad de Extranjero (NIE) a instancia del interesado" is €9.84. This is the amount on the [Policía Nacional fee table](https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tasas.php), checked on 26 November 2026.

The same amount is set in the annex of [Orden PJC/617/2025](https://www.boe.es/eli/es/o/2025/06/13/pjc617/con), published in the BOE on 16 June 2025.

A resident or non-resident certificate costs €7.31 per certificate, per the same [police fee table](https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tasas.php).

Article 1.2 of [Orden PJC/617/2025](https://www.boe.es/eli/es/o/2025/06/13/pjc617/con) says these amounts can change each year through the State Budget law. Check the police table before you pay.

The police say you can pay at banks, savings banks and credit cooperatives, and that you do not need an account there.

## How to get an NIE from abroad

If you are not in Spain, you apply through the Spanish consulate in your country of residence. This is set out in [article 205.4 of RD 1155/2024](https://www.boe.es/buscar/act.php?id=BOE-A-2024-24099).

The consulate does not issue the number. The London consulate says the NIE is assigned by the Comisaría General de Extranjería y Fronteras in Spain and sent to you by email.

Each consulate has its own booking method, fee and timings. The examples below were checked on 26 November 2026.

### London (UK)

The [London consulate](https://www.exteriores.gob.es/Consulados/londres/en/ServiciosConsulares/Paginas/Consular/NIE.aspx) asks you to email cog.londres.leg@maec.es to get an appointment.

It asks for the EX-15 (filled in but not signed), proof of why you need an NIE, your passport and a copy, proof that you live in its consular area, and a completed 790-012.

The London consulate fee is £8.65, paid by card on the day of the appointment.

London says the NIE is normally issued within three weeks, and that delays can happen.

A representative can apply for you in London. The power of attorney must be apostilled.

### New York and Washington (US)

The [New York consulate](https://www.exteriores.gob.es/Consulados/nuevayork/en/ServiciosConsulares/Paginas/Consular/NIE.aspx) requires an appointment. It covers NY, NJ, DE, CT and PA.

New York charges $12, paid on the day with a USPS money order. It says the NIE is normally issued within five weeks.

The [Washington consular section](https://www.exteriores.gob.es/Consulados/washington/en/ServiciosConsulares/Paginas/Consular/NIE.aspx) takes NIE applications without an appointment, Monday to Friday, 9am to 1pm. It covers Virginia, DC, Maryland, West Virginia and North Carolina.

Washington says you must write your reason for the NIE in Spanish on the EX-15. It lists a $12 fee and a normal processing time of 20 to 30 days.

### Other countries

Find the consulate for your area on [exteriores.gob.es](https://www.exteriores.gob.es/). Check its NIE page for the current fee and booking method.

## How to get an NIE in Spain

In Spain, you apply in person at an Oficina de Extranjería or a police station. This is in [article 205.4 of RD 1155/2024](https://www.boe.es/buscar/act.php?id=BOE-A-2024-24099) and on the [police NIE page](https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tramite_asignacion_nie.php).

The police list two documents: the EX-15 form and proof that you paid the 790-012 fee. You will also need your passport to identify yourself.

The law gives the police five days from registering your application to decide and notify you. If you get no answer in that time, the application counts as refused (silencio negativo).

## Booking an appointment (cita previa)

Appointments with the police and foreigners' offices are booked through the national [cita previa de extranjería](https://sede.administracionespublicas.gob.es/pagina/index/directorio/icpplus) system. GOV.UK links to the same system in its [TIE guidance](https://www.gov.uk/guidance/spain-registering-as-a-resident-and-getting-a-tie).

You choose a province first, then the police procedure, then an office. Madrid, Barcelona, Valencia and Málaga all use the same system.

The menu wording for each procedure can differ between provinces. Pick the police option for NIE or certificates, not the one for the TIE.

## Common problems

**No appointments.** Slots can be hard to find in busy provinces. GOV.UK suggests checking the booking system often and trying it with a Cl@ve digital ID. It also mentions using a gestor or an English-speaking lawyer. See [what a gestoría does](/what-is-a-gestoria/) and our [immigration lawyers directory](/immigration-lawyers/).

**Wrong procedure booked.** Each appointment is for one specific procedure. Check the option you picked before you confirm.

**Reason not shown.** The police require you to state why you need the number. Consulates such as [London](https://www.exteriores.gob.es/Consulados/londres/en/ServiciosConsulares/Paginas/Consular/NIE.aspx) also ask for documentary proof of that need. Bring it with you.

**Fee form errors.** On the 790-012, select the line "Asignación de Número de Identidad de Extranjero (NIE) a instancia del interesado". The [Washington consulate](https://www.exteriores.gob.es/Consulados/washington/en/ServiciosConsulares/Paginas/Consular/NIE.aspx) also says to enter your passport number in the NIF/NIE box if you do not yet have an NIE.

**Thinking an NIE means residence.** It does not. If you plan to live in Spain, you need the right visa or residence status and then usually a [TIE](/tie/). You will also need to [register on the padrón](/empadronamiento/).

**No reply.** Under the five-day rule, no reply counts as a refusal. The police page says you can appeal (recurso de reposición) within one month, or go to the courts within two months.

## Related guides

- [TIE card: who needs it and how to apply](/tie/)
- [Registering on the padrón](/empadronamiento/)
- [What is a gestoría?](/what-is-a-gestoria/)
- [Spanish visas](/visas/)
- [Immigration lawyers](/immigration-lawyers/)

## Sources

1. Real Decreto 1155/2024, Reglamento de Extranjería (BOE), articles 205 and 209: https://www.boe.es/buscar/act.php?id=BOE-A-2024-24099 (retrieved 26 November 2026)
2. Policía Nacional: Asignación de NIE a instancia de interesado: https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tramite_asignacion_nie.php (retrieved 26 November 2026)
3. Policía Nacional: Tasas de Extranjería: https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tasas.php (retrieved 26 November 2026)
4. Orden PJC/617/2025, de 13 de junio, tasas de extranjería (BOE): https://www.boe.es/eli/es/o/2025/06/13/pjc617/con (retrieved 26 November 2026)
5. Policía Nacional: Tasa modelo 790 código 012 (online form): https://sede.policia.gob.es/Tasa790_012/ (retrieved 26 November 2026)
6. Ministerio de Inclusión: Form EX-15, Solicitud de NIE y certificados: https://www.inclusion.gob.es/documents/d/migraciones/ex15-formulario-nie-y-certificados (retrieved 26 November 2026)
7. Consulate General of Spain in London: Foreigner Identity Number (NIE): https://www.exteriores.gob.es/Consulados/londres/en/ServiciosConsulares/Paginas/Consular/NIE.aspx (retrieved 26 November 2026)
8. Consulate General of Spain in New York: Foreigner Identity Number (NIE): https://www.exteriores.gob.es/Consulados/nuevayork/en/ServiciosConsulares/Paginas/Consular/NIE.aspx (retrieved 26 November 2026)
9. Consular Section of the Embassy of Spain in Washington: NIE: https://www.exteriores.gob.es/Consulados/washington/en/ServiciosConsulares/Paginas/Consular/NIE.aspx (retrieved 26 November 2026)
10. Agencia Tributaria: composición del NIF de personas físicas: https://sede.agenciatributaria.gob.es/Sede/ayuda/manuales-videos-folletos/manuales-practicos/guia-practica-cumplimentacion-modelo-censal-036/anexos/anexo-01-solicitud-nif-documentacion-aportar/informacion-sobre-numero-identificacion-fiscal/composicion-nif/personas-fisicas.html (retrieved 26 November 2026)
11. Policía Nacional: Certificado de Registro de Ciudadano de la Unión Europea: https://sede.policia.gob.es/portalCiudadano/_es/tramites_extranjeria_tramite_certificadoregistro_ciudadanoue.php (retrieved 26 November 2026)
12. Cita previa de extranjería (official appointment system): https://sede.administracionespublicas.gob.es/pagina/index/directorio/icpplus (retrieved 26 November 2026)

## FAQ

### What is an NIE number in Spain?

The NIE (Número de Identidad de Extranjero) is a personal, unique number that Spain gives to foreign nationals for identification. It is assigned by the Policía Nacional under article 205 of Royal Decree 1155/2024.

### What is the difference between an NIE and a TIE?

The NIE is a number. The TIE is a physical card for foreign residents that shows your NIE and proves your legal status in Spain. A non-resident can have an NIE without ever getting a TIE.

### What does an NIE number look like?

It has nine characters: a starting letter (X, then Y and Z once each series runs out), seven digits and a check letter. An illustrative format is X1234567L. This example is not a real number.

### Is the NIE the same as the NIF?

For foreign individuals, the Agencia Tributaria says the NIF (tax number) is, as a general rule, the NIE. People who are not required to have an NIE can get a tax-only NIF starting with M.

### How much does an NIE cost?

In Spain, the police fee (tasa 790 código 012) for assigning an NIE is €9.84, per the Policía Nacional fee table checked on 26 November 2026. Consulates charge their own fee in local currency, for example £8.65 in London and $12 in New York.

### How do I get an NIE appointment in Madrid or Barcelona?

Both cities use the same national booking system, cita previa de extranjería, on sede.administracionespublicas.gob.es. You choose the province, then the police procedure for NIE or certificates, then an office. Availability varies by province.

### Can I get an NIE from outside Spain?

Yes. If you are not in Spain, you apply through the Spanish consulate that covers where you live. The consulate forwards the application, and the NIE is sent to you by email.

### Does an NIE let me live in Spain?

No. Spanish consulates state that an NIE does not entitle you to reside in Spain or prove residence. To live in Spain as a non-EU national you usually need a visa or residence authorisation.

---
Source page: https://landedinspain.com/nie/
Published by Landed in Spain. General information, not legal, tax or insurance advice.
