You become a Spanish tax resident if you spend 183+ days in Spain in a calendar year, or if Spain is your centre of economic interests (where most of your income originates). Once resident, worldwide income is taxed at IRPF progressive rates of 19–47%. The Beckham Law can reduce this to 24% flat for qualifying expats — but only if applied for within 6 months of Social Security registration.
At a glance
Key Facts
Residency Threshold
183+ days in a calendar year (January–December)
Alternative Trigger
Centre of economic interests or family in Spain
Income Taxed
Worldwide income at IRPF rates
IRPF Rates
19–47% progressive (state + regional combined)
Beckham Law Option
24% flat — must apply within 6 months of SS registration
Official Authority
Agencia Tributaria (AEAT)
Introduction
Spain's 183-day tax residency rule is stricter than many expats realise. Exceeding the threshold — or even falling short of it while having your economic 'centre of gravity' in Spain — triggers full Spanish tax residency and worldwide income taxation at IRPF rates of up to 47%.
This guide explains exactly how Spain's residency rules work, what tests the Agencia Tributaria uses beyond the simple day count, how to formally exit Spanish tax residency, and how the Beckham Law interacts with the 183-day threshold for qualifying expats.
Section 01
How Spain's 183-Day Rule Works
According to the Agencia Tributaria (AEAT), you are a Spanish tax resident for a given year if you spend 183 or more days in Spanish territory during that calendar year. Spain uses a calendar year basis (January 1 to December 31).
Day Counting Rules
Any part of a day on Spanish soil counts as a full day
Both arrival and departure days count
Sporadic absences (temporary trips abroad) are still counted as days in Spain unless you can demonstrate you were tax resident elsewhere during those absences
Transit through Spanish airports in the international zone does not count
The Sporadic Absence Rule
Spain's day-count rule has an important nuance: sporadic absences from Spain are counted as days in Spain unless you prove you were tax resident in another country during that time. This means a Spanish tax resident who takes a 2-month trip abroad may still have those 2 months counted as 'days in Spain' for threshold purposes unless they can demonstrate foreign tax residency for that period.
Section 02
The Centre of Economic Interests Test
The 183-day threshold is not the only residency trigger. Spain also applies a centre of economic interests test: if the base or main core of your economic activities or interests is in Spain, you are considered a Spanish tax resident regardless of how many days you've spent there.
This test is particularly relevant for:
Business owners whose company or primary clients are in Spain
Investors with significant Spanish assets or income streams
Self-employed professionals whose main income comes from Spanish sources
You cannot avoid Spanish tax residency simply by spending 182 days in Spain if Spain is clearly the economic hub of your activities.
Section 03
The Family Presumption
Spain's tax law contains an additional presumption of residency: if your non-separated spouse and/or dependent minor children habitually reside in Spain, the AEAT presumes you are also a Spanish tax resident. This presumption can be rebutted by providing evidence of tax residency elsewhere, but the burden of proof is on the taxpayer.
This means that even if you personally spend fewer than 183 days in Spain, you may be considered resident if your family lives there permanently.
Section 04
What Tax Residency Triggers: Worldwide Taxation
Spanish tax residents are liable for IRPF (Impuesto sobre la Renta de las Personas Físicas) on their worldwide income. Spain's 2026 IRPF rates combine a national rate and a regional rate. The combined rates vary by autonomous community, but a representative national picture is:
Taxable Income
Approx. Combined IRPF Rate (National Avg.)
Up to €12,450
19%
€12,450–€20,200
24%
€20,200–€35,200
30%
€35,200–€60,000
37%
€60,000–€300,000
45%
Above €300,000
47%
Madrid's regional rates are the lowest in mainland Spain (effective top rate ~43.5%), while Catalonia and other regions apply higher rates. Use the Spain Tax Calculator for a regionalised estimate.
Section 05
Beckham Law: The 183-Day + 6-Month Interaction
The Beckham Law creates an important interaction with the 183-day rule. You do not need to reach 183 days before applying for the Beckham Law — in fact, waiting that long risks missing the application window.
The Beckham Law application via Form 149 must be submitted within 6 months of your Social Security registration in Spain. This clock starts from SS registration, not from when you reach 183 days.
In practice: a qualifying expat who arrives in January, registers with Social Security in February, and submits Form 149 by August is within the window — regardless of whether they've yet crossed 183 days. The Beckham Law then applies retroactively from the start of their Spanish tax residency.
See the full Beckham Law guide for complete eligibility requirements.
Section 06
How to End Spanish Tax Residency
Formally exiting Spanish tax residency requires demonstrating to the AEAT that you no longer meet any of the residency tests — day count, economic interests, or family presence:
Stop spending 183+ days in Spain — obvious, but track carefully with documented evidence (passport stamps, flight records, utility bills abroad)
Establish tax residency in another country — obtain a certificate of tax residency from your new country's tax authority
File a final IRPF return for the year of departure, covering income up to the departure date
Update your address with the AEAT — file a change of address showing a foreign address, and if applicable, deregister from the Padrón (municipal census)
Moving to a Tax Haven
Spain has a specific rule for people who move to a 'tax haven' (jurisdictions on Spain's blacklist): Spanish residency is maintained for the year of departure and the following 4 years, regardless of the day count. This prevents artificial moves to zero-tax jurisdictions to avoid Spanish tax.
Section 07
US Citizens: Still Filing US Taxes
US citizens who become Spanish tax residents still file US federal tax returns annually. Spanish tax residency — and even the Beckham Law — does not eliminate US filing requirements.
Form 1040: Required annually for all US citizens regardless of Spanish residency
Foreign Tax Credit or FEIE: Used to prevent double taxation. Under Beckham Law's 24% flat rate, FTC may not fully offset US liability — FEIE may be preferable for some income levels
FBAR: Required if Spanish bank accounts exceed $10,000 at any point during the year
The Spain-US Tax Treaty prevents most double taxation but does not eliminate US filing obligations
Becoming a Spanish tax resident — or managing the Beckham Law + US filing interaction — requires specialist expertise. Greenback's expat CPAs handle your US return, FBAR, and FATCA while advising on the optimal FEIE vs FTC strategy for your Spanish income.
⚠ Not the cheapest option — best for complex situations and expats who want a dedicated CPA.
How does Spain count the 183 days for tax residency?
Spain counts days on a calendar year basis (January 1 to December 31). Any part of a day on Spanish soil counts as a full day, including both arrival and departure days. Crucially, Spain counts 'sporadic absences' — brief trips abroad — as days in Spain unless you can prove you were tax resident elsewhere during those periods. Transit through Spanish airports in the international zone does not count.
Q
Can I become a Spanish tax resident without spending 183 days there?
Yes. Two alternative tests can trigger Spanish tax residency below 183 days: (1) If Spain is the main base of your economic activities or primary source of income, the centre of economic interests test applies. (2) If your non-separated spouse and/or dependent minor children habitually reside in Spain, the AEAT presumes you are resident (though this can be rebutted with evidence of foreign tax residency).
Q
What is Spain's Beckham Law and does it help with the 183-day rule?
The Beckham Law lets qualifying expats pay a flat 24% tax rate for up to 6 years instead of standard IRPF rates of 19–47%. It doesn't change when you become tax resident — it changes how you're taxed once you are. Critically, the Beckham Law application (Form 149) must be submitted within 6 months of Social Security registration, not after you cross 183 days. Apply early.
Q
What happens if I accidentally spend 183 days in Spain without a visa?
You become a Spanish tax resident subject to worldwide income taxation at IRPF rates (up to 47%), with no access to the Beckham Law (since you're unlikely to have a formal SS registration date to anchor the 6-month window). If you haven't yet crossed 183 days, formalise your arrangement immediately — either with a Digital Nomad Visa or appropriate employment structure.
Q
Can Spain tax my income if I'm not there for 183 days?
Yes, if Spain is the centre of your economic interests — where your income primarily originates, where your business is registered, or where your main clients are. The 183-day rule is the most common trigger, but it's not the only one. Non-residents may also owe Spanish non-resident income tax (IRNR) on Spanish-sourced income at 24%.
Q
How do I prove I'm no longer a Spanish tax resident?
Obtain a certificate of tax residency from your new country's tax authority and present it to the AEAT. File a final IRPF return for the departure year. Stop maintaining a registered address in Spain. For moves to blacklisted tax havens, Spanish law maintains residency for the departure year plus 4 more years regardless of documentation.
Q
Do US citizens need to file US taxes when living in Spain?
Yes. US citizens file US federal tax returns annually regardless of where they live. Spanish tax residency and the Beckham Law do not eliminate US obligations. The Spain-US tax treaty and Foreign Tax Credit prevent most double taxation, but filing is still required. Under Beckham Law's 24% rate, specialist FEIE vs FTC analysis is recommended as the FTC may not fully offset US liability.
Disclaimer:This guide provides general information about Spanish tax residency rules for educational purposes only. Tax rules change frequently and individual circumstances vary significantly. Always verify current requirements with the Agencia Tributaria (AEAT) or a qualified Spanish tax professional. This is not tax advice.