Tax Residency in Spain: The 183-Day Rule, the Other Tests and Your Obligations

By Arturo García de la Cruz · Immigration Lawyer at MoveWise · Last updated: 4 November 2026
⚠️ Important: This guide explains how the rules work in general. It is not tax advice. MoveWise is an immigration consultancy, not a tax adviser: before you make any tax decision, speak to a qualified tax adviser (in Spain an asesor fiscal).
💡 The short answer: You are tax resident in Spain for a calendar year if you spend more than 183 days in Spain that year, or if your main centre of economic interests is in Spain. Residence is also presumed if your spouse and dependent minor children live in Spain. These tests are in art. 9 of the Personal Income Tax Act and are separate from your residence permit. As a tax resident, you are generally taxed in Spain on your worldwide income and may have extra reporting duties.
This guide is for people moving to Spain, or already living here, who want to understand when Spain treats them as tax resident: remote workers on the Spain Digital Nomad Visa, retirees and others on the Non-Lucrative Visa, and anyone splitting time between countries. You will learn the three tests, how days add up, how to prove your residence, what obligations follow and what to ask an adviser when you leave.
It is written by MoveWise Legal Managers, who see every week how residence permits and tax questions meet, and checked against the BOE and the Agencia Tributaria (AEAT) pages linked in each section. The pitfall it helps you avoid is treating tax residence as a choice you can declare, rather than a question of fact.
In this guide:
Art. 9 LIRPF gives two tests and one presumption. Meeting any one of the tests is enough.
You are resident if you stay in Spain for more than 183 days during the calendar year. The days do not need to be consecutive.
The same manual notes that, according to the TEAC and the Supreme Court, tax residence is not decided by your intentions or by declaring yourself resident somewhere: it has to be proved with facts.
You are also resident if the main base of your activities or economic interests is in Spain, directly or indirectly, even if you spend fewer than 184 days here. Residence is therefore not decided by the day count alone. What counts as your "main" economic base depends on your income, assets and activities, which is why this test needs an adviser.
Spain presumes you are resident when your spouse, not legally separated, and your dependent minor children live habitually in Spain. It is a presumption: you can rebut it with evidence. It applies to the person whose family lives in Spain, so couples who live in different countries should have their position checked by an adviser.
💡 Pro tip: from the day you arrive, keep a folder with boarding passes, travel tickets, your rental contract, your padrón certificate and any residence certificate from another country. Tax residence is a question of evidence, and the same documents help when you renew your permit.
⚠️ Illustrative estimate, not a tax calculation. These figures are rough estimates to give you an idea of the order of magnitude. They are not a tax calculation and must not be relied on: the real result depends on your whole situation (other tests, family, evidence, treaties). Always ask a fiscal lawyer or an experienced accountant to check your own days and your residence position.
Assumptions: calendar year 2026 (365 days); every day of proven presence counts in full, including the arrival day; no family in Spain; only the 183-day test is shown, not the economic-interests test or a treaty.
The first two cases show why a short trip abroad may or may not change the count, and why proof of residence elsewhere matters. How your own days are counted, and which tests you meet, is a question for a fiscal lawyer or an experienced accountant.
Your residence permit and your tax residence are separate questions. A permit gives you the right to live in Spain; tax residence depends on the facts of art. 9, year by year. So yes, you can hold a Spanish residence permit and, in a given year, not be tax resident in Spain, or the opposite. This depends on your circumstances; check it with a qualified tax adviser before you act.
Visa-specific points:
👉 Moving to Spain to work remotely? Check your visa options with a MoveWise Client Manager — we will explain which permit fits and what it requires. The consultation covers the visa, not your taxes.
Spanish law looks at the whole calendar year. The tax period is the calendar year (art. 12 LIRPF), and the 183-day test counts days "during the calendar year". In general, Spanish domestic law does not split a year into a resident part and a non-resident part.
What this means in the year you arrive, and whether a tax treaty changes the picture, depends on your circumstances. This is one of the most common grey areas: check it with a qualified tax adviser before you plan your dates. The questions to raise are: which tests you meet in your arrival year, how your previous country treats the same year, and whether any income earned before the move is affected.
A tax residence certificate (certificado tributario de residencia fiscal) is the usual proof of Spanish residence for a tax treaty. According to the AEAT's help page:
You can also request it at your AEAT office with Modelo 01. If you are taxed under the Beckham Law, a specific certificate applies, with limits for treaty purposes (art. 120 of the IRPF Regulation).
Each country applies its own residence rules, so you can be resident in two countries at once under their domestic laws.
How a treaty applies to you is a question for a tax adviser who knows both countries. MoveWise does not interpret treaties for individual cases.
As a resident, you are a taxpayer of the personal income tax, Impuesto sobre la Renta de las Personas Físicas (IRPF).
⚠️ Common mistake: assuming that tax paid abroad automatically settles your Spanish obligations. It may reduce what you owe in Spain, but in general you still declare your worldwide income here. Ask your adviser how this applies to you.
👉 Retiring to Spain? Ask a MoveWise Client Manager about the Non-Lucrative Visa — we will explain the visa requirements, including the 183-day renewal condition; for the tax side we can introduce you to an independent tax adviser.
Non-residents are not IRPF taxpayers. In general, they are taxed only on certain income obtained in Spain, such as Spanish rental income, under the non-resident income tax (Impuesto sobre la Renta de no Residentes, IRNR). Our overview of taxes in Spain for expats maps the taxes residents and non-residents meet.
Leaving Spain does not end your tax residence by itself, and Spanish domestic law has no split year. These are the points to work through with your adviser before you go.
Questions to raise with your adviser: which tests you meet in your final year, how your new country treats the same year, whether a treaty applies, which returns you still owe in Spain, and how any property or income you keep in Spain will be taxed.
Get advice before you act if:
For a wider view of residence in several countries, see our guide to digital nomad tax residency.
Spending more than 183 days in Spain in a calendar year, or having your main centre of economic interests in Spain. Residence is also presumed if your spouse and dependent minor children live in Spain. One test is enough.
No. The law counts days in Spain during the calendar year, and sporadic absences may be added unless you prove tax residence in another country. How your own days are counted is a question for your adviser.
Yes, it is possible, because a residence permit and tax residence are different concepts. Whether you are tax resident in a given year depends on the art. 9 tests. Check your case with a qualified tax adviser before you act.
In general, you are taxed on your worldwide income under the IRPF, you may have to file an annual return and Modelo 720, and you may face other taxes depending on your assets and region. Eligible people who move for work can opt into the Beckham Law.
Spanish domestic law looks at the whole calendar year, and in general it does not split a year into resident and non-resident parts. Whether a tax treaty changes this in the year you arrive or leave depends on your situation and needs advice.
Request it on the AEAT electronic office under "Certificados", identifying yourself with Cl@ve, a digital certificate or an electronic DNI, and choose the treaty country. Where possible it is issued at once; if the AEAT's records do not support your residence, you can submit supporting documents.
If you are resident and a block of assets abroad exceeds €50,000, you file Modelo 720, an information return, between 1 January and 31 March. In later years you file again mainly when a block has grown by more than €20,000, or in other cases listed by the AEAT.
In general, a change of tax address must be reported: individuals without a business activity use Modelo 030, within three months or in the income tax return if that deadline ends first, and the self-employed use Modelo 036. Leaving does not end tax residence by itself, so review your final year with an adviser.
MoveWise handles the immigration side of your move. For the Spain Digital Nomad Visa and the Non-Lucrative Visa, we start with an eligibility assessment (Module 1); a Legal Manager then prepares and submits your file and answers any requerimiento (Module 2). Not sure which permit fits? Compare the Non-Lucrative Visa and the Digital Nomad Visa. After approval we help with residency registrations such as the TIE card and padrón.
We do not give tax advice or file tax returns. For tax residence questions we can put you in touch with independent qualified tax advisers we work with. Our visa service includes a full refund of our fee if your application is refused, under the conditions of our service agreement, and our clients have left more than 500 client reviews on Trustpilot.
👉 Book a free consultation with a MoveWise Client Manager — tell us about your plans and we will explain the visa route that fits. The consultation covers the visa, not your taxes.
This article is general information about Spanish tax rules, verified on 4 November 2026. It is not tax, legal or financial advice and does not take your personal situation into account. Tax law and its interpretation change often. Always confirm your position with a qualified tax adviser before acting.
While the requirements for obtaining a visa for Spain are straightforward, preparing the necessary documents and navigating the application process can be challenging. Mistakes or incomplete paperwork could put your application at risk.
If you have any doubts or questions about the process, you can book a free consultation for the following visa types, we’ll be there to help you every step of the way:
Digital Nomad Visa Spain -> BOOK TODAY a 100% Free Consultation
Non-Lucrative Visa Spain -> BOOK TODAY a 100% Free Consultation
Student Visa Spain -> BOOK TODAY a 100% Free Consultation
Hasta pronto!

