
Moving to Spain for work quickly raises a question that can easily get lost among residence permit paperwork, address registration and banking matters: how does social security in Spain work, and what does a foreign national need to do? One of the first practical steps for anyone working in Spain is to obtain a Social Security number. In 2026, this number can be requested through the official online service of the General Treasury of Social Security, and once employment begins it becomes the person's affiliation number within the system. The identifier remains with the person permanently, so there is no need to obtain a new one when changing employers or becoming self-employed.
The system covers far more than a future pension. Contributions are linked to access to a range of benefits and social protections, while registration details are also used when establishing entitlement to public healthcare. For an employee, the employer handles a significant part of the process. A self-employed person has to manage registration and payments independently, and the amount of their contributions depends on net income and the chosen contribution base within the established range.
Foreign nationals will find it particularly useful to distinguish between several documents that are easy to confuse during the first few months after moving. The foreigner's identification number, NIE, identifies a person in administrative procedures, municipal registration (empadronamiento) confirms their residential address with the local council, while the Social Security number relates to their status within the corresponding system. None of these documents automatically replaces the others. A separate procedure also applies to the public healthcare card.
Social Security number: one identifier for your entire working life
The official name of the identifier is the Social Security number, abbreviated as NUSS. Before a person starts working, this is the designation used. Once the worker is first registered with the system, the same identifier acquires the status of an affiliation number, abbreviated as NAF. The digits themselves do not change.
For a foreign national, the practical significance of this detail is straightforward. If the number has already been assigned at any point, there is no need to request a new one, even after a long break from employment. It can be viewed in the personal area of the General Treasury of Social Security's online service, where a supporting document can also be downloaded.
NUSS should not be confused with the foreigner's identification number, NIE. The former relates to social security and employment history, while the latter identifies a foreign national in Spanish administrative procedures. Having an NIE does not in itself confirm that a person is registered as a member of the Social Security system.
Who arranges the number and where to apply
For an employee, the process is relatively straightforward. If a company is hiring someone for the first time and the future employee does not yet have a NUSS, requesting the number is the employer's responsibility. The company then registers the employee and pays the contributions required by law.
You can also obtain the identifier yourself through the online service of the General Treasury of Social Security. Users with access to the government's electronic identification system, an electronic identity card or a digital certificate can complete the procedure online. For people without these identification methods, remote verification using an identity document and a photograph is available. Another option is to apply through the Social Security authorities following the established procedure.
Before starting your first job, this short checklist can help:
- Check whether you have already been assigned a NUSS: you may have received one through previous employment or another registration with the system.
- If you do not have a number and a company is hiring you, confirm with the employer that it will arrange one before registering your employment.
- If you are applying yourself, prepare your passport or Spanish identity document for foreign nationals and up-to-date contact details.
- Once the number has been assigned, keep the supporting document and check your personal details in your online account.
- After starting work, make sure that the registration actually appears in your employment record.
The last step is particularly useful after your first job in Spain. Having an identifier and being formally registered as a worker are separate administrative procedures, so possessing the number alone does not confirm that your employer has registered you.
How much an employee pays in 2026
Employees do not pay their contributions manually each month. The employer calculates them, deducts the employee's share from their salary and pays it together with the employer's own contribution. This is one reason why gross salary and the amount received in a bank account naturally differ.
Under the general system in 2026, the employee contributes 4,70% of the contribution base for common contingencies. This is supplemented, among other contributions, by 1,55% for unemployment insurance under a standard permanent employment contract, 0,10% for vocational training and 0,15% under the Intergenerational Equity Mechanism. The employer's share is considerably higher, while occupational risk insurance is paid by the company at a rate that depends on the type of activity.
| Type of compulsory contribution | Employee | Employer |
| Common contingencies | 4,70% | 23,60% |
| Unemployment under a standard permanent contract | 1,55% | 5,50% |
| Vocational training | 0,10% | 0,60% |
| Intergenerational Equity Mechanism | 0,15% | 0,75% |
This table shows the main standard components rather than a universal calculation for every payslip. The type of contract, occupational risks, additional contributions for high earners and other circumstances can affect the final amount. To check your own deductions, it is better to review your payslip and the current rates applicable to your scheme rather than multiply your salary by a single overall percentage.
Self-employment: contributions depend on income
A different principle applies to self-employed people. The amount payable is linked to projected net income, and within the corresponding income bracket the person chooses an permitted contribution base. Once actual tax data becomes available, the preliminary calculations may be adjusted.
For 2026, several net income brackets have been established, each with its own minimum and maximum contribution bases. The combined standard rate includes contributions for common and occupational contingencies, cessation of activity, vocational training and the Intergenerational Equity Mechanism. Simply calculating a percentage of invoices issued to clients would therefore produce an incorrect result: business turnover and the figure used to determine the applicable bracket are different.
For someone who is only planning to become self-employed, it is more practical to estimate expected net income first and then check the permitted contribution base and calculated payment. If earnings change, the information can be adjusted during the year. This approach reduces the risk of a significant difference between preliminary payments and the subsequent adjustment.
Healthcare is linked to the system but requires separate registration
Obtaining a NUSS does not mean that you have a healthcare card. Entitlement to public healthcare is recognised on the applicable legal grounds, after which the regional health service issues an individual healthcare card. The specific procedure depends on the autonomous community where the person lives.
Once access has been arranged, the patient is registered within the primary healthcare system. This is normally the starting point for seeing a family doctor and, where necessary, obtaining a referral to a specialist. After starting work, it therefore makes sense to check not merely whether you have a number, but whether your entitlement to healthcare has been recognised and the regional healthcare card has been issued.
This distinction is particularly important for someone who obtained a NUSS in advance but has not yet started working. Assignment of the identifier alone does not make its holder a contributor and does not automatically create all the rights arising from employment or another situation provided for by law.

Ukrainians with temporary protection: work, healthcare and social rights
For Ukrainians, there is a fundamental difference compared with the standard situation of a foreign national who moves to Spain for work. Temporary protection provides the right to reside, work and receive healthcare. A person therefore does not have to find a job first, obtain a NUSS and pay contributions for several months before accessing healthcare through the public system.
Confusion often arises because several documents serve different purposes. The NIE is used to identify a foreign national, the NUSS relates to the Social Security system, the permit issued under temporary protection confirms the corresponding status, and the healthcare card is required to access services within the regional health system. None of these documents replaces the others, although some of the rights associated with them may overlap.
| Situation | What Ukrainians need to know |
| You have temporary protection but are not yet working | Entitlement to public healthcare does not require you to build up an employment record first or pay social security contributions for several months. |
| You plan to work as an employee | Temporary protection allows you to work. Employment requires registration with the Social Security system, and if you do not have a NUSS, it must be obtained following the established procedure. |
| You plan to become self-employed | This type of work is permitted, but a self-employed person must complete the required registration and manage their own social security contribution obligations. |
| You already have a NUSS but are not working | Having the number does not in itself mean that you are registered as a working contributor to the system. |
| You need a healthcare card | The card belongs to the healthcare system and is issued according to the rules of the autonomous community where you live. The NUSS and the healthcare card serve different purposes. |
| You have lost your job | Temporary protection does not in itself provide an automatic entitlement to contributory unemployment benefit. The reason employment ended and the required contribution period are taken into account. |
| You have an employment record in Ukraine | When applying for future social security rights, you should check whether insurance periods can be taken into account under the applicable international rules, as an employment record in Ukraine does not automatically entitle you to a Spanish benefit. |
| Your document is about to expire | Do not rely on outdated instructions found in search results. The status of temporary protection and the current renewal procedure should be checked against up-to-date information from Spanish government authorities. |
Starting employment activates a separate mechanism of social rights. Once a worker is registered, social security contributions begin and a Spanish employment record starts to accumulate, which may later be relevant to unemployment benefit, a pension and other payments. Temporary protection allows a person to work, but it does not remove the standard requirements established for a particular benefit.
This distinction is particularly useful for Ukrainians who have already lived in Spain for several years. Legal residence, access to public healthcare, permission to work and entitlement to financial benefits have different legal bases. If you need to determine eligibility for a particular benefit, check the conditions that apply to it, including contribution history, income, family circumstances, the reason employment ended and any other relevant criteria.
If you are not working: special agreement and the S1 form
Being out of work does not always leave a foreign national with private health insurance as the only option. A special healthcare agreement is available to certain people residing in the country who have no other basis for public healthcare coverage. It is intended for specific categories of residents and requires certain conditions to be met, including requirements related to the previous period of residence.
The monthly payment depends on age:
| Participant's age | Monthly payment |
| Under 65 | 60 euros |
| 65 and over | 157 euros |
The agreement provides access to basic public healthcare, although some costs remain entirely the patient's responsibility. These include, in particular, outpatient medicines, certain orthopaedic products and non-emergency medical transport. It should therefore not be regarded as an exact equivalent of every other basis for public healthcare coverage.
A separate mechanism exists under European rules on the coordination of social security systems. For example, a pensioner whose healthcare is the responsibility of another participating country may, if the relevant conditions are met, register an S1 document in Spain. The European Health Insurance Card serves a different purpose: it is primarily intended to cover necessary healthcare during a temporary stay and does not replace arranging healthcare coverage when residing permanently in the country.
Losing your job: who is entitled to contributory unemployment benefit
Spanish unemployment insurance is linked to the legal reason for the termination of employment and the contribution period accumulated by the worker. Standard contributory unemployment benefit requires a legally recognised unemployment situation and a sufficient contribution record. Voluntarily resigning from a job does not normally create an immediate entitlement to this benefit.
The minimum contribution period for contributory unemployment benefit is 360 days within the preceding qualifying period. The amount is calculated using the average contribution base for the latest qualifying days of employment rather than simply the employee's final salary. A rate of 70% of the regulatory base applies during the first part of the benefit period, followed by 60%, while established minimum and maximum limits also apply.
After employment ends, the person must register as a jobseeker and submit an application to the State Public Employment Service within the prescribed period. Self-employed people are covered by a different protection mechanism when they cease their activity, so the rules governing ordinary unemployment benefit for employees cannot automatically be applied to the self-employed.
A pension depends on more than age
The statement that “people retire at 65 in Spain” no longer describes the system in full. In 2026, this retirement age continues to apply to people who have accumulated at least 38 years and 3 months of qualifying contributions. With a shorter contribution record, the standard retirement age is 66 years and 10 months.
Entitlement to a contributory pension requires a minimum contribution period, and part of that period must fall within the legally established interval before retirement. The amount of the pension then depends on the person's accumulated contribution history and regulatory base. Two people of the same age can therefore have different retirement dates and receive very different amounts.
Foreign nationals should also take international coordination into account. Periods of employment in another country may count towards entitlement to benefits where applicable European Union rules or an international agreement provide for this. This does not mean that an entire foreign pension is simply transferred into the Spanish system: each country calculates its obligations according to the rules applicable to the individual situation.

What to check after registration
A Social Security number is best viewed as the beginning of an administrative process. After starting a job, it is more useful to check your actual registration and employment record than simply to keep the document showing your NUSS. A self-employed person should also monitor their declared income, chosen contribution base and the payments being charged.
Current rules, contribution bases and procedures can be checked using information from the General Treasury of Social Security in Spain. The conditions for claiming benefits after losing a job are published by the State Public Employment Service in Spain. Checking these sources is particularly useful before submitting an application: rates, thresholds and specific procedures change, while outdated online guidance can continue to appear in search results years after publication.
If your move involves looking for work, becoming self-employed or recruiting employees, Flagma can be used to find relevant vacancies, CVs and business opportunities in Spain. Administrative matters are better kept separate from the job search and checked directly with the relevant official authorities.