🌍 Tax Residence in Spain: Where to Pay Tax If You Live Between Two Countries

Working abroad for a few months, having your family in one country and your business in another, or moving to Spain mid-year are increasingly common situations. They all raise the same question: where do I have to pay my taxes? The answer depends on your tax residence, which does not always match where you are registered as living.

At Ruiz & Asociados we explain how tax residence is determined in Spain, what happens if two countries consider you resident and how to avoid paying twice on the same income.

Tax residence and double taxation
🌍 Tax Residence in Spain: Where to Pay Tax If You Live Between Two Countries 2

🧭 The three tests for tax residence in Spain

Under Spanish income tax law, you are resident in Spain if you meet any of these conditions during the calendar year:

  • Presence: spending more than 183 days in Spain. Sporadic absences count, unless you prove tax residence in another country.
  • Economic interests: having the main base of your activities or economic interests in Spain, even if you spend few days here.
  • Family: you are presumed resident if your non-separated spouse and minor children live in Spain, unless proven otherwise.

Spain has no split-year rule: you are resident or non-resident for the whole tax year, so a mid-year move needs careful planning.

🌐 What if both countries consider you resident?

Spain and another country may both treat you as resident at the same time. To resolve this, double taxation treaties include tie-breaker rules applied in order: where you have a permanent home, where your centre of vital interests is, where you habitually live and, finally, your nationality.

Spain has treaties with around a hundred countries. If your case involves several countries, we can help through our international taxation team and, for other Member States, through our EU tax advisors page.

📄 The tax residence certificate

A tax residence certificate proves which country you are resident in for tax purposes. It is used to apply treaty benefits, such as reduced withholding on dividends or interest, and to show the Spanish Tax Agency that you are no longer resident in Spain. The Spanish Tax Agency issues it for Spanish residents and it is generally valid for one year.

💶 How double taxation is avoided

  • Spanish residents pay tax on their worldwide income, but can claim the international double taxation credit for tax paid abroad, up to the amount that would be payable in Spain.
  • Employees temporarily posted abroad may apply the exemption in article 7p of the income tax law, of up to €60,100 a year, if the requirements are met.
  • Non-residents only pay tax in Spain on income earned here, through non-resident income tax (IRNR): 19% for residents of the EU or EEA and 24% in other cases. Find out more in our guide to taxation of non-residents.

📦 Obligations if you hold assets abroad

If you are resident in Spain and hold accounts, securities or property abroad worth more than €50,000 in any of those categories, you must file form 720 between 1 January and 31 March, and form 721 for crypto held abroad. These are information returns: they don’t mean paying more, but forgetting them can be costly.

✈️ If you are moving to Spain

If you move to Spain and have not been resident in the previous five years, you may apply for the impatriate regime known as the Beckham Law: you pay 24% up to €600,000 on employment income in the year you arrive and the following five years. We explain the requirements in our article on the Beckham Law and digital nomads.

⚠️ Common mistakes

  • Thinking that deregistering from the local register is enough to stop being resident.
  • Not obtaining a tax residence certificate from the other country.
  • Forgetting form 720 when holding accounts or property abroad.
  • Changing residence mid-year without working out the income tax impact.

You can find more information in the Spanish Tax Agency guide on the residence of individuals. Figures based on the rules in force in November 2026; every case needs its own review.

📅 How the 183 days of tax residence are counted

The count is made per calendar year, from 1 January to 31 December, not for any twelve-month period. Days of physical presence in Spain are counted, and sporadic absences, such as holidays or business trips, are added unless you can prove tax residence in another country.

In practice, the burden of proof usually falls on the taxpayer. That is why it is worth keeping documents showing where you have been: flight tickets, rental contracts, payslips, card statements, utility bills or entry and exit records. In a Tax Agency review, this paperwork makes the difference.

🧾 How to prove you live in another country

If you want to stop being tax resident in Spain, saying so is not enough: you must be able to prove it. The elements that carry most weight are:

  • A tax residence certificate issued by the other country’s tax authority, ideally for treaty purposes.
  • Consular registration and enrolment in the destination country’s social security system.
  • An employment contract, an owned or rented home and bank accounts in the new country.
  • Notifying the Spanish Tax Agency of your change of tax address with form 030.
  • Your family and main economic interests having moved as well.

If most of your assets, income or family remain in Spain, the Tax Agency may still consider you resident even if you spend most of the year abroad.

👨‍💼 Common tax residence cases

Employee posted abroad by their company. If you leave Spain to work for a few months and return before spending 183 days away, you will normally remain resident. You may then apply the article 7p exemption for days worked abroad, provided the work benefits a non-resident company and the destination country has a tax similar to Spanish income tax.

Remote work from Spain for a foreign company. If you live in Spain for more than 183 days, you are resident and pay tax here on your salary, even if a foreign company pays it. Social security and whether your employer needs to register in Spain must also be reviewed.

Retirees who spend the winter in Spain. Many residents of northern Europe spend long periods on the Spanish coast. If they exceed 183 days, they become tax resident here with all the obligations that brings, including reporting assets abroad.

Business owner with a business in Spain who lives abroad. Even with few days in Spain, if your main source of income or your assets are here, the Tax Agency may consider your centre of economic interests to be in Spain.

Family in Spain and work abroad. If your spouse and minor children live in Spain, you are presumed resident too, unless you prove otherwise with a residence certificate from another country.

🏢 What about company tax residence?

Companies also have a tax residence. A company is resident in Spain if it was incorporated under Spanish law, has its registered office here or has its place of effective management in Spain, meaning where the key decisions are made. A foreign company that is in practice run from Spain may end up taxed here.

In addition, a foreign company with an office, a factory or an agent with powers in Spain may have a permanent establishment and pay tax in Spain on the activity carried out here. If your company operates in several EU countries, see our EU tax advisors page.

🔄 What to do if you change your tax residence

  1. Plan the date. As there is no split year, your departure or arrival date determines where you are resident for the whole year.
  2. Report the change. Update your tax address with form 030 and inform your bank and employer.
  3. Review your investments. In certain cases, anyone who stops being resident with a high-value portfolio of shares may have to pay tax on unrealised gains (the so-called exit tax).
  4. Obtain certificates. Request a residence certificate in your new country as soon as possible.
  5. Tidy up pending obligations. File your last income tax return as a resident and, from then on, non-resident returns for any income you still earn in Spain.

❓ Frequently asked questions about tax residence

Can I be tax resident in two countries at once?
Yes, under each country’s domestic law. In that case the tie-breaker rules of the double taxation treaty apply, if there is one.

Is registering in another country enough?
No. Local registration is only an indication. What counts is days of presence, your economic interests and your family.

If I’m no longer resident, do I have to declare the rent from my flat in Spain?
Yes. Non-residents pay tax in Spain on rent from property located here, using form 210.

What if the Tax Agency disagrees with my residence?
It may open a review. Having your documents ready and a residence certificate from the other country is the best defence.

📋 Documents to prove your tax residence

Whether you need to prove you are resident in Spain or that you have stopped being resident, keep the following to hand:

  • A tax residence certificate from the Spanish Tax Agency or from the other country’s authority.
  • Your employment contract and payslips, showing where the work is carried out.
  • Your rental contract or title deed and utility bills.
  • Tickets, boarding passes or records showing the days spent in each country.
  • Local registration certificates and, where relevant, consular registration.
  • Documents showing where your spouse and children live and study.

🗓️ Tax residence in Spain in 5 key points

  1. You are resident in Spain if you spend more than 183 days here in a year, if your centre of economic interests is here or if your spouse and minor children live here.
  2. You are resident or non-resident for the whole year, with no split years.
  3. If two countries consider you resident, the treaty decides using its tie-breaker rules.
  4. Residents pay tax on their worldwide income, with credits to avoid double taxation.
  5. Forms 720 and 721 are mandatory if you hold assets abroad above the limits.

Tax residence is a matter of facts and evidence. The earlier a move abroad is planned, the more options there are to do it in an orderly way and without risk.

🏛️ What to do if the Tax Agency asks you to prove your residence

The Spanish Tax Agency increasingly reviews the residence of people who report having left Spain or who spend long periods here. If you receive a request, these are the recommended steps:

  1. Check the reply deadline and don’t miss it: it is usually ten working days, extendable if you ask.
  2. Gather documents showing the days spent in each country and where your home, work and family are.
  3. Provide the other country’s tax residence certificate, ideally issued for treaty purposes.
  4. Prepare a clear, well-organised letter explaining your situation consistently with the documents.

A good reply from the start usually prevents the procedure from becoming complicated. If you need help, we can prepare the response with you.

🧳 Digital nomads and remote workers

Remote work has made it easier than ever to live in Spain while working for clients or employers abroad. Spain has a digital nomad visa, and its holders can, in many cases, apply the Beckham Law regime. But living here also means becoming tax resident once you pass 183 days, with income tax on your worldwide income and, depending on the case, social security contributions in Spain.

Before moving, it is worth checking which country you will be resident in, whether the impatriate regime applies, how your employer or clients will invoice and pay you, and which reporting obligations you will have for accounts or investments abroad.

🧭 A final tip on tax residence

Tax residence is decided year by year, so it is worth reviewing your situation every December, before the new year starts. Check how many days you have spent in each country, where your main income comes from and whether anything has changed in your family situation. Small adjustments made in time are much easier than correcting a whole year afterwards.

🏢 Ruiz & Asociados: international tax advisors

At Ruiz & Asociados we analyse your tax residence, apply the relevant treaty and handle your Spanish returns so you don’t pay twice on the same income. 🤝

Do you live, work or invest between two countries? Contact our firm and we’ll review your case with no commitment. 🚀