Living between two countries

Spanish Social Security Number: How to Get One as a Foreigner

The Spanish Social Security number is requested online through Import@ss with a passport, NIE or ID, and an employer files it if you are being hired.

Ilustración 3D en arcilla y cristal coral de una carpeta de documentos, una tarjeta de identificación, un sello y un escudo sobre fondo crema

The Spanish Social Security number is the identifier the Tesorería General de la Seguridad Social (TGSS) gives you for every dealing with the system: working, claiming a benefit, or activating your health card. Almost anyone arriving in Spain to work or study ends up needing it. You request it online through Import@ss, and if a company is hiring you, it normally handles the request.

What the Social Security number is

According to the Social Security administration itself, the number identifies you in your relations with the system. You need it to register as an employee or employer, to claim benefits, and to receive a pension. Your region's health service also uses it to register your health card.

It is separate from the NIE. The NIE is your foreigner identification number and comes from the immigration side; the Social Security number is assigned by the TGSS. The other guides in this series are on our blog.

Social Security number and affiliation number: the same number

The Social Security administration explains that the number matches the affiliation number (NAF). It becomes your affiliation number the first time you start a work activity that places you in the system, whether under the general regime, as self-employed, or another one. That is why people hear both names as if they were two different things.

TermWhat it isWho handles it
NIEForeigner identification numberImmigration office and police
Social Security number (NUSS)The number Social Security uses to identify youTesorería General de la Seguridad Social
Affiliation number (NAF)The same number, once you start workingTesorería General de la Seguridad Social
Health cardIssued by your region, which uses your number to register youRegional health service

Who needs it and who requests it for you

Anyone, employed or self-employed, who does not have a number can request one. Social Security adds a practical rule: if you are going to work for an employer and you have no number, the company must file the request. If you get a job offer, ask the employer before filing on your own.

In other cases someone else requests it for you:

  • Students under 28 in official studies from 3rd year of ESO through the third university cycle: they get their own number as part of the school insurance.
  • Interns: since 1 January 2024, training internships, paid or unpaid, are included in the system. If the student has no number, the university, company or training centre requests it.

In practice this avoids a common mistake: showing up with your NIE in hand and assuming everything is done. They are two different identifiers from two different bodies, and each is requested separately. Ideally you have both before your first day of work.

First check whether you already have one

Before requesting anything, see whether one already exists. If you worked or studied in Spain before, you may have it. You can find it in several ways:

  • On a previous payslip or employment contract.
  • On your work-life report, if you have ever worked in Spain.
  • In Import@ss, the TGSS portal, through the electronic office, the website or the app. You see it in your personal area or in the number accreditation section, where you can also download a PDF that proves it.

Keep the accreditation PDF and the resolution once you have them: your employer, university or health centre will ask for them more often than you expect. One copy on your phone and one in your email is enough.

To sign in to Import@ss, Social Security accepts Cl@ve Permanente or Cl@ve Móvil, SMS identification, an electronic ID card, or a digital certificate.

How to request the number step by step

The electronic office offers the service "Request the Social Security number", which is enabled only when you identify yourself as an individual. If you have none of the identification methods above, Social Security says you can also request it online through Import@ss.

  1. Gather your identity document. An ID card, NIE or passport works.
  2. Have an email address you actually use.
  3. Prepare a device with a camera (computer or phone) to take a photo of yourself.
  4. Have the request form ready: the TA.1 model, for requesting the number and changing data.
  5. Go to Import@ss or the electronic office and follow the request service.
  6. Once the number is assigned, a resolution is issued and you can print it.

A practical detail: for this online request Social Security lists the passport as a valid document, so you do not have to wait for your NIE to start. A given service can ask for extra documents in a specific case, and requirements can change, so always check the electronic office before you begin.

How long it takes and what cannot be promised

Before sending the request, check that your first name and surnames match your passport or NIE letter by letter, that the email address is typed correctly, and that the photo is sharp. Data that does not match the document is a typical reason for a procedure to drag on.

There is no timeframe we can promise. The resolution depends on the TGSS and on your request being complete. We do not state a fee figure either: check the service in the electronic office for the conditions in force.

After the number: health card and first paycheck

The number is not the health card. Social Security is explicit: your region uses the affiliation number to issue the card and register your right to healthcare. It is another procedure with another administration. You will usually be asked for your registered address too. Once the number exists, tell your employer or university in writing so they can use it for your registration; keep a copy of whatever you send. All of this fits into your first month in Spain.

Money during the process

The Social Security number is what enables your employment registration, and registration brings the paycheck. To get paid you need an account that receives euros with an IBAN. At BNKA you can see how sending and receiving money works before you hand your details to an employer. If you keep sending part of your pay home, our corridors for Argentina, Peru and Colombia explain the route.

Official sources

Worth stating plainly: BNKA is a technology platform. Financial services are provided by regulated partner institutions, and the terms in force for any given operation live in the app and in the terms and conditions.

This is not financial, legal, tax, or investment advice.

Questions on this topic

Is the Social Security number the same as the NIE?

No. The NIE identifies a foreign national and comes from the immigration side. The Social Security number is assigned by the TGSS and identifies you before the Social Security system.

Do I need an NIE to request it?

For the online request, Social Security lists the ID card, NIE or passport as valid documents, so a passport works. A given service can ask for extra documents in a specific case.

Who requests it if I get hired?

If you are going to work for an employer and have no number, Social Security states that the company must file the request.

Is it the same as the health card?

No. The card is issued by your region, which uses your affiliation number to register you for healthcare.

WhatsAppLinkedInX

Keep reading

Start today

Your money where you live.
And where you come from.

Open your account from your phone in minutes and discover the services available to you.

Download the app · Sign up with your passport · Exchange rate shown before you confirm