Double Taxation: How to Avoid Paying Tax Twice as a Foreign Autónomo

Double Taxation: How to Avoid Paying Tax Twice as a Foreign Autónomo

Written by Selfemployed

29/10/2026

Double taxation is what happens when two countries both want to tax the same income, and as a foreign autónomo in Spain you can end up paying twice if you don’t plan for it.

It is one of the most common worries I hear from people who move to Spain and keep a client, a rental flat or a savings account back home. The good news is that, in most cases, you will not pay twice. You only need to know which country has the first right to tax, and which documents prove it.

This guide explains how double taxation works in practice, how Spanish tax residency is decided, and how to claim relief in your Spanish tax return.

What double taxation means for a foreign autónomo

Double taxation means the same income is taxed twice, in two different countries, in the same period. For an autónomo, it usually happens for one simple reason: two countries both think you live there, or one country taxes where you live and the other taxes where the money comes from.

The typical cases I see are these:

  • You moved to Spain mid-year and your home country still treats you as a resident for part of that year.
  • You live in Spain but invoice a client abroad that withholds tax at source.
  • You own a rental property, a pension or an investment account in your home country.
  • You split your time between Spain and another country and both tax offices claim you.

The key idea is that you are not taxed twice by accident. Countries have rules, and Spain has signed many bilateral treaties to decide who taxes what. Your job is to prove where you are resident and claim the relief you are entitled to.

Tax residency in Spain decides who taxes you

Everything starts with one question: are you a tax resident in Spain? Spanish residency is decided by tax law, not by your visa, your NIE or your empadronamiento.

The rule is in Article 9 of the Spanish Personal Income Tax Law (Ley del IRPF), which says you are resident when you “stay in Spanish territory for more than 183 days in the calendar year” (“permanezca más de 183 días, durante el año natural, en territorio español”, translated from the original Spanish).

There is a second test. The same article says you are also resident when “your main base or centre of economic activities or interests is in Spain” (“radique en España el núcleo principal o la base de sus actividades o intereses económicos”, translated from the original Spanish).

For an autónomo, this second test matters a lot. If your business, your clients and your income are mostly based in Spain, you can be a Spanish tax resident even with fewer than 183 days. Check our detailed guide on how to prove you are resident.

There is also a family presumption. Unless you prove otherwise, you are presumed to be resident in Spain when your spouse (not legally separated) and your dependent minor children habitually live here.

When two countries both say you are resident

This is where double taxation starts. Your home country may use a different test, so both can claim you as resident in the same year.

When that happens, the tax treaty between the two countries has a tie-breaker clause. Treaties based on the OECD model usually look at where you have a permanent home, then where your personal and economic ties are closest, and then your habitual abode and nationality. Check the exact order in your own treaty, because it can differ.

How double taxation treaties protect you

Spain has signed a large network of bilateral double taxation treaties (convenios para evitar la doble imposición). Each one is negotiated by the Spanish Ministry of Finance with another country and says which state may tax each type of income.

In practice, most treaties follow the same logic:

  • Business profits are normally taxed in the country where you are resident, unless you have a permanent establishment abroad.
  • Employment income is taxed where the work is performed, with common exceptions for short stays.
  • Rental income from property is taxed where the property is located.
  • Dividends, interest and royalties can be taxed in both countries, but the source country usually caps its withholding.

The treaty then gives a method to remove the overlap. The two classic methods are the exemption method (one country simply does not tax that income) and the credit method (both can tax, but your country of residence gives you a credit for the foreign tax).

For most foreign income of Spanish residents, the credit method is the one you will meet. That is why your Spanish tax return, not the foreign tax office, is usually where relief happens.

Before you do anything else, read the treaty between Spain and your home country. Treaty wording changes from country to country, and the details matter.

I always tell readers to look at the specific treaty first and the general rules second. A general guide can tell you the logic, but only the treaty tells you the rate.

How to claim the foreign tax credit in your Spanish return

If you are a Spanish resident and you paid tax abroad on income that is also taxed in Spain, you claim the deduction for international double taxation (deducción por doble imposición internacional) in your annual IRPF return. It is regulated in Article 80 of the Ley del IRPF.

According to a Spanish tax training firm, the taxpayer “may deduct the lower of the following amounts” (“podrá deducirse la menor de las siguientes cantidades”, translated from the original Spanish). The two amounts are what you actually paid abroad in a tax similar to the IRPF, and the average effective Spanish tax rate applied to the part of your income taxed abroad.

In plain words, you get back the foreign tax you paid, but never more than the Spanish tax on that same income. This is the key limit to remember.

A simple example

Imagine you live in Spain and invoice a client in your home country. That country withholds 15% on a €10,000 invoice, so €1,500 goes to the foreign tax office.

In Spain, that €10,000 is also taxable income. If the Spanish tax on it would be €2,400, you can deduct the €1,500 you already paid abroad, and you pay only the remaining €900 in Spain.

If instead the Spanish tax on that income were €1,200, you could deduct only €1,200. The extra €300 abroad would not be refunded by Spain.

These figures are illustrative. Your real result depends on your total income, your regional rates and your treaty.

What you need to keep

The tax office will want proof that the foreign tax was really paid. Keep these documents for at least four years:

  • The foreign tax return, assessment or withholding certificate.
  • Invoices and bank statements showing the payment.
  • Your certificate of Spanish tax residence, if the foreign country asks for it to apply a treaty rate.

Practical steps to avoid paying tax twice

Here is the order I would follow as a foreign autónomo with income in two countries.

  1. Confirm where you are resident. Count your days and check where your main business activity is based. Do this for both countries, not only Spain.
  2. Get your certificate of tax residence. The Agencia Tributaria explains that the certificate “is issued if the data held by the Tax Agency show you are a tax resident in Spain” (“se emitirá si de los datos que constan en la Agencia Tributaria se deduce tu residencia fiscal en España”, translated from the original Spanish).
  3. Give it to the foreign payer or tax office. This is how you ask for the treaty rate or an exemption at source, instead of paying the full local withholding.
  4. Declare worldwide income in Spain. As a resident, you report income from all countries in your annual IRPF return (Modelo 100).
  5. Claim the double taxation deduction. Add the foreign tax paid and your supporting documents when you complete the return.
  6. Check your foreign assets. If you hold accounts, securities or property abroad above the limits, you may also have to file Modelo 720.

About Modelo 720

Modelo 720 is a separate informative return. It has three categories: accounts in foreign financial institutions, securities and insurance held abroad, and foreign real estate.

The Agencia Tributaria’s own examples use a threshold of €50,000 per category, measuring accounts by their average fourth-quarter balance and investment funds by their value on 31 December. The filing window always runs from 1 March to the end of March each year. Mark it in your calendar, because penalties for getting this wrong can be heavy.

We explained more on what is this tax form and who submits it in our article Form 720: What is and who submits it?

If you are not a Spanish resident

If you earn income in Spain but are not resident here, the rules change. You would normally file Spanish non-resident returns (such as Modelo 210) and claim relief in your country of residence. Always confirm which side you are on first.

Common mistakes that lead to double taxation

Most cases of double taxation I see come from paperwork, not from the law itself. These are the mistakes that cost people the most.

  • Not telling your home tax office you left. If you stay registered as a resident there, they may keep taxing your worldwide income.
  • Letting the foreign client withhold the full rate. Without a residence certificate, many payers apply the standard local withholding instead of the treaty rate.
  • Forgetting to claim the deduction. The relief is not automatic. If you do not claim it in your Spanish return, you simply pay twice.
  • Losing the proof of payment. Without the foreign tax document, the deduction can be denied.
  • Ignoring the year you arrive or leave. Moving mid-year is where two residency claims overlap most often.
  • Assuming the 183-day rule is the only test. The centre of economic interests can make you a Spanish resident even with fewer days.

The fix is almost always the same: document your residence, keep your paperwork, and claim the relief you are entitled to.

If your situation involves several countries, a company, or large amounts, it is worth paying a qualified tax adviser for a one-off review. The cost is usually small compared with paying double taxation for years.

Double taxation FAQs

Can I be taxed in Spain and in my home country at the same time?

Yes, if both countries consider you a resident or if your income comes from a source in the other country. A tax treaty and the foreign tax credit are what prevent you from paying the full amount twice.

Do I need a residence certificate to use a treaty?

Often yes. Foreign payers and tax offices usually ask for a certificate from the Spanish tax authorities before they apply a reduced treaty rate.

Is the deduction automatic?

No. You must claim it in your Spanish IRPF return and keep proof of the foreign tax you paid.

Does the 183-day rule decide everything?

No. It is one of two tests in Article 9 of the Ley del IRPF. The second one looks at where your main business and economic interests are.

Will I get a refund if the foreign tax is higher than the Spanish tax?

Not from Spain. The deduction is limited to the Spanish tax that corresponds to that income, so any excess generally stays as a cost unless you can recover it in the other country.

Final thought

Double taxation sounds scary, but for most foreign autónomos it is a paperwork problem, not a tax bill problem. Prove where you are resident, use the treaty, and claim the deduction.

I always recommend doing this before your first return in Spain, not after. It is much easier to get a residence certificate and keep clean records from day one than to fix a mistake three years later.

This guide is general information, not tax advice. Rules, thresholds and treaty terms change, so please verify your own case with the Agencia Tributaria or a qualified adviser before you file.


References

  • Ley 35/2006 del IRPF, Articles 8, 9 and 80 (BOE).
  • Agencia Tributaria, certificados de residencia fiscal.
  • Agencia Tributaria, Modelo 720 FAQs.
  • INEAF, Deducción por doble imposición internacional en el IRPF.

Tax Calendar for Freelancers in Spain

How to Invoice International Clients: A Guide to VAT and Global Compliance


Selfemployed Spain's Team

Helping freelancers and small business owners in Spain stay informed, organized, and confident.

We write clear, practical content on taxes, accounting, and everything entrepreneurs in Spain need to thrive.