Frankly.
Guides/Legal guide
Legal guide

NIE Number Spain: What It Is, How to Get It, and When You Need It

The NIE is mandatory for buying property in Spain — here is how to get one before you need it, and what happens at each stage of the Spanish conveyancing process.

Updated April 2026

What Is a NIE?

The NIE — Número de Identificación de Extranjero — is a tax identification number for foreigners in Spain. It is a nine-character code (letter, seven digits, letter) that the Spanish state uses to identify you for all legal and fiscal purposes.

You need a NIE to buy property, open a Spanish bank account, sign a mortgage, pay property taxes, register a company, and just about anything else with official legal weight in Spain. It is not a residency permit. Having a NIE does not mean you are a Spanish resident. It simply means Spain can identify you for tax and legal purposes.

For property buyers, the NIE is not optional. The notary will not proceed without it.


Who Needs One

Any non-Spanish national who is party to a Spanish property transaction needs a NIE. This includes:

  • EU/EEA citizens buying a second home
  • Non-EU buyers (UK, US, UAE, Brazil, etc.)
  • Foreign nationals buying through a Spanish company (though the company has its own CIF tax number, individual directors may still need NIEs)
  • Foreign sellers of Spanish property

If you are buying jointly with a partner or spouse who is also a foreigner, both of you need individual NIEs.


How to Get a NIE

There are two routes: apply before you arrive (at a Spanish consulate in your home country), or apply in Spain (at a police station or foreigners' office).

Option 1: At the Spanish Consulate (Before Arriving)

This is the lower-stress option. Contact the Spanish consulate in your country and request an appointment for a NIE. Requirements vary slightly by consulate, but you will typically need:

  • Completed Modelo EX-15 form (downloadable from the Spanish Ministry of Interior website)
  • Valid passport (and a photocopy)
  • A statement of reasons — why you need the NIE (e.g., property purchase, investment)
  • The consular fee (Tasa 012), currently around €10–€12, paid at a designated Spanish bank branch or online in some jurisdictions

Turnaround time varies by consulate: some process applications in a few days, others take two to four weeks. Check your local consulate's current processing times before planning your timeline.

Option 2: In Spain (at a Police Station or Oficina de Extranjería)

If you are already in Spain, or if your consulate has long wait times, you can apply at a Comisaría de Policía (police station) with a Oficina de Extranjeros or a dedicated Oficina de Extranjería. In Madrid, several stations handle NIE applications, including the one on Calle Pradillo.

You will need:

  • Completed Modelo EX-15
  • Original passport plus photocopy
  • Tasa 012 payment receipt (payable at a bank branch or online — get the form from the oficina, pay at the bank, then return)
  • Appointment (cita previa) booked through the Spanish government's online appointments system

The cita previa system is notoriously oversubscribed in major cities. Book as far in advance as possible. In Madrid and Barcelona, wait times for in-person NIE appointments have reached four to eight weeks at peak periods.

Option 3: Through a Gestor or Lawyer (Power of Attorney)

You can grant power of attorney (poder notarial) to a Spanish gestor or abogado, who then obtains the NIE on your behalf. This is common for buyers who are not yet in Spain and whose consulate has a long queue. Expect to pay €100–€300 for this service on top of the government fee.


The Full Spanish Property Buying Process

The NIE is just the first requirement. The Spanish conveyancing process follows a sequential chain. Missing or delaying any step can stall the whole transaction. Here is what to expect.

Stage 1: Offer and Reservation

Once you identify a property, you make an offer (typically informally, through the agent). If accepted, you sign a contrato de reserva (reservation contract) and pay a reservation fee — usually €3,000–€10,000, depending on the property. This takes the property off the market while due diligence is completed.

Timeline: A few days after offer acceptance.

What you need: A Spanish bank account (which requires a NIE) or a direct transfer. Some agents accept a foreign card payment for reservations, but you will need a Spanish account for the arras stage.

Stage 2: Arras Contract (Deposit Contract)

The contrato de arras is the formal pre-purchase contract. The most common type in Spain is the arras penitenciales (Article 1454 of the Spanish Civil Code), which works as follows:

  • Buyer pays 10% of the purchase price as a deposit
  • If the buyer withdraws: they lose the deposit
  • If the seller withdraws: they must return double the deposit

Before signing arras, your lawyer should have reviewed the nota simple (Land Registry extract), verified there are no charges or community debts on the property, and confirmed the seller's title is clean.

Timeline: Typically 1–3 weeks after reservation.

What you need: NIE (mandatory), Spanish bank account, funds available for the 10% deposit, legal review completed.

Stage 3: Notarisation (Escritura Pública)

Completion takes place before a Spanish notary. Both buyer and seller (or their representatives under power of attorney) attend. The notary reads the full escritura de compraventa (deed of sale), confirms both parties understand and consent, and witnesses the signing.

The buyer pays the remaining balance at this point — typically by banker's draft (cheque bancario) drawn on a Spanish bank account, or occasionally by wire transfer pre-agreed with the seller.

The notary also verifies that ITP or IVA+AJD has been paid (or arranges for payment on the same day via the gestor), and that the NIEs of all parties are in order.

Timeline: Typically 4–8 weeks after arras, depending on mortgage (if applicable) and coordination with the Land Registry.

What you need: NIE (mandatory), cleared funds, paid property tax (ITP/IVA), valid passport.

Stage 4: Land Registry

After signing, the escritura is submitted to the Registro de la Propiedad (Land Registry). The property is formally registered in your name. This is not instant — it takes several weeks.

Until registration is complete, the notary issues a copia simple (a certified copy of the signed deed) as your interim proof of ownership. You are legally the owner from the moment of notarisation, but the public record is not updated until registration completes.

Timeline: 2–6 weeks after notarisation.

Timeline Summary

StageTypical Duration
Offer to reservation1–7 days
Reservation to arras1–3 weeks
Arras to completion (notary)4–8 weeks
Notary to Land Registry registration2–6 weeks
Total: offer to registered ownership~8–18 weeks

Cash purchases move faster than mortgaged ones. A Spanish mortgage adds several weeks for bank approval, appraisal, and the mandatory cooling-off period after the FEIN (binding offer) is issued.


Common Mistakes

1. Starting the NIE process too late The NIE takes time. If you are seriously considering buying in Spain, apply for your NIE before you find a property — not after. Many buyers lose reservation slots because they cannot produce a NIE in time.

2. Not opening a Spanish bank account early You need a Spanish bank account to pay ITP, set up community fees, and manage ongoing costs. Banks require your NIE to open an account. Factor this into your preparation timeline.

3. Assuming arras is just a formality The arras contract is legally binding. Once signed, pulling out costs you 10% of the purchase price. Complete your legal and financial due diligence before you sign.

4. Skipping independent legal advice Agents work for the seller. The notary is impartial but does not advise either party on legal risks. You need your own lawyer reviewing the title before arras.

5. Missing the 30-day ITP window After completing at the notary, ITP (for resale) must be paid and filed with the tax authority of the autonomous community within 30 calendar days. Missing this deadline incurs surcharges and interest. Your gestor or lawyer typically handles this, but confirm it is in scope before you sign their engagement letter.


The Madrid Angle

In Madrid, NIE applications at police stations can be made at several locations, with Calle Pradillo being the most frequently used by foreign buyers. The cita previa booking system (sede.administracionespublicas.gob.es) opens slots on a rolling basis — many people check it first thing in the morning when new slots are released.

If you are searching for property in Madrid with Frankly, start the NIE process as soon as your search is serious — even before you have found a specific property. It removes one major bottleneck from the timeline.


When to Get Professional Help

The NIE application itself is manageable without professional help if you are comfortable navigating Spanish government websites and bureaucracy in Spanish. However, engage a gestor or abogado if:

  • You need the NIE urgently and consulate wait times are long
  • You are not able to travel to Spain before the transaction
  • You are buying with a power of attorney arrangement
  • You have any complications (e.g., name discrepancies between documents, expired passport)

For the conveyancing process itself, professional legal representation is strongly recommended for all foreign buyers. The cost (typically €1,500–€3,000) is small relative to the transaction and the risks of proceeding without it.


This article is for informational purposes only and does not constitute legal or tax advice. Please consult a qualified gestor or asesor fiscal for advice specific to your situation.

Search

Ready to look at real listings?

Every Madrid listing Frankly tracks carries a price verdict — above, at, or below the median for its neighbourhood.

Search by neighbourhood, or paste a listing link from any agency for an instant price check.

Browse all Madrid listings →

Keep reading