In short
The NIE (Número de Identidad de Extranjero, foreigner identity number) is the personal number Spain gives to a foreigner who has economic, professional or social ties with the country, such as buying a home. It is also a foreign individual’s tax number. Without it the purchase deed cannot be registered. The rule is national: article 205 of Real Decreto 1155/2024, in force since 20 May 2025. The fee in Spain is €9.84, the administration has five days to decide, and silence counts as refusal.
What the NIE is, in law
Article 205.1 of the immigration regulation says that foreigners “que por sus intereses económicos, profesionales, sociales o de cualquier otra índole, se relacionen con España” receive a personal, unique and exclusive sequential number. The number follows you to every document you are issued. It is not a residence permit: the consulate page for London states that a NIE obtained through a consular office “does not entitle the holder to reside in Spain or prove residence there”.
The regulation in force is Real Decreto 1155/2024 of 19 November, which entered into force six months after publication, on 20 May 2025, and repealed the 2011 regulation. Some consular pages still quote the 2011 decree. The NIE article is the same in substance, but cite the new text.
Why a buyer needs one
Three reasons, all grounded in the texts:
- Tax number. Article 20 of Real Decreto 1065/2007 says that for individuals without Spanish nationality, the tax identification number (número de identificación fiscal) is the NIE assigned under the immigration law. Article 18 states that you need a tax number for dealings with tax relevance, and a purchase has them: transfer tax, stamp duty, and later the non-resident return.
- The deed. Article 254.2 of the Ley Hipotecaria provides that no registration is made in the Land Registry of deeds transferring real estate unless “todos los números de identificación fiscal de los comparecientes” appear in them. Article 24 of the Ley del Notariado adds that the Notarial Council reports to the tax authority the transactions in which the tax number was not given to the notary. A deed without your NIE is, in law, a defective deed that the registry will not register.
- Later dealings. Every later return you file as a non-resident owner, from the yearly imputed-income return to the sale, uses the same number. The non-resident tax guide shows where it comes in.
Who grants it and how to ask
The NIE is granted by the Dirección General de la Policía (national police). Article 205.3 says it is granted de oficio (automatically) for people applying for a residence document, but not for those linked to Spain by economic, professional or social interests, who must ask for it. Two conditions apply to these applicants:
- they must not be in Spain in an irregular situation;
- they must state the reasons why they request it.
Under article 205.4 you may apply in person to the police directly, or through foreigners’ offices or police stations. If you are not in Spain, you apply to the General Commissariat for Immigration and Borders through the Spanish consular offices abroad. Applying for a NIE from abroad walks through the consular route.
The same procedure applies to the certificates of resident and non-resident status (article 205.5).
The five-day term and silence
The procedure “habrá de ser resuelto en el plazo máximo de cinco días desde la entrada de la solicitud en el registro del órgano competente”. The decision must be notified within that period, “transcurrido el cual sin haber obtenido respuesta, se entenderá que la solicitud ha sido desestimada”. In plain words, silence means refusal, the opposite of tacit approval. A consulate states a longer practical time. The London page says a NIE “is normally issued within three weeks”, and the Montréal page says two weeks. Allow for that before the date of signature, and do not treat an absence of reply as an approval.
What it costs
| Item | Amount | Source |
|---|---|---|
| Fee in Spain, modelo 790 código 012, NIE assigned at the interested person’s request | €9.84 | Orden PJC/617/2025, annex line 5.12 |
| Certificate of resident or non-resident | €7.31 | same, line 5.13 |
Article 1.2 of the order says these amounts rise each year as the annual budget laws provide. No budget law for 2025 or 2026 was found in the BOE’s consolidated base, so €9.84 is the figure of the text. A consulate collects its own consular fee in local currency, which is not the same figure: see applying for a NIE from abroad. Private websites quote other amounts such as €12; they are not official.
Mistakes to avoid
- Waiting for the notary’s appointment before asking. The consular route takes weeks.
- Using an old form of the regulation. The reference is article 205 of Real Decreto 1155/2024.
- Believing the NIE gives residence rights or exempts you from tax returns. It identifies you, nothing more.
- Confusing it with the número de identificación fiscal of a company, which has another format.
Which professional to consult
A lawyer registered with a Spanish bar association (colegio de abogados) can obtain a NIE for you with a power of attorney, where the consulate allows a representative. The notary who prepares the deed will ask for the number and will tell you if it is missing. See buying property in Spain as a foreigner for the whole sequence.
Frequently asked questions
Can I buy before I have a NIE?
You can sign a contract, but the deed cannot be registered without the tax numbers of all the parties (article 254.2 of the Ley Hipotecaria). Obtain it first.
Does the NIE expire?
The sources read for this guide do not give an expiry date. Article 205.1 describes it as a personal, unique and exclusive number.
Is a NIE the same as a tax residence?
No. It is an identifier. Tax residence depends on days in Spain and where your economic interests lie.
Who pays the €9.84?
The applicant, by modelo 790 código 012, in Spain. Consulates collect their own fee.
What if the police do not answer within five days?
The application is deemed refused under article 205.4. You can submit a new one.
More guides on foreign buyers
- Applying for a NIE from abroad: Canada and the UK
- Buying in Spain without travelling: power of attorney
- Buying property in Spain as a foreigner: the rules
- Cash limits when paying for property in Spain
- Declaring a property purchase above €500,000 (form D-2A)
- Getting a Spanish mortgage as a non-resident
- Military zones: when non-EU buyers need an authorisation
- Modelo 210: the non-resident tax return explained
- Non-resident property tax in Spain: imputed income
- Proposed tax on non-EU buyers in Spain: status, not law
- Renting out a Spanish home as a non-resident: tax
- Selling Spanish property as a non-resident: 3% withholding
- Spain-Canada tax treaty and Spanish property
- Spain's golden visa has ended: what changed
- Tax representative for non-resident owners in Spain
- Tax residency in Spain: the 183-day rule explained
- The Spain–UK tax treaty and your Spanish property
- UK buyers in Spain after Brexit: what changed
- Wealth tax for non-residents who own Spanish property
Sources
- Real Decreto 1155/2024, Reglamento de la LO 4/2000, art. 205 (BOE, texto consolidado) (consulted 15 October 2026)
- Real Decreto 1065/2007, arts. 18 y 20, número de identificación fiscal (BOE) (consulted 15 October 2026)
- Ley Hipotecaria, art. 254 (BOE, texto consolidado) (consulted 15 October 2026)
- Ley del Notariado, art. 24 (BOE, texto consolidado) (consulted 15 October 2026)
- Orden PJC/617/2025, tasas de extranjería, anexo línea 5.12 (BOE) (consulted 15 October 2026)
- Consulado General de España en Londres: NIE (consulted 15 October 2026)