Spain’s social security system (Seguridad Social) provides healthcare, pensions, unemployment benefits, and other protections to workers and residents. Understanding how it works helps you know what you’re entitled to and what you’re paying for.
This guide explains the Spanish social security system and how it affects different types of residents.
How Spanish social security works
The system is funded through contributions from workers and employers. In return, it provides:
- Healthcare – Access to public hospitals and clinics
- Pensions – Retirement, disability, and survivor benefits
- Unemployment – Benefits when you lose your job
- Sick leave – Paid time off when ill
- Maternity/paternity – Paid leave for new parents
- Work accidents – Coverage for workplace injuries
Almost everyone working in Spain contributes to social security. The level of contribution affects future benefits, particularly pensions.
Getting a social security number
To work in Spain, you need a social security number (Número de Afiliación a la Seguridad Social). This is different from your NIE.
How to get it:
- Go to your local Social Security office (Tesorería General de la Seguridad Social)
- Bring your NIE/passport and work contract or registration as autónomo
- Complete form TA.1 (application for registration)
- Receive your number immediately or within a few days
Your employer usually handles this when you start employment. Self-employed workers must register themselves.
Once registered, your social security number stays the same for life, regardless of job changes.
Contribution rates
Contributions differ based on employment type:
Employed workers
| Contributor | Approximate rate |
|---|---|
| Employer | 29-30% of gross salary |
| Employee | 6.35-6.5% of gross salary |
| Total | ~36% |
The employer pays most contributions. Your payslip shows your portion deducted from gross salary.
Contributions are calculated on salary up to a maximum base (around €4,500/month). Earnings above this don’t incur additional contributions.
Self-employed (autónomos)
Autónomos pay their own contributions based on chosen income bracket:
| Monthly net income | 2024 contribution |
|---|---|
| Up to €670 | €230/month |
| €670 - €1,166 | €260-291/month |
| €1,166 - €1,700 | €294-375/month |
| €1,700 - €2,030 | €400-440/month |
| Over €2,030 | Up to €530/month |
New autónomos get an €80/month flat rate for the first year.
Healthcare through social security
Social security registration gives you access to Spain’s public healthcare system.
Getting your health card:
- Register with Social Security through work
- Register on the local padrón (town hall census)
- Apply for tarjeta sanitaria at your health center
- Choose a primary care doctor (médico de cabecera)
Once registered, you can use:
- Primary care centers (centros de salud)
- Public hospitals
- Specialist referrals
- Emergency services
- Prescriptions (with co-pay based on income)
Family members (spouse, dependent children) can be included as beneficiaries even if they don’t work.
Pension system
Spanish pensions are based on contributions made during your working life.
Retirement pension
Eligibility:
- Minimum 15 years of contributions
- At least 2 years in the 15 years before retirement
- Reached retirement age (gradually increasing to 67)
Calculation:
- Based on last 25 years of contributions
- 50% of base with 15 years, increasing to 100% with 36+ years
- Maximum pension around €3,100/month (2024)
Retirement age:
- 2024: 66 years and 6 months (or 65 with 37.5+ years contributed)
- Increasing gradually to 67 by 2027
Early retirement
Possible in some circumstances:
- Voluntary early: 2 years before normal age with 35+ years contributed (reduced pension)
- Involuntary early: 4 years before if made redundant with 33+ years contributed
- Hazardous work: Special rules for certain professions
Each year of early retirement reduces the pension by 6-8%.
Partial retirement
Work part-time while receiving partial pension, combined with a “relief contract” for a younger worker. Complex rules but allows gradual transition.
Unemployment benefits
If you lose your job involuntarily, you may qualify for unemployment benefits (prestación por desempleo):
Eligibility:
- Minimum 360 days contributed in last 6 years
- Lost job involuntarily (dismissal, contract end)
- Actively seeking work
- Available to work
Duration:
| Days contributed | Benefit duration |
|---|---|
| 360-539 | 4 months |
| 540-719 | 6 months |
| 720-899 | 8 months |
| 900-1,079 | 10 months |
| 1,080-1,259 | 12 months |
| 1,260-1,439 | 14 months |
| 1,440-1,619 | 16 months |
| 1,620-1,799 | 18 months |
| 1,800-2,159 | 20 months |
| 2,160+ | 24 months |
Amount:
- First 6 months: 70% of base salary (capped)
- After 6 months: 50% of base salary (capped)
- Minimum and maximum limits apply
You must sign on at the employment office (SEPE) and fulfill active job-seeking requirements.
Unemployment assistance (subsidio)
If you exhaust benefits or don’t qualify, you may receive:
- €480/month (2024) for up to 6-24 months
- Various programs for different situations
- Requires means testing and being available for work
Sick leave benefits
If illness prevents you from working:
Common illness:
- First 3 days: No payment (unless company policy provides it)
- Days 4-20: 60% of base salary (paid by employer)
- Day 21+: 75% of base salary (paid by Social Security)
- Maximum duration: 12 months, extendable to 18
Work-related illness or accident:
- From day 1: 75% of base salary
- Paid by mutual insurance company (mutua)
You need a medical certificate (parte de baja) from your doctor. Your doctor decides when you’re fit to return (parte de alta).
Maternity and paternity leave
Spain has generous parental leave:
Maternity leave:
- 16 weeks at 100% of base salary
- 6 weeks mandatory after birth
- Remaining 10 weeks flexible
- Can be shared with other parent
Paternity leave:
- 16 weeks at 100% of base salary (as of 2021)
- 6 weeks mandatory after birth
- Equal to maternity leave
Both require minimum contributions (180 days in last 7 years). Benefits paid by Social Security, not employer.
Additional unpaid leave (excedencia) is available to care for children or dependents.
Other benefits
Disability pension
If you cannot work due to disability:
- Permanent partial: Lump sum if 33%+ reduction in capacity for usual job
- Permanent total: 55% of base for inability to do usual job
- Absolute permanent: 100% of base for inability to do any job
- Severe disability: 150% if needing assistance for daily activities
Survivor benefits
If a contributor dies:
- Widow/widower pension: 52-70% of base
- Orphan pension: 20% per child
- Death grant: One-time payment for funeral costs
Totalization agreements
Spain has agreements with many countries to combine contribution periods:
EU/EEA countries: Contributions in any EU country count toward Spanish benefits and vice versa. You won’t lose rights when moving between countries.
US-Spain agreement: Contributions in either country can count toward eligibility (though benefits calculated separately).
Other countries: Agreements with many Latin American countries, Morocco, and others.
These agreements prevent gaps in coverage when you move internationally.
Checking your contributions
You can verify your contribution history online:
- Get a digital certificate or Cl@ve
- Access the Social Security website (seg-social.es)
- View “Vida laboral” (work life report)
- See all contributions and employers
This report shows gaps, contribution bases, and projected pension. Check it annually to ensure accuracy.
Common questions
Can I opt out of social security? No. If you work in Spain, contributions are mandatory. There’s no option to use a private system instead.
Do contributions from abroad count? With totalization agreements, yes. EU contributions count fully. Other countries depend on bilateral agreements.
What if I leave Spain? You keep accrued rights. If you return later or retire, you can claim benefits based on Spanish contributions.
Can I pay voluntarily? In some cases, yes. The “convenio especial” allows voluntary contributions to maintain coverage during gaps.
Summary
Spanish social security provides comprehensive coverage through mandatory contributions. Workers get healthcare, pension rights, unemployment protection, and sick leave benefits. Self-employed workers pay directly while employees split contributions with employers.
Register for social security when you start working, apply for your health card, and check your contribution record periodically. With sufficient contributions, you’ll build rights to a Spanish pension and other benefits.
For complex situations involving multiple countries or unusual circumstances, consult a specialized advisor to maximize your entitlements.
Written by
John Spencer
John Spencer is a writer, researcher, and digital entrepreneur who specializes in expat life, relocation strategy, and lifestyle design—particularly in Spain. His work focuses on turning overwhelming topics like visas, residency, healthcare, banking, and cost of living into straightforward, decision-ready insights.
Disclaimer: The information on this page is for general informational purposes only and does not constitute legal, tax, financial, or medical advice. Requirements and regulations change frequently. Always verify information with official Spanish government sources and consult qualified professionals for your specific situation.
Planning your move?
Get our free checklist with everything you need to do before and after arriving in Spain.
Get the checklist