Menu
Expat.com
Search
Magazine
Search

Establishing Tax Residency Timeline

I'm hoping someone here may have insight on this (maybe you've experienced it before when you first moved to Spain):


I'm a US citizen (so always a tax resident of the US) hoping to move with my family to Spain in late May/early June on the Digital Nomad Visa. We have to return to the US for the month of August for multiple family weddings and also hope to do a bit of traveling around Europe too in the Fall.


Say with the move timing and the month absence we do not hit the 183 days needed to be a tax resident - that means we aren't tax residents of Spain for that year, just the US, right? I know we'd still have to pay tax on income generated in Spain but mainly wondering about the income we made in the US prior to the move.


But say we do spend 183+ days in Spain, what happens to the income generated in the US prior to the move (in Jan - May)? We typically get taxes taken out of paychecks in the US so that tax will have already been paid to the US - how will we pay that to Spain?


Either way, I know we shouldn't be double taxed because of the tax treaties but just trying to figure out how it will place out. A few scenarios I've thought of:


  1. Would we get charged by Spain and then request a refund from the US when we file those taxes?
  2. Would Spain credit us for what was already paid to the US?
  3. Will we only be responsible for paying worldwide income after tax residency is established (meaning Spain won't look at income generated BEFORE we became tax residents)?


Any insight would be super appreciated.


Thank you!

1 member reacted to this post
See also

@Dani Ramz


I don't know any of the specifics, but as a US citizen you will remain a tax resident even when you move abroad. By living in Spain, you will become a tax resident there too. As a tax resident in two countries, you will owe tax to both. But there's a DTA so you typically don't pay tax twice on the same income, and you get credit in one for tax paid in the other. Which is probably your main concern.


Rules on tax residence are commonly based on the "substantial presence test" (i.e. more than 183 days in the year), but it's not the only condition. For example, if your family (spouse, children) lives there, or your "center of economic interests" is there (i.e.most of your property/money/business activity). It could well be your tax residence is triggered by the family move, rather than the days.


Usually, tax residence applies to tax years, rather than a point of time. But it depends, and I don't know Spain's exact rules on this.


Additionally, there might be some special tax conditions/exemptions attached the DNV, so it might be good to check on this too.

Need help with your tax obligations in Spain?
Consult a tax advisor

Hi Dani,


To fill in the point about income earned before moving: under Spain’s ordinary IRPF rules, residence is assessed for the calendar year. Moving does not itself split the Spanish tax year. If you are resident for that year, the starting point is worldwide income from January to December, so January–May US salary is not automatically excluded. The US–Spain treaty must then be applied to your circumstances.


Also, counting only the days physically spent in Spain does not automatically settle residence. Sporadic absences can count towards the “more than 183 days” test unless you prove tax residence elsewhere. Spain’s economic-interest test and the rebuttable family presumption can also apply. If both countries regard you as resident, the treaty’s residence rules need checking.


For double-tax relief, there is no general answer that Spain credits all US payroll withholding or that the US refunds it all. Employment income needs to be checked against where the work was performed and article 16 of the treaty. Article 24 then determines the relief, including its specific rules for US citizens resident in Spain. A Spanish credit is subject to limits; the final tax liabilities need reconciling.


Finally, the optional article 93 impatriate regime can change the analysis. A Digital Nomad Visa does not automatically put you into that tax regime: eligibility and the election must be checked separately.


The practical first step is to map your days and work locations for the whole calendar year, then establish which tax regime applies before calculating the treatment of the January–May income.


Official sources checked on 5 November 2026:

Spanish IRPF Law, articles 2, 9, 12 and 93: https://www.boe.es/buscar/act.php?id=BOE-A-2006-20764

AEAT, individual tax residence: https://sede.agenciatributaria.gob.es/S … spana.html

US–Spain tax treaty, articles 4, 16 and 24: https://www.boe.es/buscar/act.php?id=BOE-A-1990-30940

Further reading