Spain digital nomad visa: taxes and social security
In short
- The visa has no tax regime of its own: after more than 183 days in Spain in a year you are tax resident and pay IRPF.
- With an employment contract with a foreign company you are an employee and can ask for the Beckham law: 24% instead of the regular scale.
- Working for your own clients makes you an autónomo: registration in RETA, a monthly contribution and IRPF on the scale. The Beckham law does not apply.
- An autónomo on this visa may also work for Spanish companies, but for no more than 20% of their work.
The digital nomad visa (visado para teletrabajo de carácter internacional) lets you live in Spain and work remotely for companies outside it, but it comes with no special taxes. Anyone who spends more than 183 days in Spain in a year becomes tax resident and pays IRPF. How much depends on how you work: on an employment contract with a foreign company or for your own clients as a freelancer. An employee can ask for the Beckham law; a freelancer becomes an autónomo.
Employee or autónomo: which one are you on this visa
The visa law (article 74 bis of Ley 14/2013) has two cases:
- An employment contract (actividad laboral) with a company outside Spain. You may work only for foreign employers, not Spanish ones.
- A services contract (actividad profesional): you are a freelancer and the company is your client. You may also work for Spanish companies, as long as it is no more than 20% of all your work, and only as a contractor, never as an employee.
In both cases the contract with the foreign company must have existed for at least 3 months before you apply. The first visa is valid for up to 1 year; after that, in Spain you can get a residence permit for up to 3 years and renew it for 2 years at a time. The holder needs an income of at least 200% of the minimum wage (SMI) a month, which in 2026 is €2,442 gross.
Your social security and your tax both follow from the type of contract.
When you become tax resident
You are tax resident in Spain if you spend more than 183 days here in a calendar year, or if the core of your business or economic interests is here (article 9 of the IRPF law). The visa does not change that: it lets you live and work here, and taxes follow the usual rules.
A resident pays IRPF on worldwide income, not just Spanish income. If you have not spent more than 183 days here in the year you arrive, you are most likely not resident that year. But you can also be treated as resident if your main business and income are in Spain, or if your spouse and minor children live here.
Employee of a foreign company: IRPF or the Beckham law
If you work on an employment contract, the Beckham law (régimen especial, article 93 of the IRPF law) is open to you. Remote work for a foreign company is expressly listed among the reasons for moving that qualify.
- Your salary is taxed at a flat 24% up to €600,000 a year, instead of the regular scale.
- The regime lasts 6 tax years: the year you become resident and the following ones.
- Condition: you were not tax resident in Spain in the last 5 years.
- You apply with modelo 149 within 6 months of your registration with social security (alta), not of the date you moved. Missing this deadline is the most common mistake.
Check whether the regime fits you and what it gives at your salary on the Beckham law page.
Without the Beckham law, the salary is taxed on the regular scale, state plus regional, with a tax-free personal allowance. Which one is better depends on the salary: see the example below.
Freelancer with your own clients: you are an autónomo
If your visa is based on services contracts, you are an autónomo, that is, self-employed. The Beckham law does not apply to you: it is for employees, company directors and startups, and freelancing for your own clients is not among the grounds.
What you need to do:
- Register with the tax agency and with social security (alta). The guide “How to become an autónomo” explains how.
- Pay the monthly social security contribution. In the first year it is reduced: tarifa plana, €88.56 a month (details).
- File modelo 130 (IRPF prepayment) and modelo 303 (IVA) every quarter, and the annual Renta return in spring.
Tax is charged on your profit on a progressive scale, like for every autónomo. In the first years there is a reduction for new autónomos. The guide “How much an autónomo pays” explains what goes on tax and contributions.
Social security: where you contribute
Autónomos must register with the Spanish social security scheme for the self-employed (RETA). The Ministry says it plainly: autónomos cannot stay in their home country’s social security under a bilateral agreement. If you do not register right after getting the permit, it can be withdrawn.
Employees have two options:
- the foreign company registers with Spanish social security as an employer with no establishment in Spain and registers you in the general scheme (Régimen General);
- or you stay in your home country’s social security, if your country has a social security agreement with Spain and your social security office issues a certificate saying that it covers remote work from Spain.
The list of countries with a bilateral agreement is on the social security website; it includes Ukraine, for example. Whether your country’s agreement covers remote work, and for how long, is something to check with your social security office.
IVA for foreign clients
Autónomos on the nomad visa usually work for foreign companies. You do not add Spanish IVA for a company in another EU country: the client pays the tax (inversión del sujeto pasivo), but you need to be registered in the ROI register. Invoices to companies outside the EU are also without Spanish IVA. If some of your clients are Spanish companies (within the 20%), you add IVA for them and they withhold an IRPF prepayment from the invoice.
You file modelo 303 every quarter, even when all your clients are abroad. Details are in the guides “Clients abroad” and “IVA and modelo 303”.
Example: the same income, three ways
| Employee, regular IRPF | Employee, Beckham law | Autónomo | |
|---|---|---|---|
| Income for the year | €50,000 | €50,000 | €50,000 |
| Social security | − €3,250 | − €3,250 | − €1,063 |
| Income tax | − €10,985 | − €12,000 | − €8,362 |
| Net for the year | €35,765 | €34,750 | €40,575 |
| Per month | €2,980 | €2,896 | €3,381 |
Calculated by the calculator under the 2026 rules. The Beckham column applies only once the regime is approved for you.
Under the Beckham law the employee takes home €34,750 a year; on the regular scale, €35,765. So at this salary the regime does not pay off: the regular scale leaves €1,015 more, thanks to the tax-free allowance and the lower rates on the first part of income. The Beckham law starts to pay off on higher salaries: check yours on the Beckham law page.
An autónomo with the same income keeps €40,575 in the first year, helped by the tarifa plana and the reduction for new autónomos, but the contribution goes up in the second year.
What the calculator shows
The calculator works out the autónomo case: contribution, IRPF, modelo 130 and IVA by quarter. Answer “Not yet” to “Are you already an autónomo?” to see the first year with tarifa plana, and enter your clients as they are: in the EU, outside the EU or in Spain. For an employee of a foreign company, the comparison between regular tax and the Beckham law is on the Beckham law page.
Calculate with your own numbers
The calculator shows the cuota, the tax and modelo 130 month by month for your income and region.
Open the calculatorSources
The official texts this guide is based on.
- Ley 14/2013, arts. 74 bis–74 quinquies (teletrabajo de carácter internacional, añadidos por la Ley 28/2022)www.boe.es
- Ministerio de Inclusión: teletrabajadores de carácter internacional, documentación y Seguridad Socialwww.inclusion.gob.es
- Ministerio de Inclusión: preguntas frecuentes sobre teletrabajadores internacionalesbibliovirtual.inclusion.gob.es
- Ley 35/2006 del IRPF, art. 9 (residencia habitual en territorio español)www.boe.es
- Ley 35/2006 del IRPF, art. 93 (régimen especial de trabajadores desplazados)www.boe.es
- Reglamento del IRPF, arts. 113–120 (régimen especial, modelo 149)www.boe.es
- AEAT: modelo 149, opción por el régimen especial de trabajadores desplazadossede.agenciatributaria.gob.es
- Seguridad Social: convenios bilateraleswww.seg-social.es
Where the rates and amounts come from and when we checked them: How we count. This is an estimate, not tax advice.