Skip to content
← All visa & residency rules
Residency & citizenship

Spain 183-Day Tax Rule Explained: Stay Non-Resident in Spain

Last updated

The short answer

Spain treats you as tax resident if you spend more than 183 days in Spanish territory during a calendar year. Days abroad count as sporadic absences unless you prove tax residency elsewhere, and there is no split year. To stay non-resident, keep Spanish days at 183 or fewer and watch the family and economic ties tests.

Day limit
183 days
Counting window
Per calendar year
Applies to
Non-residents limiting Spain days
Authority
Ley 35/2006 (IRPF), art. 9
Overstay risk
Worldwide Spanish taxation
iReside preset
Spain ≤183 (Non-Resident)

Who needs to read this

Anyone spending serious time in Spain without wanting Spanish worldwide taxation needs to count days against article 9 of the IRPF law. Read this if:

  • You own a holiday home in Spain and stretch your visits across the year
  • You're a remote worker or digital nomad basing yourself in Spain part-time
  • You're a retiree wintering in Spain while remaining tax resident at home
  • You hold a Spanish residence permit (golden visa, non-lucrative) but want to stay tax non-resident
  • Your family lives in Spain while you work abroad, the classic presumption trap

How the rule works

Spain makes you tax resident for a calendar year in which you spend more than 183 days in Spanish territory, under Article 9.1 of Ley 35/2006 (the IRPF law). The consequences and the fine print:

  • Crossing the line means worldwide taxation: Spanish income tax on your global income, plus potential wealth tax and the Modelo 720 foreign-asset reporting regime.
  • The count runs over the calendar year, not a rolling window. Each 1 January the day counter starts again.
  • Days do not need to be consecutive, and immigration status is irrelevant: tourists, permit holders, and EU citizens are all counted the same way.
  • The 183-day test is only the first of three. Article 9 also makes you resident if the main base of your activities or economic interests is in Spain, and presumes residency if your spouse and dependent minor children habitually live there. Staying under 183 days does not by itself make you safe.

Counting the days

Spain counts days of presence in Spanish territory during the calendar year, and its signature trap is that many days spent abroad count too. The doctrine of sporadic absences in article 9.1 works like this:

  • Once you have a pattern of presence in Spain, short trips abroad are counted as Spanish days unless you can prove tax residency in another country, normally with a certificate from that country's tax authority.
  • A worked example: you spend 150 days across the year at your Malaga home, plus 45 days of trips to the UK, Morocco, and France between Spanish stays. If you cannot show a foreign tax residence certificate, the Agencia Tributaria can treat many of those 45 days as sporadic absences, pushing your count past 183.
  • For listed non-cooperative jurisdictions (the old tax-haven list), a certificate may not be enough: the tax agency can demand proof of 183 days of physical presence in that jurisdiction.
  • There is no official arrival/departure day carve-out. Prudent counting treats any day partly spent in Spain as a Spanish day, which is how the tax agency approaches it in practice.

Keep evidence for the days you claim were spent elsewhere: boarding passes, foreign card transactions, accommodation records. In a residency dispute the burden of proving absence effectively falls on you.

Resets, extensions, and edge cases

Nothing carries over between years, but nothing pauses the clock mid-year either. The edge cases that matter:

  • New calendar year, new count. Days in December and days in January belong to different years. Long winter stays that straddle 31 December can keep both years under 183.
  • No split year. If you become resident, you are resident for the whole calendar year from its first day. Time a move to Spain for the second half of the year and a move out for the first half.
  • Economic interests test has no day count. Running your main business from Spain, or holding most income-producing assets there, can make you resident even with 100 days of presence.
  • Family presumption is rebuttable. If your spouse and minor children live in Spain, you must actively prove your foreign residency, ideally with a foreign tax residence certificate and evidence of a genuine life abroad.
  • Spanish nationals moving to tax havens stay tainted: article 8.2 keeps them Spanish taxpayers for the year of the move plus four more years.
  • Tie-breakers: if two countries claim you, the residence article of the applicable double tax treaty (permanent home, centre of vital interests, habitual abode, nationality) decides, but only if the other country genuinely treats you as resident.

Overstays: consequences and enforcement

Going over 183 days does not fine you at a border; it converts your entire year into a Spanish-resident tax year, usually the most expensive outcome available. What that means:

  • Worldwide income tax at progressive IRPF rates, instead of non-resident tax on Spanish-source income only
  • Potential wealth tax and solidarity tax exposure on worldwide assets, depending on region and asset levels
  • Modelo 720 reporting of foreign accounts, securities, and property, with penalties for non-filing
  • Back assessments plus interest and penalties if the Agencia Tributaria decides retrospectively that you were resident in earlier years

Enforcement is evidence-driven rather than automatic. The tax agency builds residency cases from utility consumption, card and bank activity, school enrolment of children, vehicle registrations, social media, and travel records, and it has litigated sporadic-absence cases up to the Supreme Court. Golden visa and non-lucrative permit holders are visible in immigration data, which makes their day counts easy to question.

Staying compliant

Staying non-resident in Spain is a counting-and-evidence exercise, so run it like one:

  • Count every Spanish day as it happens, including partial days and day trips. iReside's Spain ≤183 (Non-Resident) preset tracks your calendar-year total from your location and shows the days you have left.
  • Hold a tax residence certificate from your home country for every year you rely on absences, since it is the document that stops sporadic absences from counting.
  • Watch the other two tests: keep your main economic base and, where relevant, your family's habitual home outside Spain, or be ready to rebut the presumption.
  • Plan with a margin. Flight cancellations, illness, or a family emergency can add days you did not plan. Treat 170 as your practical ceiling, not 183.
  • Keep exit evidence for every trip out: the burden of proving you were away is effectively yours.

Common mistakes

  • Treating 183 as a rolling window. The Spanish count is per calendar year. Confusing it with Schengen's 90/180 leads to both immigration and tax errors.
  • Assuming trips abroad reset the count. Sporadic absences count as Spanish days unless you prove residency elsewhere. This is the single most litigated point of the rule.
  • Relying on staying under 183 while family lives in Spain. The spouse-and-children presumption can make you resident anyway.
  • Thinking a residence permit decides tax residency. Administrative residence and tax residence are separate; a golden visa neither creates nor prevents tax residency.
  • Expecting a split year. Becoming resident mid-year taxes your whole year's worldwide income, including income earned before the move.
  • Keeping no evidence of absences. Without boarding passes and foreign records, days you spent abroad can be presumed Spanish.

Spain 183-Day Tax Rule FAQ

Often yes. Article 9 of the Spanish income tax law counts sporadic absences as days in Spain unless you can prove tax residency in another country, usually with a residence certificate from that country's tax authority. A week in France between two Spanish stays can still count as Spanish days.

No. Spain counts days within each calendar year, from 1 January to 31 December. The counter resets every year, unlike the Schengen 90/180 rule, which rolls. That makes December-to-January stays easier to structure, but Spain looks at ties as well as days.

Yes. You are also resident if the main base of your activities or economic interests is in Spain, directly or indirectly. And if your not legally separated spouse and dependent minor children habitually live in Spain, you are presumed resident unless you prove otherwise.

No. You are resident or non-resident for the entire calendar year; there is no part-year residency. Arriving in July and becoming resident makes you taxable in Spain on your worldwide income for that whole year, which is why arrival timing matters so much.

A certificate of tax residence issued by the other country's tax authority, generally valid for one year. If the other country is a listed non-cooperative jurisdiction, the Spanish tax agency can demand proof you were physically present there for 183 days in the calendar year.

Under article 8.2 of the IRPF law, Spaniards who move their tax residence to a listed tax haven remain Spanish taxpayers for the year of the move and the four following tax years. This anti-avoidance quarantine applies to Spanish nationals only, not to foreigners leaving Spain.

Official sources

Related rules

Keep counting automatically

This guide is general information, not legal or immigration advice. Rules change and outcomes depend on your specific circumstances; confirm against the official sources above or a qualified immigration professional before making decisions.

Are You Ready To Stop Stressing About Day Counts?