Moving to Spain changes your tax situation in ways that aren’t always obvious until you’re already living there. The good news is that the core logic isn’t complicated once you understand how Spain defines a tax resident. The less-good news: the transition year tends to be the messiest, and the rules interact with your work setup — whether you’re an employee, a contractor, or registered as an autónomo — in ways that matter.
This guide covers what you actually need to know: how Spain determines tax residency, what triggers it, what happens in the first year, and how to think about your situation without making expensive mistakes. It doesn’t cover investment income or wealth tax — those are separate topics.
Spain’s tax authority is the Agencia Estatal de Administración Tributaria, known as the AEAT (also referred to as Hacienda). It’s the equivalent of the IRS in the US or HMRC in the UK. The AEAT administers the main taxes that affect residents, including personal income tax (Impuesto sobre la Renta de las Personas Físicas, or IRPF), which is what most digital nomads and relocatants will encounter first.
The AEAT operates at the national level, but some autonomous communities (Catalonia, the Basque Country, Navarra, and others) have their own tax arrangements that can affect specific rates and deductions. For most newcomers, this doesn’t change the fundamentals — but it’s worth knowing that “Spanish taxes” aren’t always identical across the country.
Spain’s primary test for tax residency is straightforward: if you spend more than 183 days in Spain during a calendar year, Spain considers you a tax resident for that entire year. Not just for the days you were there — for the whole year.
Those 183 days don’t have to be consecutive. They accumulate over the calendar year (January 1 to December 31). Days of “sporadic absences” — short trips abroad — are generally counted as days in Spain unless you can prove tax residency in another country.
Spanish law doesn’t define this with surgical precision in all cases, but the working assumption used by practitioners is that any day on which you are physically present in Spain at any point counts as a day in Spain. Arrival and departure days both typically count.
Spain uses two additional criteria for tax residency beyond the day count:
In practice, for most digital nomads, the 183-day rule is the one that applies. But if your income structure or family situation is complex, these additional criteria can become relevant.
Key point: Tax residency in Spain is determined by Spanish law — not by your visa type, your passport, or what any other country calls you. Holding a Digital Nomad Visa (DNV) does not automatically make you a Spanish tax resident, but living in Spain long enough does.
Once Spain classifies you as a tax resident, you become subject to IRPF on your worldwide income — not just income earned in Spain. This is the part that surprises many newcomers. If you’re working remotely for a US, UK, German, or any other foreign company while living in Spain, that income is taxable in Spain once you become a Spanish tax resident.
As a non-resident (fewer than 183 days, no other residency triggers), Spain only taxes income that has a source in Spain. The moment you cross into resident status, the scope expands to everything.
| Non-Resident | Tax Resident | |
|---|---|---|
| Tax scope | Spain-source income only | Worldwide income |
| Tax form | Modelo 210 | Declaración de la Renta (IRPF) |
| Filing period | Varies by income type | April–June for the prior year |
| Social security | Generally not applicable | Depends on work setup and agreements |
| Tax treaties | May still apply | More complex; treaty tie-breakers matter |
If you move to Spain partway through a year — say, in April — your first tax year is a split. For the months before you arrived, you were a tax resident somewhere else (or nowhere in particular). From the point you cross 183 days in Spain, you’re a Spanish tax resident for the whole calendar year.
This creates a situation where income from before your move may be claimed by both Spain and your previous country of residence. How this plays out depends on:
Spain has tax treaties with over 100 countries that are designed to prevent double taxation. These treaties generally assign taxing rights by income category and include “tie-breaker” rules for people who might qualify as residents in both countries simultaneously. In most cases, you won’t end up paying full tax twice — but you may need to file in both countries and apply credits or exemptions.
The first tax year is where an accountant who knows both Spanish tax law and your home country’s exit rules earns their fee. This is not a situation where “figure it out yourself” is the right approach for most people with any meaningful income.
The informal term “tax split” refers to dividing a year between two tax jurisdictions — one for the period before you established Spanish residency, one for after. Some countries handle this automatically through departure rules; others require you to file a partial-year return. Spain’s IRPF declaration covers the full calendar year, but treaty provisions and foreign tax credits are used to avoid double taxation on pre-move income.
The practical implication: don’t assume that because you only moved to Spain in September, you owe Spain nothing for that year. If you’re there past December 31 and cross 183 days the following year, Spain’s claim for that second year will include all worldwide income for the year — even income earned before you arrived.
Spain uses a progressive income tax system. IRPF rates are a combination of a national rate and a regional rate, which means they vary slightly by autonomous community. The ranges below are general — verify current rates with the AEAT or a tax professional, as brackets are adjusted periodically.
| Taxable Income (approximate) | Approximate Combined Rate |
|---|---|
| Up to €12,450 | ~19% |
| €12,450 – €20,200 | ~24% |
| €20,200 – €35,200 | ~30% |
| €35,200 – €60,000 | ~37% |
| €60,000 – €300,000 | ~45–47% |
| Over €300,000 | ~47%+ |
These are marginal rates — each bracket applies only to the portion of income within it, not to your total income. The actual effective rate you pay is lower than the top bracket you fall into.
There are various deductions and allowances that reduce taxable income — including a general personal allowance, allowances for employment income, and others depending on your situation. A tax accountant (asesor fiscal) will apply these when preparing your return.
Spain has a special tax regime formally called the régimen especial para trabajadores desplazados — commonly known as the Beckham Law after the footballer who famously used it. Under this regime, qualifying individuals pay a flat rate of 24% on Spanish-source income up to €600,000, rather than the standard progressive IRPF rates, for up to 6 years. Crucially, foreign income is generally not taxed in Spain under this regime.
Following changes in recent years, holders of the Digital Nomad Visa can potentially qualify for a version of this regime — which is one of the factors that makes the DNV attractive compared to other Spanish residency routes for remote workers with foreign employers or clients.
Whether the Beckham Law is beneficial depends heavily on your income structure, income level, and the tax treaty situation with your home country. For some people it’s genuinely advantageous; for others, the standard regime with treaty credits works out similarly or better. This is another area where a qualified asesor fiscal earns their value — ideally consulted before you apply for your visa, not after you’ve already moved.
Note: The Beckham Law application has a strict deadline — it must be filed within 6 months of your initial Spanish social security registration or the start of your registered activity. Missed deadlines cannot generally be appealed.
Tax residency and social security contributions are two separate questions, though they often travel together. Where you pay social security depends on where you work — and if you’re working remotely for a foreign employer while living in Spain, the rules are more complicated than they appear.
In theory, if you physically work from Spain, your employer may have an obligation to register with Spain’s social security system (Seguridad Social) and make contributions there. In practice, many remote employees working for foreign companies while living in Spain exist in a grey zone — particularly in the early period of their residency.
EU countries have social security coordination rules that determine where contributions are paid when someone lives in one EU country and works for an employer in another. A Certificate of Coverage (sometimes called an A1 certificate in the EU context) can establish that an employee continues paying social security in their home country for a temporary period — typically up to 2 years. Outside the EU, bilateral social security agreements (called totalization agreements) play a similar role.
The US-Spain totalization agreement, for example, means that Americans working for a US employer while living in Spain may be able to continue paying US Social Security rather than Spanish social security, under certain conditions. Whether this applies to your specific situation depends on your employment structure and how long you’ve been in Spain.
Freelancers and independent contractors working from Spain are generally expected to register as autónomo — Spain’s self-employed status — and pay into the Spanish social security system accordingly. The autónomo contribution system was reformed in recent years to be income-based rather than a flat fee, which changes the math for lower-income freelancers compared to the old system.
Autónomo registration also has tax implications: registered autónomos file quarterly VAT returns (if applicable) and quarterly income tax prepayments on top of the annual IRPF declaration. The paperwork is real and tends to be the thing that pushes most people toward hiring a gestor (an administrative professional who handles filings) or an asesor fiscal.
This is a concern that comes up repeatedly among remote workers considering the DNV or long-term Spanish residency: what does my move to Spain mean for my employer? In some setups — particularly US W-2 employees — an employer allowing an employee to work from Spain for extended periods may create legal and tax obligations in Spain for the employer itself. This varies by country, by the employer’s existing Spain presence, and by duration.
It’s not a reason to avoid Spain, but it’s a conversation to have with your employer before you move — not after you’ve established residency and the question becomes retrospective.
If you leave Spain, you don’t automatically exit Spanish tax residency on the day you board the plane. You need to file a declaración de baja censal and in some cases obtain a certificado de residencia fiscal from a new country to prove you’ve moved your tax base. If you simply stop spending time in Spain without formally changing your tax status, Spain may continue to treat you as a resident — particularly if you maintain a habitual home there, your family remains, or your economic ties stay in Spain.
This is especially relevant for people who split time between countries or who leave Spain but keep their apartment, family, or business activity there.
The United States taxes its citizens on worldwide income regardless of where they live — this is relatively unusual globally and creates a layer of complexity that most other nationalities don’t face. US citizens living in Spain as tax residents are, in principle, filing tax returns in both countries every year.
The US-Spain tax treaty and the Foreign Earned Income Exclusion (FEIE) provide mechanisms to reduce or eliminate double taxation in many cases — but how they interact depends on the type of income, whether you’re employed or self-employed, and other factors. The combination of IRPF, potential Beckham Law treatment, and US tax obligations is genuinely complex enough that most US citizens relocating to Spain work with an accountant who handles both US expat tax and Spanish tax. There are firms that specialize specifically in this combination.
| Term | What It Means |
|---|---|
| AEAT / Hacienda | Spain’s national tax authority |
| IRPF | Personal income tax for Spanish residents (progressive, on worldwide income) |
| Modelo 210 | Non-resident income tax form (for Spain-source income only) |
| Declaración de la Renta | Annual income tax return filed by Spanish residents, typically April–June |
| Beckham Law | Special flat-rate tax regime for qualifying newcomers; 24% on Spanish-source income up to €600k for up to 6 years |
| Autónomo | Self-employed status in Spain; required for most freelancers and independent contractors |
| Seguridad Social | Spain’s social security system |
| Asesor fiscal | Tax advisor / accountant |
| Gestor | Administrative professional who handles filings and paperwork; not a full tax advisor |
| NIE | Número de Identificación de Extranjero — foreign national ID number, required for tax and most administrative matters |
| Certificate of Coverage / A1 | Document establishing where social security contributions are paid for cross-border workers |
| Tax treaty | Bilateral agreement between countries to prevent double taxation; Spain has them with 100+ countries |
Note: Spanish tax law — including IRPF rates, Beckham Law eligibility, autónomo contribution rules, and social security agreements — is updated regularly. The information in this article reflects general principles and should not be treated as tax advice. Verify current rules and rates with the AEAT (aeat.es) or a licensed Spanish tax advisor before making decisions.