EnglishEspañol

IRPF in Spain: A Guide for Expats & Digital Nomads

Most expats don’t run into IRPF in Spain when they first land. They run into it later, usually after opening a bank account, signing an employment contract, invoicing as a freelancer, or realising that Spain may want to tax far more than their local salary. That’s the point where a simple relocation becomes a tax residency problem.

In our practice, the issue is rarely that people ignore tax entirely. It’s that they assume Spanish tax works like the system they’ve just left. It often doesn’t. If you are becoming resident under the general regime, Spain may look at your worldwide income, your family situation, your business activity, and the autonomous community where you live. If you need a broader view of taxes for expats in Spain, start there. For IRPF specifically, strategy matters before filing season, not after.

Navigating Your Spanish Tax Obligations

A new resident often starts with one narrow question: “How much tax will come off my payslip?” The better question is broader: “What exactly will Spain treat as taxable, and why?”

That change in perspective matters. IRPF isn’t just an annual return. It sits inside a wider legal framework — codified in Law 35/2006 on Personal Income Tax (LIRPF) — that affects employees, directors, freelancers, investors, and families relocating with assets or income outside Spain. A person can be fully compliant in their home country and still file incorrectly in Spain because the Spanish analysis starts from different assumptions.

DIY usually goes wrong at the qualification stage, not the form stage. If the tax position is classified incorrectly at the start, every later filing tends to inherit the same error.

The practical risk isn’t abstract. People lose time, miss special regimes, underreport foreign income, or discover too late that their region changes the result.

What IRPF in Spain Is and Why It Matters to Every Resident

Need Legal Guidance?

Need help with your case in Spain?

If this article applies to your situation, contact our team for tailored legal guidance and clear next steps.

A new resident may arrive thinking IRPF starts and ends with payroll withholding. In practice, that assumption causes many of the filing problems we later have to correct.

IRPF is Spain’s personal income tax for individuals, and for tax residents under the general regime it can extend well beyond salary paid in Spain. The Spanish analysis usually looks at the full income picture, including employment income, self-employment earnings, investment returns, capital gains, and rental income. Income that feels “foreign” in everyday terms may still need to be declared in Spain.

IRPF in Spain residency criteria — 183 days, centre of economic interests, dependants.

IRPF also matters because the cost of getting the scope wrong is rarely limited to one tax return. Spain applies progressive rates, regional rules can affect the final result, and the tax treatment of each income category follows its own logic. The Agencia Tributaria treats IRPF as a central part of the system, not a minor annual formality, as reflected in the agency’s overview of Impuesto sobre la Renta de las Personas Físicas.

The practical issue is classification. Residents often need to review income such as:

  • Employment income from a Spanish or foreign employer
  • Freelance or business income if work is carried out independently
  • Investment income such as interest, dividends, or capital gains
  • Rental income from property in Spain or abroad

Where DIY filings usually fail is not arithmetic. It is the assumption that tax paid abroad automatically solves the Spanish position. Sometimes a treaty or foreign tax credit reduces double taxation. Sometimes the timing, income category, or missing support documents prevent relief. By the time that is discovered, the filing may already be incomplete or technically wrong.

The Critical Question: Are You a Spanish Tax Resident?

A common expat scenario looks like this. You rent a home in Spain, your children start school here, you work remotely for a foreign company, and you keep assuming you are non-resident because you still have ties abroad. That is often the point where tax exposure starts, not where it ends.

Are you a Spanish tax resident — the critical question under Article 9.1 LIRPF.

Spanish tax residency is not decided by a single box on a form. Under Article 9.1 of Law 35/2006 on Personal Income Tax (LIRPF), residency is triggered by either spending more than 183 days in Spanish territory within the calendar year, or having the main core or base of economic activities or interests located in Spain. Spanish law also attaches a rebuttable presumption: where a non-separated spouse and dependent minor children habitually reside in Spain, residency is presumed unless the taxpayer produces evidence to the contrary. Each of these tests operates on different evidence and is argued differently in practice.

The legal test becomes dangerous when immigration, employment, and tax records point in different directions. A residence permit application may describe Spain as the habitual base. A lease, school enrolment, Spanish bank activity, or private health cover may support the same conclusion. If the tax filing then claims non-resident status, the position is already weaker than many people realise.

The issue is evidence, not preference

Saying you intend to remain non-resident carries little weight if your documents say otherwise. Spanish authorities assess facts, and the facts are usually spread across multiple systems.

Residency risk often appears where there is:

  • Family presence in Spain, where a non-separated spouse and dependent minor children habitually reside in Spanish territory. This triggers the statutory presumption of residency under Article 9.1.b) LIRPF, which can only be rebutted with evidence consistent with the overall tax position.
  • Business activity managed from Spain, including remote work, client management, or decision-making carried out while physically in Spain
  • Conflicting records across visas, padrón registration, leases, payroll, banking, and travel history
  • Poor day-count evidence, where entry and exit records do not support the position being taken

A weak file is common. A defensible file is built.

Where DIY positions fail

The usual mistake is not misunderstanding the headline rule. It is underestimating how residency is argued and proved. People mix immigration advice, online tax guides, and assumptions from their home country, then file on the basis of whatever seems most convenient.

That approach causes problems quickly. If Spain treats you as resident under the general regime, IRPF applies to worldwide income — this is the default rule in Article 2 LIRPF, but it is not absolute. The special regime for inbound workers under Article 93 LIRPF shifts taxation to Spanish-source income only, with defined exceptions. The analysis then becomes much broader than a simple summary of income tax rates in Spain. Relief under a tax treaty may still be available in some cases, but only if the facts, timing, and supporting documents are handled properly.

If your home life, work pattern, and financial activity are already centred in Spain, a non-resident filing position may be difficult to defend and expensive to correct later.

Borderline cases do exist. They need legal framing, document control, and a strategy set before returns are filed, not after the Agencia Tributaria starts asking questions.

Understanding Taxable Income and Progressive Rates

A new resident receives a Spanish salary, keeps a brokerage account abroad, sells shares during the year, and assumes the return is just a matter of adding everything together. That is where mistakes start.

An infographic diagram explaining the process of calculating taxable income and applying progressive tax rate brackets.

IRPF does not tax all income in the same way. The system splits income into a general base (base imponible general) and a savings base (base imponible del ahorro), and that classification affects both the rate and the reporting approach. A practical overview of the income tax rates in Spain gives the headline bands, but the primary issue for many expats is not the table itself. It is putting each item in the right category before the calculation is even done.

The general base typically includes employment income, self-employment income, certain rental income, and any capital gains not arising from the transfer of assets. The savings base, defined in Article 46 LIRPF, covers income from movable capital — dividends, interest, and returns on capitalisation operations and insurance contracts listed in Article 25.1 to 3 — together with capital gains and losses arising from the transfer of assets. Integration and compensation rules in Articles 48 and 49 LIRPF mean that losses in one base can only partially offset gains in the other, and only under specific conditions.

Classification errors are expensive.

I regularly see taxpayers focus on the top marginal rate and ignore the earlier step that matters just as much. What exactly are they being taxed on, in which base, with which deductions, and with what evidence? If foreign bank income is reported late, if a gain is calculated using the wrong acquisition value, or if an overseas pension is treated like simple savings income when it should not be, the return can be wrong even if the final rate applied looks plausible.

A compliant IRPF return starts with legal classification, not with a tax calculator.

This is also where regional rules and personal circumstances start to matter in practice. Allowances, deductions, family status, and the autonomous community of residence can all affect the final result. For a new expat, the risk is usually not that the system is impossible to understand. The risk is assuming the broad categories are enough, filing too quickly, and discovering later that income from abroad needed a more careful position than any generic online guide suggested.

Common IRPF Mistakes We See with Expats in Spain

A typical case looks like this. Someone arrives in Spain, keeps income sources abroad, assumes payroll withholding covers everything, and files late or files on the wrong basis. By the time the problem appears, it is usually no longer a simple correction. It has become a residency dispute, an omitted-income issue, or a penalty exposure.

A hand-drawn illustration outlining four common IRPF tax mistakes made by expats living in Spain.

The errors that create the most trouble

The mistakes are usually ordinary. The cost comes from filing before the facts have been checked properly.

  • Treating tax residency as a day-count exercise only. New residents often focus on the 183-day rule and ignore the wider tests in Article 9.1 LIRPF — centre of economic interests and the statutory presumption based on family residence.
  • Leaving foreign income outside the return. Overseas rent, dividends, interest, gains, and pension income are frequently missed because they never appear on Spanish salary documents. That omission is one of the fastest ways to turn a routine filing into a review.
  • Assuming regional differences are minor. They are not. Your autonomous community can affect deductions, allowances, and the final liability. A move to Madrid does not produce the same IRPF result as a move to Catalonia or Valencia.
  • Starting freelance activity before setting up compliance properly. Expats often register late, file quarterly obligations incorrectly, or assume foreign invoicing keeps them outside the Spanish system. Once activity is taxable in Spain, poor setup usually leads to surcharges, interest, and time-consuming clean-up work.

The pattern is consistent. People try to solve IRPF with software before they have resolved the legal position.

A distinct issue applies to residents with assets abroad: the informative return on foreign assets (commonly the Modelo 720 and Modelo 721 obligations). Following the Judgment of the Court of Justice of the EU of 27 January 2022, Case C-788/19 (Commission v. Spain), the Spanish legislator had to soften the penalty regime originally attached to late or missing declarations, but the reporting obligation itself remains in force. Residents who assume that compliance ends with the annual IRPF return often discover the parallel informative obligations too late — and by then the defensive position has already weakened.

What we see with special regimes

Special regimes create a different kind of mistake. The issue is often timing, not ignorance. A client hears about the expat regime after signing an employment contract, changing director roles, or restructuring income in a way that may damage eligibility. At that stage, the question is no longer whether the regime looked attractive. The question is whether the move was planned early enough to preserve the option.

Anyone considering that route should review the eligibility conditions before relocation and before the employment structure is fixed. This guide on who actually qualifies for the Beckham Law is a useful starting point.

Some errors can be corrected with amended filings and a defensible explanation. Others leave a lasting tax cost because the filing position, residence status, or special-regime window was mishandled from the start.

Mistake Likely consequence
Wrong residency assumption Incorrect filing basis and later dispute with the tax authorities
Incomplete foreign income review Amendments, penalty exposure, and higher advisory costs
Poor regional planning A higher tax bill than necessary
Late autónomo compliance Surcharges, interest, and avoidable administrative problems

Special Tax Regimes: The Beckham Law and Beyond

Not every new arrival should be taxed under the standard IRPF framework. Some qualify for a special regime, but that doesn’t mean the regime is automatically the best option.

The best-known example is the special regime for inbound workers under Article 93 LIRPF, commonly known as the Beckham Law. It applies a flat 24% rate on employment income up to €600,000 and 47% on the excess, with eligibility requirements that were significantly reformed by Law 28/2022 (the “Startups Law”) to include remote workers (nómadas digitales), company directors under certain conditions, and qualifying entrepreneurs and highly qualified professionals. Eligibility turns on technical conditions — not having been Spanish tax resident in the previous five tax periods, specific contractual structures, and timing of the application — each of which tends to be where files fail.

Trade-offs that require planning

A newer development adds another layer. Law 4/2024 of 20 December of the Community of Madrid (the so-called “Mbappé Law”) introduces a 20% deduction on the regional portion of IRPF for new residents investing in certain Madrid-linked assets within the first years of Spanish residency. The regime is structurally incompatible with Article 93 LIRPF: taxpayers under the Beckham regime are not subject to the ordinary autonomous portion of IRPF in the same way, which leaves no quota against which the Madrid deduction can apply. If you’re considering the expat regime, this guide on who actually qualifies for the Beckham Law is a useful starting point.

That incompatibility is exactly why regime selection cannot be treated as a preference. A favourable regime on paper can be the wrong regime for your actual profile if your income mix, investment plans, or region point elsewhere — and the choice has to be made before the application is filed, not afterwards.

When legal advice is recommended

Professional review is strongly advisable when any of the following apply:

  • You have income outside Spain
  • You’re relocating with a spouse or dependants
  • You’ll invoice as self-employed
  • You may qualify for the Beckham Law or a regional incentive
  • You’re choosing between Madrid and another autonomous community

Frequently Asked Questions About IRPF in Spain

Do I have to pay IRPF in Spain on income earned before I became resident?

As a general rule under Article 12 LIRPF, the tax period is the calendar year and the accrual date is 31 December. Income earned before Spanish residency began is not taxed under IRPF, provided residency started mid-year and the cut-off can be properly documented. The practical answer still requires confirming the exact residency starting point under both Spanish domestic law and any applicable double tax treaty, and the evidence supporting that cut-off is what tends to be contested in inspection.

Can I apply the Beckham Law if I move to Spain as a remote worker for a foreign company?

Following the reform introduced by Law 28/2022, remote workers may, in principle, fall within the scope of Article 93 LIRPF, provided the employer’s activity and the contractual structure meet the technical conditions of the regime. Eligibility depends on the overall consistency of the taxpayer’s employment documentation and the timing of the application, and this is a frequent point of failure — once the application window closes, the benefit is rarely recoverable.

Does the Madrid Mbappé Law apply to taxpayers under the Beckham regime?

No. The deduction introduced by Law 4/2024 of the Community of Madrid operates on the autonomous portion of IRPF, which Beckham Law taxpayers do not liquidate under the ordinary rules. The two regimes are structurally incompatible. The choice between them has to be made before the application to Article 93 LIRPF is filed, and the defensibility of that decision rests on early documentation strategy, not on retroactive adjustment.

If I am resident in Spain but my bank account is abroad, do I still have to declare the income?

Yes. Spanish tax residents under the general regime are taxed on worldwide income, and additional informative obligations may apply (Modelo 720 and Modelo 721) regarding foreign assets. The penalty regime was modified following the Judgment of the CJEU of 27 January 2022 (Case C-788/19), but the declarative obligation itself remains. The practical exposure depends on the overall consistency of the taxpayer’s position and on how well the documentation was organised before the first filing.

Does IRPF in Spain change depending on the autonomous community where I live?

Partially, yes. IRPF is a tax shared between the State and the autonomous communities, and each region sets its own scale for the autonomous portion, together with specific deductions and allowances. The central scale is identical nationwide, but the final liability can vary significantly between Madrid, Catalonia, Valencia and other regions. The defensibility of any regional planning decision depends on aligning residency evidence with the community actually chosen.

Conclusion: Plan Your Tax Strategy Before You Act

IRPF in Spain isn’t difficult because the forms are long. It’s difficult because the legal characterisation comes first. Residency under Article 9.1 LIRPF, worldwide income rules, regional scales, the Beckham regime under Article 93 LIRPF, and incompatibilities such as Madrid’s Mbappé Law all interact, and the wrong starting position can produce avoidable tax, delays, or a filing history that is hard to unwind later.

Most expats who end up paying more IRPF than they should do not lose the advantage through ignorance of the rules. They lose it through timing — filings made before the legal position is fixed, employment structures signed before the regime choice is defined, and documentary evidence gathered after an inspection has already started. Once the first return is submitted, the analytical starting point becomes much harder to move.

The key question is not whether you fit a special regime on paper, but whether your file can withstand administrative scrutiny in the year in which it matters. A structured review at the outset — before registration, before payroll, and before the first return — is the point at which most avoidable tax cost is still avoidable.

Legal Disclaimer. This article is provided for general informational purposes only and does not constitute legal, tax or financial advice. The analysis of Spanish personal income tax depends on the specific facts and circumstances of each taxpayer, on the applicable regional rules, and on the terms of any relevant double tax treaty. Legal Fournier recommends obtaining professional legal advice tailored to your situation before taking any action based on the content of this article.
Share your love
Francisco Ordeig Fournier
Francisco Ordeig Fournier

Lawyer for Spanish immigration, tax, property and business matters

Practical legal guidance for international clients through one coordinated firm.

Bar registration number 2330

Book a consultation

Articles: 264