DAYWHERE

Be among the first to use Daywhere.

We're putting the finishing touches on the app. Leave your email and we'll let you know as soon as access opens.

We'll only use your email to tell you when we launch. Privacy policy

All guides

Comparisons9 min readUpdated · MAY 2026

Spain vs Portugal: where does a remote worker pay tax in 2026?

Residency rules, rates and the bilateral treaty, with three real cases solved step by step.

Madrid or Lisbon: southern Europe's favorite remote-worker dilemma. The tax answer isn't about where your laptop sits, but about where you are a tax resident — and each country's rules, plus the treaty between them, will decide that for you if you don't decide it first. Step by step.

The residency rules, side by side

Spain considers you a resident if you spend more than 183 days of the calendar year on Spanish territory, if your center of economic interests is there, or if (presumption) your spouse and minor children live there. Sporadic absences count as presence unless you can prove residency elsewhere.

Portugal considers you a resident if you spend more than 183 days (in any 12-month period touching the tax year) on Portuguese territory, or if you keep a home there in conditions suggesting the intention to hold it as your habitual residence — a criterion that can trigger with far fewer days. A year-long lease in Lisbon can be enough for Portugal to claim you.

First lesson: you can trigger both countries' criteria at once — 150 days in each plus a flat in Lisbon and family in Madrid, and both tax agencies are interested.

What you'd pay on each side

In broad strokes, for an employed or generalist freelance remote worker: Spain applies its progressive income tax (with regional brackets; the top marginal rate sits around 45–50 % depending on the region). Portugal applies its progressive IRS, with similar top marginals. The special regimes make the real difference: Spain keeps its inbound expat regime (the "Beckham law", a flat 24 % up to €600,000 for 6 years) for those who move with an employment contract or under certain conditions; Portugal closed its old NHR and replaced it with the IFICI / "NHR 2.0", far more restrictive, aimed at qualified professions and without the old blanket exemption on foreign income. Moral: the 2019 brochure bargains are gone; what remains requires meeting specific conditions and applying on time.

The Spain–Portugal treaty: the referee

If both countries consider you a resident, the bilateral treaty breaks the tie in this order: permanent home at your disposal (if you have one in both, keep going), center of vital interests (family and economy), habitual abode, nationality, and failing all that, mutual agreement between administrations. Notice that days only enter indirectly: the tie-break is played with home, family and money.

Three cases, solved

  • Case 1 — 200 days in Lisbon, Spanish client. You reside in Portugal by day count; invoicing Spanish clients doesn't make you a Spanish resident by itself. You're taxed in Portugal on worldwide income. Get your certificate there and keep your count in case Spain asks.
  • Case 2 — 120 days in Portugal, 140 in Spain, the rest traveling, family in Madrid. Neither country reaches 183, but Spain triggers the family presumption and probably the center of vital interests. Absent solid contrary proof, you're a Spanish resident. The 120 Portuguese days won't save you; your evidence file decides how much it hurts.
  • Case 3 — year-long Lisbon flat "as a base", 90 days there, 170 in Spain. Portugal can claim you via the habitual home; Spain via days (with sporadic absences) and interests. A textbook dual-residency conflict: it ends in the treaty tie-break, where the Lisbon home plays for Portugal and your real life (family, income, spending) decides. Without a day log and proof, you won't even know what to argue.

How to decide well (and be able to prove it)

Choose your residency with real numbers, not feelings: count your days in each country with the residency calculator, decide where you want to be, and make your documented life back it up — days, home, annual certificate. Daywhere keeps the count and the proof for both countries at once, which is exactly what this kind of conflict demands.

Informative content, not tax advice: every case has nuances — check yours with a qualified professional.

Keep reading