Free tool
Spain 183-day rule calculator
Spain treats you as tax resident for a calendar year if you spend more than 183 days there, or if Spain is the centre of your business or economic interests. Add your stays to count your days, then read how the Beckham law depends on the same residence rules.
Your stays in Spain
Runs entirely in your browser. Nothing you enter is stored or sent anywhere, and it keeps working offline once the page has loaded.
How Spain's residence tests work
Under Article 9 of the Personal Income Tax Law (Ley 35/2006, LIRPF), you are tax resident in Spain for a calendar year if any of these applies:
- Days. You spend more than 183 days in Spain during the calendar year. Sporadic absences count as days in Spain unless you can prove tax residence in another country, usually with a tax residence certificate.
- Economic interests. The main base or centre of your business activities or economic interests is in Spain, directly or indirectly.
- Family presumption. Your spouse (not legally separated) and dependent minor children live in Spain habitually. Spain presumes you are resident unless you prove otherwise.
Spain generally has no split year: you are resident or non-resident for the whole calendar year. Where two countries both treat you as resident, the tax treaty tie-breaker decides, looking at your permanent home, centre of vital interests, habitual abode and nationality.
Where the Beckham law fits
The Beckham law is the popular name for Spain's special regime for workers moving to Spain (Article 93 LIRPF). If you qualify and opt in, you are taxed broadly like a non-resident while being resident: a flat 24% on Spanish employment income up to €600,000 (47% above that), with most foreign income outside Spanish tax. The regime covers the year you become resident and the following five years.
The conditions turn on residence history, which is why your day count matters:
- You must become Spanish tax resident as a result of the move. The day count above is the first test.
- You must not have been Spanish tax resident in the five tax years before the move (ten years before the 2023 reform). A year where you passed 183 days in Spain can break this.
- The move must be for a qualifying reason, such as an employment contract, becoming a director of a company, a qualifying entrepreneurial activity, or remote work for a foreign employer under the 2023 rules.
- You must opt in within six months of starting work or registering with Spanish Social Security, on form 149.
Worked example
Press Load the example. It counts calendar year 2026 with stays from 3 January to 15 March, 1 June to 31 August and 1 to 31 December. Counting arrival and departure days, that is 195 days: more than 183, so the day test is met for 2026. Turn the travel-day switch off and it is 189, still over.
Spain adds a twist: if those gaps were short trips abroad and you cannot show a tax residence certificate from another country, Spain can count them too, which only pushes the total higher.
Common mistakes
- Treating short trips abroad as days out of Spain. Sporadic absences count unless you prove residence elsewhere.
- Ignoring the economic-interests and family tests. You can be resident with far fewer than 183 days.
- Missing the six-month Beckham deadline. The election is not automatic and cannot be made late.
- Forgetting earlier Spanish years. A previous stint as a Spanish resident within the look-back period can rule out the Beckham law.
- Relying on memory. Keep boarding passes and a day-by-day record; you may need to show where you were.
This is an estimate, not tax or legal advice. Spain's residence rules include anti-avoidance provisions for tax havens, and the Beckham regime has detailed conditions and exclusions. Check your position with a qualified Spanish adviser.
Frequently asked questions
Is it 183 days in the calendar year in Spain?
Yes. Spain counts more than 183 days in Spain during the calendar year, January to December. Sporadic absences count as days in Spain unless you prove tax residence in another country.
Can I be Spanish resident with fewer than 183 days?
Yes. If Spain is the centre of your business or economic interests, or your spouse and dependent minor children live in Spain, you can be resident with fewer days.
What is the Beckham law?
It is Spain's special regime for people who move to Spain for work (Article 93 of the income tax law). If you qualify and opt in, Spanish employment income is taxed at a flat 24% up to €600,000 and most foreign income is outside Spanish tax, for the year of arrival and five more years.
How many years must I have been non-resident for the Beckham law?
Since the 2023 reform, you must not have been Spanish tax resident in the five tax years before the year you move. Before 2023 the look-back was ten years.
Does Spain have split-year residence?
Generally no. You are resident or non-resident for the whole calendar year, although a tax treaty can allocate residence between two countries.
Is my data sent anywhere?
No. The calculator runs entirely in your browser. Nothing you type is stored, uploaded or shared.
Source: Ley 35/2006 del IRPF (articles 9 and 93), Boletín Oficial del Estado. Other free tools: Schengen 90/180 calculator, 183-day rule calculator, UK SRT day counter, US Substantial Presence Test calculator, UK FIG regime 10-year checker, Portugal 183-day rule calculator and UAE tax residency days calculator.
Track this automatically every day
Midnightly counts every rule at once, shows its working and exports a signed evidence pack your adviser can verify.
- A running count for Spain and every other country you spend time in, with a record of each year for the Beckham look-back.
- UK SRT, US Substantial Presence, Schengen 90/180, US state and 183-day rules in one engine, verified against 58 official worked examples.
- Your record stays on your iPhone. No account.
Free to download.