Return to the blog
Self-employed • Published on 2026-11-22

Self-employed in Spain with foreign residence: what to file

If you live outside Spain but will work here as self-employed, you must coordinate your tax registration with the Tax Agency and your Social Security registration. Here we explain what is usually filed and in what order.

If you live outside Spain but will work as self-employed in Spanish territory, the first thing is to separate two procedures that are often confused: tax registration with the Tax Agency and registration with Social Security. In practical terms, the tax office serves to register you in the census and organize your tax situation; Social Security handles your affiliation to the self-employed scheme when applicable.

The short answer is this: before starting activity, it is advisable to check whether you need to apply for or regularize your NIF, submit the census registration on form 036, and process your registration in RETA if you fall within its scope. The exact details depend on your residence status, whether you already have Spanish tax identification, and how you plan to carry out the activity. Guidance and forms can change, so it is always worth checking the official website before filing anything.

1. The short answer: what to file and where

If you are going to work on your own in Spain even though your domicile is abroad, you will normally need to look at two fronts. At the tax office, census registration is handled through form 036 when an economic activity begins. With Social Security, you must check whether you need to register in RETA, because that scheme covers self-employed workers who legally reside and carry out their activity in Spain. It is not the same procedure, and one does not replace the other. [1,5,6] [1] [5]

The key idea is simple: the tax office organizes your census and tax position; Social Security manages your status as self-employed. That is why living abroad does not remove the need to review both bodies if you are going to work regularly in Spain. In addition, the coordination between tax domicile, notification address, and actual place of activity may require later adjustments if your details change. [4,5] [4] [5]

  • Tax office: census registration and, if applicable, NIF.
  • Social Security: registration in RETA if your case falls within it.
  • If your details change, review amendments in both systems.

2. The first step is to check your tax identification

Before thinking about fees or activity forms, it is worth checking whether you already have a NIF and with which document you can operate. The Tax Agency provides for the application for a NIF for a natural person without DNI or NIE through form 030 in certain cases. So, if you live abroad and do not already have Spanish identification, this may be the first issue you need to resolve. [2,3] [2] [3]

This does not mean that every foreign national must use the same form, but rather that the criterion depends on whether you are a natural person without previous economic activity, whether you are already on the census, or whether you need to update personal or address details. The AEAT distinguishes between form 030 for certain personal-data cases and form 036 for those who begin or carry on economic activity. [2,3] [2] [3]

  • Check whether you already have a NIF before preparing the registration.
  • If you do not have a DNI or NIE, review the specific route to obtain it.
  • Do not confuse updating personal details with registering an activity.

3. Census registration with the tax office: form 036 as the core

The Tax Agency states that registration in the census of entrepreneurs, professionals and withholding agents must be filed before starting the activity. In practice, this means you should not begin invoicing or operating as self-employed in Spain without first checking your census status. Form 036 is the census return used to report the registration when there is an economic activity. [1] [1]

If you are already registered and later your tax domicile changes, the AEAT provides for that communication in form 036 itself. This is especially important when residence is outside Spain, because tax residence, tax domicile, and notification address do not always match. It is advisable to review carefully which address you will declare and which detail you want to use to receive official communications. [4] [4]

  • Census registration must be filed before starting the activity.
  • If your tax domicile changes, report it on form 036.
  • Review carefully the notification address and the activity address.

4. Social Security: when RETA comes into play

Social Security reminds us that self-employed workers must request registration, cancellation and data changes, and that RETA includes foreign nationals who reside and legally carry out their activity in Spain. In addition, the general definition of a self-employed worker is linked to a habitual, personal and direct activity carried out for profit. This helps explain that it is not enough to do isolated or occasional jobs: what matters is how the activity is structured. [5,6] [5] [6]

As a result, if you live abroad but are going to provide services in Spain on a regular basis, the analysis does not end with the tax office. You will need to check whether your situation fits the self-employed scheme and whether you meet the requirements of residence and lawful performance of the activity. Since these fits depend on the specific case, it is prudent to review the official information before filing the registration or starting the activity. [5,6] [5] [6]

  • Social Security does not use the same criterion as the tax office.
  • RETA includes foreign nationals who reside and work legally in Spain.
  • Also review registrations, cancellations and data changes.

5. A practical order so no formalities are left hanging

A reasonable order is this: first, confirm your tax identification; then prepare the census registration with the tax office; and, in parallel or afterwards, review the registration with Social Security. If you later change country of residence, tax domicile or notification address, you will need to assess whether a census amendment is required. The important thing is not to mix different procedures or assume that one replaces the other. [1,2,4,5] [1] [2]

It is also worth remembering that administrative criteria, forms and the way each situation is evidenced can change. Therefore, even if the general scheme is stable, the exact content you must tick or attach may vary depending on your nationality, residence, type of activity and the moment when you submit the return. If in doubt, the useful rule is to consult the official website before closing the file. [1,2,5] [1] [2]

  • 1. Check whether you need a NIF or a data update.
  • 2. File the census registration before starting the activity.
  • 3. Check whether you must register in RETA.
  • 4. If the details change, report the variation as soon as possible.

Frequently asked questions

If I live outside Spain, can I register as self-employed here?

Yes, but you must review your specific situation. If you are going to carry out economic activity in Spain, you will need to coordinate the census registration with the Tax Agency and, where applicable, the registration with Social Security. The key is to check your tax identification and the legal fit of the activity first.

Which form is used at the tax office if I am going to start the activity?

The Tax Agency uses form 036 for registration in the census of entrepreneurs, professionals and withholding agents when there is an economic activity. It must be filed before starting the activity. If you also need to update personal or address details, form 030 may come into play depending on the case.

Do I need to do anything if I change my tax domicile or country after registering?

Yes. If you are already registered and your tax domicile changes, the AEAT provides for reporting it on form 036. With Social Security, you must also report registrations, cancellations and data changes when applicable. Since the criteria can change, it is advisable to always check the current official information.

Do you need to resolve this procedure?

Self-employed administration and tax services in Barcelona. Tell us what you need and request a quote for your circumstances.

Request quote
Service Guarantee

Self-employed administration and tax services in Barcelona. Tell us what you need and request a quote for your circumstances.

Gestoría del Mar Support

Online now

Hello 👋 What paperwork can we help you with?
Gestoría del Mar Assistant
Hello! I am your virtual assistant. What type of procedure do you want to perform today? Select an option to start.
Call