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.

Key facts for 2026

  • 183-day test: more than 183 days in Spain during the calendar year; sporadic absences count unless you prove tax residence in another country (art. 9.1.a of the Personal Income Tax Act, LIRPF).
  • Economic-interests test: you are resident if the main base of your activities or economic interests is in Spain, directly or indirectly (art. 9.1.b LIRPF).
  • Family presumption: residence is presumed, unless proved otherwise, when your spouse (not legally separated) and dependent minor children live habitually in Spain.
  • Calendar year: the tax period is the calendar year (art. 12 LIRPF).
  • Worldwide income: a resident's income is taxed wherever it arises and wherever the payer is (art. 2 LIRPF).
  • Proof: the AEAT issues tax residence certificates for treaty purposes, online with Cl@ve or a digital certificate (AEAT).
  • Change of tax address: individuals without a business activity report it on Modelo 030 within three months (AEAT).
  • Foreign assets: residents file Modelo 720 when a block of assets abroad exceeds €50,000 (AEAT).

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:

  • The three tests of Spanish tax residence
  • Illustrative day count
  • Residence permit vs tax residence
  • The year you arrive
  • Proving your residence: the certificate, step by step
  • When two countries consider you resident
  • What changes once you are tax resident
  • If you are not tax resident
  • Leaving Spain: what happens and what to ask
  • Common mistakes
  • When you need a tax adviser
  • Frequently asked questions
  • How MoveWise can help

The three tests of Spanish tax residence

Art. 9 LIRPF gives two tests and one presumption. Meeting any one of the tests is enough.

1. More than 183 days in Spain

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.

  • ✅ Sporadic absences (ausencias esporádicas) are added to the days in Spain, unless you prove that you are tax resident in another country. Whether a given trip is sporadic depends on the facts.
  • ✅ Tax havens: if you claim residence in a country or territory classed as a tax haven, the AEAT may ask you to prove 183 days there in the calendar year.
  • ✅ How days are counted: the AEAT's manual reports the approach of the Tribunal Económico-Administrativo Central (TEAC). It adds up days of certified presence, presumed days between two certified presences, and sporadic absences. A day of proven presence counts in full, with no minimum number of hours (AEAT, Manual Renta 2025).

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.

2. Centre of economic interests

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.

3. The family presumption

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 day count

⚠️ 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.

  • Arrival on 1 July 2026, no trips: 1 July to 31 December is 184 days, one more than 183.
  • Arrival on 1 July 2026, ten days abroad in December: 174 days physically in Spain. The law adds sporadic absences (ausencias esporádicas) to the days in Spain unless you prove tax residence in another country. The law does not define "sporadic": if this trip is treated as one, the count is 184; if not, it is 174 and the day test is not met by these days alone.
  • Arrival on 15 August 2026, no trips: 139 days. The day test is not met by these days alone, but earlier stays in Spain in the same year add up, and the other two tests still apply.

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.

Residence permit vs tax residence

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:

  • Non-Lucrative Visa. To renew it, you must have lived in Spain "in a real and effective way" for more than 183 days during the calendar year (art. 64.2.f of Real Decreto 1155/2024). The threshold is the same as in the first tax test, so the tax-residence tests are relevant to NLV holders; how days are counted for tax purposes, and for which year, is a question for a tax adviser. See our Non-Lucrative Visa requirements checklist.
  • Digital Nomad Visa. Remote work from Spain usually means living here most of the year, so the tests deserve attention from the start. The immigration conditions for renewing are in our Digital Nomad Visa renewal guide. Employees may also look at the special regime known as the Beckham Law, which has its own six-month deadline.
  • Long-term residence. Immigration law has its own rules on continuous residence and absences, separate from the tax tests; see our guide to long-term residence in Spain.

👉 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.

The year you arrive

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.

Proving your residence: the certificate, step by step

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:

  1. Go to the AEAT electronic office, under "Todas las gestiones", "Certificados", "Censales".
  2. Identify yourself with Cl@ve, a digital certificate or an electronic DNI.
  3. Fill in the form. Choose the "General" model and select the treaty country, or "Sin convenio" if there is no treaty.
  4. Validate, sign and send, then download the PDF. Where possible the certificate is issued at once; you can find it later under "Consulta de certificados expedidos" or with its secure verification code (CSV).
  5. If the AEAT's records do not support your residence, the request ends with a refusal document and you can reopen it by submitting supporting documents through "Presentar documentos y/o alegaciones".

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).

When two countries consider you resident

Each country applies its own residence rules, so you can be resident in two countries at once under their domestic laws.

  • Tax treaties. Spain has double tax conventions with many countries; the Ministerio de Hacienda list shows which are in force. Many include tie-breaker rules; treaties based on the OECD Model look, in order, at a permanent home, the centre of vital interests, habitual abode and nationality. Each treaty has its own wording.
  • Certificates. Each country issues its own residence certificate; the one from the country claiming you is the usual evidence in a dispute.
  • Foreign tax deduction. Spanish law also allows a deduction for tax paid abroad on income Spain taxes, with limits (art. 80 LIRPF).

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.

What changes once you are tax resident

As a resident, you are a taxpayer of the personal income tax, Impuesto sobre la Renta de las Personas Físicas (IRPF).

  • ✅ Worldwide income. In general, all your income is taxed in Spain, including foreign salary, pensions, rents and investment income, subject to any tax treaty (art. 2 LIRPF). Rates combine a state scale and a regional scale, so they vary by region. Our pillar on digital nomad taxes in Spain explains the ordinary regime, the Beckham Law and the yearly calendar.
  • ✅ Annual return. Whether you must file depends on the amount and type of your income, as set out by the AEAT (who must file). For tax year 2025 the campaign ran from 8 April to 30 June 2026 (AEAT). Anyone registered in the self-employed Social Security scheme (RETA) at any point in the year must file, whatever their income; see our guide to registering as autónomo.
  • ✅ Modelo 720. An information return, not a tax, filed from 1 January to 31 March in 2026 (AEAT). Residents file it when a block of assets abroad (accounts; securities and insurance; property) exceeds €50,000. In later years you file again mainly when a block has grown by more than €20,000 since your last filing, or in the other cases the AEAT lists, such as ceasing to own a reported asset (AEAT FAQ).
  • ✅ Wealth tax. It exists and is regulated partly by the regions; whether it affects you depends on your assets and region.
  • ✅ Social Security. It is a separate system from income tax. Our guide to Spanish Social Security explains who contributes.

⚠️ 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.

If you are not tax resident

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: what happens and what to ask

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.

  • ✅ The year you leave. Residence is tested on the whole calendar year. If you are resident that year, in general the return for that year covers it in full and is filed in the following year's campaign.
  • ✅ Your tax address. Individuals without a business activity report a change of tax address on Modelo 030 within three months of the change or, if the income tax return deadline ends first, in that return. The form also records whether you are tax resident in Spain and from what date; the AEAT's instructions note that tax residence is determined by full calendar years (AEAT). The self-employed report changes on Modelo 036 and deal with their RETA registration through Social Security.
  • ✅ Evidence of your new residence. A tax residence certificate from your new country is the usual proof if Spain and that country both claim you.
  • ✅ Padrón. Your town hall registration is a separate, local record; updating it does not replace the tax steps. See our padrón guide.
  • ✅ Large shareholdings. Spain can tax unrealised gains on shares when a person who was a taxpayer for at least ten of the previous fifteen years moves abroad and their holdings exceed the values set in art. 95 bis LIRPF.
  • ✅ Spanish nationals moving to a tax haven remain IRPF taxpayers in the year of the move and the following four years (art. 8.2 LIRPF).

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.

Common mistakes

  1. Counting only consecutive days. Fix: count every day in Spain in the calendar year, and remember that sporadic absences may be added.
  2. Relying on the day count alone. Fix: check the economic-interests test and the family presumption as well.
  3. "Declaring" residence elsewhere without evidence. Fix: residence is proved with facts and, for treaties, usually with a certificate from the other country.
  4. Confusing your permit with your tax status. Fix: review your tax position each year, whatever your visa.
  5. Overlooking the first Modelo 720. Fix: list your foreign accounts, securities, insurance and property when you become resident and review them with your adviser.
  6. Leaving without updating your tax address. Fix: diarise the Modelo 030 or 036 change when you move.

When you need a tax adviser

Get advice before you act if:

  • you split your time between Spain and another country;
  • you arrive or leave mid-year;
  • you have income, pensions or property in other countries;
  • you own a company or work for one in another country;
  • you are a US citizen or keep tax ties to your home country;
  • you hold investments or crypto-assets abroad;
  • your spouse or children live in a different country from you;
  • you are considering the Beckham Law.

For a wider view of residence in several countries, see our guide to digital nomad tax residency.

Frequently asked questions

What makes you a tax resident in Spain?

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.

Do the 183 days have to be consecutive?

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.

Can you be resident in Spain but not tax resident?

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.

What happens when you become tax resident in Spain?

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.

Does Spain have a split-year rule?

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.

How do I get a tax residence certificate in Spain?

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.

Do I have to declare foreign assets in Spain?

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.

Do I need to tell the Spanish tax office when I leave Spain?

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.

How MoveWise can help

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.

Sources and legal references

  • Ley 35/2006 del IRPF, consolidated text (arts. 2, 8, 9, 12, 80 and 95 bis), BOE
  • Real Decreto 439/2007, IRPF Regulation (art. 120), BOE
  • AEAT, Manual Renta 2025: habitual residence in Spain
  • AEAT, Manual Renta 2025: who must file
  • AEAT, press release: Renta 2025 campaign
  • AEAT, tax residence certificate
  • AEAT, Modelo 030 instructions
  • AEAT, Modelo 720
  • AEAT, Modelo 720 FAQ: filing frequency
  • Ministerio de Hacienda, double tax conventions in force
  • Real Decreto 1155/2024, Reglamento de Extranjería (art. 64), BOE

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.

 

Contáctenos

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!


Moving Furniture from UK to Spain: costs and services explained
Italy Visa Covering Letter: templates and requirements
Italy Visa Fee from UK: costs and how to apply

Más publicaciones

Moving Furniture from UK to Spain: costs and services explained
Italy Visa Covering Letter: templates and requirements
Italy Visa Fee from UK: costs and how to apply