A NIE number is the personal ID number that Spain’s National Police give to foreigners with economic, professional or social dealings in Spain, and it doubles as your tax number. You apply with Form EX-15 and a €9.84 fee paid on Form 790 (code 012), and there are three ways to do it: at a police station in Spain, at a Spanish consulate, or through a lawyer holding your power of attorney. Once assigned, the number is yours for life.
What it does not give you is residence. Buying a holiday home, opening a bank account or inheriting a flat needs only the NIE. Living here needs a visa or a residence card on top, and if you are applying for a long-stay visa or a residence permit you normally don’t request the NIE separately: the police assign it as part of that file.
If you are in the US or the UK with no trip to Spain planned, the realistic routes are your Spanish consulate or a power of attorney. Both are explained further down.
What is a NIE number in Spain?
NIE stands for Número de Identidad de Extranjero, which translates as foreigner identity number. Article 205 of Royal Decree 1155/2024, the immigration regulation in force since 20 May 2025, calls it a personal, unique and exclusive number, assigned in sequence by the Directorate General of the Police.
In practice it is your Spanish ID number for paperwork. Notaries, banks, utility companies and public offices all use it to identify you. For the tax office it is also your NIF, the tax ID: article 20 of Royal Decree 1065/2007 says that a foreigner’s tax number is their NIE. So you need one to pay non-resident taxes on a Spanish property, even if you never live here.
NIE number format and example
Every NIE has nine characters: a letter, seven digits and a check letter at the end. The first letter is X, Y or Z. The series started with X and moves on through the alphabet as each letter runs out, which is why you will see numbers that begin with Y or Z. The layout comes from the Order of 7 February 1997 on the foreigner card.
Hyphens and spaces are just formatting. Y-1234567-X and Y1234567X (a made-up example) are the same number.
How the NIE letter at the end is calculated
The last letter is a check character, and you can work it out yourself with the method the Ministry of the Interior publishes. Swap the first letter for a digit (X = 0, Y = 1, Z = 2), divide the eight-digit number by 23 and find the remainder in this row of 23 letters: TRWAGMYFPDXBNJZSQVHLCKE. A remainder of 0 gives T, 1 gives R, 2 gives W, and so on.
- Take Y1234567. The Y becomes 1, so the number is 11234567.
- 11234567 divided by 23 is 488,459, with a remainder of 10.
- Counting from 0, position 10 in the row is X. The full NIE is Y1234567X.
Run this check on your own number before you write it on a deed, a bank form or a tax return. If the letter does not match, a character was copied wrong somewhere, and that is much easier to fix before a notary signs than after.
Source: Ministerio del Interior, method for the NIF and NIE check character.
The NIE document: what the NIE certificate is
When the police assign the number, you get a certificate of NIE assignment (certificado de asignación de NIE). It is a single sheet with your name, your passport details and the number. There is no photo and it is not an ID card, so you show your passport alongside it. It is informally called the “white NIE”, to tell it apart from the green certificate that EU citizens receive when they register as residents.

If you lose the certificate, the number does not change. Our lawyers can ask for a new certificate for the same NIE; nobody is ever given a second number.
NIE certificate, EU registration certificate or TIE: which one do you need?
People often confuse these three documents, and asking for the wrong one wastes an appointment. Here they are side by side, with the official fee for each one.
| Document | Who it is for | Form | Official fee | Proves you live in Spain? |
|---|---|---|---|---|
| NIE certificate | Anyone with an economic, professional or social reason who is not moving here: buying or inheriting property, opening an account, setting up a company | EX-15 | €9.84 | No |
| EU registration certificate | Citizens of the EU, the EEA (Iceland, Liechtenstein, Norway) and Switzerland staying in Spain for more than three months | EX-18 | €12.00 | Yes |
| TIE card | Non-EU nationals with a visa or permit to stay for more than six months | EX-17 | €16.08 (first card) | Yes |
Fees: Policía Nacional, Form 790 code 012, November 2026. The EU certificate and the TIE both show your NIE.
An American or British buyer of a holiday home only needs the first row. Someone moving on a non-lucrative visa or a digital nomad visa ends up with the third, and the NIE comes with it.
This is also where the different prices you read online come from. €9.84 is the NIE itself. €12.00 is the EU certificate, and dollar or pound amounts are what consulates charge abroad.
How to get a NIE number in Spain: EX-15, Form 790-012 and appointment
Inside Spain you apply at a National Police station or a foreigners’ office (Oficina de Extranjería) in the province where you are. Article 205 sets two conditions for people who ask for a NIE on their own: you must not be in Spain irregularly, and you must say why you need the number.
- Book the appointment (cita previa). It is booked on the government’s online appointment portal for immigration procedures (cita previa de extranjería), choosing the province and the NIE service. In the busiest provinces free slots are hard to find, and this is usually the slowest part.
- Fill in Form EX-15, the NIE application form. Tick the NIE box and write your reason, for example buying a home or receiving an inheritance. Hand in the official Spanish version; English translations you find online only help you read it. Use the form whose header cites Royal Decree 1155/2024, because the ones that mention RD 557/2011 are older.
- Pay the €9.84 fee. Generate Form 790 code 012 on the National Police website and pay it at a bank before the appointment. You do not need an account at that bank.
- Bring originals and copies. Your passport with a copy of the whole passport, the EX-15, the stamped fee receipt and a document that backs your reason, such as a property reservation contract or a job offer.
- Wait for the decision. The police have five days from the date your application enters their register to decide and notify you. If that time passes with no answer, the law treats the application as refused. You can then appeal to the same office (recurso de reposición) at any time, under article 124 of Law 39/2015, and if the refusal comes in writing you have one month.
Five days is the legal maximum for the decision. The real wait is getting the appointment in the first place.
Source: Policía Nacional, NIE assignment procedure, November 2026.
How to apply for a NIE from abroad: consulate or power of attorney
If you are not in Spain, the regulation sends you to the Spanish consulate that covers the place where you live. The consulate forwards the file to the national immigration police headquarters in Spain (Comisaría General de Extranjería y Fronteras), which assigns the number. You still use the EX-15, add a document showing that you live in that consulate’s area, and pay the fee, but consulates collect it in local currency under their own rules, so the exact amount depends on the consulate. When we prepare your file, we check what your consulate charges at that moment.
The other route is a representative in Spain. You sign a power of attorney before a notary at home, it gets a Hague apostille (the stamp that certifies a public document for use abroad; in the US it is issued by the state where the notary is commissioned, usually by the Secretary of State’s office), and our lawyers file the EX-15 in Spain for you. The Ministry of the Interior accepts a NIE application filed by a legal representative whose power of attorney expressly allows it, and article 5 of Law 39/2015 lets anyone act through a representative before a public office as long as the representation is proven. Article 205 itself speaks of applying in person, so practice can vary between police offices, and we check what the office handling your file asks for before we book.

Getting your NIE through our lawyers
- From your home country. We draft a power of attorney written for the Spanish police. You sign it before a notary wherever you live, in the US, the UK, Canada or elsewhere, add the apostille and mail us the original. A power of attorney in English also needs a sworn translation into Spanish, and we arrange that. Then we pay the fee, book and attend the appointment, and email you the certificate.
- If you are already in Spain. You can sign the power of attorney before a Spanish notary during your trip, and we take the police appointment and the paperwork from there.
NIE vs TIE: the difference between the number and the card
The NIE is a number. The TIE (Tarjeta de Identidad de Extranjero) is a plastic card with your photo and fingerprint that proves you are allowed to live in Spain, and your NIE is printed on it.
Under article 209 of the same regulation, anyone with a visa or permit to stay for more than six months has to apply for the TIE in person within one month of arriving, or of the permit taking effect. Your fingerprints are taken at that appointment, so a representative cannot go for you. The card expires with your permit and is renewed with it, while the NIE never changes. If your residency file is still open, you can check your Spanish residency application status online.
Who needs a NIE number in Spain?
You need a NIE for almost anything beyond a holiday. It is required to:
- Buy, sell or inherit property in Spain, and to sign the deed at the notary.
- Open a resident or non-resident Spanish bank account, or get a mortgage in Spain as a non-resident.
- Buy a car or register one in your name.
- Sign up for electricity, water and internet at home.
- Sign a job contract or register as self-employed (autónomo).
- File and pay taxes with the Spanish Tax Agency (Hacienda).
NIE number FAQ
How long does it take to get a NIE number?
By law, five days from the date your application enters the police register. After that, silence counts as a refusal. In practice the wait is for the appointment, not for the decision, and applying from abroad adds the time the consulate takes to send the file to Spain.
How much does a NIE number cost?
The official fee is €9.84, paid with Form 790 code 012 (Policía Nacional, November 2026). The €12.00 you may see online is the fee for the EU registration certificate, and consulates abroad charge in local currency.
Can I get a NIE number without going to Spain?
Yes. You can apply at the Spanish consulate for your area, or give our lawyers a notarised, apostilled power of attorney so we file the application in Spain for you.
Does a NIE number expire?
No. The number is yours for life and stays the same if you later get a TIE or become a resident. The TIE card is what expires, together with your permit.
What form do I need to apply for a NIE?
Form EX-15, together with the receipt for the Form 790 code 012 fee. Hand in the official Spanish version of the EX-15; English translations only help you understand the fields.
Can I live in Spain with just a NIE?
No. The NIE lets you buy, sign contracts and pay taxes, but it gives you no right to live or work here. For that you need a visa or residence permit, or the EU registration certificate if you are an EU citizen.
Do I pay tax just for having a NIE?
No. The number on its own creates no tax bill. Tax comes from what you do with it, for example owning a home in Spain, which non-residents have to declare every year for non-resident income tax, even if they never rent it out.
What is the difference between a DNI, a NIE and a NIF?
The DNI is the identity card of Spanish citizens. The NIE is the identity number for foreigners. The NIF is the tax number, and for a foreigner the NIF is the NIE itself.
Hello. I’m planning to file a general inquiry on the tax spanish authorities and was filling up a form online. However, an NIE/NIF is required in order to finish the form and set up an appointment with them. How should I proceed when I want to have my case assisted immediately?
Maria,
We can obtain the NIE for you within 10-15 working days.
Kind regards,
I have my NIE application ready to go. I’m trying to make an appointment at the Spanish Consulate in Miami, Florida but have encountered a question for which I don’t know the answer. After I fill in all my name, passport number, and expiration date, it’s asking me for an ID#. I have no idea where to get this or what number they’re referring to. I’ve tried my driver’s license number, passport number again, and it won’t accept it. Please help me.
Wanda,
Contact us and we can help you through the whole process of applying for your NIE.
Kind regards,
Hi!
DO you know if i need a permanent address in order to apply for NIE? or is possible to get it when just renting (long term)?
Thanks
Alex,
one of our lawyers should be in contact with your questions about NIE Spain
Kind regards,
Hello
Please advise on requirements to apply for NIE whilst living in Sitges as a non-resident.
Regards
Colin
One of our lawyers will contact you to answer your questions about NIE in spain.
I am planning to buy a small house in Spain for holidays for myself and family, do I need to get a nie number? Thank you
Yes, you need a NIE for buy a property
If none of these situations respond “to your circumstances and you visit the country for at least 90 days, it is not obligatory to take the NIE.”
Hello,
if I want to lay on the beach for 4 months do i need to have Nie number? 🙂
If you want to stay more than 90 days in Spain and you are not an EU citizen you need a visa, if you are an EU citizen you need to obtain the NIE, although it is not mandatory.
My husband and I will visiting Spain in September. We are planning to retire to Spain in February or March of 2026. As we are interested in purchasing a home before we move, can we apply for an NIE during our visit to Spain without having a Spain address? We will be visiting Cordoba. Where do we go there to apply for the NIE.
We can help you through the whole process. I have sent you an email.
Hi, I’m from New Zealand and planning to live in Spain with a 1-year visa, can you please help me with the forms i need to do and the certain requirements for me to ensure this please. I have filled out the NIE it yet to give it to my Spanish embassy.
Yes, we can help you, please send us a contact form.
i cannot get an NIE because the appointment is always fully booked. and it’s 3 months and 13 days. is it still possible to get NIE?
Yes, we can help in obtain your NIE.
I would like assistance in obtaining my NIE as I wish to purchase a property in Spain. Does my husband also need a NIE.
Yes, we can help!
My family is in India. Can we get their TIE renewed in India at the Spanish Embassy? Is it possible to apply here on their behalf and they attend there for finger print? Their TIE is also about to expire and they can’t come here before the expiry. How can we get it renew given that we have new residence permit.
I think they are getting confused with the NIE and TIE, no? The NIE is the foreigner identification number, you do not have the right to live in Spain with this, it is used to buy property, open a bank account in spain…. The TIE is the foreigner identification card. What exactly do you want? We have sent you an email.
My son needs N.I.E. to take part in the commercial production. How long does it take to make NIE for the child?
If your son needs a NIE Spain to take part in a commercial production, our law firm can help you obtain it online in 10-20 days. However, if you plan to stay in Spain long-term, keep in mind that non-EU citizens will also need a visa, as the NIE alone does not grant residency.
Contact us via our contact form, and we’ll guide you through the process to ensure everything is completed in time.
Hello, I have a Portuguese residents card and a NIF number but I am a British citizen with a British passport. My partner has bought a house in Spain and I wish to live there with him when he spends time there. How do I obtain a NIE number please?
As a British citizen, if you plan to live in Spain with your partner, you’ll need both a NIE Spain and a visa, since British citizens now require a residence visa to stay long-term in Spain post-Brexit. The NIE is necessary for legal and financial matters, but it doesn’t grant residency on its own.
Our law firm can assist you in obtaining your NIE online in 10-20 days, and we can also guide you through the visa application process. Contact us via our contact form for personalized advice and support to ensure everything is in place for your move.
Good afternoon,
I plan on relocating from the US to Spain in the fall of 2025. I have tried to call the Spanish Consulate in Washington DC and Chicago but can never get through. I need to obtain a NIE. Can you help?
Obtaining a NIE in Spain online is possible, but the process can be complicated, especially if you’re applying from abroad. It’s common for Spanish consulates to be difficult to reach by phone. However, you can start the process either through the consulate or once you’re in Spain.
If you need help with your NIE application, feel free to reach out through our contact form. We can guide you through the online process and ensure you have everything ready for your relocation in 2025.
Good evening
I will stay more than 6 month in Spain with my daughter as she is doing tennis training
Can you please help us with the process of how to obtain NIE for both of us?
Thank you
Kind regards
If you and your daughter plan to stay in Spain for more than six months, you will both need a NIE in Spain. The process depends on your nationality:
We can help you navigate the exact process based on your situation. Feel free to contact us via our contact form for personalized guidance on obtaining your NIE.
Hi, I already have NIE number, but in the bank they are asking for the green card NIE. Is this by any chance TIE card? I am a little bit confused because I am EU citizen otherwise and I work in Spain as freelancer. So should I apply for TIE and if so, can you help me with getting the appointment?
As an EU citizen, you are typically issued a NIE (Numero de Identificación de Extranjero) for tax and identification purposes. The green card NIE you are referring to is likely the TIE (Tarjeta de Identidad de Extranjero) card, which is issued to foreign residents, including EU citizens who are residing in Spain for extended periods.
If you’re working as a freelancer in Spain, it’s recommended to apply for the TIE card. For guidance on the application process and to assist you in securing an appointment, we suggest reaching out to us directly.