A Gateway to Global Success

Tax Residency in Spain

Question? Ask Away! Your Questions, Our Expertise.

You have a home in one country, income from another and a growing curiosity about a life in Spain. But here is a question that surprises many newcomers: at what point does the Spanish tax authority consider you one of its own? Is it the day you sign a lease, the number of nights you spend in the country, or something less obvious, like where your family lives or where your income is earned?

The answer matters more than most people expect. Becoming a tax resident can change what you pay on salary, savings, rental income and even assets held abroad, while staying a non-resident can open an entirely different set of obligations. So which status works in your favor? Are there special regimes designed for people moving to Spain? And what happens if two countries both claim you as a taxpayer at the same time?

Whether you are a remote worker, a retiree, an investor or an entrepreneur, understanding tax residency before you move, not after, can save you from costly surprises. This guide walks you through the requirements and the benefits, one clear step at a time. And when you want the complete picture of how Spain taxes foreign residents, our pillar guide, Spain Tax Guide for Foreigners, is the natural next stop.

What Is Tax Residency in Spain?

Tax residency is a fiscal status that decides which taxes you pay in Spain and on which income. It is not the same as legal residence. Legal residence is an immigration status, granted through a visa or a residence card (such as the Tarjeta de Identidad de Extranjero, TIE), while tax residency (residencia fiscal) depends on your actual ties and time spent in the country. You can be a tax resident without a residence permit, for example an EU citizen who lives in Spain most of the year, and you can hold a residence card without being a tax resident if you spend little time there.

The difference has real consequences. Tax residents are generally taxed on their worldwide income through the personal income tax (IRPF) and must report certain foreign assets. Non-residents are generally taxed only on Spanish-source income, through the non-resident income tax (IRNR).

Who Is Considered a Tax Resident in Spain?

Spain applies three main criteria under its personal income tax law. Meeting any one of them is enough, so review each carefully.

The 183-Day Rule

You are a tax resident if you spend more than 183 days in Spanish territory during a calendar year. This is the best-known test and the first one the tax authority (Agencia Tributaria) looks at.

Centre of Economic Interests

Even with fewer days, you are considered a resident if your main base of activities or economic interests is in Spain. In practice, this refers to where you earn most of your income, run a business or hold your main investments.

Spouse and Dependent Children Presumption

Spanish law presumes that you are resident if your non-separated spouse and minor dependent children usually live in Spain. This is a rebuttable presumption, meaning you can challenge it with evidence, such as proof of tax residency in another country.

How Does the 183-Day Rule Work in Spain?

The count covers the calendar year, from 1 January to 31 December, not any rolling 12-month period. Each day you are physically present counts, including arrival and departure days, weekends and holidays. Presence is checked through evidence such as flight tickets, passport stamps, hotel records, utility use, bank card payments and mobile phone activity.

Short absences are generally counted as time in Spain unless you can prove tax residency in another country for that period, usually with a tax residency certificate. Temporary absences do not automatically reset your days, and the tax authority may question periods abroad that look like short trips. Sporadic stays abroad, such as a holiday or a work trip, are treated as days in Spain.

Tip: Keep a simple travel log and save your boarding passes, because the burden of proof usually falls on you.

Can You Be a Tax Resident Without Spending 183 Days in Spain?

Yes. Spain can treat you as a resident even if you stay fewer than 183 days, in two common situations:

  1. Your economic base is in Spain. For instance, you live abroad part of the year but your business, main employment or investments are managed from Spain.
  2. Your family lives in Spain. If your spouse and minor children reside there, the tax authority may presume you are resident until you prove otherwise.

Others, such as digital nomads or retirees, may also trigger residency through a mix of factors, including owning a home, bank activity and social ties. If another country also claims you as a resident, a double tax treaty (convenio para evitar la doble imposición) uses tie-breaker rules, usually looking at permanent home, vital interests and habitual abode.

These two statuses answer different questions, and mixing them up is one of the most common mistakes newcomers make. Legal residency (residencia legal) is an immigration status: it gives you the right to live in Spain through a visa, a residence permit or, for EU citizens, a registration certificate. Tax residency (residencia fiscal) is a fiscal status that depends on your time in Spain and your ties to the country. Physical presence is a third, separate factor, because simply being in Spain on a given day is only one piece of the tax analysis.

Aspect Legal Residency Tax Residency
Governed by Immigration law Tax law
Based on Visa, permit or registration Days, economic interests, family
Granted by Immigration authorities Not granted, determined by the tax authority
Key document TIE or EU registration certificate Tax residency certificate
Can exist without the other? Yes Yes

Having one status does not automatically give you the other. A non-EU retiree with a residence card who spends only a few months in Spain may remain a non-resident for tax purposes, while an EU citizen with no permit who lives there most of the year is likely a tax resident.

How Does Spain Determine Your Tax Residency?

The Spanish Tax Agency (Agencia Tributaria) does not rely on a single document. It looks at the facts and may consider:

  • Travel records, such as flight tickets and border entries
  • Where you hold your main home, including property ownership or long-term rentals
  • Registration at the local town hall (empadronamiento) and healthcare access
  • Spanish bank activity, card payments and utility consumption
  • Where your employment, business or main investments are managed
  • Where your spouse and minor children live
  • Your tax filings in other countries

If you claim non-residency, the burden of proof is generally on you. A tax residency certificate from your home country is the strongest evidence, supported by a travel log and proof of a permanent home abroad. Since the Agency can review several past years, keep your records for at least four years.

What Taxes Do Spanish Tax Residents Pay?

Residents are subject to a set of taxes that apply to their income and assets, mainly at national level, with regional variations.

Personal Income Tax

The personal income tax (IRPF) is a progressive tax on your worldwide income: employment, self-employment, rental income, savings and capital gains. It has two parts. General income (such as salaries and rental income) is taxed on progressive brackets that combine national and regional rates, with total top rates that can exceed 45% depending on the region. Savings income (interest, dividends and capital gains) is taxed on its own scale, with rates generally ranging from 19% to 30%. Residents usually file an annual return between April and June for the previous year.

Wealth and Other Relevant Taxes

Beyond IRPF, residents may face the wealth tax (Impuesto sobre el Patrimonio), which applies to net assets above a regional threshold, and the temporary solidarity tax on large fortunes, which applies in addition to it for very high net worth. Regions can reduce or even eliminate these taxes, so your place of residence matters. Residents holding assets abroad may also need to file informative returns, such as Modelo 720 for foreign assets above €50,000 in specific categories, and Modelo 721 for cryptocurrencies held abroad. Other taxes include IBI on property, inheritance and gift tax (regional), and VAT on purchases.

Do Spanish Tax Residents Pay Tax on Worldwide Income?

Yes. Once you are a tax resident, Spain taxes your income from all sources, wherever it is earned and whichever currency it is paid in. This includes salary from a foreign employer, profits from a business abroad, rental income from foreign property, dividends, interest and capital gains.

The same income may already be taxed in the source country, but you are not necessarily taxed twice. Spain offers a foreign tax credit (deducción por doble imposición internacional) and also applies double tax treaties, which allocate taxing rights between countries. In most cases, you can deduct the foreign tax paid, up to the amount Spain would charge on that same income.

Special regimes may change this general rule. The best known is the “Beckham Law” (régimen especial para trabajadores desplazados), which can allow qualifying newcomers to be taxed as non-residents on Spanish-source income, with certain conditions and time limits. Eligibility depends on your job, your move and your previous residency, so check the requirements before assuming you qualify.

What Are the Benefits of Becoming a Tax Resident in Spain?

Tax residency is not only an obligation. For many newcomers it also brings practical advantages, though the net effect depends on your income, your region and your home country’s rules.

  • Access to special regimes: qualifying newcomers may use the Beckham Law (régimen especial para trabajadores desplazados), which can allow taxation as a non-resident on Spanish-source income for a limited period.
  • Personal and family allowances: residents benefit from minimum personal and family amounts, and from deductions that non-residents outside the EU/EEA generally cannot claim.
  • Lower rates on savings and rental income: savings income has its own scale, and long-term residential rentals may qualify for reductions.
  • Regional incentives: several regions offer reductions on wealth, inheritance and gift taxes.
  • Treaty and credit protection: residents can claim the foreign tax credit and rely on double tax treaties.
  • Easier administration: a tax residency certificate supports banking, property sales and treaty claims.

Compare the benefits against the cost of reporting worldwide income and foreign assets before deciding.

How Do Double Taxation Agreements Affect Spanish Tax Residents?

Spain has a wide network of double taxation agreements (convenios para evitar la doble imposición), and they decide which country may tax each type of income. Employment income is generally taxed where the work is performed, rental income where the property is located, while pensions, dividends and interest depend on the specific treaty. When the treaty gives the source country the right to tax, Spain usually grants a credit for the tax paid, so the same income is not fully taxed twice.

To use a treaty, you generally need to prove your residency and apply the correct article to each income type. Read the text of the treaty between Spain and your home country, since terms differ from one agreement to another.

How Can You Prove Your Tax Residency in Spain?

The key document is the tax residency certificate (certificado de residencia fiscal), issued by the Agencia Tributaria. Foreign tax authorities and banks often require it to apply treaty benefits or reduced withholding.

  1. Request it online with a digital certificate, Cl@ve, or by appointment at a tax office.
  2. Specify the year and the country where it will be used, and whether it is for treaty purposes.
  3. Provide proof of residency where requested, such as a filed IRPF return or registration documents.
  4. Receive the certificate, which is generally valid for a limited period.

Certificates are usually issued for a completed tax year or, in some cases, the current one, so plan ahead.

Can You Lose Spanish Tax Residency?

Yes. Residency is reassessed every year, so it can end when your circumstances change. Spending fewer than 183 days in Spain, moving your economic base abroad and relocating your family can all remove the grounds for residency. However, the Agencia Tributaria may challenge a departure if ties remain, such as a main home, active business or family.

To support your exit, build clear evidence: a rental or purchase contract abroad, registration with the foreign tax authority, a tax residency certificate from your new country, and a travel log. Also check the following:

  • Exit tax: Spain may tax unrealized gains on certain large shareholdings when you leave.
  • Tax havens: moving to a listed jurisdiction can keep you under Spanish residency rules for five years.
  • Foreign asset filings: you may still need to file informative returns for the year of departure.

What Happens If You Are Tax Resident in Two Countries?

Dual residency is possible because each country applies its own rules. Treaties solve the conflict through tie-breaker rules, applied in order:

Step Test Question
1 Permanent home Where do you have a home available permanently?
2 Centre of vital interests Where are your personal and economic ties stronger?
3 Habitual abode Where do you usually stay?
4 Nationality Which country are you a citizen of?
5 Mutual agreement Both tax authorities decide together

Without a treaty, both countries may tax your worldwide income, relieved only by domestic credits. If the treaty assigns residency to the other country, you may need to file as a non-resident in Spain, usually with supporting documents.

Tax Residency Rules for Foreigners Moving to Spain

Relocating is where most residency questions begin, and the year of arrival is the most delicate. In the year you move, Spain looks at whether you exceed 183 days in that calendar year, and in the year you leave, the same test applies. Because the count follows the calendar year, arriving in July can place you just below the threshold, while arriving in March almost certainly puts you above it. Your other ties still matter: a home, a business, and a spouse and minor children living in Spain can all create residency regardless of the day count.

Before you move, review these points:

  1. Your arrival date and travel plans: estimate your days in Spain for the first calendar year.
  2. Your visa or registration: an NIE and a visa or EU registration certificate give you legal residency, but they do not decide your tax status.
  3. Special regimes: newcomers who move for work may qualify for the Beckham Law, but the application must be filed within a limited period after starting work or registering with Social Security, so do not wait.
  4. Your home country’s exit rules: some countries keep taxing you after you leave unless you formally cut ties.
  5. Foreign assets and filings: once resident, you may need to report assets abroad and declare worldwide income.

Planning these items before arrival gives you the widest range of options.

Common Tax Residency Mistakes Foreigners Make

Most problems come from assumptions rather than bad intentions. The most frequent ones are:

  • Counting only nights: every day of physical presence counts, including arrival and departure days, and short trips abroad are generally treated as time in Spain unless you prove residency elsewhere.
  • Ignoring the other two criteria: staying under 183 days does not protect you if your economic base or your family is in Spain.
  • Confusing legal and tax status: a residence card does not make you a tax resident, and living in Spain without one does not make you a non-resident.
  • Assuming foreign income is exempt: residents are taxed on worldwide income, even if the money never enters a Spanish bank account.
  • Skipping foreign asset reports: missing Modelo 720 or 721, where required, can lead to penalties.
  • Not keeping evidence: without a travel log and a tax residency certificate from the other country, you may struggle to prove your position.
  • Missing deadlines: annual returns and special regime applications have fixed periods.

Summary

Spanish tax residency is a fiscal status, separate from your immigration status. You are generally a tax resident if you spend more than 183 days in Spain in a calendar year, if your main economic interests are based there, or if your spouse and minor children live there, a presumption you can challenge with evidence. Residents are taxed on worldwide income through the IRPF, may face wealth taxes depending on the region and must report certain foreign assets.

Residency also brings benefits, such as access to special regimes like the Beckham Law, personal allowances, regional incentives and treaty protection. Double taxation agreements and the foreign tax credit help prevent the same income from being fully taxed twice, and tie-breaker rules resolve cases of dual residency. You can prove your status with a tax residency certificate, and you can lose it by moving your ties abroad, although the tax authority may challenge a departure.

Plan your move before you arrive, keep a travel log and consult a Spanish tax advisor. For the complete framework, read our pillar guide, Spain Tax Guide for Foreigners.

Frequently Asked Questions About Tax Residency in Spain

How many days do I need to live in Spain to become a tax resident?

More than 183 days in a calendar year. However, you can also be resident with fewer days if your main economic interests are in Spain, or if your spouse and minor children live there, unless you prove otherwise.

Can I be a tax resident in Spain without a residence permit?

Yes. Tax residency depends on your time in Spain and your ties, not on your immigration status. An EU citizen who lives in Spain most of the year can be a tax resident without a residence card.

Does having a Spanish residence permit make me a tax resident?

No. A permit gives you legal residency, but tax residency is decided separately. If you hold a permit but spend little time in Spain and have no economic or family base there, you may remain a non-resident for tax purposes.

Do Spanish tax residents pay tax on foreign income?

Yes. Residents are taxed on worldwide income, including foreign salary, business profits, rental income, dividends and capital gains. A foreign tax credit and double tax treaties generally prevent the same income from being fully taxed twice.

How can I get a Spanish tax residency certificate?

Request it from the Agencia Tributaria online with a digital certificate or Cl@ve, or by appointment at a tax office. Specify the year and the country where it will be used, and provide proof of residency where requested, such as a filed IRPF return.

Can I be tax resident in Spain and another country?

Yes, because each country applies its own rules. A double tax treaty resolves the conflict through tie-breaker rules: permanent home, centre of vital interests, habitual abode, nationality and, finally, mutual agreement between the tax authorities.

Please have a Spanish tax advisor verify the Beckham Law deadlines, the reporting thresholds and the tax rates before publishing, since they change often.

Whenever you have questions or need advice, our team is ready to assist you.

Your Trusted Partner In Immigration KN GLOBAL SERVICES S.L.

Subscribe To Our newsletter