The NIF and NIE Numbers Explained for Foreign Property Buyers in Spain

The NIF and NIE Numbers Explained for Foreign Property Buyers in Spain

If you are buying a home on the Costa Blanca, Costa Cálida, Costa del Sol or Costa Almería, the single most important piece of admin you must complete before signing is getting your NIE number. Without it you cannot legally purchase property, open a resident-standard bank account, pay your transfer tax, or register the deed in your name. In short: no NIE, no keys.

The confusion most foreign buyers hit is the difference between the NIF number in Spain and the NIE. The quick answer: a NIF (Número de Identificación Fiscal) is Spain's umbrella term for a tax identification number, while a NIE (Número de Identidad de Extranjero) is the specific tax/ID number issued to foreigners — so for a non-Spanish individual, your NIE effectively functions as your NIF. This guide explains both, shows you exactly how to obtain one across our four coastal regions, and clarifies what you actually need to buy a home.

What is the difference between a NIE and a NIF?

Both are Spanish tax identifiers, but they apply to different people. Spain uses the NIF as the master concept for any tax reference number, and then splits it depending on who you are:

NIE vs NIF vs DNI — who holds which number in Spain
Number Full name Who it's for Format example
NIF Número de Identificación Fiscal The umbrella tax-ID concept; for Spanish nationals the NIF = their DNI number. For companies it's the corporate tax number. 12345678Z
NIE Número de Identidad de Extranjero Any foreigner with economic, professional or social ties to Spain — including every foreign property buyer. This is your personal tax number. X1234567L or Y/Z prefix
DNI Documento Nacional de Identidad Spanish citizens only (national ID card). 12345678Z

The practical takeaway for an expat buyer: you will apply for a NIE, and that NIE is the tax number (NIF) you use on the title deed, at the notary, and on every tax form. You do not need a separate "NIF" as an individual foreigner. The distinction mainly matters for companies buying property, which are issued a corporate NIF instead.

How do you recognise a NIE number?

A NIE always starts with a letter — X, Y or Z — followed by seven digits and a final check letter (for example Y1234567X). Older numbers begin with X; more recently issued ones start with Y or Z. It is printed on a white A4 certificate called the certificado de asignación de NIE. Note: the NIE certificate is not a residency card and does not by itself grant the right to live in Spain — it is purely an identification and tax number.

Why do you need a NIE to buy property in Spain?

The NIE is woven into every stage of a Spanish property purchase on the Costa Blanca, Cálida, del Sol and Almería. You need it to:

  • Sign the deed of sale (escritura) at the notary — the notary cannot process the purchase without a NIE for each buyer.
  • Pay your transfer tax and stamp duty — the tax office links the payment to your NIE.
  • Register the property in your name at the Land Registry (Registro de la Propiedad).
  • Open a Spanish bank account and set up direct debits for utilities and the annual IBI council tax.
  • File the non-resident income tax (Modelo 210) you'll owe each year as a foreign owner.

Every joint owner needs their own NIE. A married couple buying together must each obtain one.

What are the true costs of buying — and where does the NIE fit?

Getting your NIE is cheap (a small government fee), but it unlocks the taxes and fees that make up the well-known ~11–14% of additional buying costs on top of the purchase price. Here's how those costs differ across our regions, because the transfer tax is set by each autonomous community:

Key purchase taxes by region (resale vs new build) — indicative rates
Region Autonomous community ITP transfer tax (resale) New build (IVA + AJD)
Costa Blanca (Alicante) Comunitat Valenciana ~10% 10% IVA + ~1.5% AJD stamp duty
Costa Cálida (Murcia) Región de Murcia ~8% 10% IVA + ~1.5–2% AJD stamp duty
Costa del Sol (Málaga) Andalucía ~7% (reduced flat rate) 10% IVA + ~1.2% AJD stamp duty
Costa Almería Andalucía ~7% (reduced flat rate) 10% IVA + ~1.2% AJD stamp duty

On top of tax you should budget for notary fees, Land Registry fees and independent lawyer fees (typically around 1% + VAT). Rates and reduced-rate conditions change periodically and can depend on factors such as buyer age or whether it is a primary residence, so always confirm the current figure with your lawyer before signing. The point to remember: all of these tax payments are filed under your NIE, which is why getting it early keeps your purchase on schedule.

How to get a NIE on the Costa Blanca, Cálida, del Sol and Almería

There are three main routes. Most international buyers use option 2 or 3 for speed.

1. Apply in person in Spain

Book an appointment (cita previa) online with the National Police foreigners' office (Oficina de Extranjería / Policía Nacional) in the province where you're buying. Typical offices for our regions include:

  • Costa Blanca: Alicante, Benidorm, Dénia, Torrevieja, Orihuela.
  • Costa Cálida: Murcia city, Cartagena, San Javier (Mar Menor area).
  • Costa del Sol: Málaga, Marbella, Fuengirola, Estepona.
  • Costa Almería: Almería city, Roquetas de Mar, Vera.

2. Apply through a lawyer or gestor with power of attorney (most common)

You sign a power of attorney (poder notarial) letting your Spanish lawyer obtain the NIE on your behalf — often before you've even returned home from a viewing trip. This is the smoothest route for busy buyers and the one Mediter's recommended lawyers most frequently use.

3. Apply at a Spanish consulate in your home country

You can apply at the Spanish consulate covering your area (for example in the UK, Ireland, Germany or the Netherlands) before travelling. Processing times vary widely by consulate.

What documents do you need for a NIE application?

  1. A completed EX-15 form (the NIE application form).
  2. Your valid passport plus a photocopy.
  3. Proof of the reason for the application — for buyers, this is your economic tie to Spain, e.g. a private purchase contract, reservation contract or a letter confirming the intended purchase.
  4. The Modelo 790 Código 012 tax form, paid at a Spanish bank (a small fee of a few euros).
  5. Two passport-sized photos in some offices.
  6. If applying through a representative, the signed power of attorney.

How long does it take and how much does it cost?

The government fee itself is only a few euros (paid via the Modelo 790-012). Timing is the variable: an in-person appointment can issue the certificate the same day or within a few days, whereas consular applications abroad can take several weeks. If you use a lawyer with power of attorney, factor in their service fee, which is generally modest. Start the process as soon as you've agreed a purchase so it never becomes the bottleneck at completion.

Do you also need to become a fiscal resident?

No — having a NIE does not make you a tax resident of Spain. You become a Spanish fiscal resident only if you spend more than 183 days a year in the country (or your main economic/family base is here). Many Mediter clients own a holiday or investment property on the Costa Blanca or Costa del Sol as non-residents, using their NIE purely for the purchase and their annual non-resident tax filing. If you later relocate permanently, you would then handle residency (EU citizens register on the Central Register of Foreigners; non-EU citizens apply for the relevant visa/residence permit — separate processes from the NIE itself).

Common NIE mistakes foreign buyers make

  • Leaving it too late. Applying only when the deed date is set can delay completion. Apply as soon as your offer is accepted.
  • Assuming one NIE covers a couple. Each buyer needs their own.
  • Confusing the NIE certificate with a residency card. They are different documents.
  • Thinking the number expires. Your NIE is a permanent number for life — it does not need renewing. (Older certificates once carried an expiry date used for verification, but the number stays yours.)
  • Applying for a "NIF" instead. As an individual foreigner, the NIE is your NIF — no separate application needed.

Frequently Asked Questions

Is a NIF the same as a NIE in Spain?

For a foreign individual, effectively yes. NIF is the general term for a Spanish tax identification number; foreigners are issued a NIE, which then serves as their NIF on tax forms and property deeds. Spanish nationals use their DNI as their NIF, and companies receive a corporate NIF.

Can I buy a property on the Costa Blanca without a NIE?

No. Every buyer needs a NIE to sign the escritura, pay transfer tax and register the property. There is no legal workaround — but a lawyer can obtain it for you via power of attorney.

How much does a NIE cost?

The government fee (Modelo 790-012) is only a few euros. The main cost is any lawyer or gestor service fee if you apply through a representative, which is typically modest.

Does having a NIE mean I have to pay tax in Spain?

Holding a NIE alone does not make you a tax resident. However, as a foreign property owner you will owe annual non-resident taxes (filed via Modelo 210) and local council tax (IBI), all linked to your NIE.

Does the NIE expire and do I need to renew it?

The NIE number itself is permanent and never changes. You will not need to reapply for a new number if you buy again in future.

Can my spouse and I share one NIE?

No. Each individual buyer must have their own NIE, so joint purchasers each apply.

How long does it take to get a NIE on the Costa del Sol or Costa Almería?

In person at an Andalucían foreigners' office (Málaga, Marbella, Almería, Roquetas de Mar), it can often be issued the same day or within a few days once you have an appointment. Consular applications from abroad usually take longer.

Ready to make your move?

Getting your NIE is the first practical step towards owning a home on the Spanish coast — and it's one our team helps buyers navigate every week. Mediter Real Estate specialises in property across the Costa Blanca, Costa Cálida, Costa del Sol and Costa Almería, and works with trusted independent lawyers who can arrange your NIE, handle the tax paperwork and guide you smoothly to completion. Contact Mediter Real Estate today to start your search and get expert help with every step of buying in Spain.

← Todos os artigos