Spanish tax law (Ley del IRPF) treats a person as having their "residencia habitual" — and therefore being a full Spanish tax resident — if they meet any ONE of three independent tests: physical presence of more than 183 days in the calendar year, having their main center of economic interests in Spain, or a rebuttable presumption based on a resident spouse and minor children. Meeting any single test is enough to trigger Spanish tax residency; the tests are not cumulative requirements. This document covers all three tests at a level appropriate for a newcomer; the day-counting mechanics of the 183-day test specifically are covered in more depth in the companion 183-day-rule.md document.
Becoming a Spanish tax resident is a major financial event: it generally means Spain taxes the person's WORLDWIDE income (employment, investments, rental, pensions, capital gains — wherever earned), not just Spanish-source income, and usually also triggers annual wealth-tax and foreign-asset reporting obligations. A newcomer can trip one of these tests without realizing it — for example, by leaving a spouse and children in Spain while traveling for work — so understanding all three tests, not just the day count, is essential before assuming non-resident status.