What Is It Requirements Pricing Process FAQ Guides Contact
Start Application → Email Us Contact Us

Other Visa Types

Non-Lucrative Visa (NLV) Student Visa
After Arrival

Social Security Number in Spain for Students: How to Get It

If you plan to work part-time in Spain on your student visa, you will need a Social Security number. Here is how to get one and what to expect.

Spain's Social Security system (Sistema de Seguridad Social) is the national system that funds pensions, unemployment benefits, healthcare, and other welfare services. Every person who works in Spain — including part-time workers — must be registered with Social Security and have a Número de la Seguridad Social (NSS). As an international student with the right to work up to 30 hours per week on the estancia por estudios visa, you will need your NSS before starting any paid employment in Spain. This guide explains what the NSS is, how to get it, and how it connects to your employer registration and healthcare access.

What is the NSS and When Do You Need It?

The Número de la Seguridad Social (NSS) is your unique identifier in Spain's Social Security system. It is required whenever you enter into any form of paid employment in Spain — as an employed worker (trabajador por cuenta ajena) or as a self-employed person (autónomo).

For student visa holders, the NSS becomes relevant when:

  • You accept a part-time job in Spain (any sector — hospitality, retail, teaching, administration)
  • Your employer needs to register you on the Social Security (alta en la Seguridad Social) before you start work
  • You need to access Social Security-funded healthcare or benefits

You do not need the NSS until you actually start working. If you are studying and not working, you do not need to register with Social Security during your study period.

How to Get Your Spanish NSS

The NSS application process is straightforward for student visa holders who are about to start employment:

  1. Visit the nearest TGSS (Tesorería General de la Seguridad Social) office — these are different from extranjería offices and are specifically for Social Security administration. Find your nearest office at seg-social.gob.es
  2. Alternatively, in many cases your employer can initiate the NSS registration (alta) on your behalf as part of the employment registration process — ask your employer whether they handle this
  3. Documents needed: valid passport, TIE card (with NIE), empadronamiento certificate, and your employment contract or offer letter
  4. Complete form TA.1 (solicitud de número de afiliación) if applying in person
  5. Your NSS is typically issued within 1–5 working days

The NSS is permanent — like the NIE, once assigned it stays with you for all subsequent employment in Spain.

Employer Registration: Your Employer's Role

When you start paid employment in Spain, your employer has legal obligations regarding Social Security that directly involve you:

Alta en la Seguridad Social

Before your first day of work, your employer must register you with Social Security (alta previa al inicio de la actividad). This registration links your NSS to the specific employment contract and establishes your coverage period.

Cotizaciones Sociales (Social Security Contributions)

Your employer pays Social Security contributions on your behalf (cotizaciones empresariales) and deducts your employee contribution (cotización obrera) from your salary. These contributions fund your future pension entitlement, unemployment insurance (if applicable), healthcare access, and other benefits. Even as a part-time student worker, you accrue Social Security contribution history that counts toward future benefit calculations.

Nómina (Payslip)

Your monthly nómina (payslip) should show your gross salary, Social Security deductions (cotización a la Seguridad Social), IRPF (income tax withholding), and net payment. Check that your NSS appears correctly on each payslip — errors in Social Security registration are unfortunately common and can affect future benefits if not corrected.

Social Security and Healthcare Access

When you are registered with Social Security as an active worker (activo), you gain access to the public health system via Social Security coverage (in addition to, not instead of, your empadronamiento-based access). As a Social Security contributor, you also accrue:

  • Incapacidad temporal (sick leave) benefits if you are unable to work due to illness or injury after a qualifying period
  • Future Spanish pension rights (minimal for short-stay students, but accrued)
  • Unemployment benefit rights (desempleo) if you are made redundant after meeting qualifying contribution periods — typically 12 months of contributions minimum
As a student working part-time, you are unlikely to work enough months continuously to qualify for unemployment benefit at the end of your studies. However, if you work consistently and accumulate contribution months over multiple years of study and/or employment in Spain, these months count toward future benefit eligibility — even if you leave Spain and return later.

Self-Employment (Autónomo) Registration for Students

Some students earn income through freelance or self-employed work — teaching English, graphic design, photography, translation, content creation. If this work is regular and income-generating, you may need to register as autónomo with Social Security.

Autónomo registration comes with fixed monthly Social Security contributions (currently approximately €230–€500/month on the new quota system, based on your declared income). For students earning modest freelance income, the autónomo system can be financially burdensome.

The general rule: occasional, non-regular freelance income below the minimum wage may not require autónomo registration. Consistent, recurring freelance work should be registered. For specific guidance on your situation, consult a gestor (Spanish administrative consultant) — many offer affordable initial consultations.

Frequently Asked Questions

No — if you are studying and not working, you do not need to register with Social Security during your student stay. The NSS is required only when you enter paid employment. You can study for your full degree in Spain and leave without ever registering with Social Security if you do not work.
Yes — in most cases, your employer will initiate the alta en la Seguridad Social on your behalf as part of the employment onboarding process. They need your NIE/TIE and passport details to do this. However, you still need to have your own NSS number — some employers ask you to obtain it beforehand, while others can request it as part of the registration process.
Employee Social Security contributions in Spain are approximately 6.35% of your gross salary (the 2024 rate includes contingencias comunes, desempleo, and formación profesional contributions). On a part-time salary of €600/month, this is approximately €38/month in employee contributions. Your employer pays additional employer contributions (approximately 30% of your salary) on top of this.
You need to have contributed to Social Security for at least 12 consecutive months before claiming desempleo (unemployment benefit). Short-term student workers typically do not accumulate sufficient contributions. However, if you work consistently throughout a multi-year degree, you may accumulate qualifying contribution months. At the end of your studies, if you are made redundant from a legitimate registered job (not if you simply stop studying), you may be eligible if you have the qualifying months.
IRPF (Impuesto sobre la Renta de las Personas Físicas) is Spain's income tax, withheld from your salary at source (retención IRPF). The rate depends on your annual income — at low part-time incomes (under €12,000/year), the withholding rate is 0–5%. If too much is withheld during the year, you reclaim it through the annual tax declaration (declaración de la renta), which is submitted April–June for the previous tax year.
If your Spanish employment income exceeds €22,000/year from a single employer (or €12,000 from multiple employers), you are required to file a Spanish tax return (declaración de la renta) for that tax year. Most part-time student workers earning under €12,000/year are not required to file, but may choose to do so to reclaim any excess IRPF withholding. Consult a gestor for your specific situation.
No — they are different numbers for different systems. The NIE (Número de Identidad de Extranjero) is your foreign resident identification number, used for all civil and administrative purposes in Spain. The NSS (Número de la Seguridad Social) is your Social Security affiliation number, used specifically for employment and Social Security purposes. Both are permanent once assigned.
The número de afiliación a la Seguridad Social is your unique Social Security reference number in Spain. It is required before starting any paid employment, is used for payroll and tax purposes, and links you to the Spanish Social Security system for healthcare and future benefits. It is not the same as your NIE number.
Visit your local TGSS (Tesorería General de la Seguridad Social) office with your passport, TIE card, and NIE. If your employer requests the number, they can also apply on your behalf. The number is usually issued immediately at the TGSS office and printed on a document called the tarjeta de afiliación.
Not necessarily — if you are purely studying and not working, you will not need a Social Security number during your student visa period. However, if your visa permits part-time work and you intend to work, you must obtain it before your first day of employment.
No. The NIE (Número de Identidad de Extranjero) is your general foreigner identification number used for taxes, contracts, and official transactions. The número de afiliación is specific to the Social Security system and is used exclusively for employment and contributions. You will likely have both if you work.
Bring your original passport, TIE card (or green certificate of registration if an EU citizen), NIE, and a completed TA.1 form (available at the TGSS office or online). If an employer is registering you, they will handle much of the paperwork on your behalf. No appointment is always required — check your local office's process.

Need expert help with your Spain student visa? Our immigration specialists at My Spanish Student Visa handle your full application end to end. See our pricing or start your application today.

Ready to get started?

Take our free eligibility quiz, book a free call, or dive straight in. Our qualified immigration specialists handle your full application end to end — €300 to begin, €499 only on approval.

Free Eligibility Quiz → Book a Free Call

Already have an account? Log in to your dashboard 24/7 →

Start Application →Contact Us