Spain Social Security Number for Foreigners: How to Get One
Guide to obtaining your Spanish social security number (número de afiliación). Required for employment, healthcare, and benefits.
Your social security number (número de afiliación) is your official employment and healthcare identifier in Spain. Without it, you cannot legally work, access healthcare beyond emergencies, or pay into the Spanish pension system. The process is simple—usually just a form and a quick appointment—but many foreigners miss critical steps. Here's exactly what you need to do.
What Is Spain's Social Security System?
Spain's social security (Seguridad Social) covers healthcare, unemployment benefits, disability benefits, and pensions. When you work, your employer automatically enrolls you. When you're self-employed, you enroll yourself. You pay contributions through payroll deductions (employees) or quarterly payments (self-employed). Your social security number links all of this.
Who Needs a Social Security Number
Anyone working in Spain—employee or self-employed—needs one. EU/EEA citizens working in Spain must register. Non-EU citizens on work visas must register. Even if you're on a non-lucrative visa but want to work occasionally, you need social security registration. Students working part-time need it. Self-employed foreigners must register before accepting any clients.
Documents You'll Need
Bring your passport (original and photocopy). Bring your NIE or NIE application reference. Bring completed Form TA.0521 (the social security affiliation form, available at any social security office). Bring your employment contract or proof of self-employment. For employees, your employer often handles this, but you should verify. For self-employed, bring your business registration or fiscal identification.
Where to Register
Visit your local Tesorería de la Seguridad Social (Social Security Office). Find it by searching 'Tesorería Seguridad Social [city]' online. These offices are usually in city centers. You can also register through your employer's HR department (they'll handle it). For self-employed, you register directly at the social security office.
The Registration Process
If employed: Your employer should initiate your registration. Verify that they've done so by contacting their HR. You'll receive a notice with your social security number. If self-employed: Visit the social security office with your documents. Complete Form TA.0521 with the officer's help. You'll receive your affiliation number immediately, usually same-day.
Timeline and Costs
For employees, registration happens within your first few weeks of employment. For self-employed, you're registered immediately upon application. Registration itself is free. As a self-employed worker, you'll pay mandatory monthly social security contributions (approximately EUR 300-500 monthly, depending on your income). Employees pay contributions through payroll (approximately 6.35% of gross salary).
What You Get With Social Security Registration
You're eligible for Spanish National Health Service (SNS) healthcare—fully covered. You're covered for work accidents and occupational illnesses. You can claim unemployment benefits if you lose your job. You're building toward your Spanish pension. You're legally authorized to work.
Self-Employed vs. Employee Registration Differences
Employees: Typically registered by employer. Contributions automatic via payroll. Minimal paperwork after registration. Self-employed: You register yourself. Contributions paid quarterly. More administrative responsibility. Monthly quotas are mandatory regardless of income.
After You Receive Your Social Security Number
You'll receive a document (afiliación a la Seguridad Social) with your number. Keep it safe—you'll need it for tax filings, healthcare, and banking. Register with your doctor at the local health center (Centro de Salud) to activate your healthcare access. Update your employer or clients with your social security number. If you're self-employed, begin making quarterly contribution payments.
Starting Work in Spain?
Proper registration ensures you're legally working and building your Spanish pension. Get expert guidance on self-employment setup.
Review Self-Employment Requirements
FAQ
Can I work in Spain without registering with social security?
No. Working without social security registration is illegal. You expose yourself to penalties and your employer to fines. Always register first.
What's the difference between NIE and social security number?
Your NIE is your tax and administrative ID number. Your social security number is your employment and healthcare ID. You need both if you're working.
As self-employed, what happens if I don't make income?
You must still pay monthly contributions. There's no income threshold—you pay regardless. This is a commitment of self-employment in Spain.
How do I access my social security information?
Visit the Seguridad Social website (seg-social.es) and create an online account. You can view your contributions, healthcare history, and pension projections.
Planning to Move to Spain?
Our specialists guide you through the right visa from start to finish — managed entirely online, in English.
