Skip to content
Compare lawyers

Home›Buying Property in Spain›NIE Number

Foreign Buyers · Purchase Preparation · Checked 28 November 2026

NIE Number in Spain: What It Is and How Property Buyers Get One

Your NIE is the identification number every foreign buyer needs before signing the purchase deed in Spain. This guide explains how it differs from the NIF, DNI and TIE, how to apply, what it costs and how long it really takes.

⚠️

Short answer. The NIE (Número de Identidad de Extranjero) is a personal number for foreigners, issued by the Spanish National Police. You need it to buy property because the Land Registry will not register a deed without the tax number of every buyer. For foreigners, that tax number is the NIE. You do not need to be resident to get one. The official fee is €9.84.

What is an NIE number?

The NIE is a personal, unique and exclusive number that identifies a foreign national before the Spanish authorities. It is regulated by article 205 of the Regulation of Organic Law 4/2000, approved by Royal Decree 1155/2024, which replaced the old Royal Decree 557/2011 on 20 May 2025.

An NIE starts with a letter (X, Y or Z), followed by seven digits and a control letter, for example Y1234567-A. The number stays the same for life, even if the document that shows it changes.

Foreigners whose link with Spain is economic, professional or social, which includes buying a home, have to request the number themselves. It is not assigned automatically.

NIE, NIF, DNI, TIE and EU registration: which is which?

These terms are often mixed up, including by banks and estate agents. The key point: the NIE is a number, and the other items are either the same number used for tax, or documents that display it.

Term What it is Who has it Issued by
NIE Foreigner identity number (X, Y or Z + 7 digits + letter) Foreigners with dealings in Spain, resident or not National Police
NIF Tax identification number Everyone with tax obligations. For a foreigner with an NIE, the NIF is the NIE Tax Agency (uses the NIE or DNI)
NIF M Temporary or permanent tax number starting with M Foreigners who do not have an NIE Tax Agency
DNI Spanish national identity card Spanish nationals only National Police
TIE Photo ID card for foreign residents, showing the NIE Non-EU residents, including UK nationals covered by the Withdrawal Agreement National Police
EU registration certificate Proof of residence registration, showing the NIE EU, EEA and Swiss citizens living in Spain more than three months National Police
Non-resident NIE certificate Paper certificate confirming your NIE (often called the “white NIE”) Non-residents, such as most holiday-home buyers National Police or consulate

So if a form asks for your “NIF” and you are a foreigner, you give your NIE. If you hear “NIE card”, it usually means either the paper certificate or a TIE. Getting an NIE does not make you resident, and it does not give you the right to live or work in Spain.

Why you need an NIE to buy property in Spain

Since the fraud prevention reform of 2006 (Law 36/2006), article 254.2 of the Mortgage Law stops the Land Registry from registering a purchase deed unless the tax identification number of the parties appears in it. For a foreign buyer, that number is the NIE. Without it, the notary can sign but the registry will suspend the registration, and an unregistered buyer is exposed.

In practice you will need your NIE to:

  • Sign the purchase deed (escritura) before the notary and register it at the Land Registry.
  • Pay the purchase tax: ITP on resale homes, or VAT and AJD on new builds.
  • Open a Spanish bank account or take out a Spanish mortgage.
  • Contract electricity, water and internet, and pay the annual IBI property tax.
  • File the annual non-resident income tax return for the property, and later pay tax when you sell.

Each buyer needs their own NIE, including a spouse or partner who appears on the deed. Registrars have also required the tax number of a buyer’s spouse in some cases where the property may become marital property under the couple’s matrimonial regime, so ask your lawyer early if you are buying alone but are married.

How to apply for an NIE: three routes

In Spain, at the National Police

Book an appointment (cita previa) at a police station or foreigners’ office (Extranjería) that handles NIE requests, then attend in person with your documents. Appointment availability varies a lot by province: Madrid, Barcelona, Málaga and the Balearic Islands are often the slowest.

From abroad, at a Spanish consulate

If you live outside Spain, apply at the Spanish consular office for your area. The consulate forwards the request to the Spanish police. Each consulate runs its own appointment system and may ask for extra documents, so check its page before you book.

Through your lawyer

Many buyers ask their property lawyer to organise the NIE as part of the purchase, often together with a power of attorney. The regulation refers to applying in person, and practice on representatives varies between offices, so your lawyer should confirm what your local office accepts before you rely on this route.

Documents and fee

  • Form EX-15 (Solicitud de Número de Identidad de Extranjero y Certificados), completed and signed. Tick “NIE” and, for most buyers, the non-resident box, and give “economic interests” as the reason.
  • Your passport (or EU national ID card), original plus a photocopy of the identification pages.
  • Evidence of the reason, such as a signed reservation agreement, a deposit contract or a letter from your lawyer about the purchase.
  • Proof of payment of the fee with form 790, code 012, selecting “Asignación de NIE a instancia del interesado”. The fee is €9.84 (Order PJC/617/2025, item 5.12). You can pay it at a Spanish bank without having an account there.
  • Your appointment confirmation, and any extra documents your consulate or office lists.

If a supporting document was issued outside Spain, the office may ask for an apostille and a sworn translation into Spanish. Ask before your appointment rather than at the counter.

How long does it take?

By law, the police must decide an NIE request within five days of it being registered. If they do not reply in that time, the request is treated as rejected, so follow up if you hear nothing.

The five days only start once your application is filed. The real delay is usually getting an appointment, which can take from a few days to several weeks depending on the office, and consular applications can take longer. Apply as soon as you are seriously looking, and make sure the completion date in your reservation or deposit contract leaves enough time.

After you have your NIE

Does it expire? The number itself does not. It stays yours for life. Some banks and notaries ask for a recently issued certificate, so keep a scan and ask your lawyer whether a new certificate is needed before completion.

What if you cannot get an NIE in time? The Tax Agency can assign a tax number starting with M to a foreigner without an NIE. It is a valid tax number, but most notaries, banks and lawyers in property purchases work with the NIE, so treat the M number as a fallback to discuss with your lawyer, not a shortcut.

Do you need a digital certificate? No, not to buy. A Spanish digital certificate is useful later for online tax filings and paying local taxes, and your lawyer or tax adviser can usually file on your behalf.

Common mistakes that delay completion

Applying too late

Waiting until after the deposit is paid. An appointment backlog can push completion past the date in your contract.

Names that do not match

Your name must match exactly across passport, NIE, contracts, bank records and power of attorney, including middle names.

Only one spouse applies

Each buyer on the deed needs an NIE, and a married buyer may need the spouse’s number too.

Confusing NIE with residency

The NIE is a number, not a visa or residence permit. Living in Spain has separate rules.

Frequently asked questions

How much does an NIE cost in 2026?

The official fee for assigning an NIE at your request is €9.84, paid with form 790 code 012 (Order PJC/617/2025). Lawyers and agencies charge their own fee on top if they handle the application for you.

What is the difference between NIE and NIF?

For a foreign individual with an NIE, there is no difference in practice: the NIE is used as the NIF, the Spanish tax identification number. Foreigners without an NIE can get a tax-only NIF starting with M from the Tax Agency.

What is the difference between NIE and TIE?

The NIE is the number. The TIE is a photo card for non-EU residents that shows the NIE. Non-resident buyers usually only need the NIE certificate, not a TIE.

Can I get an NIE online?

No. You must file the application at a police office in Spain or at a Spanish consulate abroad. You can download form EX-15 and fill in and print the fee form online before your appointment.

Do both spouses need an NIE to buy a property together?

Yes. Every buyer who appears on the deed needs their own NIE, and the deed cannot be registered without the tax number of each buyer.

Does the NIE number expire?

No. The number is permanent. Certificates show an issue date, and some banks or notaries may ask for a recent one, but the number itself never changes.

Sources and methodology

Checked on 28 November 2026 against the official sources below. Fees and procedures can change; confirm the current position with the issuing office or your lawyer before relying on a completion date.

Buying in Spain and need an NIE?

An independent, English-speaking property lawyer can organise your NIE alongside due diligence, the contract, taxes, notary and registration.

Find a Lawyer →

Legal disclaimer: General information only, not legal, tax or immigration advice. Property Lawyers is a directory, not a law firm. Procedures, fees and document requirements can change and vary by office. Get advice for your own situation before relying on a transaction timetable.

Join property lawyers

Become a partner

Are you a professional Lawyer in Spain and want to promote your firm?
Submit your firm today