If you buy a home in Spain as a foreigner, the NIE shows up earlier than most people expect: not at the notary on completion day, but at the start, when you are still opening an account or negotiating deadlines. It is an identification number for dealings with the Administration. It is not a residence permit.
The Ministry of the Interior defines it as a personal, unique and exclusive sequential number for people who deal with Spain for economic, professional, social or other interests. Buying a property falls inside that case. The General Council of Notaries describes a home purchase before a notary: without valid buyer identification, the chain stops.
This page is the operational guide for getting a NIE when you buy a home in Spain. It does not replace the official procedure and it is not personal legal, tax or notarial advice: for your case, check it with a lawyer, a notary and, where relevant, the consular office or a Foreigners Office. ITP, the 3% withholding, the mortgage and the golden visa stay outside this page; Catalonia purchase taxes are in ITP, VAT, AJD and costs and the full Barcelona picture is in the guide to buying an apartment as a foreigner.
Practical rule: the NIE identifies; it does not authorise you to reside. Apply for it before you lock deposit or deed deadlines, not in the week of the signing.
What the NIE is and why buyers are asked for it
Sources: Interior (NIE), Royal Decree 1155/2024 and Notaries.
Under Article 205 of the Aliens Regulation approved by Royal Decree 1155/2024, foreigners who deal with Spain for economic, professional, social or other interests receive a personal, unique and exclusive number. That number must appear on documents issued or processed for them. Interior says the same on its NIE page: it is an identifier, not a residence card.
In a purchase, the number is used to:
- Identify you before the notary on the public deed.
- Open or operate an account to pay the price, taxes and costs.
- Appear correctly on tax filings and in the Land Registry when the acquisition is recorded.
The Notaries describe a purchase with legal certainty: the notary checks identity, capacity and standing. Without a NIE, the foreign buyer’s file is incomplete for that check. The bottleneck is not nationality. It is having the number assigned in time.
Before the papers get mixed up, keep these three points clear:
- The NIE does not expire as a number. The physical document that shows it (a TIE, a certificate) can expire. Once assigned, the number stays the same in later filings.
- Holding a NIE does not make you a tax resident and does not, by itself, open grants designed for residents’ main homes. Administrative identification and tax residence are different things.
- Ex officio assignment exists when you start certain immigration or long-stay visa procedures, under Article 205 of the Regulation. If you only buy and do not apply for residence, you must request assignment at the interested party’s request. Interior and the Police are clear on that for economic interests.
People rarely get stuck on the definition. They get stuck because they signed a deposit timetable as if the number were already in the folder.
NIE, TIE, EU certificate and NIE certificate: they are not the same
Legal sources: Royal Decree 1155/2024, Royal Decree 240/2007 and the National Police NIE assignment page.
| Concept | What it is | Who it usually covers | What it proves |
|---|---|---|---|
| NIE | Foreigner identity number | Any foreigner with interests in Spain | Identification only |
| NIE assignment / NIE certificate | Decision or certificate that communicates the number | Anyone who requests it for economic interests without residing | That the number has been assigned |
| TIE | Foreigner identity card | Non-EU national with an authorisation or visa longer than six months | Legal status in Spain |
| EU registration certificate | Entry in the Central Register of Foreigners | EU, EEA or Swiss national who resides for more than three months | Community residence registration; includes the NIE |
Article 205.5 of Royal Decree 1155/2024 applies the same application procedure to resident and non-resident certificates. The National Police lists those certificates with form EX-15 (NIE and certificates application), separate from the TIE (EX-17) and from the EU citizen registration certificate (EX-18).
The TIE, in Article 209 of the same regulation, is the document intended to identify the foreigner for the purpose of proving their legal status when there is a visa or authorisation longer than six months. Someone who only buys and does not reside does not need that card to acquire the home; they need the number.
For EU nationals, Royal Decree 240/2007 regulates residence beyond three months and the registration certificate, which records name, nationality, address, NIE and registration date. That certificate is not a TIE. If you buy without settling, the usual step is to request NIE assignment for economic interests, not the community residence regime.
Common trap: calling any green or white slip “the NIE”. Ask what the document proves: only the number, registration as an EU resident, or a residence authorisation?
When to apply relative to deposit, mortgage and notary
Sources: Interior, Notaries and Royal Decree 1155/2024.
Signing the deposit first and applying for the NIE afterwards is the order that most often goes wrong. A cleaner sequence is: NIE under way or already assigned, then serious negotiation, then a deposit with realistic deadlines, then finance if needed, and the deed last.
Why that order:
- The Notaries frame the purchase as an act that requires clear buyer identification.
- Banks are not on Interior’s NIE page, but in practice they ask for a NIE to open an account or formalise a mortgage.
- The Tax Agency and the Land Registry need a stable identifier for the purchaser.
The Regulation sets a maximum period of five days to decide the application once it enters the competent body’s register. That period does not measure the queue to get an appointment. Interior and the Police also do not publish an official average wait by province. Do not invent “two weeks in Barcelona” or “a month in Madrid”. Official sources do not publish those averages: availability varies by office and by moment.
If you are about to sign a deposit contract in Barcelona, write deadlines that leave room for the NIE, the account and the nota simple. If you need finance, the mortgage approval requirements come after you have an identifier, not the other way round.
Documents: EX-15, passport, fee 790-012 and justification
Official checklist from Interior, Police (NIE assignment), EX-15 forms and Order PJC/617/2025.
According to Interior, assignment for economic or other interests requires:
- Not being unlawfully present in Spain.
- Stating the reasons for the application.
- Filing the completed and signed standard application form.
- Providing the original and a copy of a full valid passport, identity document, travel document or registration card.
- If a representative acts, sufficient power of attorney with express authority to file the application.
The National Police specifies the form: form EX-15 (NIE and certificates application) and fee form 790 code 012. The Ministry of Inclusion publishes EX-15 in its list of general forms.
On the fee: Order PJC/617/2025 sets at 9.84 euros the “Assignment of Foreigner Identity Number (NIE) at the interested party’s request” (heading 5.12 of the annex). Form 790 code 012 is generated on the Police electronic office; the amount that counts is the one that form calculates when you mark the correct procedure. The Police state that payment is made at banks, savings banks and credit cooperatives, without needing an account at that entity, by presenting the payment slip.
For a purchase, proof of economic interest is usually a reservation, offer, engagement letter or preliminary contract. Interior does not publish one model letter. What matters is that the reason is stated and matches the purchase. A vague “economic interests in Spain” with no context may pass in some offices and draw a request for more in others. Bring something verifiable.
If the power of attorney comes from abroad, Interior points to Migration’s legalisation and translation requirements. Notaries handling the purchase also check whether the power is enough. Authority to request the NIE does not automatically cover signing a deposit or a deed. Draft those as separate powers.
Before the appointment, also check:
- That EX-15 marks NIE assignment (or the certificate you actually need), not a TIE or an EU registration certificate.
- That the 790-012 carries the assignment heading and the payment proof (stamp or NRC).
- That the passport is valid on the filing day.
- That names and surnames match exactly across passport, EX-15 and fee form.
A missing second surname, or a different spelling between passport and EX-15, has delayed more than one signing.
Three routes: Spain, consulate or representative
Official channels: Interior, Police and immigration appointment booking.
Interior allows three filings for assignment on economic interests:
- In Spain, in person, at a Foreigners Office or Police Station.
- In Spain, through a legal representative, at the same offices, with sufficient power.
- Outside Spain, at the Spanish consular office in your country of residence (correct consular district).
The Police put it the same way: you apply to the Directorate-General of the Police, directly or through Foreigners Offices or Police Stations; if you are not in Spanish territory, the application goes to the General Commissariat for Immigration and Borders through the consulate.
In practice, many offices work by prior appointment. The official immigration appointment portal holds slots for Foreigners Offices and the National Police. Choose NIE assignment (not TIE, not the EU certificate) and the right province. No average wait is published there; it varies by office. Keep the appointment receipt. On 25 October 2026 the icpplus portal returned HTTP 503 during verification of this guide, so treat the official URL as the source and do not invent wait times.
What the rule covers, and what it does not:
| Stage | What the rule or the office says | What it does not promise |
|---|---|---|
| Decision | Maximum five days from entry in the competent body’s register (Art. 205.4 RD 1155/2024) | That you get an appointment in five days |
| Administrative silence | Once the period ends without a reply, the application is treated as dismissed | That “no reply” means granted |
| Appointment or consulate | Depends on the local schedule | A fixed number of weeks |
How to choose a route:
- If you are already in Spain with time, going in person to the Police or a Foreigners Office lets you control the file and collect the decision without depending on a power of attorney.
- If you buy remotely, a representative with sufficient power saves a trip made only for a queue. The power must expressly cover the NIE application and, if you want, collecting the decision or certificate.
- If you are not travelling yet and do not want to grant power, use the consulate for your district. The pace follows the consular schedule, not the five-day decision period used once the file is in Spain.
If you are in Spain on a short visit, do not burn your lawful stay days waiting for a slot: the NIE does not extend your stay. Having a booked appointment also does not, by itself, lengthen the period in which you may remain lawfully.
The appointment is free on the official site. If an intermediary charges you to “get a slot”, ask what they actually do (accompaniment, power of attorney, translation) and what they cannot guarantee. Slots are released by the Administration.
Common mistakes that delay the purchase
Sources: Interior, Police, Order PJC/617/2025 and EX-15.
- Confusing NIE with TIE or with the EU certificate. You request the wrong procedure, pay the wrong fee or join the wrong queue.
- Marking the wrong heading on the 790-012. NIE assignment is not the same line as a TIE or a registration certificate. The assignment amount is 9.84 euros under Order PJC/617/2025; other headings carry other amounts.
- Signing a short-deadline deposit without an assigned NIE. The legal decision period does not cover the wait for an appointment. If the deposit contract ignores that risk, the earnest money is exposed.
- Insufficient power of attorney. Interior requires express authority to apply for the NIE. A generic power for “administrative formalities” may not be enough.
- Expired passport or incomplete copy. Interior asks for the original and a copy of a full valid passport or other travel or identity document.
- Blank or incoherent reason. You must state the economic or other grounds. In a purchase, document the interest with something concrete.
- Believing silence is positive. Article 205.4 treats the application as dismissed if there is no reply within the period.
- Handing the appointment to an opaque intermediary. The official appointment is managed on the Public Administrations site. If someone sells “guaranteed slots”, ask what they can evidence in writing.
Practical calendar before you sign
Useful working order, aligned with Interior, Police and Notaries. This is not a timetable with fixed dates. It is the sequence that avoids signing first and arguing later.
- Choose the route: in person in Spain, representative or consulate.
- Download EX-15, prepare the passport and proof of the economic interest.
- Generate fee 790 code 012 under the NIE assignment heading. If you file in Spain, pay it under that heading. If you file at a consulate, follow that office’s instructions for the amount, when to pay and how to pay.
- If you file in Spain, book on the official portal. If you file at a consulate, check whether that office requires an appointment: not every consulate does.
- File the application and keep the receipt. The five-day period in the Regulation starts when the application enters the competent register.
- With the NIE assigned, open or complete the bank account and continue with the nota simple, deposit and, if needed, the mortgage.
- Take the NIE to the deed. The Notaries describe that formalisation as the point of legal certainty.
Hypothetical sequence (appointment waits vary; do not treat these weeks as official data):
- Week 0: you decide to buy in Spain and open the NIE file (EX-15, fee, appointment or consulate).
- When the number is assigned: you open or advance the bank account and start serious viewings.
- Negotiation and deposit only once the identifier is no longer an unknown.
- If there is a mortgage, the bank works with the NIE and financial paperwork in parallel with the nota simple.
- Deed with the NIE already settled in the notarial file.
If the seller presses to sign a deposit “this week” and you do not even have an appointment, either sign with a realistic condition and deadline, or do not sign. Waiting usually costs less than fighting over earnest money because of a half-finished filing.
If you are already viewing apartments in Barcelona, fit this calendar with the foreign buyer guide and the deposit checklist. For finance, use the mortgage requirements guide.
Frequently asked questions
References: Interior (NIE) and Royal Decree 1155/2024.
Is the NIE a residence permit?
No. The NIE is an identification number for foreigners with interests in Spain. On its own it is not a residence authorisation and does not give you a permanent right to live here.
Can I sign a deposit contract without a NIE?
In practice, you should not. Without a NIE, the bank, notary and Tax Agency rarely close the purchase chain smoothly. If you sign a deposit with short deadlines while the NIE is still unassigned, the delay risk is high.
How much is the NIE assignment fee?
Order PJC/617/2025 sets the NIE assignment at the interested party’s request at 9.84 euros. You pay it with form 790 code 012. The amount that counts is the one the official form shows when you generate it.
Can a representative apply for it?
Yes. Interior allows filing in Spain through a legal representative with sufficient power that expressly states authority to apply for the NIE. Outside Spain, the ordinary route is the consular office of your residence.
Does the five-day legal deadline include getting an appointment?
No. The Aliens Regulation’s maximum period of five days runs from the day the application enters the competent body’s register. The wait before you obtain an appointment or a consular slot is separate and varies by office.
Does an EU citizen need a TIE to buy?
No. The TIE documents the status of a non-EU national with an authorisation longer than six months. An EU national who resides for more than three months applies for the registration certificate, which includes the NIE; to buy as a non-resident, assignment of the number is often enough.
If you are buying or selling in Barcelona and the NIE is shaping your deposit or deed deadlines, contact Pedro Ochoa Inmobiliaria. We review the deal calendar, the minimum paperwork before you sign, and how it fits with the notary and, where relevant, the lender. You still file the NIE with the Police, a Foreigners Office or a consulate. We help you avoid signing deadlines that assume a number you do not have yet.
Sources
- Foreigner Identity Number (NIE)
- Royal Decree 1155/2024 (Aliens Regulation), Article 205
- Assignment of a NIE at the interested party's request
- General forms (EX-15 NIE and certificates)
- Order PJC/617/2025, immigration fees
- Fee form 790 Code 012
- Home purchase and sale
- Royal Decree 240/2007, EU citizen registration certificate
- Immigration appointment booking