Getting a Spanish Social Security Number as a Foreigner: Who Needs One and How to Apply
Updated 7 November 2026 · 5 min read
Flat Spain's guide: the social security number (número de la Seguridad Social, NUSS, also called the affiliation number) identifies you in Spain's social security system for life, and you need it to be employed, to register as self-employed and to get public healthcare through work. Get your NIE first. Then there are three routes: your employer requests it for you when hiring, using form TA.1; you apply online at the social security's electronic office, most easily with a digital certificate or Cl@ve; or you apply in person at a social security treasury (TGSS) office, by appointment, with form TA.1, your passport and your NIE document. It is free, and you keep the same number for life, even if you leave and come back.
Three ways to get it
| Route | How | Best when |
|---|---|---|
| Through your employer | The company files form TA.1 for you when it hires you | You have a job offer |
| Online | The social security's electronic office, with a digital certificate or Cl@ve, and form TA.1 | You already have your digital identity |
| In person | A social security treasury (TGSS) office, by appointment, with form TA.1, your passport and NIE document | You have no digital identity yet |
Applying for a Spanish social security number, 2027
What you need
- Your NIE, and the document that shows it: the TIE or the EU registration certificate
- Your passport, or national identity card for EU citizens
- Form TA.1, filled in
- An address in Spain; the padrón certificate helps
What it is for
- Signing an employment contract and being paid through Spanish payroll
- Registering as self-employed (autónomo)
- Public healthcare as a worker, and the health card
- Your contribution record, which decides future pensions and benefits
The order that works
- 1Get your NIE, and your TIE or EU registration certificate
- 2Register on the padrón at your address
- 3Get a digital certificate or Cl@ve if you can
- 4Apply for the social security number, or let your employer do it
- 5Register at your health centre with it
It also helps you rent
A Spanish social security number and your first payslips are what landlords and rental insurers read as proof that you are settled. Flat Spain can look for landlords who accept new arrivals before the payslips start: say so in your brief.
Frequently asked questions
How do I get a social security number in Spain as a foreigner?
With your NIE in hand, either let your employer request it with form TA.1, apply online at the social security's electronic office, or apply in person at a TGSS office by appointment with form TA.1 and your documents.
Is the social security number the same as the NIE?
No. The NIE is your foreigner's identity and tax number; the social security number identifies you in the social security system. You need the NIE first.
Do I need a social security number to see a doctor in Spain?
To use public healthcare as a worker, yes. Visitors and people covered privately or by an S1 use other routes.
Does a Spanish social security number expire?
No. You keep the same number for life, even if you leave Spain and return.
Let Flat Spain do the searching for you
Describe your ideal home in plain English. Flat Spain automatically searches five platforms at once, puts every listing through the Flat Spain Scam Screen, and delivers a ranked shortlist, usually in minutes.
Start my search