Guide · Número de la Seguridad Social y afiliación
The Spanish Social Security number: getting one, and who registers you
You are given a Social Security number once, for life, the first time you do something that brings you into the system. Your employer must register you before your first day of work — never more than 60 days before — and if they do not, you can ask for it yourself.
Checked at source ·
- How long the number lasts
- For life, across every scheme
- When the employer must register you
- Before you start work
- Earliest the registration can be filed
- 60 days before the start date
- Body responsible
- Tesorería General de la Seguridad Social
Source: Boletín Oficial del Estado — Real Decreto 84/1996, Reglamento General sobre inscripción de empresas y afiliación, altas, bajas y variaciones de datos (texto consolidado). Checked .
Source: Boletín Oficial del Estado — Real Decreto 84/1996, Reglamento General sobre inscripción de empresas y afiliación, altas, bajas y variaciones de datos (texto consolidado). Checked .
Source: Boletín Oficial del Estado — Real Decreto 84/1996, Reglamento General sobre inscripción de empresas y afiliación, altas, bajas y variaciones de datos (texto consolidado). Checked .
Source: Boletín Oficial del Estado — Real Decreto 84/1996, Reglamento General sobre inscripción de empresas y afiliación, altas, bajas y variaciones de datos (texto consolidado). Checked .
Affiliation and registration are two different acts
Spanish Social Security law separates two things that English speakers tend to call by the same name. Afiliación, affiliation, is the act by which the General Treasury of Social Security recognises that a person is included in the system, the first time they carry out an activity that brings them in. It happens once. It is single — the same affiliation serves every scheme, whether you are employed, self-employed or both — and it lasts for your whole life.
Alta, registration, is the act by which the Treasury records that you have started a particular activity under a particular scheme. It happens every time you start a job or start working for yourself, and it is matched by a baja, a deregistration, when that activity ends. Two jobs at once means two registrations in the same scheme; working for an employer and for yourself at the same time means registrations in two schemes.
Your Social Security number, número de la Seguridad Social, sometimes called NUSS or NAF, is the number that identifies your affiliation. The Treasury gives every affiliated person, pensioner and beneficiary an identifying document carrying it.
Who asks for the number
Affiliation can be requested by an employer, by the worker, or done by the Treasury on its own initiative. An employer is obliged to request the affiliation of anyone who starts working for them and is not yet affiliated, and that request automatically includes the first registration under the right scheme.
You can also apply for the number yourself before you have a job. That is worth doing if you are about to start work for yourself, because the self-employed registration assumes you already have it. The application goes to the Treasury, on the official form or through its electronic office, with your identity document. For a foreign national that means your passport and NIE, or your TIE or EU registration certificate showing the NIE.
The NIE comes first. Without it there is nothing to attach the affiliation to. If your NIE is being assigned as part of a permit procedure, wait until you have it.
The deadline your employer must meet
The regulation says the registration must be filed before the worker begins to provide services, and never earlier than 60 calendar days before the planned start. Working a first day before being registered is not a formality: it is working without Social Security cover, and the employer is exposed to sanctions.
If the employer does not register you on time, the regulation lets you ask for the registration directly yourself, without prejudice to the employer's own liability. Ask for your working-life report, informe de vida laboral, a few days after starting a job; it lists every registration in your name and is the simplest way to check that yours was filed.
If you work for yourself
Self-employed workers are responsible for their own registration, in the self-employed scheme, and it must also be filed before the activity starts. The special tax regime for new residents counts its six-month deadline from the start date recorded on this registration, so the date matters for more than Social Security.
Where to go
Applications go to the provincial directorate of the General Treasury, or one of its administrations, in the province where the employer is based — or, for the self-employed, where you live or work. Much of it can now be done through the Social Security electronic office, Import@ss, instead.
Common questions
Is the Social Security number the same as the NIE?
No. The NIE identifies you as a foreign national for administrative and tax purposes. The Social Security number identifies your affiliation to the Social Security system. You need the NIE first to get the Social Security number.
Does the Social Security number ever change?
No. Affiliation is for life and covers every scheme, so the number stays the same if you change jobs, become self-employed or leave Spain and come back.
Can I get a Social Security number before I have a job?
Yes. The regulation allows affiliation at the worker's own request, not only the employer's. You apply to the General Treasury of Social Security with your identity document and NIE.
My employer has not registered me. What can I do?
Registration must be filed before you start work. If the employer fails to do it, you can ask the Treasury for it directly, and the employer remains liable for the failure.
The procedures this leads to
- How to get a NIE number in Spain
The NIE is a personal identification number for foreigners dealing with Spain. Many people are given one automatically and never need to apply; those who do apply pay €9.84, not the €12 usually quoted.
- Employed work and residence permit in Spain (cuenta ajena)
The permit for coming to Spain to work for an employer. The employer applies, the first permit is capped at a year and tied to one occupation, and the renewal is four years with no restrictions at all.
- Self-employed work and residence permit in Spain (cuenta propia)
The permit for coming to Spain to work as autónomo. One year to start, tied to one region and one sector; the renewal is four years and unrestricted, and three months of silence on a renewal means granted.
- TIE: the Spanish foreigner identity card
The card issued to non-EU nationals authorised to stay in Spain more than six months. You must apply in person within one month, and it proves your legal status — not your identity, which is why you still have to carry your passport.
Sources
Every fact on this page comes from one of these. We do not cite other guides, because a copy gives us no way to notice when the original changes.
This is information, not advice
Your own case depends on your nationality, your status and your history with the administration — none of which a web page can see. Confirm anything that matters with the responsible authority or a qualified professional before you act on it.