What is the NIE in Spain?

June 20267 min read

The NIE (Número de Identificación de Extranjero) is the unique identification number Spain assigns to every foreigner with financial, professional or social ties to the country. It is the master key to almost every administrative step.

It is also one of the most misunderstood things in Spanish bureaucracy. People arrive expecting an ID card and receive a sheet of paper. They assume it grants the right to live in Spain, and it does not. They are told it expires, and the number never does. This page explains what the NIE actually is. If you want the procedure instead, our step by step NIE guide covers forms, consulates, costs and timelines in full.

What you need it for

The NIE is not optional in practice. You need it to open a Spanish bank account, sign a work contract, pay taxes, set up utilities, buy property, register a company, inherit an asset, and register your address (empadronamiento). Most landlords and agencies will also ask for it before signing a rental contract.

It doubles as your Spanish tax ID. Spain issues a NIF (Número de Identificación Fiscal) to everyone who pays tax: for Spanish citizens the NIF is their DNI, and for foreigners it is the NIE. When a form asks for your NIF, you write your NIE. There is no separate number to apply for.

The two NIE documents: white and green

The NIE number is always the same kind of thing: a letter, seven digits and a check letter, for example X-1234567-L. What changes is the piece of paper it arrives on, and this is where most of the confusion starts.

The white NIE is an A4 sheet, formally the certificado de número de identidad de extranjero. It states your name, your nationality, your number and the reason it was issued. That is all it does. It is not an identity document, it carries no photo, and it grants no right to live or work in Spain. It is what you get when you need the number for a specific transaction, such as buying a property or opening an account, and it is the document most non-residents hold.

The green certificate is the certificado de registro de ciudadano de la Unión, issued to EU, EEA and Swiss citizens who register as residents. Despite the nickname it is not a card, it is a small green paper roughly the size of a credit card, and it also has no photo. It proves you are registered as a resident and it carries your NIE. Non-EU residents get a TIE card instead, which is covered below.

Neither document replaces your passport. Spanish police, banks and notaries will ask for your passport alongside them, because neither the white sheet nor the green certificate proves who you are, only what your number is.

NIE, TIE and tarjeta de residencia: what the difference actually is

These three terms describe different categories of thing, which is why comparing them feels slippery.

The NIE is a number. It identifies you in Spanish systems and nothing more. It says nothing about whether you are allowed to be in the country.

The TIE (Tarjeta de Identidad de Extranjero) is a card. It is the physical credential issued to non-EU residents, with your photo, your fingerprint record and your NIE printed on it. It is the thing you carry in your wallet.

The tarjeta de residencia is not a separate document at all. In everyday Spanish it is simply what people call the TIE, because the card is proof of your residence permit. If someone asks for your tarjeta de residencia, they mean your TIE.

The point that catches people out: your residence status is granted by a visa or permit, not by the NIE. Holding a NIE does not make you a resident. Being a resident is what gets you the card that shows your NIE. The number comes with the status; the status does not come with the number.

How long does an NIE last?

The number is permanent. It is assigned once and it is yours for life. Leave Spain for a decade, come back, and it is still the same number. You never reapply for a NIE you already have, and doing so creates a duplicate record that is genuinely painful to unpick.

The documents are a different matter, and this is the source of the "my NIE expired" confusion. The white NIE certificate is frequently issued with a validity period printed on it, and banks, notaries and some administrative offices will refuse a certificate they consider stale, typically asking for one issued within the last three months. That is a limit on the paper as evidence, not on the number. If you are told your NIE has expired, what has expired is the certificate, and you request a fresh copy rather than a new number.

A TIE card carries its own expiry date, tied to the residence permit behind it, and must be renewed like any other card. Renewing the TIE does not change your NIE.

Do I need an NIE to rent an apartment in Spain?

Legally, no. Nothing in Spanish rental law requires a tenant to hold a NIE, and a contract signed with a passport is valid.

In practice, in Barcelona or Madrid, you will struggle without one. Landlords and agencies use the NIE to run the checks they care about, and when several applicants want the same flat, the one whose paperwork is ready wins. Agencies in particular tend to treat a missing NIE as a reason to move on rather than a problem to solve.

What you can do without a NIE is everything before the contract: search, book viewings, and be first through the door. That matters more than it sounds, because in Barcelona the good flats are gone within hours of going online. The sensible order is to start the NIE process and start looking at the same time, so your paperwork lands in the same week as a flat you actually want.

One warning specific to newcomers. Rental scammers target people who have just arrived and do not yet know what a normal price looks like, and the standard bait is a flat well below the market rate of its neighbourhood, followed by a request for a deposit before you can visit. Never send money before seeing a place in person. If a price looks too good, our free Idealista listing checker compares it against real market data for that neighbourhood in seconds.

While your paperwork clears

Prio's apartment alerts send every new Idealista and Badi listing to your phone the moment it goes live, at least 2 minutes ahead of the platforms' own notifications, so you can book a viewing the week your NIE arrives.

Common misconceptions about the NIE

These are the beliefs that cost people time. They are about what the NIE is. For the mistakes that get an application rejected at the counter, see the full NIE guide.

How to get one

You apply in person, either at a Spanish consulate before you arrive or at a police foreigners' office (Oficina de Extranjería) once in Spain, using form EX-15 (non-EU) or EX-18 (EU), with your passport, a justification for why you need the number, and the paid Tasa 790 (around €12). The appointment is the real bottleneck in big cities.

Want the full walkthrough?

This is the conceptual version. For documents, consulate jurisdictions, timelines, costs and appointment tactics, read our complete NIE step by step guide, or the city specific NIE in Barcelona walkthrough.

Frequently asked questions

What is a NIE in Spain?

The NIE (Número de Identificación de Extranjero) is the unique foreigner identification number assigned to anyone with financial, professional or social ties to Spain. It is needed to rent, work, bank, pay taxes and handle most paperwork, and it doubles as your tax ID (NIF).

Does the NIE expire?

The number does not. It is permanent and stays the same even if you leave Spain and return years later. What can go stale is the paper: a white NIE certificate is often only accepted by banks and notaries if it was issued in the last three months, and a TIE card expires with the residence permit behind it. In both cases you renew the document, never the number.

Is the NIE the same as a TIE?

No. The NIE is a number, the TIE is the physical residence card issued to non-EU residents, and the card has your NIE printed on it. EU citizens get a green registration certificate rather than a TIE. What Spaniards call a tarjeta de residencia is the TIE.

Do I need a NIE to rent an apartment in Spain?

Not legally, and a contract signed with a passport is valid. In practice most landlords and agencies in Barcelona and Madrid will ask for one, and applicants without it tend to lose the flat to someone whose paperwork is ready. You can search and view without a NIE, so start both processes at once.

Can I work in Spain with just a NIE?

No. The NIE identifies you, it does not authorise you. The right to work comes from your visa, residence permit, or EU citizenship. An employer will need your NIE to put you on the payroll, but the number alone gives you no right to be employed.

How much does a NIE cost?

The official fee (Tasa 790, código 012) is around €12 in Spain, or about $12 at Spanish consulates in the US. Lawyers and gestorías charge more to handle it for you. See the full NIE guide for the current breakdown.

DECISIVE ADVANTAGE

Be the first to call.

Once your paperwork is ready, speed is everything. Prio alerts you to new listings before everyone else, minutes ahead of the platforms.

Start 7-day free trial 200,000+ alerts sent

Next step: the appointment

Knowing what the NIE is does not get you one. The bottleneck is the cita previa, and in Barcelona the calendar is usually empty. Our guide covers when slots are released and what to do when there are none.

Related

General information, not legal advice. References are to the Ley de Arrendamientos Urbanos (LAU, Ley 29/1994) and the Ley 12/2023 for the right to housing, as in force in 2026.