The NIE Number for
Spain Student Visa Holders
Spain's Número de Identidad de Extranjero — your permanent foreign ID number. What it is, when you get it as a student visa holder, and everything you'll need it for during your time in Spain.
What Is the NIE Number and What Does It Look Like?
The NIE (Número de Identidad de Extranjero) is Spain's unique national identification number for foreigners. Every non-EU national who lives, works, studies, or has significant financial or administrative dealings in Spain is assigned an NIE. Think of it like a national insurance number, tax reference number, and resident ID number combined into one.
The Format of a Spanish NIE Number
A Spanish NIE number always follows the same format: a letter prefix (X, Y, or Z), followed by 7 digits, followed by a single letter check digit. It is a permanent number — once assigned, it stays with you for life in Spain, regardless of visa changes or renewals.
- → Starts with X, Y, or Z (newer NIEs tend to start with Y or Z)
- → Followed by 7 numbers
- → Ends with a single letter (control digit)
- → It is permanent — does not change with visa renewal
- → Printed on your TIE card
When Does a Spain Student Visa Holder Get Their NIE?
This is the most common question — and the answer is simpler than most people expect.
✓ For Long-Stay Student Visa Holders (Tipo D)
If you have a Spain long-stay student visa (tipo D), your NIE is assigned automatically as part of the TIE card application process. You do not need to apply for an NIE separately. When you attend your TIE card appointment at the Oficina de Extranjería, the NIE is assigned and printed on your TIE card. It may also appear on your resguardo (receipt) at the appointment itself.
⚠ Exception: If You Need the NIE Before TIE
In some circumstances — for example, if you need to open a bank account or sign a contract before your TIE appointment — you can apply for a standalone NIE certificate (certificado de NIE) using form EX-15 at the Policía Nacional. This gives you your NIE number before the TIE card is issued. Discuss with our team if this applies to your situation.
Everything You Need Your NIE Number for in Spain
Your NIE will be requested constantly during your time in Spain. Here are the most common uses.
Opening a Bank Account
Spanish banks require your NIE or TIE card to open any bank account. Most students need a bank account quickly for accommodation deposits and daily expenses.
Healthcare Registration
Registering with a Spanish GP (médico de cabecera) or accessing public healthcare requires your NIE and empadronamiento certificate.
Rental Contracts
Most Spanish landlords and letting agencies require your NIE to formally register you as the tenant on a rental contract.
Working in Spain
If your student visa gives you the right to work part-time (up to 30 hours per week), employers need your NIE for payroll and social security contributions.
Phone & Utility Contracts
Signing a post-pay mobile contract or registering utilities in your name in Spain typically requires your NIE number.
Visa Renewal
When renewing your Spain student visa authorisation, your NIE is the key identifier linking your previous authorisation to your renewal application.
Tax Matters
If you earn income in Spain or need to file a Spanish tax return, your NIE is your tax identification number (equivalent to TIN in the UK or TIN/EIN in the USA).
Large Purchases
Purchasing a vehicle, significant electronics, or property in Spain requires your NIE. Notaries and registries use it for all formal transactions.
University Enrolment
Spanish universities and schools may record your NIE as part of your student record once you are resident — particularly important for official transcripts and certificates.