Spain runs on ID numbers. Before you can open a bank account, sign a lease, start a job or file taxes, someone will ask for one of them. They aren't interchangeable.
Having a number is not the same as having residency. An NIE or NIF identifies you to the tax office and the police; it does not, by itself, give you the right to live in Spain.
This is your identity number in Spain as a foreigner, and it is the one you will use most. You need it to file taxes, register a business, buy property, sign most contracts, and, in practice, for almost any official form. Both EU and non-EU citizens get an NIE.
The NIE is a number, not a residence permit and not a card. You can hold an NIE and still have no right to live in Spain; it simply identifies you. Non-residents who owe Spanish tax (for example, on a Spanish property) can be issued one without ever becoming residents.
How to apply. The application is the EX-15 form (Solicitud de Número de Identidad de Extranjero y Certificados. "This is not an application form" instruction sheets sometimes confuse people; the EX-15 itself is the request). You fill it in capital letters, pay the government fee on Tasa Modelo 790 Código 012 (a small fee, currently in the single-digit euros; the official form calculates the exact amount), and submit it with your passport. You can apply:
Get the current EX-15 from the Ministry / Policía official pages rather than a stale third-party PDF, and pull the fee from the official Tasa 790-012 rather than a number copied off a forum. Both change over time. (Older editions of this page pointed readers to the EX-16 form; that is not the NIE request form. It is EX-15.)
Also worth a read: The Cheat's older, anecdotal account of getting an NIE, Live and Let NIE, dated in its details but honest about the mood of the queue.
The TIE is the physical residence card carried by non-EU nationals who have obtained legal residency. It is credit-card sized and biometric (a real improvement on the old paper certificates), and it shows your name, your photo, your NIE, and your fingerprints. You will need it for things like opening a Spanish bank account or taking out a Spanish mobile contract.
Yes, there are fingerprints. An old comment thread on this page (from 2009) claimed fingerprinting had been dropped. That is not the case for today's TIE: getting the card involves a toma de huellas (fingerprinting) appointment, because the TIE is a biometric card. Booking that appointment through Spain's central system is its own ordeal. We cover it in detail in our guide to getting a cita previa and your TIE. The TIE application form is the EX-17, separate from the EX-15 you used for the NIE.
EU, EEA and Swiss citizens don't get a TIE. Instead you register as a resident and receive a green paper Certificado de Registro de Ciudadano de la Unión (often called the "green certificate" or CUE) carrying your NIE. It is not a photo-ID card. You carry it alongside your national ID or passport. algrif's first-hand account further down describes getting an early version of exactly this certificate.
More: How to get your TIE, step by step, with translated documents and as little pain as possible
This is the ID number (and card) for Spanish citizens. The same number doubles as the licence number on a Spanish driving licence. As a foreigner you will not have a DNI; your NIE is the equivalent identifier.
The tax ID number for individuals. For Spaniards it is the DNI plus a check letter. For foreigners, your NIF is simply your NIE. Once you have an NIE you do not apply separately for an NIF; you use the NIE number whenever a tax form asks for a NIF. A non-resident who has to pay Spanish tax can be issued a NIF without holding an NIE, but, as with the NIE, that does not grant or ease residency.
The CIF (Código de Identificación Fiscal) used to be the tax identification code for Spanish companies.
The CIF was abolished in 2008 and merged into the NIF. Legally, companies and other legal entities now have a NIF, not a CIF. You will still hear and see "CIF" everywhere in day-to-day business, on invoices, and in casual speech, so the word isn't going away. But if a form or an official asks for a company's tax number, the current term is NIF (for a legal entity). For cross-border EU trade there is also the NIF-IVA (the Spanish VAT number registered in the VIES system), which is a related but distinct thing.
This is your number in Spain's Seguridad Social system. You need it to be legally employed and to access public healthcare and pension rights. Once issued, it stays with you across every job.
You can request it yourself. It used to be that your employer applied for this number when you started your first job. That still happens, but you can now also request your own Social Security number (NUSS) directly, in person at a Tesorería General de la Seguridad Social (TGSS) office, or online through the Seguridad Social's Import@ss portal (the request is form TA.1). If you are self-employed (autónomo), you register yourself in any case. Having your NUSS ready in advance smooths out a new job or an autónomo registration.
Editor's note on the account below. What follows is a genuine first-person story from our contributor algrif, written years ago, about getting the old EU residency certificate. We have kept it because it captures the reality of Spanish administrative queues better than any checklist: the 6am arrival, the improvised list, the indocumentado rule. Read it as a period piece: the fees, the exact forms, and the "no renewals" details reflect the process at the time, not today's. For the current non-EU card, see the TIE and cita previa sections above.
Expatriator
by algrif It is true that the new certificate is now being issued to replace the old Residencia, at the insistence of Brussels. It is to be carried with the national ID or passport of your country of origin. It will show your name and the NIE that you were issued with. I suppose this last bit, as I still have not got my copy yet. So far, I have been to Extranjería in Alicante where, after waiting over 2 hours for my turn, I was pleasantly informed that I did not need to go there at all now. (Question: Why didn't the guy at the info desk at the entrance tell me there and then, or at least give me a photocopy info sheet or something?) They explained that I was to go to any Comisería of the National Police. So, I went off to Elche, thinking that Alicante would probably be full to overflowing, and anyway I live nearer to Elche. There, I was given two forms to fill out at my leisure at home. Both were simple. One was to make the payment of 6.70€ at any bank, Caja de Ahorros, etc. The other was to fill with my name, address, issued NIE and passport numbers. Today, I went to the Comisería at 9.00am only to be told that the numbers normally run out before 8.00. "Please would I return on Monday at an earlier time." So it seems that the horrendous queues which have been the subject of numerous denouncements at Brussels have simply been transferred to the Comiserías. I will let you know how I get on. Meanwhile, I think we can feel safe in the knowledge that, carrying an old Residencia plus passport is OK as it is legal enough for the moment. I have always maintained this position, refusing to renew my Residencia as it had been denounced as illegal under European Law. This point has been bourne out as I have done all the following things with an out of date residencia plus passport: Got married, got a job, opened a bank account, got a mortgage, bought a house, bought and sold more than one car, hired a car, and more things besides. All along the line people have admonished me because "You really should get the residencia up to date you know" in both Spanish and English. But everyone knew, that in reality, they could not insist as European Law was on my side.
Well, I arrived at the Comisería at just before 6.00 am and hunted through the crowd already there to find someone who was keeping track of arrival order in note pad. At about 7.45 a policeman came out and took the list and started to put us in an orderly queue. I'm sure you can imagine how easy that was. ha ha. Finally, after a lot of cajoling, shouting, joking, and storming off in a temper, we were in a queue more or less corresponding to the list. At 8.00 another policeman came out and started to hand out numbers to the 3 queues. First to the renew DNI queue, then to the Passport queue, and finally whatever was left to our queue. I was number 59. After giving number 60 to the person next behind me the Policeman shouted "That's it. Everyone else can come back tomorrow". He was adamant. The person behind me was in fact one half of a couple. So they had to come back also as the policeman refused to give out number 61. At about 1.30, my turn came. It took about 2 minutes. The nice lady behind the desk took my two forms and my passport. She didn't ask for any photocopies (even though, as a result of hard earned experience, I was carrying two photocopies of everything I could think of!) And she printed and stamped a form that says, (in Spanish, of course) :
CERTIFICADO DE REGISTRO DE CIUDADANO DE LA UNIÓN Note: This document is not valid to confirm the identity nor the nationality of the holder The Chief Registrar of the Central Registry of Foreigners in the Comisería of (the town where you are) Certifies: That according to (the relevant Spanish law) the below named person has requested and received his inscription in the official registry of the Guardia Civil as a community resident living in Spain on a permanent basis since (first date of your NIE)
There then follows your personal details: name, address, nationality and your NIE. You keep a copy of this with your passport or other national ID, and keep the original in a safe place at home. And that's IT!! No renewals (except for your own national ID). Don't forget that in Spain it is illegal to be out and about indocumentado This means that, just as the Spanish always carry their DNI, you must carry your national ID plus copy of this certificate. You can be fined on the spot for being indocumentado.
If you are working through Spanish paperwork, these connect to this guide:
These numbers arrive in a specific order (NIE first, then residency and the TIE or green certificate, then your NUSS when you start work), and each one has its own form, fee, and appointment. It is easy to lose track of which you have, which is pending, and when a card expires. SpainExpat's member desk keeps NIE/TIE renewals and deadlines tracked for you (founding waitlist open).
SpainExpat Plus Ultra
SpainExpat's household membership pays the gestores and immigration lawyers who prepare and file your applications, and the Compliance Minder tracks the renewals that follow. Its visa work is for the digital nomad and non-lucrative routes.
Ask for an invitation You'll see your price and terms before you pay anything.Visit the old SpainExpat forum for community discussions.