Personal Income Tax (IRPF) and Taxes for Foreign Residents in Spain

Find out if you have to file in Spain based on your tax residency and how to avoid overpaying tax on your worldwide income.

Updated on:
October 21, 2026
TL;DR
Income tax for foreigners in Spain: if you spend more than 183 days a year in Spain or the main centre or base of your activities or economic interests is here, directly or indirectly, you're taxed on your worldwide income. You're also presumed resident, unless you prove otherwise, if your spouse (not legally separated) and your dependent minor children live here. Non-residents are only taxed on Spanish-source income, generally at 24% (19% for residents of the EU, Norway, Iceland or Liechtenstein).

If you're living in Spain, it's important to understand how income tax works for foreign residents.

Table of contents:

Which foreign residents need to file a tax return in Spain?

It all depends on whether you’re considered a tax resident in Spain. If you are, you’ll have to pay taxes on your worldwide income, no matter where it’s earned. If you’re a non-resident, you’ll only be taxed on income generated within Spain.

How do you know if you’re a tax resident in Spain?

The Spanish tax authorities consider you a tax resident if you meet at least one of the following conditions:

  • You spend more than 183 days in Spain per year (that’s over six months), a rule set out by the Spanish Tax Agency.
    • Occasional absences still count unless you can prove that you officially reside in another country.
    • If you’re coming from a tax haven, Spain may require stricter proof that you haven’t spent enough time in the country.
  • Your main source of income or economic interests are in Spain.
    • This applies if you work in Spain, own a business, or have significant investments here.
  • Your immediate family lives in Spain.
    • If your spouse (unless legally separated) and/or minor children reside in Spain, the tax office will assume you do too—unless you can prove otherwise.

If you meet any of these criteria, you’ll likely be considered a tax resident in Spain.

What if you’re not a tax resident?

If you don’t meet the criteria mentioned above, you’ll be considered a non-resident for tax purposes. This means:

  • You’ll only pay taxes on income earned in Spain.
  • Your taxes will be handled through the Non-Resident Income Tax (IRNR).
  • The tax process is usually simpler, with fixed rates, but without the deductions available to residents.

Other Taxes That Affect Foreign Residents in Spain

Beyond Personal Income Tax (IRPF), if you’re a foreigner living in Spain, you may also be subject to other taxes depending on your financial and personal situation. Here are some of the most relevant ones:

1. Wealth Tax (Impuesto sobre el Patrimonio – IP)

If you have a high net worth, you may need to pay this tax. It applies to assets and rights both in Spain and abroad (if you are a tax resident).

  • It applies to net assets exceeding €700,000 (although the exemption threshold varies by region).
  • Your primary residence is exempt up to €300,000, as confirmed by the Spanish Tax Agency.
  • Non-residents only pay tax on assets located in Spain.

👉 Example: If you own a property in Spain worth €1 million and another abroad, you may need to declare both if you are a tax resident.

2. Non-Resident Income Tax (Impuesto sobre la Renta de No Residentes – IRNR)

If you are not a tax resident but earn income in Spain, you will be taxed under this system.

  • It applies to rental income, employment income, business activities, and capital gains.
  • The general tax rate is 24% (or 19% if you’re a resident of the EU, Norway, or Iceland), according to the Spanish Tax Agency.

👉 Example: If you live abroad but rent out an apartment in Spain, the Spanish tax office will apply IRNR on that income.

3. Inheritance and Gift Tax (Impuesto sobre Sucesiones y Donaciones – ISD)

If you receive an inheritance or a gift in Spain, you may be liable for this tax.

  • The tax rate depends on the region where the inheritance or gift is received.
  • It applies to both residents and non-residents receiving assets in Spain.

👉 Example: If you inherit a property in Madrid, you will need to pay inheritance tax, though there may be deductions depending on your relationship with the deceased.

4. Property Tax (Impuesto sobre Bienes Inmuebles – IBI)

If you buy property in Spain, you must pay IBI every year.

  • This is a municipal tax based on the cadastral value of the property.
  • Rates vary by location but typically range between 0.4% and 1.3% of the cadastral value; the statutory range for urban property set by the Official State Gazette runs from 0.4% to 1.10% before any applicable surcharges.

👉 Example: If you buy a house in Barcelona, you’ll receive an annual bill for the IBI tax.

Special Cases: The «Beckham Law» and Other Tax Regimes

If you move to Spain for work under an employment contract, you may qualify for the «Beckham Law» or «Inbound Worker Regime».

This special tax scheme allows you to pay a flat 24% tax rate for the first 6 years, but only on income earned in Spain, which by law includes all your employment income, even for work done abroad. To qualify, you must:

  • Not have been a tax resident in Spain for the last 5 years, according to the Spanish Tax Agency.
  • Move for an employment contract, which does not have to be with a Spanish company (an assignment ordered by your employer or remote work also qualify), or through other routes such as becoming a company director or an entrepreneur.

This regime is particularly attractive for executives and expatriates, as it significantly lowers their tax burden compared to the standard tax rates for residents, which go up to 47%.

If you want to see how much you could save, try our Beckham Law Tax Calculator here.

FAQs

You’re just a scroll away from clarity.

How Are the 183 Days Counted for Tax Residency in Spain?

Spain considers you a tax resident if you spend more than 183 days in the country within a calendar year. But how exactly are these days counted?
– All days in Spain count, including weekends, holidays, and short trips within the country.
– Temporary absences also count unless you can prove that you were officially residing in another country.
– If you come from a tax haven, the Spanish tax office may require stricter proof that you didn’t stay in Spain for more than 183 days.

What Happens If I Have Foreign Income While Being a Tax Resident in Spain?

If you are considered a tax resident in Spain, you must declare all your income worldwide, regardless of where it was earned. However, this doesn’t always mean you’ll be taxed twice. Here’s what you need to know:
1. Double Taxation Agreements (DTAs)
Spain has agreements with many countries to avoid double taxation, meaning you won’t have to pay tax on the same income in both places.
Typically, you pay tax in the country where the income was generated and then offset that amount when filing your tax return in Spain.
2. Types of Foreign Income and How They Are Taxed
Salary from a foreign company → If you work remotely for a company abroad but reside in Spain, you generally must declare your income in Spain and may need to pay social security contributions here.
Rental income from properties abroad → You must include it in your Spanish tax return, but you can deduct certain expenses and apply treaty benefits if a DTA exists.
Dividends, interest, and capital gains from foreign investments → These are taxable in Spain, though withholding tax paid abroad can often be deducted.
Pensions from abroad → Taxation depends on the pension type and the country paying it. Some pensions are taxed only in the source country, while others must be reported in Spain.
3. Foreign Asset Reporting (Modelo 720)
If you have over €50,000 in foreign assets (bank accounts, investments, or property), you must report them using Modelo 720, as explained by the Spanish Tax Agency.
Failing to declare these assets can result in heavy penalties, even if no additional tax is due.

How Much Tax Do Non-Residents Pay in Spain?

The tax rate depends on the type of income you earn in Spain. Here’s a breakdown of the most common cases:
– Employment income → If you work in Spain as a non-resident, you pay a flat 24% tax on your earnings. However, if you’re a tax resident of the EU, Norway, or Iceland, the rate is reduced to 19%.
Rental income →Non-EU residents pay a 24% tax on rental income, with no deductions allowed.
– EU, Norwegian, and Icelandic residents pay 19%, and they can deduct expenses such as maintenance, mortgage interest, or property management fees.
. Dividends, interest, and capital gains → Taxed at a fixed 19% for non-residents.
– Pensions → Taxation depends on the double taxation treaty between Spain and your country. Some pensions are taxed only in the country of origin, while others are subject to Spanish taxation.

Frequently asked questions

Which foreign residents need to file an income tax return in Spain?
It depends on whether you're considered a tax resident in Spain. If you are, you're taxed on your worldwide income, no matter which country it comes from. If you're a non-resident, you'll only pay tax on income generated in Spain, through Non-Resident Income Tax (IRNR). Tax residency is determined by days spent in Spain, economic interests or family ties within the country.
How do I know if I'm a tax resident in Spain?
The Agencia Tributaria (Spanish Tax Agency) considers you a tax resident if you spend more than 183 days of the calendar year in Spain or if the main centre or base of your activities or economic interests is in Spain, directly or indirectly. Occasional absences also count as time spent in Spain unless you prove your tax residence in another country with a tax residence certificate issued by that country's tax authority. If that country is a tax haven, the Spanish tax authorities may also ask you to prove that you spent 183 days there in the calendar year. If your spouse (from whom you're not legally separated) and your dependent minor children live in Spain, you're presumed resident unless you prove otherwise.
What happens if I have foreign income while being a tax resident in Spain?
As a tax resident in Spain, you must declare all your worldwide income, regardless of where you obtain it. This doesn't mean being taxed twice: the double taxation treaties with most countries let you offset what you've paid abroad. If your assets abroad (bank accounts, investments, property) are over €50,000, you must also file modelo 720, the annual information return.
How much tax do non-residents pay in Spain?
As a general rule, non-residents are taxed at 24% on Spanish-source income. If you're a tax resident in the EU, Norway, Iceland or Liechtenstein, the rate is reduced to 19%. On rental income, residents of the EU and of EEA countries that exchange tax information with Spain can also deduct expenses directly related to that income, such as repair and maintenance costs or mortgage interest, as long as they can prove that link. Dividends, interest and capital gains from selling assets are taxed at 19%. However, residents of the EU and of those EEA countries are generally exempt on interest and on gains from selling movable assets such as shares. The exemption doesn't cover shares in a company whose assets are mainly real estate in Spain or in which you held 25% or more at any time in the 12 months before the sale. Both rules also count what is held through other companies. A tax treaty may also set a lower limit on dividends and interest.

Conclusion: Do You Need to File a Tax Return in Spain?

If you’re a tax resident in Spain, you must declare all your income, no matter where it comes from. If you’re a non-resident, you’ll only be taxed on income earned in Spain.

Determining your tax residency can be tricky, so if you’re unsure, it’s best to consult a tax expert.

At TaxDown, we make filing your tax return easy, accurate, and stress-free. Run a free simulation and find out how much you can save by applying all available deductions. Don’t overpay—sign up now at TaxDown!

Author
TaxDown Team
Your tax return, done right
Follow me here
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

TaxDown is the Spanish platform that helps you file your income tax return easily, quickly and with maximum savings. It's a social collaborator of the Agencia Tributaria (Spanish Tax Agency) and has more than 300 expert tax advisors who review every return.

Related articles

Download our app

File your tax return from wherever you are.

QR code to download the TaxDown app
Person using their mobile phone to file their tax return
Foreigners in Spain
Tax registration from 35€.
See my case