Spanish Tax Residency: Why the 183-Day Rule Isn't the Whole Story
27 August 2026
A lot of second-home buyers plan their year around the 183-day rule and assume that settles the question: stay under it, and you're safe. That's not how Spanish law actually works. Hacienda has three separate, independent routes to declaring you a tax resident, and any one of them alone is enough; you don't need to fail the day count to end up liable.
Three tests, and you only need to fail one
Article 9 of Spain's IRPF law (Ley 35/2006) sets out the criteria, and they're not layered or cumulative; they're alternatives. Meet any one, and you're a Spanish tax resident for that year, full stop.
The 183-day count
The one everyone knows: spend more than 183 days in a calendar year in Spain and you're a tax resident. What's less well known is how that count is actually made: "sporadic absences" (time spent outside Spain) get added back into your Spanish day-count by default, unless you can prove tax residency elsewhere for those days. Getting this wrong, in either direction, is exactly what the Shakira case below turned on.
Centre of economic interests
Even staying well under 183 days doesn't put you outside Spanish tax residency on its own. If the main base of your economic activity (where your business is actually run and managed, or where most of your investments and assets sit) is in Spain, that alone is enough. This test doesn't care how many nights you slept in the country.
Spouse and children
A rebuttable presumption, but a real one: if your spouse (not legally separated) and dependent minor children live in Spain, the law presumes you do too, regardless of your own travel pattern. You can argue against it, but the burden of proof sits with you, not with Hacienda.
Why this catches people who feel confident they're fine
The pattern that trips buyers up isn't usually the day count; it's the other two tests quietly shifting while attention stays fixed on counting nights. Someone who buys in Mallorca, keeps their main home and job elsewhere, but gradually starts running more of their business from Spain, or moves more of their investment portfolio into Spanish assets, or relocates their spouse and children to the island for schooling while they themselves commute, can trip the centre-of-interests test or the family presumption without ever coming close to 183 days in the country. None of that requires any deliberate change in travel pattern at all.
"More of my assets ended up in Spain than outside it" isn't a bright line the way 183 days is; it's a judgement call Hacienda gets to make first, with the burden then on you to argue otherwise.
Even the "simple" day count isn't simple: the Shakira ruling
If the plainest of the three tests, just counting days, sounds like the easy one to get right, a recent, very public case is worth knowing about. Spain's Audiencia Nacional ruled on 15 April 2026 that Shakira had not been a Spanish tax resident in 2011, overturning Hacienda's own assessment and ordering the state to repay more than €60 million in tax and penalties, with interest, after an eight-year dispute.
The court's objection wasn't to the 183-day rule itself; it was to how Hacienda had been counting toward it. The tax agency had been treating "sporadic absences" (time spent outside Spain) expansively, in some cases folding absences of close to a year back into the Spanish day-count on the basis that the taxpayer hadn't proven residency elsewhere for that period. The Audiencia Nacional found the actual count came to 163 days, not over 183, and pushed back on the agency's methodology as effectively presuming residency first and making the taxpayer disprove it. If a case with that much at stake, and that much professional advice behind it, still took eight years and a court ruling to settle a single year's day-count, it's a fair indication of how much room for dispute exists even in the test that looks the most mechanical.
What this means if you're buying a second home here
None of this means owning a Mallorca property automatically makes you a tax resident; plenty of second-home owners stay comfortably outside all three tests every year. It does mean that "I keep it under 183 days" isn't, on its own, the safety margin it's often treated as. If your business dealings, the bulk of your investments, or your immediate family's actual home base start drifting toward Spain even while your own personal travel pattern stays the same, you can end up a Spanish tax resident regardless, with worldwide income and assets in scope, not just what you earn or hold in Spain. That's a materially different tax position than a straightforward non-resident owner, and it's worth getting proper advice on where you actually stand before it becomes a dispute rather than a plan.
If you're weighing renting the property out as well as using it yourself, the tax treatment differs again by residency status; see our Long-Term Rentals in Mallorca post for how resident and non-resident landlords are taxed differently on rental income, and our Buying & Selling Guide for the wider purchase picture.
This isn't legal or tax advice; residency determinations turn on individual facts; verify your own position with a local gestor or abogado. Sources: BOE, Ley 35/2006 (IRPF), Article 9, Agencia Tributaria, official guidance on habitual residence, and, on the Shakira ruling, Infobae.