Spanish Social Security for Expats: Complete Guide

Everything expats need to know about Spain's Seguridad Social: registration, contributions, benefits, RETA for self-employed, and Beckham Law deadlines.
Spain's Social Security system — the Seguridad Social — is one of the most comprehensive public welfare systems in Europe, covering everything from healthcare and pensions to unemployment, maternity, and disability benefits. For expats moving to Spain in 2026, understanding how the system works is not merely administrative housekeeping: your Social Security registration date triggers critical deadlines, including the six-month window to apply for the Beckham Law. Whether you are arriving on an employment contract, setting up as a freelancer, or relocating under a digital nomad visa or the startup law (Ley 28/2022), this guide covers what you need to know.
What Is the Seguridad Social?
The Seguridad Social is Spain's public social protection system, managed by the Tesorería General de la Seguridad Social (TGSS). It is funded through mandatory contributions from both employers and workers, and it provides coverage for healthcare, retirement pensions, unemployment benefits, maternity and paternity leave, temporary and permanent disability, and occupational accident insurance.
The system is governed primarily by the Real Decreto Legislativo 8/2015, de 30 de octubre, por el que se aprueba el texto refundido de la Ley General de la Seguridad Social (LGSS — the consolidated General Social Security Act). This is the single most important piece of legislation for anyone working in Spain.
Artículo 7 del Real Decreto Legislativo 8/2015 (LGSS): "Estarán comprendidos en el sistema de la Seguridad Social, a efectos de las prestaciones contributivas, cualquiera que sea su sexo, estado civil o profesión, los españoles que residan en España y los extranjeros que residan o se encuentren legalmente en España, siempre que, en ambos supuestos, ejerzan su actividad en territorio nacional."
Translation: "All persons shall be covered by the Social Security system for contributory benefits, regardless of their sex, marital status, or profession — both Spaniards residing in Spain and foreigners who reside or are legally present in Spain — provided that, in both cases, they carry out their activity on national territory."
The key takeaway: if you are legally in Spain and working, you are both entitled and obligated to participate in the system.
The Two Main Regimes: Régimen General vs. RETA
Spain's Social Security is organized into different regímenes (regimes) depending on your employment situation. As an expat, you will almost certainly fall into one of these two:
- Régimen General — for employees (trabajadores por cuenta ajena), including those on employment contracts with Spanish companies, intra-company transfers, and remote workers employed by foreign companies operating through a Spanish entity.
- RETA (Régimen Especial de Trabajadores Autónomos) — for self-employed workers (trabajadores por cuenta propia), including freelancers, sole proprietors, and company directors holding 25% or more of shares.
| Feature | Régimen General (Employees) | RETA (Self-Employed) |
|---|---|---|
| Who it covers | Salaried employees with a contract | Freelancers, autónomos, company directors (≥25% shares) |
| Who pays contributions | Split: employer (≈30.6%) + employee (≈6.5%) | Worker pays 100% (≈31.4% of chosen base) |
| Minimum monthly base (2026) | €1,381.20 | Varies by income bracket (from €653.59) |
| Maximum monthly base (2026) | €5,101.20 | €4,909.50 |
| Registration (alta) | Employer registers the worker | Worker self-registers via Importass |
| Unemployment benefit | Yes — covered (prestación por desempleo) | Optional — cese de actividad (must opt in) |
| Flat rate for new registrants | Not applicable | €80/month for first 12 months (tarifa plana) |
| Healthcare | Full public healthcare (SNS) | Full public healthcare (SNS) |
| Pension eligibility | 15 years minimum contributions | 15 years minimum contributions |
| Maternity/paternity leave | 19 weeks at 100% salary | 19 weeks at 100% of regulatory base |
If you are unsure which regime applies to you, consult the autónomo guide for a deeper look at RETA, or speak with a gestoría (administrative services firm) before starting work.
How to Register with Social Security (Alta)
Getting Your Social Security Number (NUSS)
Before you can work legally in Spain, you need a Número de afiliación a la Seguridad Social (NUSS) — your unique Social Security identification number. To obtain it, you will need:
- A valid NIE number (Número de Identidad de Extranjero) — or a TIE card if you already hold one
- Your passport (original and photocopy)
- A certificado de empadronamiento (proof of address registration from your local town hall)
- The completed TA.1 form (Solicitud de Afiliación / Número de Seguridad Social)
You can apply online through the Importass portal using a digital certificate or Cl@ve PIN, or in person at your local TGSS office with a cita previa (appointment). When applying online, you upload scanned copies of your TA.1 form, NIE, and empadronamiento, and Social Security typically issues your number via email within 48 hours.
Registration as an Employee (Régimen General)
If you are employed, your employer is legally responsible for registering you with Social Security before your first day of work. The employer files the alta (registration) through the Sistema RED system. You should receive confirmation of your registration, and your vida laboral (employment history) will reflect the start date.
What you need to verify: Ask your employer for a copy of the alta confirmation. The date on this document is critical — it starts the clock on your Beckham Law application deadline.
Registration as Self-Employed (RETA)
If you are working as an autónomo, you must register yourself. The process is:
- Register with Hacienda (the tax agency) using Modelo 036 or 037 to declare your economic activity, selecting the appropriate IAE (Impuesto sobre Actividades Económicas) code and CNAE (Clasificación Nacional de Actividades Económicas) code.
- Register with Social Security via Importass → "Alta en trabajo autónomo." You will need to identify yourself with a digital certificate or Cl@ve, then fill in the form with your IAE/CNAE codes, start date, address, estimated monthly net income, chosen contribution base, mutua (insurance mutual society), and bank account details.
- Pay your monthly quota — contributions are debited directly from your bank account on the last business day of each month.
Critical timing rule: Your alta date with Social Security must match or precede the start date declared to Hacienda. If you start invoicing before you are registered with Social Security, you risk fines and will not be covered for any benefits. Register with Social Security first, then with Hacienda, or on the same day.
Contribution Rates and Bases in 2026
For Employees (Régimen General)
Contributions are calculated as a percentage of the employee's base de cotización (contribution base), which is derived from gross salary including pro-rated pagas extra (bonus payments). The contribution is split between employer and employee:
| Concept | Employer Rate | Employee Rate | Total |
|---|---|---|---|
| Common contingencies (contingencias comunes) | 23.60% | 4.70% | 28.30% |
| Unemployment (desempleo) — permanent contract | 5.50% | 1.55% | 7.05% |
| Unemployment — temporary contract | 6.70% | 1.60% | 8.30% |
| FOGASA (Wage Guarantee Fund) | 0.20% | 0.00% | 0.20% |
| Professional training (formación profesional) | 0.60% | 0.10% | 0.70% |
| MEI (Intergenerational Equity Mechanism) | 0.58% | 0.17% | 0.75% |
| Approximate total (permanent contract) | ≈30.48% | ≈6.52% | ≈37.00% |
The minimum monthly contribution base for 2026 is EUR 1,381.20 and the maximum is EUR 5,101.20. An additional cotización de solidaridad (solidarity contribution) applies to salaries exceeding the maximum base, at rates of 1.15% to 1.46% depending on the excess tier.
For Self-Employed (RETA)
Since 1 January 2023, self-employed contributions are determined by real net income under a progressive system of 15 income brackets, established by Real Decreto-ley 13/2022. The 2025 contribution bases have been extended into 2026 without increases, as confirmed by the government's decision not to approve new rates for 2026.
The general contribution rate for RETA in 2026 is 31.40% of the chosen contribution base. Key brackets include:
| Monthly Net Income | Min. Base | Approx. Monthly Quota |
|---|---|---|
| ≤ €670 | €653.59 | ≈ €205 |
| €670.01 – €900 | €718.95 | ≈ €226 |
| €900.01 – €1,166.70 | €849.67 | ≈ €267 |
| €1,166.71 – €1,300 | €950.98 | ≈ €299 |
| €1,300.01 – €1,500 | €960.78 | ≈ €302 |
| €1,500.01 – €1,700 | €960.78 | ≈ €302 |
| €1,700.01 – €1,850 | €1,143.79 | ≈ €359 |
| €1,850.01 – €2,030 | €1,209.15 | ≈ €380 |
| €2,030.01 – €2,330 | €1,274.51 | ≈ €400 |
| €2,330.01 – €2,760 | €1,356.21 | ≈ €426 |
| €2,760.01 – €3,190 | €1,437.91 | ≈ €451 |
| €3,190.01 – €3,620 | €1,519.61 | ≈ €477 |
| €3,620.01 – €4,050 | €1,601.31 | ≈ €503 |
| €4,050.01 – €6,000 | €1,732.03 | ≈ €544 |
| > €6,000 | €1,928.10 | ≈ €605 |
You can calculate your exact quota using the official RETA contribution simulator on the Social Security website.
Tarifa plana for new autónomos: If you are registering as self-employed in Spain for the first time (or have not been registered in the previous two years), you can apply for the reduced flat rate of EUR 80 per month for the first 12 months. This can be extended for an additional 12 months if your net income remains below the Salario Mínimo Interprofesional (SMI).
Benefits You Are Entitled To
Healthcare (Asistencia Sanitaria)
Once registered with Social Security, you have full access to Spain's Sistema Nacional de Salud (SNS) — the public healthcare system. This covers primary care, specialist consultations, hospital treatment, surgery, prescriptions (with co-payment), and emergency care. Your registered dependents (spouse and children) are also covered.
To access healthcare, you need a tarjeta sanitaria individual (TSI — health card), which you obtain by registering at your local centro de salud (health center) with your Social Security number and empadronamiento.
Retirement Pension (Pensión de Jubilación)
To qualify for a contributory retirement pension, you need a minimum of 15 years of contributions, with at least 2 of those years falling within the 15 years immediately preceding retirement. The standard retirement age in 2026 is 65 years (with 38+ years of contributions) or 66 years and 8 months (with fewer than 38 years of contributions). The pension amount depends on your contribution bases and years contributed.
Unemployment Benefits (Prestación por Desempleo)
Available only under the Régimen General (employees). To qualify, you need a minimum of 360 days of contributions within the six years prior to losing your job, and the job loss must be involuntary. The benefit pays 70% of your regulatory base for the first 180 days and 60% thereafter, for a duration of 4 to 24 months depending on your contribution history.
Self-employed workers under RETA can opt into prestación por cese de actividad (cessation of activity benefit), which is the autónomo equivalent of unemployment insurance. It requires a minimum of 12 months of continuous contributions and is triggered by the involuntary closure of your business or a reduction in income exceeding 75%.
Maternity and Paternity Leave (Prestaciones por Nacimiento y Cuidado de Menor)
As of August 2025, under Real Decreto-ley 9/2025, each parent is entitled to 19 weeks of fully paid leave, with the benefit covering 100% of the regulatory base salary (capped at the maximum contribution base of EUR 4,909.50/month). The first 6 weeks are mandatory and must be taken immediately after birth. Single-parent families receive an extended 32 weeks of leave. This applies equally to employees and autónomos registered with Social Security.
Temporary Disability (Incapacidad Temporal)
If you cannot work due to illness or injury, Social Security covers temporary disability leave. From day 4 to day 15, the employer pays 60% of the regulatory base; from day 16 onward, Social Security pays 60% (rising to 75% from day 21). The benefit lasts up to 365 days, extendable by 180 days. Self-employed workers under RETA receive the benefit from day 4 of sick leave.
Social Security Agreements with Other Countries
Spain has bilateral Social Security agreements — known as convenios bilaterales de Seguridad Social — with 25 countries: Andorra, Argentina, Australia, Brazil, Canada, Cape Verde, Chile, China, Colombia, Dominican Republic, Ecuador, Japan, Mexico, Morocco, Paraguay, Peru, Philippines, Republic of Korea, Russia, Senegal, Tunisia, Ukraine, United States, Uruguay, and Venezuela. Within the EU/EEA, coordination is governed by EU Regulation 883/2004.
These agreements serve two critical purposes (see also our guide on double taxation treaties for the tax side):
- Avoiding double contributions — You do not pay Social Security in both your home country and Spain simultaneously. If your employer sends you to Spain on a temporary assignment, you may remain in your home country's system under a certificate of coverage (A1 form within the EU, or the equivalent under bilateral agreements).
- Totalizing contribution periods — Periods of contribution in one country can be combined with periods in the other to meet minimum eligibility requirements for pensions and other benefits.
For example, the US-Spain Totalization Agreement (originally signed in 1986, with a new agreement signed in 2024) allows US expats to combine their US Social Security credits with their Spanish contributions to qualify for pension benefits in either country.
If you are arriving from outside the EU: Check whether Spain has a bilateral Social Security agreement with your home country before you start working. Without an agreement, you may face double contributions (paying into both systems simultaneously) and may lose the right to count your previous contributions toward a Spanish pension. Consult the TGSS international agreements page for details.
Social Security and the Beckham Law: The 6-Month Deadline
For expats planning to apply for the Beckham Law, your Social Security registration date is arguably the most important date in your relocation timeline. Here is why:
The application for the Beckham Law special tax regime is made by submitting Modelo 149 to the Agencia Tributaria (Spanish Tax Agency). The deadline to file Modelo 149 is six months from the date of your Social Security registration or the start date of your employment in Spain — whichever applies.
This deadline is absolute and non-negotiable. The Spanish Supreme Court confirmed in its ruling of 18 May 2020 that the six-month deadline is preclusivo (preclusive), meaning that filing even a single day late results in automatic denial with no possibility of appeal or extension.
The practical sequence for Beckham Law applicants is:
- Arrive in Spain and obtain your NIE
- Sign your employment contract or register as autónomo
- Register with Social Security (alta) — the clock starts here
- Register with Hacienda using Modelo 030
- File Modelo 149 within 6 months of the alta date
- Receive confirmation from Hacienda of your inclusion in the regime
Do not delay your Modelo 149 filing. Many expats assume they have plenty of time, but obtaining a digital certificate, gathering documentation, and navigating the Agencia Tributaria's systems can take weeks. Start preparing your Modelo 149 application as soon as your Social Security registration is confirmed. If in doubt, hire a tax advisor (asesor fiscal) to file on your behalf.
Managing Your Social Security Online
Spain has made significant progress in digitizing Social Security services. The main portal is Importass, where you can:
- View your vida laboral (full employment and contribution history)
- Check your contribution bases and payment status
- Register or deregister as autónomo
- Modify your contribution base (RETA)
- Request certificates and reports
- Simulate your future pension
To access Importass, you need one of the following:
- Digital certificate (certificado digital) — issued free of charge by the FNMT. This is the most widely accepted authentication method and is required for certain high-security procedures.
- Cl@ve PIN or Cl@ve Permanente — a simpler digital identity system that works for most common Social Security and tax procedures. You can register for Cl@ve online or at an authorized office.
- SMS verification — available for a limited set of queries.
For most expats, obtaining a digital certificate early in your relocation process is highly recommended. It will serve you not only for Social Security but also for tax filings, immigration appointments, and other administrative procedures across Spain's public administration.
Related Tax and Immigration Obligations
Your Social Security registration is only one part of the compliance picture. Once you are working and contributing in Spain, you will also need to address several tax obligations:
- Annual income tax return — File your Modelo 100 (annual tax return) each year to declare your worldwide income (or Spanish-source income only, if you are under the Beckham Law regime).
- Foreign asset declaration — If you hold assets abroad worth more than EUR 50,000 in any category (bank accounts, securities, or real estate), you must file Modelo 720 by 31 March each year.
- Wealth tax — Depending on the value of your worldwide net assets and your autonomous community of residence, you may be subject to Spain's wealth tax (Impuesto sobre el Patrimonio).
- Tax residency — Understanding Spain's tax residency rules is essential, as your residency status determines which income is taxable and which treaties apply.
- Double taxation relief — If you earn income in multiple countries, Spain's network of double taxation treaties may provide relief from being taxed twice on the same income.
Frequently Asked Questions
Can I access Spanish healthcare immediately after registering with Social Security?
Yes. Once your alta is processed and you have your Social Security number, you can register at your local centro de salud to obtain your tarjeta sanitaria (health card). In practice, it may take a few days to issue the physical card, but you can use your Social Security number to access healthcare services immediately. If you arrive in Spain before starting work, you may use the European Health Insurance Card (EHIC) for temporary coverage if you are from an EU/EEA country, or private health insurance.
Do I need to pay Social Security contributions if I work remotely for a foreign company?
If you are a tax resident in Spain and performing your work from Spanish territory, you are generally required to register with Spanish Social Security — either through your foreign employer (if they set up a Spanish entity or use an Employer of Record) or as an autónomo under RETA. Holding a digital nomad visa requires Social Security registration. The only exception is if you hold a valid certificate of coverage (such as the EU A1 form) from your home country under a bilateral agreement or EU coordination rules, allowing you to remain in your home country's system for a limited period (typically up to 24 months).
How do I transfer my Social Security contributions if I leave Spain?
If you move to another EU/EEA country, your Spanish contributions are automatically recognized under EU Regulation 883/2004 — you do not "transfer" them, but they are totalized (combined) when you apply for benefits in any EU member state. If you move to a country with a bilateral agreement with Spain, the same totalization principle applies under the terms of that agreement. If you move to a country with no agreement, your Spanish contributions remain on record with the TGSS and you may be able to claim a pension from Spain once you reach retirement age, provided you meet the minimum 15-year contribution requirement.
What happens if I stop paying my autónomo contributions?
If you miss a payment, the TGSS will issue a surcharge (recargo) of 10% to 20% depending on how late the payment is. If you remain in arrears, you will lose access to Social Security benefits, including healthcare coverage. Persistent non-payment can lead to enforcement proceedings. If you want to stop working as an autónomo, you must formally file a baja (deregistration) — simply not paying does not cancel your registration, and contributions will continue to accrue.
Key Official Resources
- Seguridad Social — Official Portal — Main TGSS website with information on all regimes, benefits, and procedures
- Importass (Sede Electrónica) — Online portal for managing your Social Security registration, contributions, and benefits
- Real Decreto Legislativo 8/2015 (LGSS) — Consolidated text of the General Social Security Act
- Real Decreto-ley 13/2022 — New RETA contribution system based on real income
- Orden PJC/178/2025 (Contribution Order 2025) — Official contribution bases and rates for 2025 (extended into 2026)
- RETA Contribution Simulator — Calculate your exact monthly quota based on income
- US-Spain Totalization Agreement (SSA) — Details of the bilateral Social Security agreement between the US and Spain
Tags
You Might Also Like

Modelo 100 Spain: How to File Your IRPF Tax Return
Step-by-step guide to filing Modelo 100 via Renta Web. Covers deadlines, deductions, the borrador process, and transitioning from the Beckham Law.

Flying Drones in Spain: Complete Guide to Regulations and Registration
AESA registration, A1/A3 and A2 certificates, flight zones, mandatory insurance, and penalties for drone pilots in Spain in 2026.

Modelo 720: Foreign Asset Declaration Guide (2026)
Complete guide to Spain's Modelo 720 foreign asset declaration: thresholds, deadlines, penalties after the 2022 CJEU ruling, and Beckham Law exemption.

NIE Number Application: Complete Step-by-Step Guide for 2026
Everything you need to know about applying for your NIE number in Spain, including required documents and processing times.