Cifrely. ← All guides
ENES
Myth vs. fact · MX & ES 2026

Mexico vs Spain tax residency: the 183-day myth

"Stay under 183 days and you're not a tax resident" is one of the most expensive myths in cross-border life. It's not how either Mexico or Spain works. Getting this wrong can mean an unexpected claim on your worldwide income. Here's what each country actually looks at in 2026.

Mexico: it's your home, not your day count

Under Mexico's Código Fiscal de la Federación (Art. 9), you're a tax resident when your casa habitación — your home — is in Mexico. There is no 183-day rule for individuals at all. If you have a home only in Mexico, you're resident, full stop, no matter how many days you were physically there.

The two-home tie-breaker: if you keep a home in Mexico and another country, Mexico looks at your center of vital interests. That's in Mexico if more than 50% of your calendar-year income comes from Mexican sources, or if your main professional activity is in Mexico. Either one makes you Mexican-resident.

The Mexican-national presumption

If you're a Mexican national, the law presumes you're resident unless you can prove residence in another country. And when you do leave for good, you're supposed to file an aviso (notice) with the SAT within 15 days of ceasing residency. Skipping the aviso doesn't preserve or lose residency by itself — residency is a factual matter — but it's a compliance step people forget.

Spain: three doors, any one opens

Spain's IRPF law (Art. 9) makes you a tax resident if any one of three tests is met — you don't need all three:

1. More than 183 days in Spanish territory during the calendar year. Crucially, sporadic absences count toward the 183 unless you can prove tax residence in another country — so a few trips abroad don't reset the clock.

2. Economic base. If the main nucleus or base of your economic activities or interests is in Spain — directly or indirectly — you're resident even with far fewer than 183 days.

3. Family presumption. If your non-legally-separated spouse and dependent minor children habitually live in Spain, you're presumed resident (rebuttable with proof).

All-or-nothing: Spanish residency is decided for the whole calendar year — there's no split-year treatment like the UK's. You're resident or non-resident for all of 2026, not part of it.

The Beckham option

New arrivals to Spain who become resident may be able to elect the "Beckham" regime (Art. 93), taxing only Spanish-source income at non-resident rates for up to six years. It's a valuable option for inbound workers and digital nomads, but it's an election with conditions — worth checking before your first Spanish tax year.

What if both countries claim you?

If you're resident of both Mexico and Spain under their domestic rules, the Spain–Mexico tax treaty breaks the tie in a set order: permanent home available → center of vital interests → habitual abode → nationality → mutual agreement between the two tax authorities. You won't be doubly taxed with no relief, but a dual-residency year is exactly when you want professional advice.

Check your likely status Free checker: answer a few questions for Mexico or Spain and see which tests apply to you and your likely residency for 2026.

Frequently asked questions

I'm a digital nomad — where am I resident?

It depends on the facts each country weighs — your home in Mexico, or your days/economic base/family in Spain. Nomads are exactly who these rules catch, because "I move around" doesn't make you resident nowhere.

Does a tourist visa or lack of a visa matter?

Tax residency is separate from immigration status. You can be a tax resident without a residence permit, and vice versa — the tax tests are about home, days, economics and family.

Is this the same as the US test?

No. The US uses a weighted "substantial presence" day count. Mexico and Spain use the home/vital-interests and three-test frameworks above — which is why people from a US background get tripped up.

Sources

Based on Mexico's Código Fiscal de la Federación Art. 9, Spain's LIRPF (Ley 35/2006) Art. 9, and the Spain–Mexico double tax treaty Art. 4.

Verified as of July 19, 2026 — Mexico CFF Art. 9 (SAT); Spain LIRPF Art. 9 (AEAT); Spain–Mexico treaty Art. 4 (BOE) · Educational, not tax advice.

Sources: Mexico — CFF Art. 9 · Spain — AEAT (LIRPF Art. 9) · Spain–Mexico treaty (BOE)