Spain is one of the most popular European bases for freelancers working online, and one of the most bureaucratic to start in. The system makes sense once you see its structure: one registration with the tax agency, one with social security, and a rhythm of quarterly returns.
This guide walks through that structure for a foreigner starting out as an autónomo, Spain's self-employed status. Rules change regularly, and your exact obligations depend on your situation. Use this as a map, and confirm the details with a gestor, a Spanish administrative and tax adviser. Most freelancers in Spain use one, and the monthly fee is usually modest.
Step 1: your right to live and work in Spain
- EU, EEA and Swiss citizens can live and work as freelancers in Spain freely. If you stay longer than three months, register as a resident and get your green certificate with your NIE (foreigner identification number).
- Non-EU citizens need a residence permit that allows self-employment. For people who work remotely for clients outside Spain, the most relevant route is the international teleworker visa, often called the digital nomad visa, created by the 2023 Startups Law. It allows freelancers to work for foreign clients, with a limited share of income, set at 20%, allowed to come from Spanish clients.
- Brazilians and other nationals with existing permits should check whether their current permit already allows self-employment, or whether it needs to be modified.
You need an NIE before any of the steps below.
Step 2: register with Hacienda and Seguridad Social
Becoming autónomo means two registrations, normally done on the same day, before you issue your first invoice.
Hacienda (the tax agency)
You register your economic activity with the Agencia Tributaria using Modelo 036. In it you choose your activity code (IAE epigraph), your start date, and your VAT and income tax regimes. If you will invoice business clients in other EU countries, you also request inclusion in the ROI, the register of intra-community operators, in the same form.
Seguridad Social (social security)
You register in the special scheme for self-employed workers, the RETA, through the Seguridad Social's online portal. Registration must happen no later than the day you start your activity. Late registration loses you the reduced flat rate described below.
Step 3: social security contributions and the €80 flat rate
Since 2023, autónomos pay monthly social security contributions based on their expected net income, in brackets. You choose a bracket when you register, can change it during the year, and the amount is adjusted once your real annual income is known.
- The flat rate (tarifa plana): new autónomos who have not been self-employed in Spain in the previous two years pay a reduced contribution of €80 per month for the first 12 months.
- Extension: if your net income in that first year stays below the minimum wage, you can request a further 12 months at the reduced rate.
- After the flat rate: contributions follow the income brackets, rising from a few hundred euros per month at low incomes to considerably more at high incomes.
Budget for the full contribution from month 13, not the €80. The flat rate is a launch period, and freelancers who plan around it are often surprised in the second year.
Step 4: the quarterly rhythm of IVA and IRPF
Autónomos file two main returns every quarter, in April, July, October and January, plus annual summaries.
| Return | What it covers | When |
|---|---|---|
| Modelo 303 | Quarterly IVA (VAT): the VAT you charged minus the VAT you paid on business costs | Quarterly |
| Modelo 130 | Quarterly advance payment of income tax: 20% of your net profit for the year to date | Quarterly, unless most of your invoices already have withholding |
| Modelo 349 | Summary of services to business clients in other EU countries | Usually quarterly, if you have such clients |
| Modelo 390 | Annual VAT summary | January |
| Modelo 100 | Annual personal income tax return (renta) | April to June |
Income tax withholding (retención)
When you invoice a Spanish business or another Spanish autónomo for professional services, you usually include IRPF withholding on the invoice. The client pays it to Hacienda on your behalf. The standard rate is 15%, reduced to 7% in the year you start and the two following years. If at least 70% of your income has withholding, you do not need to file Modelo 130.
Private individuals and foreign clients do not withhold. If most of your clients are abroad, expect to file Modelo 130 every quarter.
Step 5: invoicing clients outside Spain
For many online freelancers, most clients are abroad. VAT treatment depends on who the client is and where.
- Business clients in other EU countries: you normally invoice without Spanish VAT under the reverse-charge rule. The client accounts for VAT in their country. You need to be in the ROI, check the client's VAT number in the EU's VIES system, mention the reverse charge on the invoice, and report the sale on Modelo 349.
- Clients outside the EU: most professional services to businesses outside the EU are not subject to Spanish VAT. They are still declared on Modelo 303.
- Spanish clients: charge 21% IVA, the general rate for most professional services, and apply IRPF withholding where required.
- Private individuals in other EU countries: the rules differ, so ask your gestor before your first invoice of this type.
Every invoice needs a sequential number, the date, your full name, NIF/NIE and address, the client's details, a description of the service, the tax base, the VAT rate or exemption reason, and any withholding. Keep invoices in a consistent series. Spain is moving towards mandatory electronic invoicing, so choose invoicing software that keeps up with the rules.
What you can deduct
Business expenses directly related to your activity reduce both your VAT and your income tax, provided you have a proper invoice in your name with your NIF/NIE. Common deductions include:
- software subscriptions, equipment and professional training;
- your social security contributions;
- gestor fees, bank fees and professional insurance;
- part of home costs, such as utilities, if you work from home, under specific conditions;
- coworking space fees.
A first-month checklist
- Get your NIE and the right residence status.
- Open a Spanish bank account and, if you have foreign clients, a multi-currency account. Our guide to international payments compares the options.
- Choose a gestor, or an online service for autónomos.
- Register with Hacienda (Modelo 036, including ROI if needed) and Seguridad Social (RETA), on or before your start date.
- Set up invoicing software with a numbered series.
- Open a separate savings account and move IVA collected plus 20 to 30% of your profit into it every time you are paid.
- Put the quarterly deadlines in your calendar: 20 April, 20 July, 20 October and 30 January.
This guide summarises the general framework for 2026. Contribution brackets, thresholds and procedures are updated regularly, and individual situations vary. Confirm your obligations with a gestor or with the Agencia Tributaria and Seguridad Social before you register.
Know what you really keep from each payment
The real-net calculator in The Freelancer Guide shows what reaches your account after platform fees, currency conversion and a tax setaside for Spain and other countries.
See the membershipThe templates from these guides, in one printable kit
Eleven contract clauses, five overdue-invoice reminders, five replies to discount requests and a one-page rate worksheet. Leave your email to open the kit straight away, and receive one email a month with new guides. What the kit includes