Are you Spanish and thinking of studying, working or living in another country? You may believe your passport is enough, but in many cases you will need something more: a tax and administrative identification number for foreign nationals, known as the NIE (Número de Identidad de Extranjero, foreign national identity number). Paradoxical as it sounds, even as a Spanish citizen you might need this document abroad, depending on your plans and on the country concerned.
Every year, more than 2.7 million Spaniards live outside Spain, according to figures from the INE (the Spanish National Statistics Institute). Many face a sea of paperwork in order to regularise their employment, tax or educational situation. Bureaucracy is not always intuitive, and one of the terms that causes the most confusion is the NIE. When is it actually needed? Where do you apply for it? How does it differ from other documents such as the NIF or the passport?
This article will guide you step by step so you can work out whether you need an NIE while abroad, how and where to apply for it, and which other essential procedures you should know about as a Spaniard outside your own country. If you want to avoid mistakes, wasted time and legal problems, read on.
What is the NIE and what is it for?
The NIE (Número de Identidad de Extranjero) is a unique alphanumeric code assigned by the Directorate-General of the Police to every foreign national (including Spanish citizens with dual nationality or resident outside the country) who has some legal, economic or social tie with Spain. Although it is usually associated with non-EU citizens, European citizens also need it and, in certain cases, so do Spaniards themselves when acting as non-residents.
The format of the NIE is as follows: an initial letter (usually X, Y or Z), followed by seven digits and a final check letter. For example: X1234567A.
This number does not function as an identity document in the way the DNI or the passport does; instead it serves as an administrative reference for dealing with the Spanish legal and tax system. It is essential in settings as varied as the following:
- Tax matters: Tax returns, buying property, receiving an inheritance or registering with the social security system.
- Banking: Opening an account, taking out mortgages or financial products with Spanish institutions.
- Employment and professional activity: Engaging services, invoicing as a self-employed worker or taking part in projects funded by Spanish institutions.
- Legal matters: Notarial deeds, court proceedings, signing rental or sale agreements.
In short, the NIE allows the Spanish authorities to identify and manage legal and economic relations with anyone who is not formally resident in the country or does not hold a DNI. It is particularly important to understand that this number does not expire, although the physical certificate attached to it may need updating, especially if it is linked to a residence or work permit.
Who needs an NIE while outside Spain?
The NIE is not a document reserved for immigrants in Spain. In fact, anyone who deals administratively with the Spanish State and does not have a DNI (or has one but is acting as a non-resident) may need it. That includes many Spanish citizens who live abroad or have economic or legal ties with Spain.
To get a clearer picture of when the NIE is needed, it helps to look at different profiles of Spaniards living abroad:
| Profile | Does an NIE apply? | Main reason |
|---|---|---|
| Spaniard working in another country | It depends | If they wish to keep up tax activity or property in Spain. |
| Spanish student abroad | Not necessarily | Unless they do a paid placement in Spain or apply for state grants. |
| Spaniard with dual nationality | Yes (in some cases) | If they act administratively as a non-resident or with a foreign passport. |
| Spaniard inheriting or selling property in Spain | Yes | Required for notarial or land registry transactions. |
| Self-employed Spaniard or business owner abroad | Yes | To pay social security contributions, invoice or pay tax in Spain. |
In addition, an NIE may also be needed by those who do not live in Spain but wish to invest in the country, for example in property or companies, and by those taking part in court proceedings, claims or grant schemes run by Spanish institutions.
It is worth noting that many Spaniards living abroad lose their status as tax residents in Spain, which can oblige them to carry out procedures as non-residents. In those cases the NIE becomes the key identification number for dealing with the authorities, regardless of holding a Spanish passport.

How do you apply for the NIE from abroad?
Applying for the NIE from outside Spain is a relatively accessible procedure, but it takes organisation and a clear understanding of the process. There are two main routes: through the Spanish consulate in your country of residence or through a legal representative in Spain. Below we explain both options and their respective advantages.
A. Through the Spanish consulate
This is the most direct route if you live outside Spain:
- Book an appointment at the Spanish consulate covering your jurisdiction. Some accept applications by email, others through web forms.
- Gather and submit the following documents:
- Form EX-15 (downloadable from the Ministry of the Interior website).
- Original passport and a copy (some consulates also accept the DNI).
- A document justifying the need for the NIE: an employment contract, a sale agreement, an inheritance, a university acceptance letter, and so on.
- Proof of payment of fee 790 (code 012), which can be paid from an international bank account.
- The consulate acts as an intermediary and forwards the application to Spain. The process can take between 2 and 6 weeks, although this depends on the volume of applications and the efficiency of the consulate.
This option is advisable if you are not in an immediate hurry, or if you prefer to complete the procedure in person and securely from where you live.
B. Through a legal representative in Spain
If you need the NIE urgently or have someone you trust in Spain, you can take this route:
- Grant a power of attorney, in person or remotely, authorising your representative to act on your behalf.
- Your representative can then submit the file at a police station or Immigration Office in Spain..
- This method is usually faster, especially in provinces with a lighter administrative workload, and it allows the NIE to be collected directly in Spain or sent by courier.
Recommendation: Always check the requirements of the specific consulate or immigration office, as they can vary from one place or country to another.
Both routes are perfectly valid. Which one you choose will depend on your personal situation, how urgent it is and whether you are able to travel or to delegate the procedure.
Other essential procedures if you are a Spaniard outside Spain
The NIE is only one of the many important procedures Spaniards should consider when living abroad. Settling outside the country involves a series of administrative steps that safeguard your connection with Spain and your rights as a citizen. Below we go through the most common and necessary ones:
Essential procedures
| Procedure | What is it for? | Where it is done |
|---|---|---|
| Registration on the Consular Register (Registro de Matrícula Consular) | Officially recognises you as resident abroad and gives you access to consular services. | Your local Spanish consulate |
| Registration on the CERA (electoral roll for absent residents) | Allows you to vote in general, regional and European elections from abroad. | Consulate or by email |
| Renewing your passport or DNI | Keeps your identity documents valid. The DNI can only be renewed at certain consulates. | Consulate (passport) or in Spain (DNI) |
| Certificate of residence or proof of life | Requested by banks, universities or other foreign authorities. | Spanish consulate |
| Legalisation of documents and notarial procedures | Validating documents for legal use abroad (apostilles, powers of attorney, and so on). | Notaries, consulates or the Ministry of Justice |
Additional considerations
- If you are going to study or work abroad, find out about the social security agreements between Spain and your country of residence.
- It is advisable to keep your details up to date at the consulate so that you receive official communications and assistance in an emergency.
- If you have children born abroad, you can register them as Spanish at the consulate to secure their nationality.
These procedures may seem bureaucratic, but they are key to protecting your rights and making your return or future dealings with Spain easier. Planning ahead and meeting these obligations can save you trouble at critical moments such as emergency trips, inheritances or academic and employment matters.
Do not get lost in the red tape: plan ahead
Although the word “extranjero” (foreign national) in NIE can be misleading, the fact is that this document becomes an essential bridge between you and the Spanish authorities when you live outside the country. Whether it is to protect your rights, keep up your economic activity or simply avoid missing out on opportunities, understanding when and how to apply for the NIE can make all the difference.
Do not leave these procedures to the last minute. As a Spaniard abroad, planning ahead and understanding which documents you need will save you headaches and possible legal complications. The NIE is not just a number: it is the key to staying connected, administratively speaking, with your country.
To explore related subjects, we invite you to read our articles:
- Tax matters: what happens to your Spanish income tax if you move abroad?
- Dual nationality: in which countries can you obtain it as a Spaniard?
- Moving to the United States from Spain
Frequently asked questions (FAQ)
The DNI identifies Spaniards resident in Spain. If you live abroad, however, and need to carry out procedures as a non-resident (such as buying a property or paying tax in Spain), you will probably need an NIE as tax identification.
No. To obtain an NIE you must justify the need for it with documents proving the reason (a contract, an inheritance, an investment, and so on). It is not granted “just in case”.
It depends on the consulate and the volume of applications, but the timescale is usually between 2 and 6 weeks. In some cases it can take longer if additional documents are required.
Yes. The NIE does not imply residence in Spain. You can live abroad and keep the NIE in order to handle tax, economic or legal matters on Spanish territory.
The NIE number never expires . If it is issued with a physical certificate (as part of a temporary residence permit), however, that document may have a validity date and need renewing.
Fee 790 (code 012) can be paid online or by bank transfer, depending on the consulate. It is essential to bring the proof of payment on the day of your appointment.




