Living in Spain · Seguridad Social

Número de la Seguridad Social for a Foreigner: How to Get It and Find Your Number

The número de la Seguridad Social (NUSS) identifies you in all your dealings with Spain's social security system. You need it before your first alta, before starting work and before getting a tarjeta sanitaria. Below we explain how to get it, how to find one already issued and what the difference is between the number and the alta. The alta procedure for the self-employed is described separately: Alta autónomo for a foreigner.

Review my situation

What this number is and how it differs from the alta

The Seguridad Social website says that the NUSS is the number by which the system identifies you, and that it is also called the número de afiliación (NAF). Art. 21.1 of Real Decreto 84/1996 (Reglamento general sobre inscripción de empresas y afiliación, altas, bajas y variaciones de datos de trabajadores en la Seguridad Social) says that the Tesorería General de la Seguridad Social (TGSS) assigns a number to every citizen for identification in dealings with the system.

The number and the alta are different things. Afiliación recognises you as included in the system and lasts for life: under art. 15 of the Ley General de la Seguridad Social (Real Decreto Legislativo 8/2015) it is "única para toda su vida y para todo el sistema", that is, "single for the whole of your life and for the whole system". The alta records that you have entered a specific régimen because you started an activity (art. 7 of Real Decreto 84/1996), and it can appear and disappear many times.

When you need the number

On the service page "Solicitar el Número de la Seguridad Social" the Seguridad Social names three cases. First: your first alta in the system, when you start working. Second: access to pensions, benefits and other prestaciones. Third: the health system of the autonomous community uses the number to issue a tarjeta sanitaria. More on this in the article Seguro médico.

Under art. 7.1 of the Ley General de la Seguridad Social, the system for contributory benefits covers foreigners who reside or are lawfully present in Spain and work there. If you have no right to work, the number by itself does not give you that right.

How to get the number yourself

You can submit the application online at the Sede Electrónica de la Seguridad Social, in the service "Solicitar el número de la Seguridad Social". The service names three things you need: details from your DNI or NIE, a telephone number and email, and your permanent address. The service page does not say whether you can apply with a passport alone: for an adult it names the DNI or NIE, so if you have no NIE, check the procedure with the Dirección Provincial de la TGSS. How to get a NIE is explained in the article NIE. There is no deadline, and you can apply at any time.

If you have Cl@ve or an electronic certificate, you log in with them. More here: Cl@ve and certificado digital. If you have no electronic identification, the service allows an option without it: a copy of both sides of your DNI/NIE and a selfie with the front of the document. For a child, the application is submitted by the mother, the father or the tutor with form TA.1 and a copy of the Libro de Familia or another document proving patria potestad.

If you work as an employee

The employer must request afiliación for those who are not yet afiliado (art. 24.1 of Real Decreto 84/1996). The number is needed in advance: under art. 21.2 a person without a number must request it before afiliación and alta, presenting an identity document. The afiliación application is submitted before work starts (art. 27.2), and it also counts as the first alta in the relevant régimen (art. 24.2).

If the employer has not done this, under art. 25.2 of Real Decreto 84/1996 the employee may go to the Dirección Provincial of the TGSS personally, and art. 16.3 of the Ley General de la Seguridad Social confirms that the interested person may demand afiliación and alta themselves. A self-employed person requests afiliación themselves (art. 25.1): see Alta autónomo.

How to find your number

You can view the number at the Sede Electrónica in the service "Acreditación del Número de la Seguridad Social". According to the description of the service, it displays the NUSS or NAF, and you can also save and print an informe that identifies you in dealings with the Seguridad Social. Access is only as an individual, that is, with Cl@ve or a certificate.

The right to obtain information about your own data is set out in art. 17.2 of the Ley General de la Seguridad Social and in art. 53.2 of Real Decreto 84/1996. If you have lost the number, you do not need to apply for a new one: it is enough to retrieve the one already assigned through this service.

If a number was already issued

The service page says that a number may already have been assigned if you ever worked in Spain or were insured under the Seguro Escolar. If you are not sure, check through your personal account before you apply. Since afiliación is single and lifelong (art. 15 of the Ley General de la Seguridad Social), a person does not need a second number.

If the service gives a message that you have no number, you can obtain an "Acreditación de no tener Número de la Seguridad Social": this is a negative informe stating that you are not registered in the system. Changes to the data given at afiliación must be reported within three calendar days: this is a duty of the employer and, where applicable, of the employee (art. 28.1 of Real Decreto 84/1996).

Frequently asked questions

Can I get the number without a NIE?

The description of the online service names details from a DNI or NIE. Art. 21.2 of Real Decreto 84/1996 says that a foreigner presents "el correspondiente documento de identificación", that is, the relevant identity document. Which document will be accepted when you apply in person, check with the Dirección Provincial of the TGSS.

Are the number and the alta the same thing?

No. The number is issued once and stays for life, while the alta in a régimen is made when you start an activity and can change.

Do I need to get the number before starting work?

Yes, the number is needed for afiliación and alta, which are submitted before work starts (art. 21.2 and 27.2 of Real Decreto 84/1996). Usually the employer submits the afiliación application.

How do I find my number if I have lost it?

At the Sede Electrónica in the service "Acreditación del Número de la Seguridad Social". You need Cl@ve or an electronic certificate.

Do I need the number for a tarjeta sanitaria?

Yes. According to the service description on the Seguridad Social website, the health system of the autonomous community uses the NUSS to issue a tarjeta sanitaria. For details of the procedure in your community, ask at your local health centre.


Need help with your Seguridad Social number

If you need help with the paperwork: AUTO 29€ or Full Pro 149€ (prices). You can ask a question on WhatsApp: +34743071481.