Working for yourself in Spain almost always means becoming autónomo — the country's status for the self-employed and sole traders. The concept is simple, but for foreigners the registration, tax and social-security steps interlock in ways that are easy to get wrong, and the order in which you do them matters.
Whether you are a freelancer in Barcelona, a consultant in Madrid or running a small business on the coast, the autónomo framework applies to most independent work. Rules, thresholds and figures are reviewed regularly, so treat this as general background rather than advice on your own circumstances.
Can a foreigner register as autónomo?
In principle yes, but your starting point depends on your nationality and residence status. Citizens of EU and EEA states, and of Switzerland, can generally register and work as self-employed in Spain on broadly the same footing as Spanish nationals, once they have the right registration documents. Non-EU nationals usually need a residence and work authorisation that specifically permits self-employment before they can lawfully operate.
For non-EU nationals, the key point is that the immigration question comes first. A tourist entry or a permit tied to someone else's sponsorship does not, on its own, allow you to run a business. The self-employment route typically asks you to show a viable business plan, the means to carry it out, and that the activity meets the conditions set in law. Because residence and the right to work are connected, confirm your status before you commit to clients, premises or contracts.
The building blocks: NIE, tax and registration
Becoming autónomo is less a single act than a sequence of registrations that have to line up. The usual building blocks are:
- A NIE (Número de Identidad de Extranjero), the foreigner's identification number you need for almost any official or financial step in Spain.
- Registration with the tax authority (Agencia Tributaria, often called Hacienda) declaring the activity you intend to carry out, using the standard census and activity-classification forms.
- Registration in the special social-security scheme for the self-employed (commonly known as RETA).
- A Spanish bank account, and, depending on your activity, any sector-specific licence or municipal permit.
These steps are connected: your tax registration defines the activity and the regime you fall under, which in turn affects how you invoice and what you declare. Getting the activity classification right at the outset saves a great deal of correction later, so it is worth taking care with it rather than guessing.
Social security and what it costs
As an autónomo you pay your own social-security contributions into the self-employed scheme, rather than having an employer deduct them. Contributions are increasingly calculated by reference to your real earnings, so what you pay is meant to track your actual income rather than a flat sum for everyone. Paying in gives you access to public healthcare, contributes towards a future pension, and can provide cover for sickness and certain other contingencies.
New registrants are sometimes eligible for reduced introductory contributions for an initial period, intended to ease the start-up phase. Whether you qualify, and for how long, depends on the rules in force and your particular situation. Because the contribution structure and any reductions are reviewed periodically, confirm the current arrangements before budgeting around them — this is one of the areas that changes most often.
Tax: income tax and VAT
An autónomo is taxed on business profit through personal income tax (IRPF), generally with quarterly declarations during the year and an annual return that reconciles the position. You can usually deduct legitimate business expenses, but the rules on what counts — and on documenting it properly — are strict, so keeping clean records from day one is essential.
Most autónomos also have to deal with VAT (IVA): charging it on invoices where it applies, and filing periodic VAT returns. Some activities are exempt or fall under special regimes, and cross-border services have their own treatment, which matters a great deal if your clients are outside Spain. If you have moved from another country, be aware that you may have tax-residence and reporting questions in more than one place, and double-taxation rules can come into play. These interactions are technical, and getting the structure wrong early is far more costly than setting it up correctly.
Invoicing and ongoing obligations
Once registered, you carry real continuing duties beyond simply doing the work. Invoices must contain the legally required details, your contributions and tax filings fall due on fixed cycles whether or not you have earned much that period, and your bookkeeping has to be capable of supporting what you declare. You can expect to deal with:
- Issuing compliant invoices, including any withholding that applies to your category of activity.
- Keeping records of income and expenses, and retaining supporting documents.
- Filing periodic and annual tax and VAT returns on time.
- Keeping your registered activity, address and details up to date with the authorities.
Spain is also moving towards more standardised and digital invoicing and record-keeping for businesses, so the practical mechanics of compliance continue to evolve. Build in a reliable system — or professional help — for deadlines, because penalties for late or missing filings can mount quickly.
Common pitfalls for foreigners
Several problems recur for newcomers. The most serious is starting to work before residence and work authorisation are properly in place, which can jeopardise both the business and your right to stay. Others include misclassifying the activity, underestimating ongoing contributions and tax, mishandling VAT on international clients, and assuming arrangements that worked in another country carry over to Spain. There is also the so-called "false self-employed" risk, where someone is registered as autónomo but works in practice like an employee of a single client — a situation the authorities can recharacterise, with consequences for both sides.
Getting it right
The autónomo route makes self-employment in Spain genuinely accessible to foreigners, but it rewards getting the sequence and the details right — immigration status first, then a clean tax and social-security setup, then disciplined ongoing compliance. Because the thresholds, contribution rules and figures shift over time, and because your residence status, nationality and type of activity all change the picture, the safest step before you commit is to speak with a qualified Spanish business lawyer who can review your situation and confirm the current rules for your case.