Few subjects worry incoming residents more, and are explained less clearly, than social security. When you relocate to Spain to work, you are stepping into a system called the Seguridad Social — the public framework that funds public healthcare, pensions, sick pay, maternity and paternity leave, and unemployment protection. Whether you are an employee joining a Spanish company or a freelancer setting up as an autónomo, the question of who pays, how much, and whether you can avoid contributing twice is central to planning a move. This note gives a plain-English overview of how the system works for expats, and how it interacts with the residence routes people most often use.
On this page
What the Seguridad Social is Employees: how affiliation works Self-employed: registering under the RETA Contributions based on real income The reduced "tarifa plana" for new autónomos Healthcare access through contributions Totalization agreements — not paying twice EU coordination and posted workers How this affects the residence routes Planning before you arrive Frequently asked questions
"Come to Spain to work and you generally join the Seguridad Social. Before you move, check whether a totalization agreement lets you stay in your home system for a period — it can change both your contributions and your healthcare."
— Jacob Salama · International Tax lawyer, Ilustre Colegio de Abogados de Málaga (nº 11294)
What the Seguridad Social is
The Spanish social security system is the state mechanism that collects contributions from workers and employers and, in return, provides a set of public benefits. It underpins access to the public health service, builds entitlement to a contributory pension, and provides income protection during illness, parental leave and — for many contributors — unemployment. Registration in the system is not optional for those who work in Spain: it is a legal obligation that attaches to the activity of working, whether that work is carried out under an employment contract or on your own account.
The system is organised into different regimes. The two that matter most to newcomers are the general regime for employees (the Régimen General) and the special regime for self-employed workers (the Régimen Especial de Trabajadores Autónomos, universally abbreviated to RETA). Which one applies to you depends on how you work, and this in turn shapes how much you contribute and how those contributions are calculated.
Employees: how affiliation works
If you are hired by a Spanish employer, the mechanics are relatively straightforward from your side. Your employer registers you with the Seguridad Social, obtains or confirms your social security number, and handles the monthly contributions. Those contributions are shared: the employer pays the larger share, and a smaller portion is withheld from your gross salary. In exchange, you are covered for public healthcare, you accrue pension rights, and you generally have access to sickness, parental and unemployment protection.
For most employees, then, the administrative burden sits with the company. What matters for planning is that these contributions are a real cost — visible on the employer's side as a payroll on-cost and on yours as a deduction from gross pay — and that the coverage they buy is genuine and valuable. The rate structure and contribution ceilings are set nationally and are revised periodically, so the precise percentages should always be confirmed for the current year.
Self-employed: registering under the RETA
Freelancers, consultants, remote workers billing their own clients and small-business owners typically fall under the RETA. Becoming an autónomo involves two linked registrations: registering with the tax authority (the Agencia Tributaria) to declare your activity for tax purposes, and registering with the Seguridad Social under the RETA so that you contribute to the system as a self-employed worker.
The crucial difference from an employee is that there is no employer to share the cost. An autónomo pays their own contribution in full, each month, by direct debit. This is the single figure that most surprises people arriving from countries where self-employment carries little or no compulsory social contribution. It is also why the way that figure is calculated — and the relief available to new autónomos — deserves careful attention.
The autónomo contribution is paid monthly and in full by the worker — there is no employer to split it with, which is why the way it is calculated matters so much.
Contributions based on real income
Historically, autónomos in Spain could choose their contribution base fairly freely, and many simply picked the minimum. That has changed. The system has moved to a model in which the monthly self-employed contribution is based on real income: you estimate your net earnings from the activity, this places you in a contribution bracket, and your monthly payment follows from that bracket. At the end of the year the figures are reconciled against your actual income, so contributions can be adjusted up or down to match what you genuinely earned.
The intention behind the reform is to make contributions more proportionate — lower earners pay less, higher earners pay more — rather than everyone defaulting to a flat minimum. The practical consequence for an expat is that you cannot know your exact monthly figure without estimating your net income and then reading it against the current bracket table.
What you can take away safely is the structure: net income determines the bracket, the bracket determines the monthly contribution, and a year-end reconciliation trues everything up. Anyone quoting you a fixed monthly figure without asking about your expected income has skipped the first step.
The reduced "tarifa plana" for new autónomos
To soften the impact of full contributions on people just starting out, Spain offers a reduced introductory rate for new self-employed workers, widely known as the tarifa plana (the "flat rate"). Rather than paying the full income-based contribution from day one, an eligible new autónomo pays a substantially reduced flat monthly amount for an initial period, after which the contribution steps up towards the normal income-based figure.
The tarifa plana is genuinely useful for someone building a client base in their first year or two in Spain, because it lowers the fixed cost of being self-employed while revenue is still ramping up. Eligibility conditions, the length of the reduced period and the exact reduced amount are set by the rules in force and are subject to change, and there can be conditions around not having recently been registered as an autónomo. As with the brackets, the precise terms must be confirmed for the current period rather than assumed from an older figure you may have read online.
Healthcare access through contributions
One of the most valuable things your contributions buy is access to Spain's public health system. As a rule, a worker who is affiliated to the Seguridad Social and paying contributions — whether as an employee or as an autónomo — obtains public healthcare cover, and that cover generally extends to dependent family members. For many working expats, this is the route into public healthcare: you are covered because you contribute.
This is an important distinction from the position of some non-working residents. People who move to Spain without working — for example on a residence route that does not permit local economic activity — typically cannot rely on contributions to access public healthcare and instead arrange private health insurance or, where available, a special agreement with the public system. Because you are working and contributing, your healthcare access is normally tied directly to that contribution, which is one of the quieter benefits of being inside the system rather than outside it.
Totalization agreements — not paying twice
A recurring fear for people arriving from outside the EU — and especially from the United States — is being forced to pay social security in two countries at once for the same work. Spain addresses this through totalization agreements (also called social security or bilateral agreements) with a number of countries. The United States and Spain have such an agreement, and it does two central things.
- It prevents double contributions. The agreement sets rules to determine which country's system you contribute to for a given period of work, so you are not required to pay into both at once for the same activity.
- It allows periods to be combined. If you have contributed in one country and then in the other, the agreement lets those periods be totalized — counted together — when working out entitlement to benefits such as a pension, so time is not simply lost when you move.
The practical effect for a US citizen relocating to Spain is that, depending on the nature and expected duration of the work, it may be possible to remain within the US system for a limited period and be exempted from Spanish contributions, or to switch into the Spanish system and later have both sets of contributions recognised. Which of these applies is fact-specific and depends on documentation such as a certificate of coverage, so it should be checked for your particular circumstances rather than assumed.
EU coordination and posted workers
For citizens and residents moving within the European Union, a parallel framework applies: the EU social security coordination rules. These are not the same as a bilateral totalization agreement, but they achieve comparable aims. As a general principle, a person is subject to the social security legislation of a single member state at any one time, and coordination rules determine which one, so that people moving for work are not caught by two systems simultaneously.
A common situation is the posted worker: an employee sent temporarily to Spain by an employer based in another EU country may, under the coordination rules and with the right certificate, remain covered by their home country's system for the duration of the posting rather than joining the Spanish system. The rules also allow periods completed in different member states to be aggregated when calculating benefit entitlement, mirroring the totalization idea. As always, the correct treatment depends on the specifics of the employment and must be documented properly.
How this affects the residence routes
Social security is not a stand-alone question — it interlocks with the residence permit you choose, and getting the two aligned is part of planning a clean move.
- Self-employed route. If you intend to live and work in Spain on your own account, you will normally register as an autónomo under the RETA, with the income-based contribution and the possible tarifa plana relief described above. The permit and the social security registration are two sides of the same activity — see our guide to the self-employed residence permit.
- Digital nomad route. Remote workers coming on the digital nomad path often work for foreign employers or foreign clients, which makes the social security analysis particularly important: where you contribute can depend on totalization agreements or EU coordination rather than being automatic. For US remote workers, the employee-versus-freelancer distinction decides whether a US certificate of coverage keeps you in US Social Security or you register as autónomo. The wider interaction is set out in our note on how to apply for the digital nomad visa.
- Beckham Regime. The Beckham special tax regime governs how your income is taxed, but it does not by itself decide your social security position — that still turns on how and where you work. The two must be planned together, which is why our Beckham guide should be read alongside this page rather than in place of it.
The mistake to avoid is treating the visa, the tax regime and the social security registration as three separate problems solved by three separate people. They are one problem, and the cost and coverage only make sense when looked at together.
Planning before you arrive
A sensible pre-move review of your social security position usually covers a handful of points. Estimating your expected net income if you will be an autónomo, so you can read it against the current contribution brackets and understand your likely monthly figure. Checking whether you qualify for the tarifa plana and for how long. Establishing whether a totalization agreement or EU coordination lets you avoid double contributions, and obtaining the right certificate of coverage if so. And confirming how your healthcare cover will actually arise — through contributions as a worker, or by another means if part of your household will not be working.
Done in advance, this turns social security from an anxious unknown into a predictable line in your budget. Done afterwards, it tends to surface as an unwelcome surprise in the first months, when the direct debit lands and the paperwork is already overdue.
Frequently asked questions
Do I have to pay social security if I work remotely for a foreign employer?
It depends. Working from Spain generally engages the Spanish system, but a totalization agreement or EU coordination rule may allow you to remain covered elsewhere for a period. It must be checked for your specific case.
How much will I pay as an autónomo?
The monthly contribution is based on your real net income, which places you in a bracket. New autónomos may qualify for a reduced flat rate. The exact brackets and amounts change and must be confirmed for the current year.
Will contributing give me access to public healthcare?
As a rule, yes — a worker affiliated to and paying into the Seguridad Social generally obtains public healthcare cover, which usually extends to dependent family members.
Does the US–Spain agreement really stop double payments?
The US–Spain totalization agreement is designed to prevent paying into both systems for the same work and to let periods be combined for benefit entitlement. How it applies depends on your circumstances.
General information, not legal or tax advice. Social security rules, contribution brackets, the tarifa plana and the terms of totalization agreements change and must be confirmed for your circumstances and the current year.