As an employee in Spain, you and your employer both pay social-security contributions based on your salary (within minimum and maximum bases) — the employer pays the larger share, and a smaller percentage is deducted from your gross pay (shown on your payslip). These contributions fund public healthcare, your state pension, unemployment benefit, sick pay, and birth/family-leave benefits. Your employer must affiliate you and register you in the general regime; you receive a social-security number (número de la Seguridad Social). For expats: if you're posted to Spain temporarily by a foreign employer, an A1 certificate (within the EU) or a totalisation-agreement equivalent can keep you in your home system instead. And contributions made in the EU or a treaty country can be totalised (added together) when qualifying for benefits like a pension. We help expat employees understand and coordinate their social-security position in English.
What Social Security Is
The Seguridad Social is Spain's contributory social-insurance system — the safety net that provides healthcare, pensions and a range of benefits to those who contribute (and their dependants). Employees are enrolled in the general regime (Régimen General); the self-employed have their own regime (the RETA, covered in our autónomo guide). Contributing isn't optional for employees — your employer is legally required to register you and pay contributions from your first day of work, and doing so is what unlocks your entitlements.
For most expats the key realisation is that social security is the gateway to public healthcare and to building a Spanish pension, and that it's earned through contributions rather than residence alone. When you start a Spanish job, you enter this system, begin accumulating contribution time, and gain access to the public health service and the contributory benefits. Understanding it matters both for everyday life (healthcare cover) and for the longer term (pension rights), and it has important cross-border dimensions for anyone who has worked, or will work, in more than one country — which is most internationally mobile expats. The sections below cover what you pay, what you get, and how the system handles movement between countries.
Who Pays What
Social-security contributions are shared between employer and employee, but unevenly — the employer pays much more:
- The employer pays the larger share — a substantial percentage of your contribution base, on top of your salary. This is a real cost of employing you (and is one reason false self-employment, which avoids it, is attractive to bad employers — see our falso autónomo guide).
- You pay a smaller share — a percentage deducted from your gross salary, shown as a deduction on your payslip (nómina), alongside the income-tax (IRPF) withholding.
- Contributions are based on your "contribution base" (base de cotización) — broadly your salary, but subject to a minimum and a maximum base, so very high earners contribute only up to the ceiling.
The practical effect for you is that your net pay is lower than your gross partly because of your social-security deduction (plus the IRPF withholding). It's worth reading your nómina to see these clearly. The much larger employer contribution doesn't come out of your pay, but it's part of the total cost of your employment and explains why your "cost to the company" is well above your gross salary. For expats comparing a Spanish offer with home-country pay, understanding the gross-to-net effect of the employee contribution (and the IRPF) is important to avoid misjudging your take-home — a theme we also cover in the employment contracts guide.
What It Funds
Your contributions buy into a broad package of protection. The main things social security funds for employees:
| Benefit | What it provides |
|---|---|
| Public healthcare | Access to the Spanish public health system (sanidad pública) for you and your dependants. |
| State pension | A contributory retirement pension, based on your contribution history. |
| Unemployment benefit (paro) | Income support if you lose your job involuntarily, based on contributions. |
| Sick pay (baja) | Benefit during temporary incapacity from illness or injury. |
| Birth & family leave | The benefit paid during maternity/paternity leave and related leave. |
| Disability & survivor benefits | Permanent incapacity pensions and benefits for surviving dependants. |
This is a comprehensive system, and many of the entitlements people value most — public healthcare and a future pension above all — flow directly from being a contributing employee. Importantly, eligibility for several benefits depends not just on being in the system but on having sufficient contributions (a qualifying period), which is why your contribution history matters and why the cross-border totalisation rules (below) can be decisive for newcomers. For expats, the access to public healthcare through employment is often a major practical benefit, and the gradual building of pension rights is the long-term one — both of which make understanding and properly maintaining your contribution record worthwhile.
Affiliation & Your Number
To work legally and be covered, you must be brought into the system. The mechanics:
Social-security number
You need a número de afiliación a la Seguridad Social (NUSS) — your unique social-security number. If you don't already have one, it's obtained before starting work.
Employer registers you (alta)
Your employer must register you (dar de alta) in the general regime before or on your first day — this is a legal obligation, not optional.
Contributions begin
From the alta, contributions are paid monthly, and you start accumulating contribution time and entitlements (including healthcare).
On leaving (baja)
When the job ends, the employer registers your baja; your contribution record is preserved and counts toward future entitlements.
A key protection: your employer's failure to register you (alta) and contribute is a serious breach. Working "off the books" without alta deprives you of cover and contribution time, and is unlawful — if an employer hasn't registered you, that's a problem worth raising (the Labour Inspectorate enforces it). Your social-security number, by contrast, is yours for life and follows you between jobs. For expats, getting the NUSS sorted is one of the early administrative steps of starting work in Spain (our social-security number guide covers obtaining it), and confirming your employer has correctly registered you ensures you're actually covered from day one rather than discovering a gap later.
Posted Workers & the A1
A crucial cross-border rule applies if you're posted (sent) to work in Spain temporarily by an employer based abroad, rather than hired locally. The general principle in the EU/EEA (and under social-security treaties with various countries) is that you pay social security in one country at a time, and a posted worker can often remain in their home country's system for the duration of a temporary posting, rather than switching into the Spanish system. Within the EU/EEA, this is evidenced by an A1 certificate issued by the home country's authorities, confirming you continue to contribute there and are exempt from Spanish contributions for the posting.
This matters a great deal for internationally mobile employees and their employers. With a valid A1 (or the equivalent under a bilateral treaty), a posted worker avoids double contributions and keeps building their home-country record uninterrupted, while still being lawfully present and working in Spain. Without it, the default is that work in Spain attracts Spanish contributions. The rules on what counts as a genuine posting, the maximum duration, and the documentation are specific, and getting them right protects both the worker and the employer — a posting that should have an A1 but doesn't can lead to demands for Spanish contributions. If you're being sent to Spain on assignment, or you're an employer posting staff here, the A1 / treaty position is one of the first things to sort out, and is exactly the kind of cross-border coordination we advise on.
Posted to Spain? Sort the A1 first
If a foreign employer posts you to Spain temporarily, an A1 certificate (within the EU/EEA) or a treaty equivalent can keep you in your home social-security system, avoiding double contributions and preserving your home record. Without it, Spanish contributions are the default. It's one of the first things to get right on an international assignment.
Totalising Contributions
Another vital cross-border mechanism is totalisation (aggregation) — the principle that contributions you've made in one country can be added together with those in another when working out whether you qualify for a benefit. Within the EU/EEA (and under bilateral social-security agreements with countries such as the US and others), your contribution periods abroad can be counted toward the qualifying period for Spanish benefits — and vice versa — so you're not penalised for having split your career across borders.
The classic and most important example is the state pension: when you reach retirement, the years you contributed in the UK, the US, or another EU/treaty country can be totalised with your Spanish years to meet the minimum qualifying period, and each country generally pays a pension reflecting the contributions made there. The same aggregation principle can help with other benefits that need a qualifying contribution period — relevant for a recently arrived expat who hasn't yet built up much Spanish contribution time. The detail (which countries, which benefits, how the calculation works) depends on the applicable EU rules or bilateral treaty, but the headline reassurance is that your past contributions abroad generally aren't wasted — they can be brought into account. For internationally mobile expats, understanding totalisation is key to seeing the true value of a career spread across countries, and to planning pension and benefit entitlements properly.
Common Issues for Expats
The social-security questions that come up most for expat employees:
- "Am I actually registered?" Confirming your employer has done your alta from day one — working without it leaves you uncovered and is the employer's breach.
- "Do I keep my home-country cover?" The posted-worker A1 / treaty question for those sent to Spain temporarily.
- "Will my past contributions count?" Totalisation of EU/treaty contributions toward Spanish benefits, especially the pension.
- "What about my healthcare?" Access to public healthcare through employment, and how it interacts with any private cover or visa health-insurance requirements.
- "How does it affect my net pay?" The employee contribution deduction (with IRPF) reducing take-home.
- "What if I'm a falso autónomo?" Being wrongly made to pay self-employed contributions when you should be an employee — see our false self-employment guide.
Most of these are answerable with the right information about your situation and, where cross-border, the applicable rules or treaty. The recurring theme is that social security has a cross-border layer that's easy to get wrong and valuable to get right — whether that's avoiding double contributions on a posting, ensuring your foreign years count toward your pension, or simply confirming you're properly registered and covered. For expats, a bit of upfront clarity prevents both immediate problems (gaps in cover) and long-term ones (lost pension entitlement).
How We Help
We help expat employees understand and coordinate their Spanish social-security position. We confirm you're properly registered (alta) and covered from day one, explain what your contributions fund and entitle you to (healthcare, pension, benefits), and untangle the cross-border issues that matter most — the posted-worker A1 or treaty position if you're sent to Spain, and the totalisation of your foreign contributions toward Spanish benefits and pension. We also act where an employer has failed to register or contribute for you, and where a false-self-employment set-up has wrongly pushed contributions onto you. It connects with our employment and tax guidance, in plain English on a clear quote. Book a consultation.
Related Guides
Frequently Asked Questions
Contributions are shared but uneven: the employer pays much the larger share (a substantial percentage of your contribution base, on top of your salary), while a smaller percentage is deducted from your gross pay, shown on your payslip alongside the IRPF withholding. Contributions are based on your contribution base (broadly your salary), subject to a minimum and maximum, so very high earners contribute only up to the ceiling. The employee deduction reduces your net pay.
It funds public healthcare for you and your dependants, the contributory state pension, unemployment benefit (paro), sick pay during temporary incapacity, the benefit paid during maternity/paternity and family leave, and disability and survivor benefits. Eligibility for several of these depends not just on being in the system but on having sufficient contributions (a qualifying period), which is why your contribution history — and the cross-border totalisation rules — matter.
Yes — your employer must register you (dar de alta) in the general regime before or on your first day, and pay contributions monthly. It's a legal obligation, not optional. Working without alta ("off the books") leaves you uncovered, deprives you of contribution time, and is the employer's breach, enforced by the Labour Inspectorate. If you suspect you haven't been properly registered, it's worth confirming and raising, because it affects your cover from day one.
Often not, if it's a genuine temporary posting. The general rule is you pay social security in one country at a time, and a posted worker can usually remain in their home system for the posting. Within the EU/EEA this is evidenced by an A1 certificate from the home authorities (or a treaty equivalent for some countries), which exempts you from Spanish contributions and avoids double payment. Without it, Spanish contributions are the default, so sorting the A1 early is important.
Generally yes, through totalisation. Within the EU/EEA and under bilateral social-security agreements (with countries such as the US and others), contribution periods made abroad can be added to your Spanish periods when working out whether you qualify for a benefit — most importantly the state pension, where your foreign years can be totalised with your Spanish years to meet the qualifying period, with each country paying a pension for its part. So past contributions abroad generally aren't wasted.
Yes — being a contributing employee gives you (and your dependants) access to the Spanish public health system. This is one of the main practical benefits of being in the social-security system. How it interacts with any private health insurance you hold, or with health-insurance requirements attached to certain visas, depends on your situation, so it's worth clarifying — but employment-based contribution is a standard route to public healthcare cover.
Your employee social-security contribution is deducted from your gross salary, shown on your payslip (nómina) alongside the income-tax (IRPF) withholding — so your net pay is lower than your gross partly because of it. The much larger employer contribution doesn't come from your pay but adds to the total cost of employing you. For expats comparing a Spanish offer with home-country pay, factoring in both the employee contribution and IRPF is important to judge your real take-home.
That may be false self-employment (falso autónomo). If you work like an employee but have been engaged as an autónomo paying your own self-employed contributions, the arrangement can be challenged, and reclassification as an employee means the employer should have been paying the employer contributions and providing employee cover. This is a common issue for expats engaged as contractors — see our dedicated false-self-employment guide, as a successful reclassification corrects both your status and the contribution position.