Guide · Updated November 2026
What is an NIE number and how do you get one?
What the Spanish NIE number is, why you need one to buy a home, and the three ways to apply for it.
The short answer
The NIE is a tax number for foreigners. You need an NIE to buy a home, open most bank accounts and pay tax. You can apply in Spain, at a Spanish consulate, or through a lawyer with a power of attorney.
What it is
NIE stands for Número de Identificación de Extranjero. It is a number, not a residence permit, and it does not expire. Every buyer named on the deed needs an NIE. If a couple buys, each of them needs one.
Applying in Spain
Book an appointment at a National Police station that handles foreigners' paperwork. Bring your passport and the completed form EX-15. Bring proof of why you need the number, such as a reservation contract. Bring proof that you paid the fee.
Applying from abroad
Spanish consulates accept NIE applications from people who live in their area. Waiting times differ a lot from one consulate to another.
Applying through a lawyer
Most buyers from abroad sign a power of attorney, and the lawyer applies for them. If you sign the power of attorney outside Spain, a notary must certify it and it must be legalised with an apostille.
Fee and timing
You pay the government fee on form 790, code 012. The fee is about 10 euros. Allow two to six weeks in total. Start before you look for a home.
Sources, checked November 10, 2026
- Spanish Ministry of Foreign Affairs: Foreigner Identity Number (NIE)
- Idealista News: how to get an NIE number in Spain
This is a summary of public reports. It is not legal or tax advice. Rules change, so check anything you rely on with your lawyer.
Guides.
How to buy property in Spain as a foreigner, step by step
The steps to buying a home in Spain as a foreigner, from the NIE number to the notary, and how long it takes.
GuideHow much does it cost to buy a house in Spain? Taxes and fees in Andalucía
The taxes and fees you pay on top of the price when you buy a home in Andalucía, for resale homes and for new builds.
GuideCan non-EU citizens buy property in Spain?
Can buyers from outside the EU buy a home in Spain? Plus what happened to the golden visa and where the proposed 100% tax stands.