Am I a tax resident of Mexico or Spain?
"I spent fewer than 183 days, so I'm not a tax resident." Often wrong. Mexico has no 183-day test at all — it's about your home and center of vital interests. And Spain makes you resident on any of three tests — days, economic base, or where your family lives. Check your likely status before it surprises you at tax time.
Check your residency
Which tests apply
Worked examples
Remote worker spent 214 days in Valencia this year
Your likely status (domestic law): Likely resident
You likely qualify as a Spanish tax resident for the year via the 183-day test.
✓ Meeting any ONE of Spain's three tests makes you a resident — taxed on worldwide income. Days aren't the only trigger; economic base and family both count.
Which tests apply
- More than 183 days in Spain: Yes — 214 days ✓ triggers residency
- Main economic base in Spain: No
- Spouse / minor children live in Spain: No / N/A
Only 132 days in Spain, but wife and kids live there
Your likely status (domestic law): Presumed resident
You likely qualify as a Spanish tax resident for the year via the family presumption.
⚠ Presumed resident under the spouse/minor-children rule — this is rebuttable if you can prove otherwise. Meeting any ONE of Spain's three tests makes you resident, so days alone don't clear you.
Which tests apply
- More than 183 days in Spain: 132 days — under 183
- Main economic base in Spain: No
- Spouse / minor children live in Spain: Yes ✓ presumed resident (rebuttable)
Sold the Mexico apartment, works and lives in Madrid
Your likely status (domestic law): Likely not resident
On these answers you likely are not a Mexican tax resident under domestic law — you don't have a home in Mexico.
✓ On your answers Mexico's home / center-of-vital-interests test isn't met. Note Mexico has no 183-day rule, so day count alone never decides this either way.
Which tests apply
- Home (casa habitación) in Mexico: No
- Also a home available abroad: Yes
- 183-day test: Not applicable — Mexico has no day-count residency test
- Mexican national: No
Examples are recomputed whenever the underlying rates or data change; the date above is the last recompute.
How residency is decided & data sources
Mexico (CFF Art. 9). You're a tax resident when your casa habitación (home) is in Mexico. If you have a home in Mexico and another country, residency turns on your center of vital interests — which is in Mexico when more than 50% of your calendar-year income has a Mexican source, or your main professional activity is in Mexico. There is no 183-day test for individuals. Mexican nationals are presumed resident unless they prove residence in another country (a notice/aviso is due within 15 days of ceasing residency).
Spain (LIRPF Art. 9). You're a tax resident if any one of three tests is met: (1) more than 183 days in Spanish territory during the calendar year — and sporadic absences count toward the 183 unless you prove tax residence in another country; (2) the main base of your economic activities or interests is in Spain; or (3) the presumption that applies when your non-legally-separated spouse and dependent minor children habitually live in Spain (rebuttable). Spanish residency is all-or-nothing for the calendar year — no split-year. (New residents may be able to elect the "Beckham" regime, Art. 93, to be taxed as a non-resident on Spanish-source income for up to 6 years.)
If you're resident of both under domestic law, the Spain–Mexico tax treaty tie-breaker decides in order: permanent home → center of vital interests → habitual abode → nationality → mutual agreement.
Sources: Mexico — Código Fiscal de la Federación, Art. 9 · Spain — AEAT residencia habitual (LIRPF Art. 9) · Spain–Mexico treaty (BOE), Art. 4
Frequently asked questions
I stayed under 183 days in Mexico — am I safe?
Day count isn't the test in Mexico. If your home is in Mexico (and not more strongly abroad), you can be a Mexican tax resident regardless of days. The "183 days" idea is borrowed from other countries and doesn't apply here.
Can Spain tax me if I barely spent time there?
Yes, potentially — if the main base of your economic interests is in Spain, or if your spouse and minor children live there, you can be resident even under 183 days. Any one test is enough.
What does being a tax resident mean?
Tax residents are generally taxed on their worldwide income by that country, not just local income. That's why the determination matters so much.
What if I qualify in both countries?
You don't get taxed twice with no relief — the Spain–Mexico treaty tie-breaker assigns you to one country for treaty purposes, and foreign tax credits address overlap. But you should get professional advice for a dual-residency year.