How to Register as Self-Employed (Autónomo) in Barcelona in 2026: Hacienda, Social Security and the Order That Matters
Once you decide to freelance, invoice foreign clients, or run a small business from Barcelona instead of working as someone’s employee, you stop needing an employment contract and start needing two separate registrations: one with the tax authority (Agencia Tributaria) and one with Social Security. Neither one alone makes you legal to invoice. Most of the confusion we see comes from doing them in the wrong order, or from assuming that having an NIE and a business idea is enough.
This guide covers the two registrations, the order they usually go in, who is actually allowed to do this, and the ongoing filings that start once you are registered.
Two registrations, not one
Working as autónomo in Spain requires both of the following, and both stay active for as long as you operate:
- Alta censal at the Agencia Tributaria (Modelo 036 or the simplified Modelo 037): this is where you declare that you are starting an economic activity, choose the activity code (epígrafe of the IAE — Impuesto de Actividades Económicas) that matches what you actually do, and state your fiscal address and the date your activity starts.
- Alta in RETA (Régimen Especial de Trabajadores Autónomos), the self-employed branch of Social Security: this is what gives you cover for sickness, retirement and, since the 2023 reform, ties your monthly contribution to bands of estimated or real net income rather than a single fixed amount you choose freely.
Registering with Hacienda without ever registering with Social Security, or the other way round, is not a shortcut. Both are checked independently, and an activity running without both in place is treated as unregistered, with back-payments and surcharges as the usual consequence.
Who is actually allowed to do this
An NIE is necessary but not sufficient. Whether you are allowed to register as autónomo depends on your immigration status, not just on holding a Spanish tax number:
- EU, EEA and Swiss citizens can register directly with an NIE. Freedom of movement covers self-employment, so there is no separate work authorisation to obtain first.
- Non-EU citizens need a residence status that specifically authorises self-employed activity. A standard tourist stay does not cover it, and neither does every residence permit automatically. The digital nomad visa is built for exactly this profile — remote or freelance work for clients or employers based outside Spain — and is usually the cleanest route for that specific case. A visa or permit that does not carry work rights, most commonly the non-lucrative visa, does not allow you to invoice from Spain, employed or self-employed, no matter how small the activity.
Checking this before filing the 036 saves the most time. An alta filed under the wrong residence status does not become valid because the paperwork itself was correct.
Step one: the alta censal at Hacienda (Modelo 036/037)
The 036/037 is where the activity officially starts, on paper. It asks for:
- Your personal and tax details, including your NIE.
- The epígrafe (IAE activity code) that matches your actual work. This choice affects how invoices are taxed and whether IRPF withholding applies to what you bill.
- The address where the activity is based — usually your home address if you work remotely.
- The date the activity starts, which becomes the reference date for the Social Security registration that follows.
It can be filed online with a certificado digital, Cl@ve PIN or DNIe, or in person at an Administración or Delegación of the Agencia Tributaria if you do not yet have a digital credential. There is no fee for the alta itself.
Step two: registering in RETA with Social Security
Once the activity date is set with Hacienda, the same start date is used to register in RETA. This can be done online through the Social Security’s Import@ss system if you already have a digital certificate, or in person at a CAISS (Centro de Atención e Información de la Seguridad Social) office, which is the more common route for someone doing this for the first time without a Spanish digital ID yet.
Two things are worth knowing before you file:
- Reduced flat-rate quota: most people registering as autónomo for the first time, or for the first time in several years, qualify for a reduced flat monthly quota during an initial period, instead of paying under the standard income-based bands right away. The exact amount and how long it lasts change from year to year, so confirm the current figure with Social Security or a gestor before you file rather than relying on a number you read online.
- Income-based bands since 2023: once the reduced period ends, your monthly RETA contribution is set according to bands of your estimated net income, which you can revise several times a year as your real earnings become clearer. Under-declaring income to stay in a lower band and then having to regularise later is one of the more common and avoidable complications we see.
The order that avoids problems
The sequence that causes the fewest issues is: confirm your residence status allows self-employment, file the 036/037 with the activity start date you actually intend to use, then register in RETA using that same date, ideally on the same day or within a day or two. Filing RETA before the Hacienda alta exists, or using a different start date across the two systems, is the most frequent cause of mismatches that later need correcting by hand.
What starts once you are registered
Being registered is the beginning of a recurring set of obligations, not a one-off task:
- Quarterly IRPF payments on account (Modelo 130), an advance against your annual income tax return, due even in quarters with modest income.
- Quarterly VAT (Modelo 303), if your activity is subject to Spanish VAT — some professional activities and exports of services outside Spain have different treatment, which is exactly why the epígrafe chosen at the start matters.
- The monthly RETA quota, charged automatically regardless of whether you invoiced that month, unless you formally deregister.
- An annual income tax return that reconciles what you paid quarterly against your actual full-year result — see our guide to income tax in Spain for foreigners for how residency status changes what you file.
If you stop the activity, both the Hacienda side (baja censal) and the RETA side need a separate deregistration. Neither one cancels the other automatically, and an open RETA registration keeps generating monthly charges even after you have stopped invoicing.
When this is bigger than a form
Choosing between staying autónomo and incorporating a company (an SL) is a separate decision that depends on projected income, liability and the clients you work with, and it is worth reviewing before you file the first 036 rather than after. If your case also involves confirming which residence route actually permits self-employed work, that question belongs inside a wider residency review rather than a standalone registration. We also support the tax side once you are operating, including the quarterly and annual filings described above, through our income tax service.
FAQ
Do I need an NIE before I can register as autónomo?
Yes. The NIE is your tax identification number in Spain and both the Hacienda alta and the RETA registration require it.
Can I register as autónomo on a non-lucrative visa?
No. The non-lucrative visa does not carry work rights, employed or self-employed. Invoicing while holding it, even for foreign clients, is not covered by that residence status.
Which registration should I do first, Hacienda or Social Security?
Hacienda’s alta censal (Modelo 036/037) first, since it sets the activity start date that Social Security then uses to register you in RETA.
Is there a reduced fee for new autónomos?
Most first-time registrations qualify for a reduced flat monthly Social Security quota for an initial period. The current amount and duration change periodically, so confirm them with Social Security or a gestor before you file.
What happens if I stop working as autónomo?
You need to file a baja with both Hacienda and Social Security separately. Until the RETA baja is processed, the monthly quota keeps being charged even without income.

