Skip to content
Legal

How to get an NIE in Spain: the foreigner identity number explained

What the NIE is, when you need it, how it differs from the TIE and the EU registration certificate, where to apply in Spain or at a consulate, which forms to fill in and how much it costs in 2026.

By Pulso Diario staff · Editor: Salvador Abello Somma · · 5 min read

Share: WhatsApp X LinkedIn Facebook
Open passport with colourful entry stamps on a table
Photo by Henry Thong (Kit) on Unsplash

Almost every expat's paperwork in Spain starts with the same three letters: NIE, the Número de Identidad de Extranjero (foreigner identity number). Buying a flat, signing an employment contract, paying tax or inheriting property all require one. Yet many newcomers are unsure what it actually is, whether it is the same as a residence card, and where to get it. This guide explains it step by step, using official sources.

What the NIE is (and what it is not)

The NIE is a personal, unique and exclusive number that the Spanish authorities assign to foreigners who have economic, professional or social dealings with Spain. It works as your identifier with every level of Spanish public administration, from the tax agency to the town hall.

It looks like this: a letter (X, Y or Z), seven digits and a check letter, for example Y1234567X. Because the number is unique to you, it stays the same when you later obtain residence documents, and it is the number you will keep using with the Spanish authorities.

Two points cause the most confusion:

  • The NIE does not give you the right to live or work in Spain. As Spain's consulates point out, it is an identification number, not a residence permit, and it does not prove residence. Your right to live in Spain depends on your nationality and, for non-EU citizens, on the visa or permit you hold.
  • The NIE is a number, not a card. When you obtain it on its own, you receive a paper certificate showing the number. If you later become a resident, the same number will appear on your residence document.

NIE, TIE and the "green certificate": which one do you need?

Your situation Document Does it include your NIE?
Non-resident who needs a number to buy property, inherit, open certain accounts or pay tax NIE certificate It is the NIE
EU, EEA or Swiss citizen living in Spain for more than three months Registration certificate in the Central Register of Foreigners (certificado de registro, often called the "green certificate") Yes
Non-EU citizen with a residence or long-stay permit (including British citizens since Brexit) Foreigner identity card (Tarjeta de Identidad de Extranjero, TIE) Yes

In other words, residents usually get their NIE as part of their residence paperwork. The stand-alone NIE is mainly for people who need to deal with Spain without living there, or who need the number before their residence process is complete (for example, to sign a property deposit contract).

How to apply in Spain

  1. Fill in form EX-15, the official application for an NIE and residence or non-residence certificates, available from the Ministry of Inclusion. You must state the reason for your application: economic, professional, social or other. Bring the original and a copy.
  2. Pay the fee using form 790, code 012, before your appointment. You can print it, then pay at a bank or online. For "assignment of NIE at the applicant's request", the fee is €9.84, under Order PJC/617/2025, which sets Spain's current immigration fees.
  3. Book an appointment (cita previa) at a foreigners' office (Oficina de Extranjería) or a National Police station that handles foreigners' procedures, through the government's online cita previa system for immigration matters. In large cities such as Madrid, Barcelona, Málaga or Alicante, appointments can be scarce, so book as early as you can.
  4. Attend in person with your passport (EU citizens may use their national ID card) and a copy, the EX-15, proof of payment and documents that justify your reason: a property deposit contract, a job offer, a letter from a notary, a university admission, and so on.

How to apply from abroad

You can also apply at the Spanish consulate covering where you live. Requirements vary slightly between consulates, so check your consulate's website. As an example, the Spanish consulate in Washington asks for:

  • Form EX-15, signed, stating the reason in Spanish.
  • Form 790-012, signed.
  • Your valid passport and a copy, plus proof that you live in the consular district.
  • Payment of the fee in local currency (US$12 in 2025 at that consulate).

It says processing usually takes 20 to 30 days, and the NIE is sent by email, so a valid email address on the form is essential.

Applying through a representative

If you cannot attend in person, the EX-15 includes a section for a representative. Consulates require a power of attorney that expressly authorises that person to submit the application. Many buyers of Spanish property use this route through a lawyer or gestor (a licensed administrative agent).

Under the same Order PJC/617/2025:

  • EU registration certificate (green certificate): €12.
  • TIE, first issue (temporary residence, stay or cross-border worker): €16.08.
  • TIE renewal or extension: €19.30.
  • Certificates issued at the applicant's request (such as residence or non-residence certificates): €7.31.

Practical tips

  • Get the NIE before you need it. Notaries normally require it to sign a property purchase, and banks and employers will ask for it.
  • Bring copies of everything and the 790-012 already paid. Missing paperwork is the most common reason for a wasted appointment.
  • Make sure your name matches your passport exactly across all your Spanish documents. Discrepancies cause problems later with the tax agency and the land registry.
  • Keep the certificate safe. You will be asked for the number for years, including on your Spanish tax returns as a resident or non-resident.

Sources: Ministry of Inclusion, Social Security and Migration: form EX-15; Order PJC/617/2025 on immigration fees (BOE); Spanish consulate in Washington: Foreigner Identity Number (NIE).

Share: WhatsApp X LinkedIn Facebook

Keep reading

Pile of colourful envelopes and papers stacked on a table
Legal

Spain's Second Chance Law: how debt relief works and who can apply

Which debts can be written off in Spain, the good-faith test, the choice between selling your assets or a repayment plan, what happens to your home and what it costs, including the Supreme Court's 2026 rulings on tax and social security debt.

· 9 min
Miniature houses next to coins and banknotes on a table
Property

Euribor ends November at 3.314%, its highest level since July 2024

The benchmark behind most Spanish variable-rate mortgages is up 1.097 points on a year ago. A borrower whose loan resets now will pay around €90 more a month for every €150,000 outstanding. What it means for you and what to watch before the ECB meets on 17 December.

· 4 min