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

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

Your likely status (domestic law)

Which tests apply

Worked examples

Three runs of this calculator, computed on August 5, 2026 using the same code and the same data files this page uses. Nothing here is illustrative — change any input above to run your own.

Remote worker spent 214 days in Valencia this year

Inputs: Which country are you checking?: 🇪🇸 Spain · Days physically in Spain this calendar year: 214 · Is the main base of your economic activities or interests in Spain?: No · Do your non-separated spouse and/or dependent minor children habitually live in Spain?: No / not applicable

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

Only 132 days in Spain, but wife and kids live there

Inputs: Which country are you checking?: 🇪🇸 Spain · Days physically in Spain this calendar year: 132 · Is the main base of your economic activities or interests in Spain?: No · Do your non-separated spouse and/or dependent minor children habitually live in Spain?: Yes

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

Sold the Mexico apartment, works and lives in Madrid

Inputs: Which country are you checking?: 🇲🇽 Mexico · Do you have a home (casa habitación) available to you in Mexico?: No · Do you also have a home available to you in another country?: Yes · Are you a Mexican national?: No

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

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.

Rules verified as of July 19, 2026 — Mexico CFF Art. 9 (SAT); Spain LIRPF (Ley 35/2006) Art. 9 (AEAT); Spain–Mexico treaty Art. 4 (BOE) · Domestic-law indicator, not tax advice.

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.