Your NIE Number in Spain — What Student Visa Holders Actually Need to Know
If you hold a Spain student visa, you already have a NIE. It is on your visa sticker. What you need is the TIE card to make it usable. Here is the complete explanation — NIE vs NIF vs TIE, where to find it, and when to quote it.
You Already Have a NIE — Here's Where to Find It
The single most important thing to understand about NIE numbers and student visas: if you have been granted a Spanish student visa, your NIE (Número de Identidad de Extranjero) has already been assigned to you. You do not need to apply for it separately after arriving in Spain. You just need to know where to look.
Where to find your NIE right now
Open your passport to the page with your Spanish student visa sticker. Look for an alphanumeric code beginning with a letter — typically X, Y, or Z — followed by seven digits and another letter (example: Y1234567A). That is your NIE number. It may be labelled explicitly as "NIE" or may appear as part of the visa sticker's data fields. Note it down and store it securely — you will need to quote it frequently.
What you still need to do after arriving in Spain is apply for your TIE card — the physical biometric card that has your NIE printed on it. The TIE card is not where the NIE lives; the NIE exists in the system regardless of the card. But having the TIE card makes quoting your NIE simple and gives you an official residence document to carry. See the TIE card guide for the full application process.
NIE vs NIF vs TIE — Explained Clearly
These three terms confuse almost every international student arriving in Spain. They are related but fundamentally different. Here is the clearest possible explanation.
NIE
Your unique personal identification number as a foreigner in Spain. It is assigned to you once and does not change — not when you renew your visa, not if you change address, not ever. Format: one letter (X, Y, or Z) + seven digits + one check letter. Example: Y1234567A. The NIE exists as a number in the Spanish administrative database. It is not a physical document — it is the number itself.
NIF
Your tax identification number for Spanish fiscal purposes. For Spanish nationals, the NIF is their DNI number. For foreign nationals who are tax residents in Spain, the NIF is their NIE. So if you work in Spain, file a tax return, or conduct any transaction requiring a Spanish tax ID, you use your NIE as your NIF — they are the same number. The distinction is primarily conceptual: NIE = immigration identity; NIF = tax identity. In practice, if you are a foreign resident, they are identical.
TIE
The physical biometric card that proves your legal residence in Spain. It displays your NIE, your name, nationality, photograph, fingerprints, and visa category. The TIE is not where your NIE comes from — the NIE was assigned when your visa was processed. The TIE is simply the physical card that makes your NIE easily portable and your residence status immediately verifiable. You apply for the TIE within 30 days of arriving in Spain, at the Extranjería office.
Common misconception: "I need to get a NIE"
Many students arrive in Spain believing they need to "apply for a NIE" as a separate step. This causes confusion because the NIE is already assigned on the visa. What they actually need is the TIE card. The only people who need to apply for a NIE number as a standalone process are non-residents who need it for a specific transaction in Spain (e.g., purchasing property, signing a contract) but who are not applying for residency. Student visa holders have their NIE from the moment their visa is issued.
When You Need to Quote Your NIE Number in Spain
Your NIE will be required in a surprisingly wide range of everyday situations. Here is a reference list of the most common occasions where you will be asked to provide it.
| Situation | NIE required? | Notes |
|---|---|---|
| Opening a Spanish bank account | Yes — essential | Banks are legally required to record your NIE; you can use the NIE from your visa sticker before your TIE is issued |
| Registering at university | Usually yes | Most Spanish universities require your NIE for formal enrolment; your passport with visa sticker is usually acceptable until TIE is issued |
| Signing a rental contract | Yes — standard practice | Landlords and estate agents typically request NIE as part of the tenancy agreement |
| Setting up a mobile phone contract | Yes | Postpaid contracts require NIE; prepaid SIMs typically only require passport |
| Filing a Spanish tax return (declaración de la renta) | Yes | Used as your NIF for all AEAT (tax authority) dealings; only relevant if you work in Spain or have Spanish-source income |
| Receiving a salary from Spanish employment | Yes | Your employer registers you with the Seguridad Social using your NIE; payslips will reference it |
| Purchasing a vehicle | Yes | Required for DGT (traffic authority) registration |
| Applying for social security (if working) | Yes | Your NIE is the anchor reference for your Seguridad Social account |
| Health insurance claims | Sometimes | Your private insurer may reference your NIE; Spanish public health dealings always require it |
| Empadronamiento registration | Yes | The ayuntamiento records your NIE as part of the municipal register entry |
What If You Can't Find Your NIE?
In rare cases, students cannot immediately locate their NIE on their visa sticker, or the number is unclear due to print quality. Here is what to do.
Check every field on your visa sticker carefully
Spanish visa stickers contain several data fields, and the NIE may not be prominently labelled. Look for a code starting with X, Y, or Z followed by seven digits and a letter. It may appear near the bottom of the sticker alongside other reference numbers. The format is always one letter + 7 digits + one letter (e.g., X7654321B).
Check the visa resolution document
When your visa was approved, you (or your lawyer) received a resolution document from the consulate confirming the approval. Your NIE is typically referenced in this document. If we handled your application, check your case file documentation — your NIE will be there.
Contact the Extranjería or National Police
If you genuinely cannot locate your NIE, you can contact the Oficina de Extranjería or the National Police (Policía Nacional) in Spain with your passport and they can look up your NIE on the immigration database. You may need to request this in person. Alternatively, your educational institution's international office may be able to assist by looking it up in the university's registration system if you have already enrolled.
The TIE card will resolve this permanently
Once your TIE card is issued, your NIE is printed clearly on the card and any uncertainty is resolved. Your immediate priority remains the same: complete your empadronamiento, book your TIE Cita Previa, and attend your TIE appointment within 30 days of arrival.
NIE Number: Common Questions
Questions About Your Status in Spain?
Our immigration lawyers can answer questions about your NIE, TIE card, or any other aspect of your legal status in Spain — before and after you arrive.
Speak to a Lawyer