Tax in Spain for Foreigners: A Complete Guide for Expats

Tax in Spain for Foreigners: A Complete Guide for Expats

Marc Cantavella

Marc Cantavella

13 min read

<![CDATA[Spain has become an increasingly attractive destination for foreign professionals, retirees, and digital nomads. The Mediterranean lifestyle, thriving cities, and advantageous tax regimes make it appealing to people from all over the world. However, understanding the Spanish tax system is essential before making the move.

This comprehensive guide covers everything foreign nationals need to know about taxation in Spain, from residency rules to special tax regimes and common compliance pitfalls.

Understanding Tax Residency in Spain

Your tax obligations in Spain depend primarily on your residency status. The distinction between residents and non-residents determines not only which taxes you pay but also on what income.

The 183-Day Rule

You become a tax resident in Spain if you spend more than 183 days in the country during a calendar year. This threshold is straightforward but requires careful tracking.

Any day with physical presence in Spain counts toward the total, even if you only spend part of the day there. An overnight stay is not required. The days do not need to be consecutive.

Sporadic absences still count toward your total unless you can prove tax residence in another country. If you spend 120 days in Spain from January to May and return for 70 days in October and November, you exceed the threshold and become a tax resident.

Beyond the Day Count

The 183-day rule is not the only criterion. You may be considered a tax resident even with fewer days if Spain serves as your main base or center of economic interests.

Spain presumes tax residency if your spouse (not legally separated) and underage dependent children permanently reside in Spain, unless proven otherwise. This can catch foreigners off guard who maintain families in Spain while working elsewhere.

Income Tax Rates for Residents

Tax residents in Spain must declare their worldwide income, regardless of where it is earned. Spain uses a progressive tax system called IRPF (Impuesto sobre la Renta de las Personas Fisicas).

National Tax Brackets for 2026

The national IRPF rates for 2026 are structured as follows:

  • 19% on income up to EUR 12K
  • 24% from EUR 12K to EUR 20K
  • 30% from EUR 20K to EUR 35K
  • 37% from EUR 35K to EUR 60K
  • 45% from EUR 60K to EUR 300K
  • 47% on income above EUR 300K

These are national rates. Your autonomous community may add regional surcharges, which vary significantly across Spain.

Personal Allowances and Deductions

The standard personal allowance is EUR 6K , with additional allowances available for children, disability, or elderly dependents. These deductions can meaningfully reduce your effective tax rate.

Non-Resident Income Tax

Non-residents pay IRNR (Impuesto sobre la Renta de No Residentes) only on Spanish-sourced income. This applies to rental income from Spanish properties, employment income earned in Spain, or capital gains from selling Spanish assets.

Tax Rates for Non-Residents

The flat tax rates depend on your country of residence:

  • 19% for residents of EU or EEA countries
  • 24% for residents of all other countries

Rental Income Treatment

The treatment of rental income differs significantly between EU and non-EU residents. EU and EEA residents pay 19% on net rental income and can deduct allowable expenses such as property management fees, maintenance, and mortgage interest.

Non-EU residents face 24% tax on gross rental income with no deductions permitted. This makes Spanish property investment considerably less attractive for non-EU nationals.

Imputed Income on Non-Rented Properties

If you own property in Spain but do not rent it out, you still face taxation on imputed income. This is calculated based on the cadastral value of the property and taxed at the applicable non-resident rate.

The Beckham Law: Special Tax Regime for Expats

The Beckham Law, named after footballer David Beckham who famously used it when joining Real Madrid in 2003, is one of Spain's most attractive tax incentives for foreign professionals.

How It Works

Under this regime, qualifying expats pay a flat 24% tax rate on Spanish-sourced income up to EUR 600K , instead of progressive rates reaching 47%. Income above this threshold is taxed at 47%.

The key benefit is that foreign-sourced income is entirely exempt from Spanish taxation. Rental income, dividends, interest, and capital gains generated outside Spain are not subject to Spanish tax for Beckham Law beneficiaries.

Eligibility Requirements

To qualify for the Beckham Law in 2026, you must meet these criteria:

  • Not have been a tax resident in Spain during the previous five years
  • Relocate to Spain for employment with a Spanish company or perform work primarily in Spain
  • Perform at least 85% of your work activities within Spanish territory

The Spanish Startup Law, effective from January 2023, reduced the prior non-residency requirement from 10 years to five years, expanding eligibility significantly.

Duration and Application

The Beckham Law benefits last for the year you relocate to Spain plus the following five years, providing up to six years of favorable taxation. You must apply within six months of starting work in Spain or obtaining your residency permit.

Missing this six-month window permanently disqualifies you from the regime. Many expats have lost this opportunity through late applications.

Digital Nomad Visa Tax Benefits

Spain introduced a digital nomad visa in 2023, allowing remote workers to live in Spain while working for foreign employers or clients. The visa comes with significant tax advantages when combined with the Beckham Law.

Tax Advantages for Digital Nomads

Digital nomad visa holders who qualify for the Beckham Law benefit from:

  • Flat 24% tax rate on income up to EUR 600K per year
  • Exemption from wealth tax
  • No requirement to file Modelo 720 foreign asset declarations
  • Five years of reduced taxation from the start of employment

Important Restrictions

The Beckham Law for digital nomads is only available if you work as an employee for a company. Freelancers and self-employed individuals cannot access this regime, which significantly limits its utility for many remote workers.

Digital nomads must also apply within six months of starting work in Spain, and the standard Beckham Law eligibility criteria apply.

Wealth Tax in Spain

Spain imposes a wealth tax (Impuesto sobre el Patrimonio) on both residents and non-residents, though the rules differ considerably.

Application to Foreigners

Tax residents calculate wealth tax on their worldwide net worth. Non-residents pay wealth tax only on Spanish assets, primarily real estate holdings.

Exemptions and Thresholds

Non-residents benefit from a EUR 700K exemption per person. Residents receive the same exemption plus up to EUR 300K for their primary residence.

Filing is required if you have tax liability or your total wealth (exempt or not) exceeds EUR 2.0M . The filing period runs from April to June 30 each year.

Regional Variations

Wealth tax rates and exemptions vary dramatically by autonomous community. Madrid, Andalucia, Extremadura, and Cantabria offer 100% relief, creating an effective zero percent rate.

Other regions impose rising rates from 0.2% to 3.5% depending on asset values. Your choice of Spanish region can therefore have substantial wealth tax implications.

Property-Related Taxes

Property ownership in Spain triggers multiple tax obligations regardless of residency status.

IBI: Annual Property Tax

The IBI (Impuesto sobre Bienes Inmuebles) is an annual municipal property tax that all property owners must pay. Both residents and non-residents are liable.

The tax is calculated based on the cadastral value (valor catastral), a government-assigned value typically 30% to 60% below market price. Rates range from 0.4% to 1.1% depending on the municipality and property type.

Payment is due once per year, usually between May and October. The legal taxpayer is whoever owns the property on January 1 of the tax year.

Capital Gains Tax on Property Sales

Selling Spanish property triggers capital gains tax. Residents pay progressive rates from 19% to 26% on the gain. Non-residents pay flat rates of 19% for EU residents and 24% for others.

The buyer must withhold 3% of the purchase price and remit it directly to the tax authorities as a deposit against the seller's capital gains liability. Sellers then file a return to claim any refund or pay additional tax due.

Transfer Tax and Stamp Duty

Property purchases in Spain incur transfer tax (ITP) ranging from 6% to 11% depending on the region. New properties purchased directly from developers face VAT at 10% instead of transfer tax.

Double Taxation Treaties

Spain maintains double taxation agreements with more than 90 countries worldwide. These treaties prevent the same income from being taxed in both Spain and your home country.

How Treaties Work

DTAs typically use one of two methods:

The exemption method allows Spain to forgo taxing income already taxed abroad. The credit method permits taxpayers to deduct foreign taxes paid from their Spanish tax liability.

The specific provisions depend on the treaty between Spain and your country of residence or citizenship. Most treaties cover income tax, wealth tax, and capital gains tax.

Proof of Residency

To benefit from a double taxation treaty, you must prove tax residency in the treaty country. This requires a certificate of residency issued by the tax authorities in that country, expressly stating that you qualify as a resident under the treaty definition.

Without proper documentation, Spanish tax authorities will not apply treaty benefits and may tax your income at full rates.

Foreign Asset Declaration Requirements

Spain imposes stringent reporting requirements for assets held outside the country. Failure to comply carries substantial penalties.

Modelo 720: Foreign Assets

Tax residents must file Modelo 720 if they hold foreign assets exceeding EUR 50K in any of three categories: bank accounts, securities, or real estate.

The declaration is due between January 1 and March 31 each year for the previous tax year. After the initial filing, you only need to file again if the value of any category increases by more than EUR 20K .

Penalties for Non-Compliance

The penalties for failing to file Modelo 720 or filing incorrectly were reformed in 2023 following a European Court of Justice ruling. Current penalties include:

  • EUR 0K per item of unreported data
  • Minimum penalty of EUR 0K
  • Maximum penalty of EUR 20K

If you file late but before receiving notification from authorities, penalties are halved. For assets held outside the EU or EEA, penalties double to EUR 0K per item with a EUR 1K minimum.

Modelo 721: Cryptocurrency Assets

Since 2023, cryptocurrency holdings also require separate declaration using Modelo 721. The threshold and deadline match Modelo 720: EUR 50K and January 1 to March 31.

Penalties for non-compliance are EUR 0K for failure to file and EUR 0K for incorrect filing.

Common Tax Mistakes Foreigners Make

Many foreign nationals in Spain encounter tax problems due to misunderstandings or lack of awareness. These are the most frequent errors.

Misunderstanding Tax Residency

The most common mistake is failing to recognize when you become a tax resident. Many foreigners assume that maintaining a home address abroad or keeping bank accounts in their home country means they remain non-resident for tax purposes.

Spanish tax residency is determined by physical presence, economic ties, and family location, not by your preference or administrative paperwork. Once you meet the residency criteria, you must declare worldwide income.

Failing to Declare Foreign Assets

Many expats incorrectly assume that assets held abroad do not concern Spanish tax authorities as long as the money stays outside Spain. This is fundamentally wrong.

Tax residents must declare foreign assets exceeding EUR 50K via Modelo 720. They must also declare worldwide income including interest, dividends, and rental income from foreign sources.

This is one of the most common compliance failures and one that Spanish authorities actively pursue.

Missing Beckham Law Application Deadlines

The six-month application window for the Beckham Law is strict and unforgiving. Many high-earning professionals have permanently lost this tax benefit by applying even one day late.

The clock starts when you obtain your work permit or commence employment in Spain, whichever comes first. Professional tax advice immediately upon arrival is essential.

Not Obtaining a NIE Number

The NIE (Numero de Identidad de Extranjero) is your foreign identification number in Spain. It is required for virtually all official activities including opening bank accounts, signing rental contracts, purchasing property, registering for taxes, and receiving your residence card.

Many foreigners delay obtaining their NIE, treating it as an administrative formality to handle later. This creates cascading problems when they need to file tax returns or complete other official procedures.

Ignoring Cryptocurrency Reporting

Foreign crypto investors relocating to Spain frequently fail to understand or comply with Modelo 721. This is becoming an increasingly costly mistake as Spanish tax authorities enhance their cryptocurrency enforcement capabilities.

Spain receives data from cryptocurrency exchanges and can cross-reference this information against tax filings. Undeclared crypto holdings are therefore high-risk.

Practical Tax Planning Tips

Strategic planning before relocating to Spain can significantly reduce your tax burden and avoid compliance problems.

Timing Your Move

The 183-day rule operates on a calendar year basis. Arriving in Spain late in the year can delay tax residency until the following year, providing time to reorganize your financial affairs.

If you arrive in October, you will not become a tax resident until the following year, giving you more than a year to plan before filing your first Spanish resident tax return.

Choosing Your Region Carefully

Regional tax variations are substantial. Madrid offers zero wealth tax, lower income tax surcharges, and generally more favorable rates than other regions.

Barcelona (Catalonia) and the Basque Country have higher regional surcharges. If you have flexibility in where you locate, the tax implications should factor into your decision.

Seeking Professional Advice Early

The Spanish tax system is complex, particularly for foreigners with international income and assets. Professional advice from a qualified tax advisor or gestor before relocating is essential.

The cost of professional tax advice is minimal compared to the penalties for non-compliance or the tax savings from proper structuring. Engage an advisor before you move, not after problems arise.

Maintaining Detailed Records

Keep comprehensive records of your time in Spain and abroad, particularly if you are close to the 183-day threshold. Calendar entries, travel receipts, and accommodation records may be necessary to prove your residency status.

Similarly, maintain records of all foreign income, asset values, and taxes paid abroad. These documents are essential for completing tax returns and claiming treaty benefits.

Conclusion

Taxation in Spain for foreigners is multifaceted, with obligations varying dramatically based on residency status, income sources, and personal circumstances. Understanding the distinction between resident and non-resident taxation is fundamental.

The Beckham Law and digital nomad visa provide attractive opportunities for qualifying individuals, offering substantially reduced tax rates compared to standard resident taxation. However, strict eligibility criteria and application deadlines mean careful planning is essential.

Foreign asset declaration requirements through Modelo 720 and 721 are strict, with meaningful penalties for non-compliance. Tax residents must take these obligations seriously and ensure timely, accurate filings.

Regional variations in wealth tax, income tax surcharges, and property taxes create opportunities for tax optimization through careful choice of location within Spain.

The complexity of Spanish taxation for international individuals makes professional tax advice essential. Engaging a qualified advisor before relocating will help you structure your affairs optimally, ensure compliance, and avoid costly mistakes.

Spain offers an exceptional quality of life and, with proper planning, a manageable tax environment for foreign residents. Understanding your obligations and opportunities is the foundation for a successful transition to Spanish tax residency.]]>

183-day tax residency rule and worldwide income taxation

PwC Worldwide Tax Summaries – Spain Individual·Last checked: 09/02/26

Beckham Law special regime under Article 93 IRPF

Agencia Tributaria – Special Regime for Expatriates·Last checked: 09/02/26

Non-resident income tax (IRNR) rates: 19% EU vs 24% non-EU

PwC Worldwide Tax Summaries – Spain Individual·Last checked: 09/02/26

Wealth tax regional variations and Madrid 100% bonification

Agencia Tributaria – Wealth Tax·Last checked: 09/02/26

Modelo 720 foreign asset declaration and penalties

PwC Worldwide Tax Summaries – Spain Other Taxes·Last checked: 09/02/26

IBI property tax and transfer tax (ITP) by region

PwC Worldwide Tax Summaries – Spain Overview·Last checked: 09/02/26

Digital Nomad Visa tax benefits under Startup Law

Spanish Consulate in Washington – Digital Nomad Visa·Last checked: 09/02/26

Modelo 721 cryptocurrency reporting obligations

PwC Worldwide Tax Summaries – Spain Significant Developments·Last checked: 09/02/26

Marc Cantavella

Manager at The Global Wealth

International Tax Lawyer and HNWI Relocation Expert. Co-founder and Manager at The Global Wealth.