Tax Basics for Digital Nomads in Spain: What You Need to Know Before You Move

Spain has become one of the most popular destinations for digital nomads and remote workers — and for good reasons. Great weather, excellent infrastructure, a rich culture, and, since 2023, a dedicated Digital Nomad Visa. But before you pack your bags, there’s one topic that deserves serious attention: taxes. Understanding your tax obligations in Spain before you arrive can save you from costly surprises down the line.

What Is Tax Residency— and Why Does It Matter?

Tax residency determines which country has the right to tax your income. It is entirely separate from your nationality, your immigration status, or the country where your bank account is held. As a digital nomad, you may be working for clients or companies based anywhere in the world — but where you are physically present is what typically determines where you owe taxes.

In Spain, you are considered a tax resident if any one of the following applies:

  • You spend more than 183 days in Spain during a calendar year (1 January to 31 December).
  • Spain is the main base of your economic activities or professional interests.
  • Your spouse (if not legally separated) or your dependent minor children habitually reside in Spain — this creates a legal presumption of tax residency, which you must actively rebut if you want to be treated as a non-resident.

Once you are considered a Spanish tax resident, Spain taxes your worldwide income — meaning all income from all sources and all countries, regardless of where it was earned or where it was paid.

The 183-Day Rule: What Counts?

The 183-day threshold is the most commonly cited trigger for Spanish tax residency, but it comes with important nuances:

  • Days do not need to be consecutive. A day trip across the border does not reset the count.
  • Sporadic absences from Spain are counted as days in Spain unless you can prove tax residency in another country. In other words, simply leaving Spain for short periods does not break the count.
  • The count is per calendar year. If you arrive in September, you will not hit 183 days that year — but you may well do so in the following year if you stay.
  • Spain may still claim tax residency even if you hold a tax certificate from another country, particularly if your main economic or personal ties are in Spain.

Keep in mind!

Many digital nomads assume that staying 'under 6 months' is enough to avoid Spanish taxes. In practice, the rules are more complex — sporadic absences, family ties, and economic interests can all override a simple day count.

What Happens to Your Foreign Income?

If you are a Spanish tax resident, all your income must be declared in Spain — including:

  • Salary or fees from foreign employers or clients.
  • Freelance or self-employment income, regardless of where the client is based.
  • Investment income: dividends, interest, capital gains from foreign accounts or brokers.
  • Rental income from properties abroad.
  • Income from foreign business activities.

Spain has double taxation treaties with over 90 countries. These treaties are designed to ensure you do not pay full tax twice on the same income — typically by allowing you to offset taxes paid abroad against your Spanish liability, or by exempting certain types of income from Spanish tax. However, the exact treatment depends on the specific treaty and the type of income involved.

One practical point that is frequently overlooked: for a tax treaty to work properly, you must actively communicate your Spanish tax resident status to the country of origin of the income. Without this, the foreign country may apply its standard withholding rates as if you were still a local resident — and the tax credit mechanism may not function as expected. Both the tax applied in Spain and the tax withheld abroad need to be correct for the treaty to achieve its intended result. This typically requires obtaining a certificate of tax residency from the Spanish Tax Agency (Agencia Tributaria) and presenting it to the foreign payer or tax authority.

It is also worth noting that as a Spanish tax resident, you may be required to declare foreign assets above €50,000 (Modelo 720) and foreign accounts (Modelo 721 for cryptocurrency, and the standard Modelo 720 for bank accounts, investments, and real estate abroad). Non-compliance carries significant penalties.

Your Visa and Your Tax Status Are Not the Same Thing

This is one of the most frequent sources of confusion among digital nomads. Your immigration status — the visa or permit you hold — does not determine your tax residency. They are governed by entirely different legal frameworks.

Here is what that means in practice:

  • You can hold a Digital Nomad Visa (DNV) and NOT be a Spanish tax resident, if you spend fewer than 183 days in Spain and have no other ties triggering residency.
  • You can be a Spanish tax resident WITHOUT holding any specific visa, simply by virtue of spending enough time here or having your main economic interests in Spain.
  • Obtaining a NIE (foreigner identification number) or a residency certificate (certificado de registro) is not the same as becoming a tax resident.

The Digital Nomad Visa, introduced in 2023, is an immigration permit that allows non-EU nationals to live and work remotely from Spain. It also opens the door to applying for the Beckham Law special tax regime — but this is a separate application with its own requirements and deadlines, and not all DNV holders will automatically benefit from it.

It is also worth flagging that the DNV is a relatively new figure in Spanish law, and the question of digital nomads who hold the visa but do not become tax residents is something that is already on the radar of the authorities and actively being discussed. A visa is designed for people who intend to live in a country on a permanent basis — and maintaining that you are not a tax resident while holding a long-term residency permit is not a coherent position in the eyes of the law. This tension could have practical implications at the time of renewing the permit. Anyone in this situation should take professional advice and monitor how the regulatory framework evolves.

Did you know?

Getting the immigration side right does not mean the tax side is sorted. Many digital nomads sort their visa and assume everything else falls into place — it doesn't. Tax planning needs to happen in parallel.

Social Security: A Separate Obligation

Social Security contributions in Spain are entirely separate from income tax, and they apply regardless of which tax regime you fall under. Depending on your situation:

  • If you work for a Spanish employer, they will typically enrol you in the Spanish Social Security system and contributions will be split between you and the employer.
  • If you are self-employed (autónomo) — which is the most common setup for digital nomads working for foreign clients — you must register with Social Security and pay contributions monthly. The minimum contribution in Spain is significant and varies depending on your estimated income level.
  • If you are an EU/EEA national working temporarily in Spain for a foreign employer, you may be able to maintain your home country’s Social Security coverage by obtaining an A1 certificate, typically valid for up to 24 months.
  • Non-EU nationals may benefit from bilateral Social Security agreements Spain has signed with certain countries. The coverage and rules vary widely depending on the specific agreement.
Tax Basics for Digital Nomads

Social Security contributions in Spain also give you access to the public health system and count towards your Spanish pension. However, for many digital nomads — especially those who do not plan to stay long-term — the cost-benefit analysis of contributing to the Spanish system versus maintaining coverage elsewhere deserves careful consideration.

The key takeaway: before you move, map out both your tax and your Social Security situation simultaneously. They are separate obligations, but both need to be planned for.

Written by: Martha Aparicio, Tax Advisor

The information provided in this article is for general informational purposes only and should not be considered tax or personalized professional advice. Every individual's tax situation is unique and should be assessed based on their specific circumstances and the applicable legislation.

© 2026 CABR Relocation for Expats. All rights reserved.

Post a comment

Your email address will not be published.

Información básica sobre protección de datos Ver más

  • Responsable: CABR RELOCATION SOLUTIONS FOR EXPATS.
  • Finalidad:  Moderar los comentarios.
  • Legitimación:  Por consentimiento del interesado.
  • Destinatarios y encargados de tratamiento:  No se ceden o comunican datos a terceros para prestar este servicio. El Titular ha contratado los servicios de alojamiento web a Godaddy que actúa como encargado de tratamiento.
  • Derechos: Acceder, rectificar y suprimir los datos.

Related Posts