Buying

Getting an NIE number in Spain: where, how and what it costs

You apply for the NIE number (your Spanish identification and tax number) at the Spanish consulate in your country or, in Spain, at the Policía Nacional, in both cases with form EX-15 and a fee of €9.84. You need it to buy a property, because the notary, the Land Registry and the tax office require it.

A stone house in Mallorca with green shutters and potted flowers
The NIE number is the first formality. After that, things can get going.

By Barbara Elisa Kochs
Updated: 21 October 2026 · Reading time: 7 min

The NIE number in Spain is the first formality when you buy property, and one of the simplest if you know where to apply. It is one of the questions buyers ask me most often.

Here you can read where to apply for your NIE number for Spain, from abroad or in Mallorca, which documents you need, what it costs and how long it takes. Updated: October 2026.

What is the NIE number in Spain?

NIE stands for Número de Identidad de Extranjero, the identification number for foreign nationals. Anyone with economic, professional or social ties to Spain must apply for one, for example because of a property purchase. Since 20 May 2025, the number has been governed by Spain’s new regulation on foreign nationals (Real Decreto 1155/2024). It is personal and assigned uniquely to you.

For tax purposes, the NIE is also your Spanish tax number (NIF). It is not a residence permit. If you are an EU citizen living in Spain for more than three months, you must also register (more on this below).

What you need the NIE for when buying property

No purchase goes ahead without a Spanish tax number. For foreign nationals, this is almost always the NIE:

  • Notary: every deed of sale must state the tax numbers of everyone involved, including people who are represented.
  • Land Registry: if the tax numbers are missing, the Land Registry will not register the purchase.
  • Taxes: transfer tax, the IBI property tax and the annual return for non-residents all run through the number.

If two of you are buying, each person needs their own NIE. The whole process is shown in my guide Buying property in Mallorca in 10 steps.

How to get an NIE number: consulate abroad or Policía in Spain

Spanish consulate in your countryPolicía Nacional in Mallorca
When it makes sensebefore your trip, with time to spareduring your stay
Appointmentas set by the consulateonline appointment (cita previa)
FormEX-15EX-15
Fee€9.84 according to some consulates€9.84 (Modelo 790, Código 012)
Timeabout two weeks according to some consulatesdecision within five days at most

Which route is better depends on your timetable. If you are coming over for viewings anyway, you can plan an appointment with the Policía. If you want certainty early, apply for the NIE from home.

Applying for an NIE from abroad: at the Spanish consulate

If you are not in Spain when you apply, the application goes through Spain’s diplomatic missions abroad. The Spanish embassy or consulate responsible for where you live handles it.

This is how the application at a consulate works:

  1. Make an appointment. Each mission organises this itself, online, by email or by phone. One consulate, for example, only gives appointments online, with access details that you request by email beforehand.
  2. Bring your documents: the completed form EX-15, your passport or national identity card as original and copy, and a short explanation of why you need the NIE. Some consulates ask for more, for example a birth certificate and proof that you live in their consular district.
  3. Pay the fee. Some consulates state €9.84. The method of payment and any surcharges, for example for postage, differ from mission to mission.
  4. Wait for the number. Some consulates state about two weeks. According to several consulates, the number is sent by email.

An NIE applied for through a consulate is for dealings with the authorities, such as a property purchase. It does not entitle you to live in Spain. The details above come from the websites of several Spanish consulates as of October 2026, and requirements may differ in your country. Check your consulate’s current page before your appointment.

Applying for an NIE in Mallorca at the Policía Nacional

If you are on the island, you apply for the NIE at the Policía Nacional, through the immigration office (Oficina de Extranjeros) or a police station with a foreigners’ service. In Mallorca, this is mainly the Oficina de Extranjeros in Palma.

  1. Book an appointment: through the Spanish administration’s appointment portal (cita previa), province Illes Balears, procedure for NIE and certificates. Not every office offers online appointments.
  2. Pay the fee in advance: fill in form 790, Código 012 online, print it out and pay it at a bank in Spain. You do not need an account with that bank.
  3. Bring to the appointment: form EX-15 as original and copy, your passport or national identity card with a copy, the payment receipt and a short written explanation. Documents about the planned purchase can support it.

The Policía must decide on the application within five days at most. If there is no answer within this period, the application is deemed refused. In that case, follow it up.

Form EX-15: how to fill it in

Form EX-15 (“Solicitud de Número de Identidad de Extranjero (NIE) y certificados”) is available as a fillable PDF from the Spanish Ministry of Inclusion and Migration. Fill it in in capital letters and bring the original and a copy.

  • Personal details: exactly as in your passport or national identity card.
  • Representative: only fill this in if someone submits the application for you.
  • Type of application and reason: you are applying for the number (Número de Identidad de Extranjero). For a property purchase, the reason is economic interests; in the explanation field, briefly state the planned purchase.
  • Place, date, signature: do not forget them.

What does the NIE number cost?

The official fee for issuing the NIE is €9.84 (Modelo 790, Código 012). It is set in a ministerial order from 2025 and can change at the start of a year through the budget law. In Spain you pay at a bank; consulates collect it according to their own rules.

If you instruct a gestoría (an agency that handles paperwork with the authorities) or a lawyer with the application, their fee comes on top.

Applying for an NIE with a power of attorney

In Spain, a representative can submit the application for you. They must present a power of attorney that expressly authorises them to do so. Clarify in advance with your lawyer or gestoría what form the power of attorney must take and whether it needs to be translated or certified. If you wish, I put you in touch with professionals from my network.

How long does it take to get an NIE?

At the Policía Nacional, there is a maximum of five days from the application, plus the wait for an appointment. Through a consulate, some consulates state about two weeks.

So plan for the NIE as soon as a purchase becomes concrete. It must be available by the notary appointment at the latest, and ideally before you pay a deposit. What comes next is explained in my guides to the buying process and the buying costs.

NIE or registering as a resident?

The NIE is not a registration. If you are an EU citizen staying in Spain for more than three months, you must register in person in the Central Register of Foreign Nationals (Registro Central de Extranjeros) within three months of arrival. Form EX-18 is used for this. The certificate (Certificado de registro de ciudadano de la Unión) costs €12.00 and contains your NIE.

What this means for your taxes, and why registering does not decide your tax residence, is explained in my guide Resident or non-resident?

Updated: 21 October 2026. This guide gives a general overview and is no substitute for legal or tax advice. I am an estate agent and do not give tax or legal advice. A gestoría from my network is due to review this article. For your individual case, I put you in touch with professionals.

Sources

  1. Real Decreto 1155/2024, Reglamento de la Ley Orgánica 4/2000, Art. 205 (NIE), BOE (accessed 21 October 2026)
  2. Policía Nacional: Asignación de NIE a instancia de interesado (accessed 21 October 2026)
  3. Policía Nacional: Tasas de extranjería (accessed 21 October 2026)
  4. Policía Nacional: Impreso Tasa 790, Código 012 (accessed 21 October 2026)
  5. Orden PJC/617/2025 (fees, annex item 5.12), BOE (accessed 21 October 2026)
  6. Ministerio de Inclusión: form EX-15, Solicitud de NIE y certificados (accessed 21 October 2026)
  7. Ministerio del Interior: Número de Identidad de Extranjero (NIE) for EU citizens (accessed 21 October 2026)
  8. Sede de las Administraciones Públicas: Cita previa Extranjería (accessed 21 October 2026)
  9. Spanish Consulate General in Düsseldorf: Número de Identidad de Extranjero (NIE) (accessed 21 October 2026)
  10. Spanish Consulate General in Hamburg: Número de Identidad de Extranjero (NIE) (accessed 21 October 2026)
  11. Spanish Embassy in Berlin: Número de Identidad de Extranjero (NIE) (accessed 21 October 2026)
  12. Spanish Consulate General in Frankfurt: Número de Identidad de Extranjero (NIE) (accessed 21 October 2026)
  13. Real Decreto 1065/2007, Art. 20 (tax identification numbers of foreign nationals), BOE (accessed 21 October 2026)
  14. Ley del Notariado, Art. 23 (tax numbers in the deed), BOE (accessed 21 October 2026)
  15. Ley Hipotecaria, Art. 254, BOE (accessed 21 October 2026)
  16. Real Decreto 240/2007, Art. 7 (registration of EU citizens), BOE (accessed 21 October 2026)
  17. Policía Nacional: Certificado de registro de ciudadano de la UE (form EX-18) (accessed 21 October 2026)

Questions and answers

Frequently asked questions about the NIE number

Can I apply for an NIE number online?

I have not found a fully digital procedure on the official websites. Online, you book the appointment with the Policía, create the fee form and download form EX-15. You submit the application in person, through a representative or at the consulate.

Does the NIE number expire?

The number is assigned to you personally and remains your number. Certificates, for example of your status as resident or non-resident, are only valid for a limited time, however.

If two of us are buying, does each person need their own NIE?

Yes. The deed of sale must state the tax numbers of everyone involved, including people who are represented. So apply for the numbers for all buyers at the same time.

Do I need an NIE to rent in Mallorca?

I have not found a general legal obligation for tenants in the sources checked. Check in each case what landlords and utility companies require.

NIE applied for? Then the search begins.

While you deal with the formalities, I search the whole island for properties that suit you and plan your viewing day with you.

Message me (WhatsApp)