I live in Spain and run a free reference site for foreigners here. These are the five topics developers get wrong most often: the digital nomad visa, the 183-day rule, the Beckham law, Modelo 720 and crypto taxes. Below is a short summary of what the rules themselves say. Every point links to the official text, so you can check it.
1. The digital nomad visa
You have to show at least 200% of the Spanish minimum wage (SMI). In 2026 that is about €2,850 a month for one person, plus about €1,070 for the first family member. You must have been working with the company for at least 3 months, and the company must have existed for at least a year. You also need a degree or at least 3 years of experience in similar work.
If you are an employee, you can only work for companies outside Spain. If you are a freelancer (in Spain that means registering as autónomo), up to 20% of your work can be for Spanish clients, and no more. That is in articles 62.3.f and 74 bis of Law 14/2013: https://www.boe.es/buscar/act.php?id=BOE-A-2013-10074
2. The 183 days and tax residency
Spain treats you as a tax resident if you spend more than 183 days here in a calendar year. Having the centre of your economic interests here is also enough. And if your spouse and your dependent minor children live in Spain, you are presumed resident unless you prove otherwise.
Trap one: short trips abroad still count as days in Spain unless you prove tax residency in another country. Trap two: the first year is not split. Arrive in March, stay more than 183 days, and you are resident for the whole year, so you declare your worldwide income for that year, including what you earned before the move. Article 9 of the personal income tax law (IRPF): https://www.boe.es/buscar/act.php?id=BOE-A-2006-20764#a9
3. The Beckham law
This is a special regime: a flat 24% on employment income up to €600,000 a year for 6 years, instead of the normal progressive scale. The conditions: you have not been a Spanish tax resident in the previous 5 years, and you moved here to work. A digital nomad employed by a foreign company can qualify if the other conditions are met: the law mentions these workers explicitly.
But:
- You must apply (Modelo 149) within 6 months of the date you start working. That date comes from your registration with Spanish social security (alta en la Seguridad Social), or from the document that keeps you in your home country's social security system. Miss the deadline and you cannot opt in later.
- For freelancers, the regime is only available in three cases: a business activity with a favourable report from the state agency ENISA; a highly qualified professional working for a startup (empresa emergente); or training, research and development work. In the last two cases, that income must be more than 40% of your total income.
- It is not always the better deal. The 24% applies from the first euro, while the lower brackets of the normal scale are cheaper. You also lose the personal and family tax-free allowances. On a modest salary the normal scale can come out cheaper, so run your own numbers.
The rule: article 93 of the IRPF law: https://www.boe.es/buscar/act.php?id=BOE-A-2006-20764#a93
4. Modelo 720
This is not a tax. It is an information return about assets abroad. You file it if, on 31 December, you hold more than €50,000 abroad in any one of three blocks: bank accounts; securities and insurance; real estate. The threshold applies to each block separately. For accounts, the tax agency also looks at the average balance for October–December: crossing €50,000 on either of the two measures is enough. You file between 1 January and 31 March of the following year.
It is a myth that the 720 was abolished. After the 2022 ruling of the EU Court of Justice (C-788/19), only the special, very large penalties were removed, and ordinary penalties now apply. The obligation to file remains. People under the Beckham regime do not file the 720, according to the tax agency (AEAT), but that does not extend to a spouse who is resident under the normal rules. AEAT on Modelo 720: https://sede.agenciatributaria.gob.es/Sede/procedimientoini/GI34.shtml
5. Crypto
If you just buy and hold, there is no tax. Tax arises when you sell for euros or swap one coin for another. Yes, swapping BTC for USDT counts too: it is a sale, and you pay 19% to 30% on the gain depending on the amount. Staking is taxed as well, as capital income, at the price on the day you receive it.
Coins sold are counted on a FIFO basis: the first ones you bought are the first ones out. And FIFO runs across all your exchanges together, not per exchange.
If on 31 December you hold more than €50,000 on custodial platforms that have neither a resident company nor a permanent establishment in Spain, you also file Modelo 721. That one is also only an information return. Coins in a wallet where you hold the keys yourself are not included. AEAT on Modelo 721: https://sede.agenciatributaria.gob.es/Sede/procedimientoini/GI55.shtml
Where to read more
I write all of this up, with links to the rules, on my reference site Guía Extranjeros. All guides are free to read, in English, Spanish and Ukrainian: https://guiaextranjeros.es/en/?s=devto_topic_en
This is not tax advice. Every situation is different, and the figures change every year. Ask in the comments and I'll tell you what to look at and where to find the rule.
![Physical AI Foundations and Definitions — Ch.10: Future Directions [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgz7t8gzrdba0obh9ma56.png)
![Physical AI Foundations and Definitions — Ch.08: Physical AI Product Strategy [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4gyormoamcida6t18mdw.png)
![Physical AI Foundations and Definitions — Ch.07: Relation to AMR Manipulator Humanoid Quadruped UAV [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fte7aqbjpqzqiay6cht0x.png)
![Physical AI Foundations and Definitions — Ch.05: Physical AI Taxonomy [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxeb66tbhskewzsz49i7p.png)