Registration

How to register as autónomo in Spain as a foreigner: NIE, Hacienda and Social Security

Becoming self-employed (autónomo) in Spain works the same for foreigners as for Spaniards: two registrations, one with the Tax Agency (the Agencia Tributaria, usually called Hacienda) and one with Social Security. What changes is what you need before you start. Here's the overview. It isn't a step-by-step manual, because every case has its own details.

The short answer

  • You need a Spanish tax number first. For foreigners, that's the NIE (foreigner identity number).
  • If you're not from the EU, the EEA or Switzerland, your visa or residence permit has to allow you to work in Spain. That's immigration law, and we don't handle it.
  • Then you register with Hacienda (form 036) and with Social Security as autónomo, at the same time and before you start.
  • From that day on you file quarterly returns, even if you haven't invoiced anything yet.

Before you start: your NIE and permission to work

To deal with the Spanish Tax Agency you need a tax identification number. Spaniards use their DNI. For foreigners, the official document that assigns your NIE does the same job. Without it you can't register.

Citizens of the EU, the EEA and Switzerland don't need a work permit. Citizens of other countries need a visa or residence permit that lets them work in Spain, such as the visa for remote professionals (we explain its tax side in digital nomad visa as a freelancer).

We focus on taxes: we don't handle immigration paperwork (NIE, visas or residence permits). For that you'll need an immigration specialist. Once you can work in Spain, we take care of the rest.

Step 1: registering with Hacienda (form 036)

You tell the Tax Agency you're starting an activity with the census declaration, form 036. It's filed online at the Tax Agency's website (its sede electrónica) with a digital certificate or Cl@ve, and it's free. In it you make several decisions:

  • Your activity code (epígrafe): what you do, and whether it counts as a professional or a business activity. It affects, for example, whether your invoices to Spanish companies carry income tax withholding.
  • VAT: in most cases, the general regime. Some activities are exempt, and small shops have a special regime.
  • Income tax: direct assessment (estimación directa), which is the usual one, or modules for certain activities.
  • Where you work: if it's your home, the part you use for work. That's what later lets you deduct part of your home bills.
  • EU clients or suppliers: if you'll invoice businesses in other EU countries, also ask to join the register of intra-EU operators (ROI).

The activity code belongs to a local business tax (IAE), but individuals don't pay it: they're exempt.

Step 2: registering with Social Security (RETA)

Next you register in the special scheme for self-employed workers (RETA) through Import@ss, the Social Security portal. It asks for your start date, your activity, an estimate of your net income (what you expect to earn after expenses), the mutua that will cover sick leave and the bank account for the monthly fee.

Your monthly fee depends on that income estimate: we explain it in autónomo fees in 2026. If it's your first registration, or you haven't been self-employed in the previous two years, you can usually pay a reduced flat rate during the first 12 months: €80 a month plus a small extra contribution (the MEI). It's requested in the registration itself, so decide before you do it.

Registration can be filed up to 60 days before your start date. The fee is charged on the last working day of each month, and if you start mid-month the first one only covers the days you've been registered.

At the same time, and before you start

Do both registrations at the same time, with the same start date, and before your first job or invoice. The law doesn't set a minimum income for registering.

What to have ready

  • Your NIE and your passport or residence card.
  • Your Social Security number. If you've never worked in Spain, you'll need to get one first.
  • A bank account (IBAN) for the monthly fee.
  • A digital certificate or Cl@ve, to do everything online.
  • A clear idea of what you'll do, for the activity code.
  • Your start date and a realistic estimate of income and expenses for the first year.
  • The address where you'll work and, if it's your home, the square metres you'll use.

What changes from day one

Once registered, your obligations start, whether you invoice or not:

  • An invoice for every job, with consecutive numbering.
  • Books of income and expenses kept up to date, and every receipt saved.
  • Every quarter, the VAT return (form 303) if your activity carries VAT, and the income tax prepayment (form 130), with some exceptions. Both are explained in modelo 303 and modelo 130 in English.

If your clients are abroad, your invoices change: see freelancing from Spain for foreign clients.

Can I do it myself?

Yes. Registrations and quarterly returns are filed online, with a digital certificate or Cl@ve.

Even so, it's always better to have an expert do it: choosing the right activity code, VAT regime and contribution base from the start avoids mistakes that are hard to fix later, and the forms are in Spanish. Write to us on WhatsApp or by email and we'll reply in English. Our Self-employed plan includes free registration.

Frequently asked questions

Can I register as autónomo without an NIE?

No. You need a Spanish tax number to register, and for foreigners that's the NIE. Get it first.

How much does it cost to register as autónomo?

Both registrations are free. What you pay is the monthly Social Security fee from your start date, which is reduced if you qualify for the flat rate.

Can I register before I have clients?

You can, but the monthly fee and the quarterly returns start counting from that date. It makes sense to match it to your real start: the first job or the first invoice.

What happens if I choose the wrong activity code?

It's corrected with another form 036. The problem is what you've done in the meantime: invoices with or without VAT or withholding when they shouldn't have, which then need correcting.

Official sources (in Spanish)

Reviewed on 16 November 2026. General information: your case may have details that change the answer.

Topics:RegistrationNIEForm 036Social Security

Want us to register you?

With the Self-employed plan we register you with the Tax Agency and Social Security for free, and we handle your quarterly taxes and bookkeeping, with written support in English. €85 + VAT a month, no lock-in.

Message an advisor

← All guides in English